[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:32]recv_with_timeout no data received [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]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:46]recv_with_timeout no data received [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:35]recv_with_timeout no data received [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:45]recv_with_timeout no data received [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:44]recv_with_timeout no data received [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:55]recv_with_timeout no data received [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:37]recv_with_timeout no data received [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:09]recv_with_timeout no data received [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:54]recv_with_timeout no data received [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:14]recv_with_timeout no data received [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:00]recv_with_timeout no data received [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]recv_with_timeout no data received [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:04]recv_with_timeout no data received [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:31]recv_with_timeout no data received [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:01]recv_with_timeout no data received [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:30]recv_with_timeout no data received [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:10]recv_with_timeout no data received [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:13]recv_with_timeout no data received [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]recv_with_timeout no data received [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:02]recv_with_timeout no data received [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:49]recv_with_timeout no data received [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:15]recv_with_timeout no data received [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:22]recv_with_timeout no data received [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:30]recv_with_timeout no data received [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:37]recv_with_timeout no data received [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:21]recv_with_timeout no data received [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:02]recv_with_timeout no data received [03:50:04]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:19]recv_with_timeout no data received [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:48]recv_with_timeout no data received [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:40]recv_with_timeout no data received [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:51:56]recv_with_timeout no data received [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:51]recv_with_timeout no data received [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:38]recv_with_timeout no data received [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:49]recv_with_timeout no data received [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:06]recv_with_timeout no data received [03:56:10]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:15]recv_with_timeout no data received [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]recv_with_timeout no data received [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:08]recv_with_timeout no data received [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:19]recv_with_timeout no data received [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:58:58]recv_with_timeout no data received [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:09]recv_with_timeout no data received [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:24]recv_with_timeout no data received [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:51]recv_with_timeout no data received [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:16]recv_with_timeout no data received [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:00]recv_with_timeout no data received [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:40]recv_with_timeout no data received [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:02:59]recv_with_timeout no data received [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:45]recv_with_timeout no data received [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:08]recv_with_timeout no data received [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:05:57]recv_with_timeout no data received [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:38]recv_with_timeout no data received [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:06:57]recv_with_timeout no data received [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:47]recv_with_timeout no data received [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]recv_with_timeout no data received [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:17]recv_with_timeout no data received [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:29]recv_with_timeout no data received [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:23]recv_with_timeout no data received [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:14:57]recv_with_timeout no data received [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:05]recv_with_timeout no data received [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:16]recv_with_timeout no data received [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:04]recv_with_timeout no data received [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:30]recv_with_timeout no data received [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:03]recv_with_timeout no data received [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:15]recv_with_timeout no data received [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:14]recv_with_timeout no data received [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:50]recv_with_timeout no data received [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:32]recv_with_timeout no data received [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:56]recv_with_timeout no data received [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:56]recv_with_timeout no data received [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]recv_with_timeout no data received [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:46]recv_with_timeout no data received [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:16]recv_with_timeout no data received [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]recv_with_timeout no data received [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:01]recv_with_timeout no data received [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]recv_with_timeout no data received [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]recv_with_timeout no data received [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:31]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:31]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [04:34:43]recv_with_timeout no data received [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:27]recv_with_timeout no data received [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:05]recv_with_timeout no data received [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:16]recv_with_timeout no data received [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:45]recv_with_timeout no data received [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:18]recv_with_timeout no data received [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:38]recv_with_timeout no data received [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:13]recv_with_timeout no data received [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41: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:28]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:37]recv_with_timeout no data received [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:48]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:52:56]recv_with_timeout no data received [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]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:44]recv_with_timeout no data received [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:01]recv_with_timeout no data received [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:15]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:05]recv_with_timeout no data received [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:19]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:26]recv_with_timeout no data received [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:37]recv_with_timeout no data received [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]recv_with_timeout no data received [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]recv_with_timeout no data received [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:05]recv_with_timeout no data received [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:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:43]recv_with_timeout no data received [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:02:57]recv_with_timeout no data received [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:25]recv_with_timeout no data received [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:03:57]recv_with_timeout no data received [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:13]recv_with_timeout no data received [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:31]recv_with_timeout no data received [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:52]recv_with_timeout no data received [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:17]recv_with_timeout no data received [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:33]recv_with_timeout no data received [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:28]recv_with_timeout no data received [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:39]recv_with_timeout no data received [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:05]recv_with_timeout no data received [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:16]recv_with_timeout no data received [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:34]recv_with_timeout no data received [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:23]recv_with_timeout no data received [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:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:40]recv_with_timeout no data received [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:51]recv_with_timeout no data received [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:21]recv_with_timeout no data received [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:30]recv_with_timeout no data received [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:48]recv_with_timeout no data received [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:48]recv_with_timeout no data received [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:45]recv_with_timeout no data received [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]recv_with_timeout no data received [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:00]recv_with_timeout no data received [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:20:59]recv_with_timeout no data received [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:47]recv_with_timeout no data received [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:52]recv_with_timeout no data received [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]recv_with_timeout no data received [05:23:08]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:24]recv_with_timeout no data received [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:01]recv_with_timeout no data received [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:26]recv_with_timeout no data received [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:36]recv_with_timeout no data received [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:24:59]recv_with_timeout no data received [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:07]recv_with_timeout no data received [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:36]recv_with_timeout no data received [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:08]recv_with_timeout no data received [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:23]recv_with_timeout no data received [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:51]recv_with_timeout no data received [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]recv_with_timeout no data received [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:48]recv_with_timeout no data received [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:00]recv_with_timeout no data received [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:44]recv_with_timeout no data received [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:07]recv_with_timeout no data received [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:20]accept exits with 9 [05:35:20]New connection [05:35:20]New thread 3067297124 created [05:35:21]Thread 3067440484 joined [05:35:21]Waiting for new connection... [05:35:21] Sock 9.Parse request [05:35:21]Sock 9.Check first char [05:35:21]Sock 9.First char is OK [05:35:21]request: POST /json_proto HTTP/1.0 [05:35:21]Method: POST [05:35:21]URL: /json_proto [05:35:21]Method is POST - this is cgi request [05:35:21]url: /json_proto [05:35:21]query_string will be loaded in cgi processing [05:35:21]execute_cgi json_proto POST (null) [05:35:21]execute_cgi path=json_proto method=POST [05:35:21]POST find Content-Length [05:35:21]Host: 172.17.44.67:8080 [05:35:21]Content-Length: 687 [05:35:21]Content-Type: application/json [05:35:21] [05:35:21]POST finish read [05:35:21]Found Content-Length = 687 [05:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:21]execute_script... [05:35: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)918797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:35:21]POST & json_proto [05:35:21]process_json_proto [05:35:21]json parsed OK: [05:35:21]protocol is kg_v1.0 [05:35:21]action value=close_receipt [05:35:21]process_action close_receipt [05:35:21]cmd_close_receipt [05:35:21]MH_GetDate [05:35:21]Write to MH i2c: F0 00 00 7C 03 6E [05:35:21]Write i2c OK [05:35:21]MH_I2C_Read... [05:35:21]Read from MH i2c: F0 [05:35:21]MH_I2C_Read... [05:35:21]Read from MH i2c: F0 09 00 [05:35:21]MH_I2C_Read... [05:35:21]Read from MH i2c: F0 09 00 7C 03 00 9B F3 11 67 F1 C7 6B 64 04 [05:35:21]GetLastDocTimeStamp 1729217778 [05:35:21]current date 1729229723 [05:35:21]FM_GetShiftState [05:35:21]SAM_PROTO_GetShiftState [05:35:21]wFMCommunicate request_size=4 [05:35:21]MH_SAM_APDU [05:35:21]CAPDU: 80 13 01 00 [05:35:21]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [05:35:21]Write i2c OK [05:35:21]MH_I2C_Read... [05:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:21]Read from MH i2c: E2 [05:35:21]MH_I2C_Read... [05:35:21]Read from MH i2c: E2 0E 00 [05:35:21]MH_I2C_Read... [05:35:21]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CF [05:35:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [05:35:21]wFMCommunicate OK [05:35:21]SAM_PROTO_GetShiftState done [05:35:21]FM_GetShiftState done [05:35:21]opened in 1729212319 [05:35:21]opened+sec_in_day 1729298719 [05:35:21]quantity*price = 120015 [05:35:21]sum+1 = 120016 [05:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 7 18.10.2024 05:35 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82298 ФПД: 215658293045450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T053523&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82298&fm=215658293045450&tin=02508201610067®Number=0000000000091680&sum=120000 [05:35:22]StoreToDocumentArchive [05:35:22]shift 526 fd 82298 [05:35:22]save to /storage/0526/doc_00082298 [05:35:22]save last doc name /storage/0526/doc_00082298 to /storage/kkm_last_doc_name [05:35:22]save OK [05:35:22]Clear old archive folders... [05:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:35:22]tlvbuf is 00C25EE0 [05:35:22]SAM_PROTO_ClearQueue [05:35:22]wFMCommunicate request_size=4 [05:35:22]MH_SAM_APDU [05:35:22]CAPDU: 80 09 00 00 [05:35:22]Write to MH i2c: E2 08 00 8A 03 80 09 00 00 00 00 00 00 FF [05:35:22]Write i2c OK [05:35:22]MH_I2C_Read... [05:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:35:22]Read from MH i2c: E2 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [05:35:22]RAPDU: 90 00 [05:35:22]wFMCommunicate OK [05:35:22]SAM_PROTO_ClearQueue done [05:35:22]KKMCreateOFDPacket [05:35:22]OFDProtocolAddRootSTLVToBuf [05:35:22]FM_MakeSignedData [05:35:22]FM_MakeSignedData [05:35:22]SAM_PROTO_SignData [05:35:22]wFMCommunicate request_size=4 [05:35:22]MH_SAM_APDU [05:35:22]CAPDU: 80 0D 01 02 [05:35:22]Write to MH i2c: E2 08 00 8B 03 80 0D 01 02 00 00 00 00 07 [05:35:22]Write i2c OK [05:35:22]MH_I2C_Read... [05:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:35:22]Read from MH i2c: E2 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [05:35:22]RAPDU: 90 00 [05:35:22]wFMCommunicate OK [05:35:22]wFMCommunicate request_size=255 [05:35:22]MH_SAM_APDU [05:35:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B F3 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 41 01 00 35 04 06 00 [05:35:22]Write to MH i2c: E2 02 01 8C 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B F3 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 41 01 00 35 04 06 00 00 00 B9 [05:35:22]Write i2c OK [05:35:22]MH_I2C_Read... [05:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:22]Read from MH i2c: E2 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [05:35:22]RAPDU: 90 00 [05:35:22]wFMCommunicate OK [05:35:22]wFMCommunicate request_size=11 [05:35:22]MH_SAM_APDU [05:35:22]CAPDU: 80 0D 02 02 06 C4 23 DB F3 28 CA [05:35:22]Write to MH i2c: E2 0E 00 8D 03 80 0D 02 02 06 00 C4 23 DB F3 28 CA 00 00 BD [05:35:22]Write i2c OK [05:35:22]MH_I2C_Read... [05:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:22]Read from MH i2c: E2 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [05:35:22]RAPDU: 90 00 [05:35:22]wFMCommunicate OK [05:35:22]wFMCommunicate request_size=4 [05:35:22]MH_SAM_APDU [05:35:22]CAPDU: 80 0D 03 02 [05:35:22]Write to MH i2c: E2 08 00 8E 03 80 0D 03 02 00 00 00 00 0C [05:35:22]Write i2c OK [05:35:22]MH_I2C_Read... [05:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:35:22]Read from MH i2c: E2 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 0B 00 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 0B 00 8E 03 00 D7 A9 F7 DC E0 80 02 31 90 00 F3 [05:35:22]RAPDU: D7 A9 F7 DC E0 80 02 31 90 00 [05:35:22]wFMCommunicate OK [05:35:22]SAM_PROTO_SignData done [05:35:22]FM_MakeSignedData done [05:35:22]CreateOFDProtocolMessage [05:35:22]wFMCommunicate request_size=4 [05:35:22]MH_SAM_APDU [05:35:22]CAPDU: 80 11 00 00 [05:35:22]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [05:35:22]Write i2c OK [05:35:22]MH_I2C_Read... [05:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:22]Read from MH i2c: E2 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 17 00 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5E [05:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [05:35:22]wFMCommunicate OK [05:35:22]CreateOFDProtocolMessage done [05:35:22]OFDSenderStorePacket 82298 [05:35:22]StoreOFDPacket docnum=82298 [05:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3A 8D 08 01 0E 62 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B F3 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 41 01 00 35 04 06 00 C4 23 DB F3 28 CA D7 A9 F7 DC E0 80 02 31 [05:35:22]CheckFolder [05:35:22]dirname=/storage/ofd_packets [05:35:22]CheckFolder done [05:35:22]ProducePacketName [05:35:22]name=ofd_packets/00082298 [05:35:22]NVStorageSaveData ofd_packets/00082298 [05:35:22]File name is /storage/ofd_packets/00082298 [05:35:22]Write 302 bytes [05:35:22]NVStorageSaveData done [05:35:22]OFDSenderStorePacket done [05:35:22]KKMCreateOFDPacket done [05:35:22]NVStorageSaveData kkm_last_timestamp [05:35:22]File name is /storage/kkm_last_timestamp [05:35:22]Write 4 bytes [05:35:22]NVStorageSaveData done [05:35:22]ExternCall_PrintAddStr [05:35:22]wPrintStart [05:35:22]Write to MH i2c: 01 00 00 90 03 93 [05:35:22]Write i2c OK [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: 01 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: 01 07 00 [05:35:22]MH_I2C_Read... [05:35:22]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [05:35:22]RasterBufferAndPrint [05:35:22]line Счет N : (1)918797 [05:35:22]line ИНН: 02508201610067 [05:35:22]line Контрольно-Кассовый Чек [05:35:22]line ПРОДАЖА [05:35:22]line ТРК (МРК, ГНК) : 31 [05:35:22]line Товар: 2710194210 [05:35:22]line ДТ(л)-К-5 [05:35:22]line 15.750 * 76.20 [05:35:22]line = 1200.15 [05:35:22]line НДС 12% НСП 1% [05:35:22]line > о реализуемом товаре [05:35:22]line ОКРУГЛЕНИЕ: -0.15 [05:35:22]line ИТОГО: 1200.00 [05:35:22]line Внесено: 1200.00 [05:35:22]line СДАЧА: 0.00 [05:35:22]line НСП 1% : 10.62 [05:35:22]line НДС 12% : 127.45 [05:35:22]line Наличными: 1200.00 [05:35:22]line Безнал.: 0.00 [05:35:22]line Место: АЗС № 114 "Партнер Нефть" [05:35:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [05:35:22]line СНО: Общий режим [05:35:22]line Чек 7 18.10.2024 05:35 [05:35:22]line Смена: 526 ФФД: 1.0 [05:35:22]line ЗНМ: 0300000086 [05:35:22]line РНМ: 0000000000091680 [05:35:22]line Версия ККМ: 001 [05:35:22]line ФМ: 0000000000871843 [05:35:22]line ФД: 82298 [05:35:22]line ФПД: 215658293045450 [05:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T053523&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82298&fm=215658293045450&tin=02508201610067®Number=0000000000091680&sum=120000 [05:35:23]OFD Sender: Processing packet 82298 [packets to send 254, broken 253] [05:35:23]ProducePacketName [05:35:23]name=ofd_packets/00082298 [05:35:23]OFD Sender: To server: pG, [05:35:23]CommunicateWithHost lk.salyk.kg:30040 [05:35:23]ConnectInit lk.salyk.kg [05:35:23]written 0, free lines is 4095 [05:35:23]Connected sock=8 [05:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3A 8D 08 01 0E 62 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9B F3 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 41 01 00 35 04 06 00 C4 23 DB F3 28 CA D7 A9 F7 DC E0 80 02 31 [05:35:23]Write to MH i2c: 01 00 00 BB 03 BE [05:35:23]Write i2c OK [05:35:23]MH_I2C_Read... [05:35:23]Read from MH i2c: 01 [05:35:23]MH_I2C_Read... [05:35:23]Read from MH i2c: 01 07 00 [05:35:23]MH_I2C_Read... [05:35:23]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 DF 0C B0 [05:35:23]RasterBufferAndPrint [05:35:23]line [05:35:23]line [05:35:23]line [05:35:23]line [05:35:23]line [05:35:23]written 0, free lines is 3301 [05:35:23]MH_Cut [05:35:23]Write to MH i2c: D1 01 00 C2 03 01 97 [05:35:23]Write i2c OK [05:35:23]MH_I2C_Read... [05:35:23]Read from MH i2c: D1 [05:35:23]MH_I2C_Read... [05:35:23]Read from MH i2c: D1 01 00 [05:35:23]MH_I2C_Read... [05:35:23]Read from MH i2c: D1 01 00 C2 03 00 96 [05:35:23]Write to MH i2c: 01 00 00 C3 03 C6 [05:35:23]Write i2c OK [05:35:23]MH_I2C_Read... [05:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 54 F9 47 00 26 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7A 41 01 00 F4 03 04 00 D6 98 11 67 B6 04 01 00 00 D1 EA AF 14 1D 83 E2 BE [05:35:23]CommunicateWithHost err = 0 [05:35:23]CheckOFDResponse [05:35:23]1017 (14) - 77093643461234 [05:35:23]1041 (16) - 0000000000871843 [05:35:23]1040 (4) - 82298 [05:35:23]1012 (4) - 17.10.2024 23:08 [05:35:23]1206 (1) - 0 [05:35:23]OFD Sender: Remove packet 82298 [05:35:23]ProducePacketName [05:35:23]name=ofd_packets/00082298 [05:35:23]NVStorageDeleteData [05:35:24]*** Cut start [05:35:24]*** Partial cut [05:35:24]*** CUTSNS_PIN = 1 [05:35:24]*** CUTSNS_PIN = 0 [05:35:24]OFD Sender: No OFD packet to send [05:35:24]*** Brake cut motor [05:35:24]Read from MH i2c: 01 [05:35:24]MH_I2C_Read... [05:35:24]*** Stop cut motor [05:35:24]*** Cut end [05:35:24]Read from MH i2c: 01 07 00 [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 FF 0F DB [05:35:24]process_action close_receipt done [05:35:24]requested_data is exist [05:35:24]produce_requested_data [05:35:24]requested_item fm.sn is exist - process it [05:35:24]wFMCommunicate request_size=4 [05:35:24]MH_SAM_APDU [05:35:24]CAPDU: 80 11 00 00 [05:35:24]Write to MH i2c: E2 08 00 C4 03 80 11 00 00 00 00 00 00 41 [05:35:24]Write i2c OK [05:35:24]MH_I2C_Read... [05:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:24]Read from MH i2c: E2 [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: E2 17 00 [05:35:24]MH_I2C_Read... [05:35:24]Read from MH i2c: E2 17 00 C4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 93 [05:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [05:35:24]wFMCommunicate OK [05:35:24]requested_item fd.num is exist - process it [05:35:24]SAM_PROTO_GetFieldsCounters [05:35:24]wFMCommunicate request_size=4 [05:35:24]MH_SAM_APDU [05:35:24]CAPDU: 80 13 00 00 [05:35:24]Write to MH i2c: E2 08 00 C5 03 80 13 00 00 00 00 00 00 44 [05:35:24]Write i2c OK [05:35:24]MH_I2C_Read... [05:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:35:25]Read from MH i2c: E2 [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 62 00 [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 62 00 C5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7A 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [05:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7A 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:35:25]wFMCommunicate OK [05:35:25]SAM_PROTO_GetFieldsCounters done [05:35:25]requested_item shift.num is exist - process it [05:35:25]requested_item shift.opened is exist - process it [05:35:25]req_shift_opened [05:35:25]FM_GetShiftState [05:35:25]SAM_PROTO_GetShiftState [05:35:25]wFMCommunicate request_size=4 [05:35:25]MH_SAM_APDU [05:35:25]CAPDU: 80 13 01 00 [05:35:25]Write to MH i2c: E2 08 00 C6 03 80 13 01 00 00 00 00 00 46 [05:35:25]Write i2c OK [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 [05:35:25]MH_I2C_Read... [05:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:25]Read from MH i2c: E2 0E 00 [05:35:25]MH_I2C_Read... [05:35:25]Read from MH i2c: E2 0E 00 C6 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 18 [05:35:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [05:35:25]wFMCommunicate OK [05:35:25]SAM_PROTO_GetShiftState done [05:35:25]FM_GetShiftState done [05:35:25]req_shift_opened done [05:35:25]requested_item shift.open_date is exist - process it [05:35:25]req_shift_open_date [05:35:25]req_shift_open_date done [05:35:25]produce_requested_data done [05:35:25]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82298,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [05:35:25]process_action_free close_receipt [05:35:25]json_value_free [05:35:25]json_value_free done [05:35:25]process_json_proto returns [05:35:25]Send response to host [05:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82298,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [05:35:25]free response buf [05:35:25]execute_script done [05:35:25]execute_script returns [05:35:25]free content buf [05:35:25]Sock 9.Close socket [05:35:25]Sock 9.Thread stoped [05:35:29]OFD Sender: No OFD packet to send [05:35:32]recv_with_timeout no data received [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:46]recv_with_timeout no data received [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:56]recv_with_timeout no data received [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:23]recv_with_timeout no data received [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]recv_with_timeout no data received [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:40:56]recv_with_timeout no data received [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:27]recv_with_timeout no data received [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:49:57]recv_with_timeout no data received [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:43]accept exits with 10 [05:55:43]New connection [05:55:43]New thread 3067440484 created [05:55:43]Thread 3067297124 joined [05:55:43]Waiting for new connection... [05:55:43] Sock 10.Parse request [05:55:43]Sock 10.Check first char [05:55:43]Sock 10.First char is OK [05:55:43]request: POST /json_proto HTTP/1.0 [05:55:43]Method: POST [05:55:43]URL: /json_proto [05:55:43]Method is POST - this is cgi request [05:55:43]url: /json_proto [05:55:43]query_string will be loaded in cgi processing [05:55:43]execute_cgi json_proto POST (null) [05:55:43]execute_cgi path=json_proto method=POST [05:55:43]POST find Content-Length [05:55:43]Host: 172.17.44.67:8080 [05:55:43]Content-Length: 759 [05:55:43]Content-Type: application/json [05:55:43] [05:55:43]POST finish read [05:55:43]Found Content-Length = 759 [05:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 53.280, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:55:43]execute_script... [05:55: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)918798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 53.280, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047916", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:55:43]POST & json_proto [05:55:43]process_json_proto [05:55:43]json parsed OK: [05:55:43]protocol is kg_v1.0 [05:55:43]action value=close_receipt [05:55:43]process_action close_receipt [05:55:43]cmd_close_receipt [05:55:43]MH_GetDate [05:55:43]Write to MH i2c: F0 00 00 C7 03 B9 [05:55:43]Write i2c OK [05:55:43]MH_I2C_Read... [05:55:43]Read from MH i2c: F0 [05:55:43]MH_I2C_Read... [05:55:43]Read from MH i2c: F0 09 00 [05:55:43]MH_I2C_Read... [05:55:43]Read from MH i2c: F0 09 00 C7 03 00 61 F8 11 67 F1 C7 6B 64 1A [05:55:43]GetLastDocTimeStamp 1729229723 [05:55:43]current date 1729230945 [05:55:43]FM_GetShiftState [05:55:43]SAM_PROTO_GetShiftState [05:55:43]wFMCommunicate request_size=4 [05:55:43]MH_SAM_APDU [05:55:43]CAPDU: 80 13 01 00 [05:55:43]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [05:55:43]Write i2c OK [05:55:43]MH_I2C_Read... [05:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:43]Read from MH i2c: E2 [05:55:43]MH_I2C_Read... [05:55:43]Read from MH i2c: E2 0E 00 [05:55:43]MH_I2C_Read... [05:55:43]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 1A [05:55:43]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [05:55:43]wFMCommunicate OK [05:55:43]SAM_PROTO_GetShiftState done [05:55:43]FM_GetShiftState done [05:55:43]opened in 1729212319 [05:55:43]opened+sec_in_day 1729298719 [05:55:43]quantity*price = 0 [05:55:43]sum+1 = 1 [05:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 8 18.10.2024 05:55 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30047916 ФМ: 0000000000871843 ФД: 82299 ФПД: 226150900818483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T055545&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82299&fm=226150900818483&tin=02508201610067®Number=0000000000091680&sum=0 [05:55:44]StoreToDocumentArchive [05:55:44]shift 526 fd 82299 [05:55:44]save to /storage/0526/doc_00082299 [05:55:44]save last doc name /storage/0526/doc_00082299 to /storage/kkm_last_doc_name [05:55:44]save OK [05:55:44]Clear old archive folders... [05:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:55:44]tlvbuf is 00B39190 [05:55:44]SAM_PROTO_ClearQueue [05:55:44]wFMCommunicate request_size=4 [05:55:44]MH_SAM_APDU [05:55:44]CAPDU: 80 09 00 00 [05:55:44]Write to MH i2c: E2 08 00 D5 03 80 09 00 00 00 00 00 00 4A [05:55:44]Write i2c OK [05:55:44]MH_I2C_Read... [05:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:55:44]Read from MH i2c: E2 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [05:55:44]RAPDU: 90 00 [05:55:44]wFMCommunicate OK [05:55:44]SAM_PROTO_ClearQueue done [05:55:44]KKMCreateOFDPacket [05:55:44]OFDProtocolAddRootSTLVToBuf [05:55:44]FM_MakeSignedData [05:55:44]FM_MakeSignedData [05:55:44]SAM_PROTO_SignData [05:55:44]wFMCommunicate request_size=4 [05:55:44]MH_SAM_APDU [05:55:44]CAPDU: 80 0D 01 02 [05:55:44]Write to MH i2c: E2 08 00 D6 03 80 0D 01 02 00 00 00 00 52 [05:55:44]Write i2c OK [05:55:44]MH_I2C_Read... [05:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:55:44]Read from MH i2c: E2 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [05:55:44]RAPDU: 90 00 [05:55:44]wFMCommunicate OK [05:55:44]wFMCommunicate request_size=255 [05:55:44]MH_SAM_APDU [05:55:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 D0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 61 F8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 41 01 00 35 04 06 00 [05:55:44]Write to MH i2c: E2 02 01 D7 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 D0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 61 F8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 41 01 00 35 04 06 00 00 00 2B [05:55:44]Write i2c OK [05:55:44]MH_I2C_Read... [05:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:44]Read from MH i2c: E2 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [05:55:44]RAPDU: 90 00 [05:55:44]wFMCommunicate OK [05:55:44]wFMCommunicate request_size=11 [05:55:44]MH_SAM_APDU [05:55:44]CAPDU: 80 0D 02 02 06 CD AE DC 1B E2 33 [05:55:44]Write to MH i2c: E2 0E 00 D8 03 80 0D 02 02 06 00 CD AE DC 1B E2 33 00 00 E8 [05:55:44]Write i2c OK [05:55:44]MH_I2C_Read... [05:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:44]Read from MH i2c: E2 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [05:55:44]RAPDU: 90 00 [05:55:44]wFMCommunicate OK [05:55:44]wFMCommunicate request_size=4 [05:55:44]MH_SAM_APDU [05:55:44]CAPDU: 80 0D 03 02 [05:55:44]Write to MH i2c: E2 08 00 D9 03 80 0D 03 02 00 00 00 00 57 [05:55:44]Write i2c OK [05:55:44]MH_I2C_Read... [05:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:55:44]Read from MH i2c: E2 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 0B 00 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 0B 00 D9 03 00 4A 98 7E A0 6B 80 BF CB 90 00 CD [05:55:44]RAPDU: 4A 98 7E A0 6B 80 BF CB 90 00 [05:55:44]wFMCommunicate OK [05:55:44]SAM_PROTO_SignData done [05:55:44]FM_MakeSignedData done [05:55:44]CreateOFDProtocolMessage [05:55:44]wFMCommunicate request_size=4 [05:55:44]MH_SAM_APDU [05:55:44]CAPDU: 80 11 00 00 [05:55:44]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [05:55:44]Write i2c OK [05:55:44]MH_I2C_Read... [05:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:44]Read from MH i2c: E2 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 17 00 [05:55:44]MH_I2C_Read... [05:55:44]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A9 [05:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [05:55:44]wFMCommunicate OK [05:55:44]CreateOFDProtocolMessage done [05:55:44]OFDSenderStorePacket 82299 [05:55:44]StoreOFDPacket docnum=82299 [05:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 74 D2 08 01 E0 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 D0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 61 F8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 41 01 00 35 04 06 00 CD AE DC 1B E2 33 4A 98 7E A0 6B 80 BF CB [05:55:44]CheckFolder [05:55:44]dirname=/storage/ofd_packets [05:55:44]CheckFolder done [05:55:44]ProducePacketName [05:55:44]name=ofd_packets/00082299 [05:55:44]NVStorageSaveData ofd_packets/00082299 [05:55:44]File name is /storage/ofd_packets/00082299 [05:55:44]Write 302 bytes [05:55:44]NVStorageSaveData done [05:55:44]OFDSenderStorePacket done [05:55:44]KKMCreateOFDPacket done [05:55:44]NVStorageSaveData kkm_last_timestamp [05:55:44]File name is /storage/kkm_last_timestamp [05:55:44]Write 4 bytes [05:55:44]NVStorageSaveData done [05:55:44]ExternCall_PrintAddStr [05:55:45]wPrintStart [05:55:45]Write to MH i2c: 01 00 00 DB 03 DE [05:55:45]Write i2c OK [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: 01 [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: 01 07 00 [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 FF 0F F3 [05:55:45]RasterBufferAndPrint [05:55:45]line Счет N : (1)918798 [05:55:45]line ИНН: 02508201610067 [05:55:45]line Контрольно-Кассовый Чек [05:55:45]line ПРОДАЖА [05:55:45]line ТРК (МРК, ГНК) : 31 [05:55:45]line Товар: 2710194210 [05:55:45]line ДТ(л)-К-5 [05:55:45]line 53.280 * 0.00 [05:55:45]line = 0.00 [05:55:45]line НДС 12% НСП 1% [05:55:45]line > о реализуемом товаре [05:55:45]line ИТОГО: 0.00 [05:55:45]line НСП 1% : 0.00 [05:55:45]line НДС 12% : 0.00 [05:55:45]line Наличными: 0.00 [05:55:45]line Безнал.: 0.00 [05:55:45]line Место: АЗС № 114 "Партнер Нефть" [05:55:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [05:55:45]line СНО: Общий режим [05:55:45]line Чек 8 18.10.2024 05:55 [05:55:45]line Смена: 526 ФФД: 1.0 [05:55:45]line ЗНМ: 0300000086 [05:55:45]line РНМ: 0000000000091680 [05:55:45]line Версия ККМ: 001 [05:55:45]line Талоны: ТК ГПНА Online [05:55:45]line 30047916 [05:55:45]line ФМ: 0000000000871843 [05:55:45]line ФД: 82299 [05:55:45]line ФПД: 226150900818483 [05:55:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T055545&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82299&fm=226150900818483&tin=02508201610067®Number=0000000000091680&sum=0 [05:55:45]written 0, free lines is 4095 [05:55:45]OFD Sender: Processing packet 82299 [packets to send 254, broken 253] [05:55:45]ProducePacketName [05:55:45]name=ofd_packets/00082299 [05:55:45]OFD Sender: To server: pG, [05:55:45]CommunicateWithHost lk.salyk.kg:30040 [05:55:45]ConnectInit lk.salyk.kg [05:55:45]Write to MH i2c: 01 00 00 05 04 09 [05:55:45]Write i2c OK [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: 01 [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: 01 07 00 [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 DB 0C F7 [05:55:45]RasterBufferAndPrint [05:55:45]line [05:55:45]line [05:55:45]line [05:55:45]line [05:55:45]line [05:55:45]written 0, free lines is 3297 [05:55:45]MH_Cut [05:55:45]Write to MH i2c: D1 01 00 0C 04 01 E2 [05:55:45]Write i2c OK [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: D1 [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: D1 01 00 [05:55:45]MH_I2C_Read... [05:55:45]Read from MH i2c: D1 01 00 0C 04 00 E1 [05:55:45]Write to MH i2c: 01 00 00 0D 04 11 [05:55:45]Write i2c OK [05:55:45]MH_I2C_Read... [05:55:46]*** Cut start [05:55:46]*** Partial cut [05:55:46]*** CUTSNS_PIN = 1 [05:55:46]*** CUTSNS_PIN = 0 [05:55:46]*** Brake cut motor [05:55:47]Read from MH i2c: 01 [05:55:47]MH_I2C_Read... [05:55:47]*** Stop cut motor [05:55:47]*** Cut end [05:55:47]Read from MH i2c: 01 07 00 [05:55:47]MH_I2C_Read... [05:55:47]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [05:55:47]process_action close_receipt done [05:55:47]requested_data is exist [05:55:47]produce_requested_data [05:55:47]requested_item fm.sn is exist - process it [05:55:47]wFMCommunicate request_size=4 [05:55:47]MH_SAM_APDU [05:55:47]CAPDU: 80 11 00 00 [05:55:47]Write to MH i2c: E2 08 00 0E 04 80 11 00 00 00 00 00 00 8C [05:55:47]Write i2c OK [05:55:47]MH_I2C_Read... [05:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:47]Read from MH i2c: E2 [05:55:47]MH_I2C_Read... [05:55:47]Read from MH i2c: E2 17 00 [05:55:47]MH_I2C_Read... [05:55:47]Read from MH i2c: E2 17 00 0E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DE [05:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [05:55:47]wFMCommunicate OK [05:55:47]requested_item fd.num is exist - process it [05:55:47]SAM_PROTO_GetFieldsCounters [05:55:47]wFMCommunicate request_size=4 [05:55:47]MH_SAM_APDU [05:55:47]CAPDU: 80 13 00 00 [05:55:47]Write to MH i2c: E2 08 00 0F 04 80 13 00 00 00 00 00 00 8F [05:55:47]Write i2c OK [05:55:47]MH_I2C_Read... [05:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:55:47]Read from MH i2c: E2 [05:55:47]MH_I2C_Read... [05:55:47]Read from MH i2c: E2 62 00 [05:55:47]MH_I2C_Read... [05:55:47]Read from MH i2c: E2 62 00 0F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7B 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [05:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7B 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:55:47]wFMCommunicate OK [05:55:47]SAM_PROTO_GetFieldsCounters done [05:55:47]requested_item shift.num is exist - process it [05:55:47]requested_item shift.opened is exist - process it [05:55:47]req_shift_opened [05:55:47]FM_GetShiftState [05:55:47]SAM_PROTO_GetShiftState [05:55:47]wFMCommunicate request_size=4 [05:55:47]MH_SAM_APDU [05:55:47]CAPDU: 80 13 01 00 [05:55:47]Write to MH i2c: E2 08 00 10 04 80 13 01 00 00 00 00 00 91 [05:55:47]Write i2c OK [05:55:47]MH_I2C_Read... [05:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:47]Read from MH i2c: E2 [05:55:47]MH_I2C_Read... [05:55:47]Read from MH i2c: E2 0E 00 [05:55:47]MH_I2C_Read... [05:55:47]Read from MH i2c: E2 0E 00 10 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 63 [05:55:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [05:55:47]wFMCommunicate OK [05:55:47]SAM_PROTO_GetShiftState done [05:55:47]FM_GetShiftState done [05:55:47]req_shift_opened done [05:55:47]requested_item shift.open_date is exist - process it [05:55:47]req_shift_open_date [05:55:47]req_shift_open_date done [05:55:47]produce_requested_data done [05:55:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82299,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [05:55:47]process_action_free close_receipt [05:55:47]json_value_free [05:55:47]json_value_free done [05:55:47]process_json_proto returns [05:55:47]Send response to host [05:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82299,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [05:55:47]free response buf [05:55:47]execute_script done [05:55:47]execute_script returns [05:55:47]free content buf [05:55:47]Sock 10.Close socket [05:55:47]Sock 10.Thread stoped [05:55:47]Connected sock=11 [05:55:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 74 D2 08 01 E0 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 D0 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 61 F8 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 41 01 00 35 04 06 00 CD AE DC 1B E2 33 4A 98 7E A0 6B 80 BF CB [05:55:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6E 9F 47 00 F4 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7B 41 01 00 F4 03 04 00 9F 9D 11 67 B6 04 01 00 00 AF 37 60 B2 CD CA 14 88 [05:55:48]CommunicateWithHost err = 0 [05:55:48]CheckOFDResponse [05:55:48]1017 (14) - 77093643461234 [05:55:48]1041 (16) - 0000000000871843 [05:55:48]1040 (4) - 82299 [05:55:48]1012 (4) - 17.10.2024 23:28 [05:55:48]1206 (1) - 0 [05:55:48]OFD Sender: Remove packet 82299 [05:55:48]ProducePacketName [05:55:48]name=ofd_packets/00082299 [05:55:48]NVStorageDeleteData [05:55:49]OFD Sender: No OFD packet to send [05:55:49]recv_with_timeout no data received [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:00]recv_with_timeout no data received [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:11]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:14]recv_with_timeout no data received [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:25]recv_with_timeout no data received [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06: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:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:45]recv_with_timeout no data received [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:32]recv_with_timeout no data received [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]recv_with_timeout no data received [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:38]recv_with_timeout no data received [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:04]recv_with_timeout no data received [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:50]recv_with_timeout no data received [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:14]recv_with_timeout no data received [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:25]accept exits with 8 [06:27:25]New connection [06:27:25]New thread 3067297124 created [06:27:25]Thread 3067440484 joined [06:27:25]Waiting for new connection... [06:27:25] Sock 8.Parse request [06:27:25]Sock 8.Check first char [06:27:25]Sock 8.First char is OK [06:27:25]request: POST /json_proto HTTP/1.0 [06:27:25]Method: POST [06:27:25]URL: /json_proto [06:27:25]Method is POST - this is cgi request [06:27:25]url: /json_proto [06:27:25]query_string will be loaded in cgi processing [06:27:25]execute_cgi json_proto POST (null) [06:27:25]execute_cgi path=json_proto method=POST [06:27:25]POST find Content-Length [06:27:25]Host: 172.17.44.67:8080 [06:27:25]Content-Length: 677 [06:27:25]Content-Type: application/json [06:27:25] [06:27:25]POST finish read [06:27:25]Found Content-Length = 677 [06:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:25]execute_script... [06:27: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)918799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:25]POST & json_proto [06:27:25]process_json_proto [06:27:25]json parsed OK: [06:27:25]protocol is kg_v1.0 [06:27:25]action value=close_receipt [06:27:25]process_action close_receipt [06:27:25]cmd_close_receipt [06:27:25]MH_GetDate [06:27:25]Write to MH i2c: F0 00 00 11 04 04 [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: F0 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: F0 09 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: F0 09 00 11 04 00 CF FF 11 67 F1 C7 6B 64 DA [06:27:25]GetLastDocTimeStamp 1729230945 [06:27:25]current date 1729232847 [06:27:25]FM_GetShiftState [06:27:25]SAM_PROTO_GetShiftState [06:27:25]wFMCommunicate request_size=4 [06:27:25]MH_SAM_APDU [06:27:25]CAPDU: 80 13 01 00 [06:27:25]Write to MH i2c: E2 08 00 12 04 80 13 01 00 00 00 00 00 93 [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:25]Read from MH i2c: E2 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 0E 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 0E 00 12 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 65 [06:27:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [06:27:25]wFMCommunicate OK [06:27:25]SAM_PROTO_GetShiftState done [06:27:25]FM_GetShiftState done [06:27:25]opened in 1729212319 [06:27:25]opened+sec_in_day 1729298719 [06:27:25]quantity*price = 50041 [06:27:25]sum+1 = 50042 [06:27:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 9 18.10.2024 06:27 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82300 ФПД: 173513581761299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T062727&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82300&fm=173513581761299&tin=02508201610067®Number=0000000000091680&sum=50000 [06:27:26]StoreToDocumentArchive [06:27:26]shift 526 fd 82300 [06:27:26]save to /storage/0526/doc_00082300 [06:27:26]save last doc name /storage/0526/doc_00082300 to /storage/kkm_last_doc_name [06:27:26]save OK [06:27:26]Clear old archive folders... [06:27:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:26]tlvbuf is 00C280E0 [06:27:26]SAM_PROTO_ClearQueue [06:27:26]wFMCommunicate request_size=4 [06:27:26]MH_SAM_APDU [06:27:26]CAPDU: 80 09 00 00 [06:27:26]Write to MH i2c: E2 08 00 1F 04 80 09 00 00 00 00 00 00 95 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:26]Read from MH i2c: E2 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [06:27:26]RAPDU: 90 00 [06:27:26]wFMCommunicate OK [06:27:26]SAM_PROTO_ClearQueue done [06:27:26]KKMCreateOFDPacket [06:27:26]OFDProtocolAddRootSTLVToBuf [06:27:26]FM_MakeSignedData [06:27:26]FM_MakeSignedData [06:27:26]SAM_PROTO_SignData [06:27:26]wFMCommunicate request_size=4 [06:27:26]MH_SAM_APDU [06:27:26]CAPDU: 80 0D 01 02 [06:27:26]Write to MH i2c: E2 08 00 20 04 80 0D 01 02 00 00 00 00 9D [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:26]Read from MH i2c: E2 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [06:27:26]RAPDU: 90 00 [06:27:26]wFMCommunicate OK [06:27:26]wFMCommunicate request_size=255 [06:27:26]MH_SAM_APDU [06:27: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 CF FF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 41 01 00 35 04 06 00 9D [06:27:26]Write to MH i2c: E2 02 01 21 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 CF FF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 41 01 00 35 04 06 00 9D 00 00 E3 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:26]Read from MH i2c: E2 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [06:27:26]RAPDU: 90 00 [06:27:26]wFMCommunicate OK [06:27:26]wFMCommunicate request_size=10 [06:27:26]MH_SAM_APDU [06:27:26]CAPDU: 80 0D 02 02 05 CF 47 67 93 13 [06:27:26]Write to MH i2c: E2 0D 00 22 04 80 0D 02 02 05 00 CF 47 67 93 13 00 00 CD [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:26]Read from MH i2c: E2 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [06:27:26]RAPDU: 90 00 [06:27:26]wFMCommunicate OK [06:27:26]wFMCommunicate request_size=4 [06:27:26]MH_SAM_APDU [06:27:26]CAPDU: 80 0D 03 02 [06:27:26]Write to MH i2c: E2 08 00 23 04 80 0D 03 02 00 00 00 00 A2 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:26]Read from MH i2c: E2 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 0B 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 0B 00 23 04 00 29 DD 9A FE BC 48 94 46 90 00 1F [06:27:26]RAPDU: 29 DD 9A FE BC 48 94 46 90 00 [06:27:26]wFMCommunicate OK [06:27:26]SAM_PROTO_SignData done [06:27:26]FM_MakeSignedData done [06:27:26]CreateOFDProtocolMessage [06:27:26]wFMCommunicate request_size=4 [06:27:26]MH_SAM_APDU [06:27:26]CAPDU: 80 11 00 00 [06:27:26]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:26]Read from MH i2c: E2 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 17 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F4 [06:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:27:26]wFMCommunicate OK [06:27:26]CreateOFDProtocolMessage done [06:27:26]OFDSenderStorePacket 82300 [06:27:26]StoreOFDPacket docnum=82300 [06:27:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1C ED 07 01 7B 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 CF FF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 41 01 00 35 04 06 00 9D CF 47 67 93 13 29 DD 9A FE BC 48 94 46 [06:27:26]CheckFolder [06:27:26]dirname=/storage/ofd_packets [06:27:26]CheckFolder done [06:27:26]ProducePacketName [06:27:26]name=ofd_packets/00082300 [06:27:26]NVStorageSaveData ofd_packets/00082300 [06:27:26]File name is /storage/ofd_packets/00082300 [06:27:26]Write 301 bytes [06:27:26]NVStorageSaveData done [06:27:26]OFDSenderStorePacket done [06:27:26]KKMCreateOFDPacket done [06:27:26]NVStorageSaveData kkm_last_timestamp [06:27:26]File name is /storage/kkm_last_timestamp [06:27:26]Write 4 bytes [06:27:26]NVStorageSaveData done [06:27:26]ExternCall_PrintAddStr [06:27:26]wPrintStart [06:27:26]Write to MH i2c: 01 00 00 25 04 29 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: 01 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: 01 07 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 FF 0F 3E [06:27:26]RasterBufferAndPrint [06:27:26]line Счет N : (1)918799 [06:27:26]line ИНН: 02508201610067 [06:27:26]line Контрольно-Кассовый Чек [06:27:26]line ПРОДАЖА [06:27:26]line ТРК (МРК, ГНК) : 11 [06:27:26]line Товар: 2710124130 [06:27:26]line Аи-92-К-4 [06:27:26]line 7.480 * 66.90 [06:27:26]line = 500.41 [06:27:26]line НДС 12% НСП 1% [06:27:26]line > о реализуемом товаре [06:27:26]line ОКРУГЛЕНИЕ: -0.41 [06:27:26]line ИТОГО: 500.00 [06:27:26]line Внесено: 500.00 [06:27:26]line СДАЧА: 0.00 [06:27:26]line НСП 1% : 4.43 [06:27:26]line НДС 12% : 53.14 [06:27:26]line Наличными: 500.00 [06:27:26]line Безнал.: 0.00 [06:27:26]line Место: АЗС № 114 "Партнер Нефть" [06:27:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [06:27:26]line СНО: Общий режим [06:27:26]line Чек 9 18.10.2024 06:27 [06:27:26]line Смена: 526 ФФД: 1.0 [06:27:26]line ЗНМ: 0300000086 [06:27:26]line РНМ: 0000000000091680 [06:27:26]line Версия ККМ: 001 [06:27:26]line ФМ: 0000000000871843 [06:27:26]line ФД: 82300 [06:27:26]line ФПД: 173513581761299 [06:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T062727&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82300&fm=173513581761299&tin=02508201610067®Number=0000000000091680&sum=50000 [06:27:27]OFD Sender: Processing packet 82300 [packets to send 254, broken 253] [06:27:27]ProducePacketName [06:27:27]name=ofd_packets/00082300 [06:27:27]OFD Sender: To server: pG, [06:27:27]CommunicateWithHost lk.salyk.kg:30040 [06:27:27]ConnectInit lk.salyk.kg [06:27:27]written 0, free lines is 4095 [06:27:27]Write to MH i2c: 01 00 00 50 04 54 [06:27:27]Write i2c OK [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: 01 [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: 01 07 00 [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 C4 0C 2B [06:27:27]RasterBufferAndPrint [06:27:27]line [06:27:27]line [06:27:27]line [06:27:27]line [06:27:27]line [06:27:27]written 0, free lines is 3274 [06:27:27]MH_Cut [06:27:27]Write to MH i2c: D1 01 00 57 04 01 2D [06:27:27]Write i2c OK [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: D1 [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: D1 01 00 [06:27:27]MH_I2C_Read... [06:27:27]Read from MH i2c: D1 01 00 57 04 00 2C [06:27:27]Write to MH i2c: 01 00 00 58 04 5C [06:27:27]Write i2c OK [06:27:27]MH_I2C_Read... [06:27:28]*** Cut start [06:27:28]*** Partial cut [06:27:28]*** CUTSNS_PIN = 1 [06:27:28]*** CUTSNS_PIN = 0 [06:27:28]*** Brake cut motor [06:27:28]Read from MH i2c: 01 [06:27:28]MH_I2C_Read... [06:27:28]*** Stop cut motor [06:27:28]*** Cut end [06:27:28]Read from MH i2c: 01 07 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [06:27:28]process_action close_receipt done [06:27:28]requested_data is exist [06:27:28]produce_requested_data [06:27:28]requested_item fm.sn is exist - process it [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 11 00 00 [06:27:28]Write to MH i2c: E2 08 00 59 04 80 11 00 00 00 00 00 00 D7 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:29]Read from MH i2c: E2 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: E2 17 00 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: E2 17 00 59 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 29 [06:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:27:29]wFMCommunicate OK [06:27:29]requested_item fd.num is exist - process it [06:27:29]SAM_PROTO_GetFieldsCounters [06:27:29]wFMCommunicate request_size=4 [06:27:29]MH_SAM_APDU [06:27:29]CAPDU: 80 13 00 00 [06:27:29]Write to MH i2c: E2 08 00 5A 04 80 13 00 00 00 00 00 00 DA [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:29]Read from MH i2c: E2 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: E2 62 00 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: E2 62 00 5A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7C 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [06:27:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7C 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:27:29]wFMCommunicate OK [06:27:29]SAM_PROTO_GetFieldsCounters done [06:27:29]requested_item shift.num is exist - process it [06:27:29]requested_item shift.opened is exist - process it [06:27:29]req_shift_opened [06:27:29]FM_GetShiftState [06:27:29]SAM_PROTO_GetShiftState [06:27:29]wFMCommunicate request_size=4 [06:27:29]MH_SAM_APDU [06:27:29]CAPDU: 80 13 01 00 [06:27:29]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [06:27:29]Write i2c OK [06:27:29]MH_I2C_Read... [06:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:29]Read from MH i2c: E2 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: E2 0E 00 [06:27:29]MH_I2C_Read... [06:27:29]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AE [06:27:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [06:27:29]wFMCommunicate OK [06:27:29]SAM_PROTO_GetShiftState done [06:27:29]FM_GetShiftState done [06:27:29]req_shift_opened done [06:27:29]requested_item shift.open_date is exist - process it [06:27:29]req_shift_open_date [06:27:29]req_shift_open_date done [06:27:29]produce_requested_data done [06:27:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82300,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [06:27:29]process_action_free close_receipt [06:27:29]json_value_free [06:27:29]json_value_free done [06:27:29]process_json_proto returns [06:27:29]Send response to host [06:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82300,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [06:27:29]free response buf [06:27:29]execute_script done [06:27:29]execute_script returns [06:27:29]free content buf [06:27:29]Sock 8.Close socket [06:27:29]Sock 8.Thread stoped [06:27:31]Connected sock=11 [06:27:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1C ED 07 01 7B 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 CF FF 11 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 41 01 00 35 04 06 00 9D CF 47 67 93 13 29 DD 9A FE BC 48 94 46 [06:27:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DF 82 47 00 AF 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7C 41 01 00 F4 03 04 00 0E A5 11 67 B6 04 01 00 00 EE 61 A9 86 B6 DC 27 20 [06:27:33]CommunicateWithHost err = 0 [06:27:33]CheckOFDResponse [06:27:33]1017 (14) - 77093643461234 [06:27:33]1041 (16) - 0000000000871843 [06:27:33]1040 (4) - 82300 [06:27:33]1012 (4) - 18.10.2024 00:00 [06:27:33]1206 (1) - 0 [06:27:33]OFD Sender: Remove packet 82300 [06:27:33]ProducePacketName [06:27:33]name=ofd_packets/00082300 [06:27:33]NVStorageDeleteData [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:44]recv_with_timeout no data received [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]accept exits with 10 [06:28:59]New connection [06:28:59]New thread 3067440484 created [06:28:59]Thread 3067297124 joined [06:28:59]Waiting for new connection... [06:28:59] Sock 10.Parse request [06:28:59]Sock 10.Check first char [06:28:59]Sock 10.First char is OK [06:28:59]request: POST /json_proto HTTP/1.0 [06:28:59]Method: POST [06:28:59]URL: /json_proto [06:28:59]Method is POST - this is cgi request [06:28:59]url: /json_proto [06:28:59]query_string will be loaded in cgi processing [06:28:59]execute_cgi json_proto POST (null) [06:28:59]execute_cgi path=json_proto method=POST [06:28:59]POST find Content-Length [06:28:59]Host: 172.17.44.67:8080 [06:28:59]Content-Length: 754 [06:28:59]Content-Type: application/json [06:28:59] [06:28:59]POST finish read [06:28:59]Found Content-Length = 754 [06:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100442", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:59]execute_script... [06:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100442", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:59]POST & json_proto [06:28:59]process_json_proto [06:28:59]json parsed OK: [06:28:59]protocol is kg_v1.0 [06:28:59]action value=close_receipt [06:28:59]process_action close_receipt [06:28:59]cmd_close_receipt [06:28:59]MH_GetDate [06:28:59]Write to MH i2c: F0 00 00 5C 04 4F [06:28:59]Write i2c OK [06:28:59]MH_I2C_Read... [06:28:59]Read from MH i2c: F0 [06:28:59]MH_I2C_Read... [06:28:59]Read from MH i2c: F0 09 00 [06:28:59]MH_I2C_Read... [06:28:59]Read from MH i2c: F0 09 00 5C 04 00 2D 00 12 67 F1 C7 6B 64 85 [06:28:59]GetLastDocTimeStamp 1729232847 [06:28:59]current date 1729232941 [06:28:59]FM_GetShiftState [06:28:59]SAM_PROTO_GetShiftState [06:28:59]wFMCommunicate request_size=4 [06:28:59]MH_SAM_APDU [06:28:59]CAPDU: 80 13 01 00 [06:28:59]Write to MH i2c: E2 08 00 5D 04 80 13 01 00 00 00 00 00 DE [06:28:59]Write i2c OK [06:28:59]MH_I2C_Read... [06:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:59]OFD Sender: No OFD packet to send [06:28:59]Read from MH i2c: E2 [06:28:59]MH_I2C_Read... [06:28:59]Read from MH i2c: E2 0E 00 [06:28:59]MH_I2C_Read... [06:28:59]Read from MH i2c: E2 0E 00 5D 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B0 [06:28:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [06:28:59]wFMCommunicate OK [06:28:59]SAM_PROTO_GetShiftState done [06:28:59]FM_GetShiftState done [06:28:59]opened in 1729212319 [06:28:59]opened+sec_in_day 1729298719 [06:28:59]quantity*price = 0 [06:28:59]sum+1 = 1 [06:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 10 18.10.2024 06:29 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100442 ФМ: 0000000000871843 ФД: 82301 ФПД: 148706053269267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T062901&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82301&fm=148706053269267&tin=02508201610067®Number=0000000000091680&sum=0 [06:29:00]StoreToDocumentArchive [06:29:00]shift 526 fd 82301 [06:29:00]save to /storage/0526/doc_00082301 [06:29:00]save last doc name /storage/0526/doc_00082301 to /storage/kkm_last_doc_name [06:29:00]save OK [06:29:00]Clear old archive folders... [06:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:29:00]tlvbuf is 00B09880 [06:29:00]SAM_PROTO_ClearQueue [06:29:00]wFMCommunicate request_size=4 [06:29:00]MH_SAM_APDU [06:29:00]CAPDU: 80 09 00 00 [06:29:00]Write to MH i2c: E2 08 00 6A 04 80 09 00 00 00 00 00 00 E0 [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:29:00]Read from MH i2c: E2 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [06:29:00]RAPDU: 90 00 [06:29:00]wFMCommunicate OK [06:29:00]SAM_PROTO_ClearQueue done [06:29:00]KKMCreateOFDPacket [06:29:00]OFDProtocolAddRootSTLVToBuf [06:29:00]FM_MakeSignedData [06:29:00]FM_MakeSignedData [06:29:00]SAM_PROTO_SignData [06:29:00]wFMCommunicate request_size=4 [06:29:00]MH_SAM_APDU [06:29:00]CAPDU: 80 0D 01 02 [06:29:00]Write to MH i2c: E2 08 00 6B 04 80 0D 01 02 00 00 00 00 E8 [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:29:00]Read from MH i2c: E2 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [06:29:00]RAPDU: 90 00 [06:29:00]wFMCommunicate OK [06:29:00]wFMCommunicate request_size=255 [06:29:00]MH_SAM_APDU [06:29:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2D 00 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 41 01 00 35 04 06 00 87 [06:29:00]Write to MH i2c: E2 02 01 6C 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2D 00 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 41 01 00 35 04 06 00 87 00 00 63 [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:00]Read from MH i2c: E2 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [06:29:00]RAPDU: 90 00 [06:29:00]wFMCommunicate OK [06:29:00]wFMCommunicate request_size=10 [06:29:00]MH_SAM_APDU [06:29:00]CAPDU: 80 0D 02 02 05 3F 53 7B 27 13 [06:29:00]Write to MH i2c: E2 0D 00 6D 04 80 0D 02 02 05 00 3F 53 7B 27 13 00 00 3C [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:29:00]Read from MH i2c: E2 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [06:29:00]RAPDU: 90 00 [06:29:00]wFMCommunicate OK [06:29:00]wFMCommunicate request_size=4 [06:29:00]MH_SAM_APDU [06:29:00]CAPDU: 80 0D 03 02 [06:29:00]Write to MH i2c: E2 08 00 6E 04 80 0D 03 02 00 00 00 00 ED [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:29:00]Read from MH i2c: E2 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 0B 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 0B 00 6E 04 00 8F 08 7C 1C 6D BC 32 8A 90 00 02 [06:29:00]RAPDU: 8F 08 7C 1C 6D BC 32 8A 90 00 [06:29:00]wFMCommunicate OK [06:29:00]SAM_PROTO_SignData done [06:29:00]FM_MakeSignedData done [06:29:00]CreateOFDProtocolMessage [06:29:00]wFMCommunicate request_size=4 [06:29:00]MH_SAM_APDU [06:29:00]CAPDU: 80 11 00 00 [06:29:00]Write to MH i2c: E2 08 00 6F 04 80 11 00 00 00 00 00 00 ED [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:00]Read from MH i2c: E2 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 17 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: E2 17 00 6F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3F [06:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:29:00]wFMCommunicate OK [06:29:00]CreateOFDProtocolMessage done [06:29:00]OFDSenderStorePacket 82301 [06:29:00]StoreOFDPacket docnum=82301 [06:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 8F 07 01 26 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2D 00 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 41 01 00 35 04 06 00 87 3F 53 7B 27 13 8F 08 7C 1C 6D BC 32 8A [06:29:00]CheckFolder [06:29:00]dirname=/storage/ofd_packets [06:29:00]CheckFolder done [06:29:00]ProducePacketName [06:29:00]name=ofd_packets/00082301 [06:29:00]NVStorageSaveData ofd_packets/00082301 [06:29:00]File name is /storage/ofd_packets/00082301 [06:29:00]Write 301 bytes [06:29:00]NVStorageSaveData done [06:29:00]OFDSenderStorePacket done [06:29:00]KKMCreateOFDPacket done [06:29:00]NVStorageSaveData kkm_last_timestamp [06:29:00]File name is /storage/kkm_last_timestamp [06:29:00]Write 4 bytes [06:29:00]NVStorageSaveData done [06:29:00]ExternCall_PrintAddStr [06:29:00]wPrintStart [06:29:00]Write to MH i2c: 01 00 00 70 04 74 [06:29:00]Write i2c OK [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: 01 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: 01 07 00 [06:29:00]MH_I2C_Read... [06:29:00]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 FF 0F 89 [06:29:00]RasterBufferAndPrint [06:29:00]line Счет N : (1)918800 [06:29:00]line ИНН: 02508201610067 [06:29:00]line Контрольно-Кассовый Чек [06:29:00]line ПРОДАЖА [06:29:00]line ТРК (МРК, ГНК) : 22 [06:29:00]line Товар: 2710124130 [06:29:00]line Аи-92-К-4 [06:29:00]line 20.000 * 0.00 [06:29:00]line = 0.00 [06:29:00]line НДС 12% НСП 1% [06:29:00]line > о реализуемом товаре [06:29:00]line ИТОГО: 0.00 [06:29:00]line НСП 1% : 0.00 [06:29:00]line НДС 12% : 0.00 [06:29:00]line Наличными: 0.00 [06:29:00]line Безнал.: 0.00 [06:29:00]line Место: АЗС № 114 "Партнер Нефть" [06:29:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [06:29:00]line СНО: Общий режим [06:29:00]line Чек 10 18.10.2024 06:29 [06:29:00]line Смена: 526 ФФД: 1.0 [06:29:00]line ЗНМ: 0300000086 [06:29:00]line РНМ: 0000000000091680 [06:29:00]line Версия ККМ: 001 [06:29:00]line Талоны: ТК ГПНА Online [06:29:00]line 30100442 [06:29:00]line ФМ: 0000000000871843 [06:29:00]line ФД: 82301 [06:29:00]line ФПД: 148706053269267 [06:29:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T062901&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82301&fm=148706053269267&tin=02508201610067®Number=0000000000091680&sum=0 [06:29:00]written 0, free lines is 4095 [06:29:00]OFD Sender: Processing packet 82301 [packets to send 254, broken 253] [06:29:00]ProducePacketName [06:29:00]name=ofd_packets/00082301 [06:29:00]OFD Sender: To server: pG, [06:29:00]CommunicateWithHost lk.salyk.kg:30040 [06:29:00]ConnectInit lk.salyk.kg [06:29:01]Write to MH i2c: 01 00 00 9A 04 9E [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: 01 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: 01 07 00 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 E4 0C 95 [06:29:01]RasterBufferAndPrint [06:29:01]line [06:29:01]line [06:29:01]line [06:29:01]line [06:29:01]line [06:29:01]written 0, free lines is 3306 [06:29:01]MH_Cut [06:29:01]Write to MH i2c: D1 01 00 A1 04 01 77 [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: D1 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: D1 01 00 [06:29:01]MH_I2C_Read... [06:29:01]Read from MH i2c: D1 01 00 A1 04 00 76 [06:29:01]Write to MH i2c: 01 00 00 A2 04 A6 [06:29:01]Write i2c OK [06:29:01]MH_I2C_Read... [06:29:01]Connected sock=8 [06:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 8F 07 01 26 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 2D 00 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7D 41 01 00 35 04 06 00 87 3F 53 7B 27 13 8F 08 7C 1C 6D BC 32 8A [06:29:02]*** Cut start [06:29:02]*** Partial cut [06:29:02]*** CUTSNS_PIN = 1 [06:29:02]*** CUTSNS_PIN = 0 [06:29:02]*** Brake cut motor [06:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DB A1 47 00 BF 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 31 38 34 33 10 04 04 00 7D 41 01 00 F4 03 04 00 69 A5 11 67 B6 04 01 00 00 03 6E 22 F2 59 80 25 32 [06:29:02]CommunicateWithHost err = 0 [06:29:02]CheckOFDResponse [06:29:02]1017 (14) - 77093643461234 [06:29:02]1041 (16) - 0000000000871843 [06:29:02]1040 (4) - 82301 [06:29:02]1012 (4) - 18.10.2024 00:01 [06:29:02]1206 (1) - 0 [06:29:02]OFD Sender: Remove packet 82301 [06:29:02]ProducePacketName [06:29:02]name=ofd_packets/00082301 [06:29:02]NVStorageDeleteData [06:29:02]Read from MH i2c: 01 [06:29:02]MH_I2C_Read... [06:29:02]*** Stop cut motor [06:29:02]*** Cut end [06:29:02]Read from MH i2c: 01 07 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 FF 0F BB [06:29:02]process_action close_receipt done [06:29:02]requested_data is exist [06:29:02]produce_requested_data [06:29:02]requested_item fm.sn is exist - process it [06:29:02]wFMCommunicate request_size=4 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 11 00 00 [06:29:02]Write to MH i2c: E2 08 00 A3 04 80 11 00 00 00 00 00 00 21 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 17 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 17 00 A3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 73 [06:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [06:29:02]wFMCommunicate OK [06:29:02]requested_item fd.num is exist - process it [06:29:02]SAM_PROTO_GetFieldsCounters [06:29:02]wFMCommunicate request_size=4 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 13 00 00 [06:29:02]Write to MH i2c: E2 08 00 A4 04 80 13 00 00 00 00 00 00 24 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 62 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 62 00 A4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7D 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [06:29:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7D 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:29:02]wFMCommunicate OK [06:29:02]SAM_PROTO_GetFieldsCounters done [06:29:02]requested_item shift.num is exist - process it [06:29:02]requested_item shift.opened is exist - process it [06:29:02]req_shift_opened [06:29:02]FM_GetShiftState [06:29:02]SAM_PROTO_GetShiftState [06:29:02]wFMCommunicate request_size=4 [06:29:02]MH_SAM_APDU [06:29:02]CAPDU: 80 13 01 00 [06:29:02]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [06:29:02]Write i2c OK [06:29:02]MH_I2C_Read... [06:29:02]OFD Sender: No OFD packet to send [06:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:29:02]Read from MH i2c: E2 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 0E 00 [06:29:02]MH_I2C_Read... [06:29:02]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F8 [06:29:02]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [06:29:02]wFMCommunicate OK [06:29:02]SAM_PROTO_GetShiftState done [06:29:02]FM_GetShiftState done [06:29:02]req_shift_opened done [06:29:02]requested_item shift.open_date is exist - process it [06:29:02]req_shift_open_date [06:29:02]req_shift_open_date done [06:29:02]produce_requested_data done [06:29:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82301,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [06:29:02]process_action_free close_receipt [06:29:02]json_value_free [06:29:02]json_value_free done [06:29:02]process_json_proto returns [06:29:02]Send response to host [06:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82301,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [06:29:02]free response buf [06:29:02]execute_script done [06:29:02]execute_script returns [06:29:02]free content buf [06:29:02]Sock 10.Close socket [06:29:02]Sock 10.Thread stoped [06:29:07]OFD Sender: No OFD packet to send [06:29:12]recv_with_timeout no data received [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]recv_with_timeout no data received [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:12]recv_with_timeout no data received [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:17]recv_with_timeout no data received [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:45]recv_with_timeout no data received [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:06]recv_with_timeout no data received [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:16]recv_with_timeout no data received [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:37]recv_with_timeout no data received [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:28]recv_with_timeout no data received [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:47]recv_with_timeout no data received [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:55]recv_with_timeout no data received [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:54:57]recv_with_timeout no data received [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]recv_with_timeout no data received [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:26]recv_with_timeout no data received [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:21]recv_with_timeout no data received [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:50]accept exits with 9 [07:03:50]New connection [07:03:50]New thread 3067297124 created [07:03:50]Thread 3067440484 joined [07:03:50]Waiting for new connection... [07:03:50] Sock 9.Parse request [07:03:50]Sock 9.Check first char [07:03:50]Sock 9.First char is OK [07:03:50]request: POST /json_proto HTTP/1.0 [07:03:50]Method: POST [07:03:50]URL: /json_proto [07:03:50]Method is POST - this is cgi request [07:03:50]url: /json_proto [07:03:50]query_string will be loaded in cgi processing [07:03:50]execute_cgi json_proto POST (null) [07:03:50]execute_cgi path=json_proto method=POST [07:03:50]POST find Content-Length [07:03:50]Host: 172.17.44.67:8080 [07:03:50]Content-Length: 677 [07:03:50]Content-Type: application/json [07:03:50] [07:03:50]POST finish read [07:03:50]Found Content-Length = 677 [07:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:50]execute_script... [07:03: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)918801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:50]POST & json_proto [07:03:50]process_json_proto [07:03:50]json parsed OK: [07:03:50]protocol is kg_v1.0 [07:03:50]action value=close_receipt [07:03:50]process_action close_receipt [07:03:50]cmd_close_receipt [07:03:50]MH_GetDate [07:03:50]Write to MH i2c: F0 00 00 A6 04 99 [07:03:50]Write i2c OK [07:03:50]MH_I2C_Read... [07:03:50]Read from MH i2c: F0 [07:03:50]MH_I2C_Read... [07:03:50]Read from MH i2c: F0 09 00 [07:03:50]MH_I2C_Read... [07:03:50]Read from MH i2c: F0 09 00 A6 04 00 58 08 12 67 F1 C7 6B 64 02 [07:03:50]GetLastDocTimeStamp 1729232941 [07:03:50]current date 1729235032 [07:03:50]FM_GetShiftState [07:03:50]SAM_PROTO_GetShiftState [07:03:50]wFMCommunicate request_size=4 [07:03:50]MH_SAM_APDU [07:03:50]CAPDU: 80 13 01 00 [07:03:50]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [07:03:50]Write i2c OK [07:03:50]MH_I2C_Read... [07:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:50]Read from MH i2c: E2 [07:03:50]MH_I2C_Read... [07:03:50]Read from MH i2c: E2 0E 00 [07:03:50]MH_I2C_Read... [07:03:50]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FA [07:03:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [07:03:50]wFMCommunicate OK [07:03:50]SAM_PROTO_GetShiftState done [07:03:50]FM_GetShiftState done [07:03:50]opened in 1729212319 [07:03:50]opened+sec_in_day 1729298719 [07:03:50]quantity*price = 30038 [07:03:50]sum+1 = 30039 [07:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 11 18.10.2024 07:03 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82302 ФПД: 148725825343437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T070353&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82302&fm=148725825343437&tin=02508201610067®Number=0000000000091680&sum=30000 [07:03:51]StoreToDocumentArchive [07:03:51]shift 526 fd 82302 [07:03:51]save to /storage/0526/doc_00082302 [07:03:51]save last doc name /storage/0526/doc_00082302 to /storage/kkm_last_doc_name [07:03:51]save OK [07:03:51]Clear old archive folders... [07:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:03:51]tlvbuf is 00C278B0 [07:03:51]SAM_PROTO_ClearQueue [07:03:51]wFMCommunicate request_size=4 [07:03:51]MH_SAM_APDU [07:03:51]CAPDU: 80 09 00 00 [07:03:51]Write to MH i2c: E2 08 00 B4 04 80 09 00 00 00 00 00 00 2A [07:03:51]Write i2c OK [07:03:51]MH_I2C_Read... [07:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:51]Read from MH i2c: E2 [07:03:51]MH_I2C_Read... [07:03:51]Read from MH i2c: E2 03 00 [07:03:51]MH_I2C_Read... [07:03:51]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [07:03:51]RAPDU: 90 00 [07:03:51]wFMCommunicate OK [07:03:51]SAM_PROTO_ClearQueue done [07:03:51]KKMCreateOFDPacket [07:03:51]OFDProtocolAddRootSTLVToBuf [07:03:51]FM_MakeSignedData [07:03:51]FM_MakeSignedData [07:03:51]SAM_PROTO_SignData [07:03:51]wFMCommunicate request_size=4 [07:03:51]MH_SAM_APDU [07:03:51]CAPDU: 80 0D 01 02 [07:03:51]Write to MH i2c: E2 08 00 B5 04 80 0D 01 02 00 00 00 00 32 [07:03:51]Write i2c OK [07:03:51]MH_I2C_Read... [07:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:51]Read from MH i2c: E2 [07:03:51]MH_I2C_Read... [07:03:51]Read from MH i2c: E2 03 00 [07:03:51]MH_I2C_Read... [07:03:51]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [07:03:51]RAPDU: 90 00 [07:03:51]wFMCommunicate OK [07:03:51]wFMCommunicate request_size=255 [07:03:51]MH_SAM_APDU [07:03: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 08 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 41 01 00 35 04 06 00 87 [07:03:51]Write to MH i2c: E2 02 01 B6 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 08 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 41 01 00 35 04 06 00 87 00 00 EE [07:03:51]Write i2c OK [07:03:51]MH_I2C_Read... [07:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:52]Read from MH i2c: E2 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 03 00 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [07:03:52]RAPDU: 90 00 [07:03:52]wFMCommunicate OK [07:03:52]wFMCommunicate request_size=10 [07:03:52]MH_SAM_APDU [07:03:52]CAPDU: 80 0D 02 02 05 43 ED FD 0F CD [07:03:52]Write to MH i2c: E2 0D 00 B7 04 80 0D 02 02 05 00 43 ED FD 0F CD 00 00 48 [07:03:52]Write i2c OK [07:03:52]MH_I2C_Read... [07:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:52]Read from MH i2c: E2 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 03 00 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [07:03:52]RAPDU: 90 00 [07:03:52]wFMCommunicate OK [07:03:52]wFMCommunicate request_size=4 [07:03:52]MH_SAM_APDU [07:03:52]CAPDU: 80 0D 03 02 [07:03:52]Write to MH i2c: E2 08 00 B8 04 80 0D 03 02 00 00 00 00 37 [07:03:52]Write i2c OK [07:03:52]MH_I2C_Read... [07:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:52]Read from MH i2c: E2 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 0B 00 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 0B 00 B8 04 00 DF 97 2F 40 15 12 4C C2 90 00 52 [07:03:52]RAPDU: DF 97 2F 40 15 12 4C C2 90 00 [07:03:52]wFMCommunicate OK [07:03:52]SAM_PROTO_SignData done [07:03:52]FM_MakeSignedData done [07:03:52]CreateOFDProtocolMessage [07:03:52]wFMCommunicate request_size=4 [07:03:52]MH_SAM_APDU [07:03:52]CAPDU: 80 11 00 00 [07:03:52]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [07:03:52]Write i2c OK [07:03:52]MH_I2C_Read... [07:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:52]Read from MH i2c: E2 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 17 00 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 89 [07:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:03:52]wFMCommunicate OK [07:03:52]CreateOFDProtocolMessage done [07:03:52]OFDSenderStorePacket 82302 [07:03:52]StoreOFDPacket docnum=82302 [07:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B 62 07 01 4D D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 08 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 41 01 00 35 04 06 00 87 43 ED FD 0F CD DF 97 2F 40 15 12 4C C2 [07:03:52]CheckFolder [07:03:52]dirname=/storage/ofd_packets [07:03:52]CheckFolder done [07:03:52]ProducePacketName [07:03:52]name=ofd_packets/00082302 [07:03:52]NVStorageSaveData ofd_packets/00082302 [07:03:52]File name is /storage/ofd_packets/00082302 [07:03:52]Write 301 bytes [07:03:52]NVStorageSaveData done [07:03:52]OFDSenderStorePacket done [07:03:52]KKMCreateOFDPacket done [07:03:52]NVStorageSaveData kkm_last_timestamp [07:03:52]File name is /storage/kkm_last_timestamp [07:03:52]Write 4 bytes [07:03:52]NVStorageSaveData done [07:03:52]ExternCall_PrintAddStr [07:03:52]wPrintStart [07:03:52]Write to MH i2c: 01 00 00 BA 04 BE [07:03:52]Write i2c OK [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: 01 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: 01 07 00 [07:03:52]MH_I2C_Read... [07:03:52]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [07:03:52]RasterBufferAndPrint [07:03:52]line Счет N : (1)918801 [07:03:52]line ИНН: 02508201610067 [07:03:52]line Контрольно-Кассовый Чек [07:03:52]line ПРОДАЖА [07:03:52]line ТРК (МРК, ГНК) : 22 [07:03:52]line Товар: 2710124130 [07:03:52]line Аи-92-К-4 [07:03:52]line 4.490 * 66.90 [07:03:52]line = 300.38 [07:03:52]line НДС 12% НСП 1% [07:03:52]line > о реализуемом товаре [07:03:52]line ОКРУГЛЕНИЕ: -0.38 [07:03:52]line ИТОГО: 300.00 [07:03:52]line Внесено: 300.00 [07:03:52]line СДАЧА: 0.00 [07:03:52]line НСП 1% : 2.66 [07:03:52]line НДС 12% : 31.90 [07:03:52]line Наличными: 300.00 [07:03:52]line Безнал.: 0.00 [07:03:52]line Место: АЗС № 114 "Партнер Нефть" [07:03:52]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [07:03:52]line СНО: Общий режим [07:03:52]line Чек 11 18.10.2024 07:03 [07:03:52]line Смена: 526 ФФД: 1.0 [07:03:52]line ЗНМ: 0300000086 [07:03:52]line РНМ: 0000000000091680 [07:03:52]line Версия ККМ: 001 [07:03:52]line ФМ: 0000000000871843 [07:03:52]line ФД: 82302 [07:03:52]line ФПД: 148725825343437 [07:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T070353&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82302&fm=148725825343437&tin=02508201610067®Number=0000000000091680&sum=30000 [07:03:52]OFD Sender: Processing packet 82302 [packets to send 254, broken 253] [07:03:52]ProducePacketName [07:03:52]name=ofd_packets/00082302 [07:03:52]OFD Sender: To server: pG, [07:03:52]CommunicateWithHost lk.salyk.kg:30040 [07:03:52]ConnectInit lk.salyk.kg [07:03:52]written 0, free lines is 4095 [07:03:52]Connected sock=8 [07:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4B 62 07 01 4D D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 08 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 41 01 00 35 04 06 00 87 43 ED FD 0F CD DF 97 2F 40 15 12 4C C2 [07:03:53]Write to MH i2c: 01 00 00 E5 04 E9 [07:03:53]Write i2c OK [07:03:53]MH_I2C_Read... [07:03:53]Read from MH i2c: 01 [07:03:53]MH_I2C_Read... [07:03:53]Read from MH i2c: 01 07 00 [07:03:53]MH_I2C_Read... [07:03:53]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 D8 0C D4 [07:03:53]RasterBufferAndPrint [07:03:53]line [07:03:53]line [07:03:53]line [07:03:53]line [07:03:53]line [07:03:53]written 0, free lines is 3295 [07:03:53]MH_Cut [07:03:53]Write to MH i2c: D1 01 00 EC 04 01 C2 [07:03:53]Write i2c OK [07:03:53]MH_I2C_Read... [07:03:53]Read from MH i2c: D1 [07:03:53]MH_I2C_Read... [07:03:53]Read from MH i2c: D1 01 00 [07:03:53]MH_I2C_Read... [07:03:53]Read from MH i2c: D1 01 00 EC 04 00 C1 [07:03:53]Write to MH i2c: 01 00 00 ED 04 F1 [07:03:53]Write i2c OK [07:03:53]MH_I2C_Read... [07:03:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 45 78 47 00 87 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7E 41 01 00 F4 03 04 00 94 AD 11 67 B6 04 01 00 00 DE 7B 79 22 77 92 3B 07 [07:03:53]CommunicateWithHost err = 0 [07:03:53]CheckOFDResponse [07:03:53]1017 (14) - 77093643461234 [07:03:53]1041 (16) - 0000000000871843 [07:03:53]1040 (4) - 82302 [07:03:53]1012 (4) - 18.10.2024 00:36 [07:03:53]1206 (1) - 0 [07:03:53]OFD Sender: Remove packet 82302 [07:03:53]ProducePacketName [07:03:53]name=ofd_packets/00082302 [07:03:53]NVStorageDeleteData [07:03:53]*** Cut start [07:03:53]*** Partial cut [07:03:53]*** CUTSNS_PIN = 1 [07:03:53]*** CUTSNS_PIN = 0 [07:03:53]OFD Sender: No OFD packet to send [07:03:54]*** Brake cut motor [07:03:54]Read from MH i2c: 01 [07:03:54]MH_I2C_Read... [07:03:54]*** Stop cut motor [07:03:54]*** Cut end [07:03:54]Read from MH i2c: 01 07 00 [07:03:54]MH_I2C_Read... [07:03:54]Read from MH i2c: 01 07 00 ED 04 00 00 00 00 00 FF 0F 06 [07:03:54]process_action close_receipt done [07:03:54]requested_data is exist [07:03:54]produce_requested_data [07:03:54]requested_item fm.sn is exist - process it [07:03:54]wFMCommunicate request_size=4 [07:03:54]MH_SAM_APDU [07:03:54]CAPDU: 80 11 00 00 [07:03:54]Write to MH i2c: E2 08 00 EE 04 80 11 00 00 00 00 00 00 6C [07:03:54]Write i2c OK [07:03:54]MH_I2C_Read... [07:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:54]Read from MH i2c: E2 [07:03:54]MH_I2C_Read... [07:03:54]Read from MH i2c: E2 17 00 [07:03:54]MH_I2C_Read... [07:03:54]Read from MH i2c: E2 17 00 EE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BE [07:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:03:54]wFMCommunicate OK [07:03:54]requested_item fd.num is exist - process it [07:03:54]SAM_PROTO_GetFieldsCounters [07:03:54]wFMCommunicate request_size=4 [07:03:54]MH_SAM_APDU [07:03:54]CAPDU: 80 13 00 00 [07:03:54]Write to MH i2c: E2 08 00 EF 04 80 13 00 00 00 00 00 00 6F [07:03:54]Write i2c OK [07:03:54]MH_I2C_Read... [07:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:54]Read from MH i2c: E2 [07:03:54]MH_I2C_Read... [07:03:54]Read from MH i2c: E2 62 00 [07:03:54]MH_I2C_Read... [07:03:54]Read from MH i2c: E2 62 00 EF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7E 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [07:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7E 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:03:54]wFMCommunicate OK [07:03:54]SAM_PROTO_GetFieldsCounters done [07:03:54]requested_item shift.num is exist - process it [07:03:54]requested_item shift.opened is exist - process it [07:03:54]req_shift_opened [07:03:54]FM_GetShiftState [07:03:54]SAM_PROTO_GetShiftState [07:03:54]wFMCommunicate request_size=4 [07:03:54]MH_SAM_APDU [07:03:54]CAPDU: 80 13 01 00 [07:03:54]Write to MH i2c: E2 08 00 F0 04 80 13 01 00 00 00 00 00 71 [07:03:54]Write i2c OK [07:03:54]MH_I2C_Read... [07:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:54]Read from MH i2c: E2 [07:03:54]MH_I2C_Read... [07:03:54]Read from MH i2c: E2 0E 00 [07:03:54]MH_I2C_Read... [07:03:54]Read from MH i2c: E2 0E 00 F0 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 43 [07:03:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [07:03:54]wFMCommunicate OK [07:03:54]SAM_PROTO_GetShiftState done [07:03:54]FM_GetShiftState done [07:03:54]req_shift_opened done [07:03:54]requested_item shift.open_date is exist - process it [07:03:54]req_shift_open_date [07:03:54]req_shift_open_date done [07:03:54]produce_requested_data done [07:03:54]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82302,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [07:03:54]process_action_free close_receipt [07:03:54]json_value_free [07:03:54]json_value_free done [07:03:54]process_json_proto returns [07:03:54]Send response to host [07:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82302,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [07:03:54]free response buf [07:03:54]execute_script done [07:03:54]execute_script returns [07:03:54]free content buf [07:03:54]Sock 9.Close socket [07:03:54]Sock 9.Thread stoped [07:03:58]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:11]recv_with_timeout no data received [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:23]recv_with_timeout no data received [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:16]recv_with_timeout no data received [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:20]OFD Sender: No OFD packet to send [07:20:25]OFD Sender: No OFD packet to send [07:20:30]OFD Sender: No OFD packet to send [07:20:35]OFD Sender: No OFD packet to send [07:20:40]OFD Sender: No OFD packet to send [07:20:45]OFD Sender: No OFD packet to send [07:20:50]OFD Sender: No OFD packet to send [07:20:55]OFD Sender: No OFD packet to send [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]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:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:28:56]recv_with_timeout no data received [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:45]recv_with_timeout no data received [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:03]recv_with_timeout no data received [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:33]recv_with_timeout no data received [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:42:59]accept exits with 10 [07:42:59]New connection [07:42:59]New thread 3067440484 created [07:42:59]Thread 3067297124 joined [07:42:59]Waiting for new connection... [07:42:59] Sock 10.Parse request [07:42:59]Sock 10.Check first char [07:42:59]Sock 10.First char is OK [07:42:59]request: POST /json_proto HTTP/1.0 [07:42:59]Method: POST [07:42:59]URL: /json_proto [07:42:59]Method is POST - this is cgi request [07:42:59]url: /json_proto [07:42:59]query_string will be loaded in cgi processing [07:42:59]execute_cgi json_proto POST (null) [07:42:59]execute_cgi path=json_proto method=POST [07:42:59]POST find Content-Length [07:42:59]Host: 172.17.44.67:8080 [07:42:59]Content-Length: 759 [07:42:59]Content-Type: application/json [07:42:59] [07:42:59]POST finish read [07:42:59]Found Content-Length = 759 [07:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100681", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:59]execute_script... [07:42: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)918802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100681", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:59]POST & json_proto [07:42:59]process_json_proto [07:42:59]json parsed OK: [07:42:59]protocol is kg_v1.0 [07:42:59]action value=close_receipt [07:42:59]process_action close_receipt [07:42:59]cmd_close_receipt [07:42:59]MH_GetDate [07:42:59]Write to MH i2c: F0 00 00 F1 04 E4 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: F0 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: F0 09 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: F0 09 00 F1 04 00 86 11 12 67 F1 C7 6B 64 84 [07:42:59]GetLastDocTimeStamp 1729235033 [07:42:59]current date 1729237382 [07:42:59]FM_GetShiftState [07:42:59]SAM_PROTO_GetShiftState [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 13 01 00 [07:42:59]Write to MH i2c: E2 08 00 F2 04 80 13 01 00 00 00 00 00 73 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 0E 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 0E 00 F2 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 45 [07:42:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [07:42:59]wFMCommunicate OK [07:42:59]SAM_PROTO_GetShiftState done [07:42:59]FM_GetShiftState done [07:42:59]opened in 1729212319 [07:42:59]opened+sec_in_day 1729298719 [07:42:59]quantity*price = 0 [07:42:59]sum+1 = 1 [07:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 12 18.10.2024 07:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100681 ФМ: 0000000000871843 ФД: 82303 ФПД: 110610624682547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T074302&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82303&fm=110610624682547&tin=02508201610067®Number=0000000000091680&sum=0 [07:43:00]StoreToDocumentArchive [07:43:00]shift 526 fd 82303 [07:43:00]save to /storage/0526/doc_00082303 [07:43:00]save last doc name /storage/0526/doc_00082303 to /storage/kkm_last_doc_name [07:43:00]save OK [07:43:00]Clear old archive folders... [07:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:43:00]tlvbuf is 00C27820 [07:43:00]SAM_PROTO_ClearQueue [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 09 00 00 [07:43:00]Write to MH i2c: E2 08 00 FF 04 80 09 00 00 00 00 00 00 75 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]SAM_PROTO_ClearQueue done [07:43:00]KKMCreateOFDPacket [07:43:00]OFDProtocolAddRootSTLVToBuf [07:43:00]FM_MakeSignedData [07:43:00]FM_MakeSignedData [07:43:00]SAM_PROTO_SignData [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 0D 01 02 [07:43:00]Write to MH i2c: E2 08 00 00 05 80 0D 01 02 00 00 00 00 7E [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [07:43:01]RAPDU: 90 00 [07:43:01]wFMCommunicate OK [07:43:01]wFMCommunicate request_size=255 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 86 11 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 41 01 00 35 04 06 00 [07:43:01]Write to MH i2c: E2 02 01 01 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 86 11 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 41 01 00 35 04 06 00 00 00 EE [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [07:43:01]RAPDU: 90 00 [07:43:01]wFMCommunicate OK [07:43:01]wFMCommunicate request_size=11 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 0D 02 02 06 64 99 8A FE 1A 33 [07:43:01]Write to MH i2c: E2 0E 00 02 05 80 0D 02 02 06 00 64 99 8A FE 1A 33 00 00 5F [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [07:43:01]RAPDU: 90 00 [07:43:01]wFMCommunicate OK [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 0D 03 02 [07:43:01]Write to MH i2c: E2 08 00 03 05 80 0D 03 02 00 00 00 00 83 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 0B 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 0B 00 03 05 00 28 74 9E D7 4C A1 9A BA 90 00 D6 [07:43:01]RAPDU: 28 74 9E D7 4C A1 9A BA 90 00 [07:43:01]wFMCommunicate OK [07:43:01]SAM_PROTO_SignData done [07:43:01]FM_MakeSignedData done [07:43:01]CreateOFDProtocolMessage [07:43:01]wFMCommunicate request_size=4 [07:43:01]MH_SAM_APDU [07:43:01]CAPDU: 80 11 00 00 [07:43:01]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:01]Read from MH i2c: E2 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D5 [07:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:43:01]wFMCommunicate OK [07:43:01]CreateOFDProtocolMessage done [07:43:01]OFDSenderStorePacket 82303 [07:43:01]StoreOFDPacket docnum=82303 [07:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 33 47 08 01 56 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 86 11 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 41 01 00 35 04 06 00 64 99 8A FE 1A 33 28 74 9E D7 4C A1 9A BA [07:43:01]CheckFolder [07:43:01]dirname=/storage/ofd_packets [07:43:01]CheckFolder done [07:43:01]ProducePacketName [07:43:01]name=ofd_packets/00082303 [07:43:01]NVStorageSaveData ofd_packets/00082303 [07:43:01]File name is /storage/ofd_packets/00082303 [07:43:01]Write 302 bytes [07:43:01]NVStorageSaveData done [07:43:01]OFDSenderStorePacket done [07:43:01]KKMCreateOFDPacket done [07:43:01]NVStorageSaveData kkm_last_timestamp [07:43:01]File name is /storage/kkm_last_timestamp [07:43:01]Write 4 bytes [07:43:01]NVStorageSaveData done [07:43:01]ExternCall_PrintAddStr [07:43:01]wPrintStart [07:43:01]Write to MH i2c: 01 00 00 05 05 0A [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [07:43:01]RasterBufferAndPrint [07:43:01]line Счет N : (1)918802 [07:43:01]line ИНН: 02508201610067 [07:43:01]line Контрольно-Кассовый Чек [07:43:01]line ПРОДАЖА [07:43:01]line ТРК (МРК, ГНК) : 31 [07:43:01]line Товар: 2710194210 [07:43:01]line ДТ(л)-К-5 [07:43:01]line 35.000 * 0.00 [07:43:01]line = 0.00 [07:43:01]line НДС 12% НСП 1% [07:43:01]line > о реализуемом товаре [07:43:01]line ИТОГО: 0.00 [07:43:01]line НСП 1% : 0.00 [07:43:01]line НДС 12% : 0.00 [07:43:01]line Наличными: 0.00 [07:43:01]line Безнал.: 0.00 [07:43:01]line Место: АЗС № 114 "Партнер Нефть" [07:43:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [07:43:01]line СНО: Общий режим [07:43:01]line Чек 12 18.10.2024 07:43 [07:43:01]line Смена: 526 ФФД: 1.0 [07:43:01]line ЗНМ: 0300000086 [07:43:01]line РНМ: 0000000000091680 [07:43:01]line Версия ККМ: 001 [07:43:01]line Талоны: ТК ГПНА Online [07:43:01]line 30100681 [07:43:01]line ФМ: 0000000000871843 [07:43:01]line ФД: 82303 [07:43:01]line ФПД: 110610624682547 [07:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T074302&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82303&fm=110610624682547&tin=02508201610067®Number=0000000000091680&sum=0 [07:43:01]written 0, free lines is 4095 [07:43:01]OFD Sender: Processing packet 82303 [packets to send 254, broken 253] [07:43:01]ProducePacketName [07:43:01]name=ofd_packets/00082303 [07:43:01]OFD Sender: To server: pG, [07:43:01]CommunicateWithHost lk.salyk.kg:30040 [07:43:01]ConnectInit lk.salyk.kg [07:43:01]Write to MH i2c: 01 00 00 2F 05 34 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 2F 05 00 00 00 00 00 DE 0C 25 [07:43:01]RasterBufferAndPrint [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]written 0, free lines is 3300 [07:43:01]MH_Cut [07:43:01]Write to MH i2c: D1 01 00 36 05 01 0D [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: D1 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: D1 01 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: D1 01 00 36 05 00 0C [07:43:01]Write to MH i2c: 01 00 00 37 05 3C [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:02]Connected sock=9 [07:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 33 47 08 01 56 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 86 11 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 41 01 00 35 04 06 00 64 99 8A FE 1A 33 28 74 9E D7 4C A1 9A BA [07:43:02]*** Cut start [07:43:02]*** Partial cut [07:43:02]*** CUTSNS_PIN = 1 [07:43:02]*** CUTSNS_PIN = 0 [07:43:02]*** Brake cut motor [07:43:03]Read from MH i2c: 01 [07:43:03]MH_I2C_Read... [07:43:03]*** Stop cut motor [07:43:03]*** Cut end [07:43:03]Read from MH i2c: 01 07 00 [07:43:03]MH_I2C_Read... [07:43:03]Read from MH i2c: 01 07 00 37 05 00 00 00 00 00 FF 0F 51 [07:43:03]process_action close_receipt done [07:43:03]requested_data is exist [07:43:03]produce_requested_data [07:43:03]requested_item fm.sn is exist - process it [07:43:03]wFMCommunicate request_size=4 [07:43:03]MH_SAM_APDU [07:43:03]CAPDU: 80 11 00 00 [07:43:03]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [07:43:03]Write i2c OK [07:43:03]MH_I2C_Read... [07:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:03]Read from MH i2c: E2 [07:43:03]MH_I2C_Read... [07:43:03]Read from MH i2c: E2 17 00 [07:43:03]MH_I2C_Read... [07:43:03]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 09 [07:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [07:43:03]wFMCommunicate OK [07:43:03]requested_item fd.num is exist - process it [07:43:03]SAM_PROTO_GetFieldsCounters [07:43:03]wFMCommunicate request_size=4 [07:43:03]MH_SAM_APDU [07:43:03]CAPDU: 80 13 00 00 [07:43:03]Write to MH i2c: E2 08 00 39 05 80 13 00 00 00 00 00 00 BA [07:43:03]Write i2c OK [07:43:03]MH_I2C_Read... [07:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:03]Read from MH i2c: E2 [07:43:03]MH_I2C_Read... [07:43:03]Read from MH i2c: E2 62 00 [07:43:03]MH_I2C_Read... [07:43:03]Read from MH i2c: E2 62 00 39 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7F 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [07:43:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 7F 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:03]wFMCommunicate OK [07:43:03]SAM_PROTO_GetFieldsCounters done [07:43:03]requested_item shift.num is exist - process it [07:43:03]requested_item shift.opened is exist - process it [07:43:03]req_shift_opened [07:43:03]FM_GetShiftState [07:43:03]SAM_PROTO_GetShiftState [07:43:03]wFMCommunicate request_size=4 [07:43:03]MH_SAM_APDU [07:43:03]CAPDU: 80 13 01 00 [07:43:03]Write to MH i2c: E2 08 00 3A 05 80 13 01 00 00 00 00 00 BC [07:43:03]Write i2c OK [07:43:03]MH_I2C_Read... [07:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 54 28 47 00 84 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 7F 41 01 00 F4 03 04 00 C2 B6 11 67 B6 04 01 00 00 69 E2 1A E1 FE 9B 76 84 [07:43:03]CommunicateWithHost err = 0 [07:43:03]CheckOFDResponse [07:43:03]1017 (14) - 77093643461234 [07:43:03]1041 (16) - 0000000000871843 [07:43:03]1040 (4) - 82303 [07:43:03]1012 (4) - 18.10.2024 01:15 [07:43:03]1206 (1) - 0 [07:43:03]OFD Sender: Remove packet 82303 [07:43:03]ProducePacketName [07:43:03]name=ofd_packets/00082303 [07:43:03]NVStorageDeleteData [07:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:03]Read from MH i2c: E2 [07:43:03]MH_I2C_Read... [07:43:03]Read from MH i2c: E2 0E 00 [07:43:03]MH_I2C_Read... [07:43:03]Read from MH i2c: E2 0E 00 3A 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8E [07:43:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [07:43:03]wFMCommunicate OK [07:43:03]SAM_PROTO_GetShiftState done [07:43:03]FM_GetShiftState done [07:43:03]req_shift_opened done [07:43:03]requested_item shift.open_date is exist - process it [07:43:03]req_shift_open_date [07:43:03]req_shift_open_date done [07:43:03]produce_requested_data done [07:43:03]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82303,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [07:43:03]process_action_free close_receipt [07:43:03]json_value_free [07:43:03]json_value_free done [07:43:03]process_json_proto returns [07:43:03]Send response to host [07:43:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82303,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [07:43:03]free response buf [07:43:03]execute_script done [07:43:03]execute_script returns [07:43:03]free content buf [07:43:03]Sock 10.Close socket [07:43:03]Sock 10.Thread stoped [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]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:25]recv_with_timeout no data received [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:13]accept exits with 8 [08:12:13]New connection [08:12:13]New thread 3067297124 created [08:12:13]Thread 3067440484 joined [08:12:13]Waiting for new connection... [08:12:13] Sock 8.Parse request [08:12:13]Sock 8.Check first char [08:12:13]Sock 8.First char is OK [08:12:13]request: POST /json_proto HTTP/1.0 [08:12:13]Method: POST [08:12:13]URL: /json_proto [08:12:13]Method is POST - this is cgi request [08:12:13]url: /json_proto [08:12:13]query_string will be loaded in cgi processing [08:12:13]execute_cgi json_proto POST (null) [08:12:13]execute_cgi path=json_proto method=POST [08:12:13]POST find Content-Length [08:12:13]Host: 172.17.44.67:8080 [08:12:13]Content-Length: 677 [08:12:13]Content-Type: application/json [08:12:13] [08:12:13]POST finish read [08:12:13]Found Content-Length = 677 [08:12:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:13]execute_script... [08:12:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:13]POST & json_proto [08:12:13]process_json_proto [08:12:13]json parsed OK: [08:12:13]protocol is kg_v1.0 [08:12:13]action value=close_receipt [08:12:13]process_action close_receipt [08:12:13]cmd_close_receipt [08:12:13]MH_GetDate [08:12:13]Write to MH i2c: F0 00 00 3B 05 2F [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: F0 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: F0 09 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: F0 09 00 3B 05 00 60 18 12 67 F1 C7 6B 64 B0 [08:12:13]GetLastDocTimeStamp 1729237382 [08:12:13]current date 1729239136 [08:12:13]FM_GetShiftState [08:12:13]SAM_PROTO_GetShiftState [08:12:13]wFMCommunicate request_size=4 [08:12:13]MH_SAM_APDU [08:12:13]CAPDU: 80 13 01 00 [08:12:13]Write to MH i2c: E2 08 00 3C 05 80 13 01 00 00 00 00 00 BE [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:13]Read from MH i2c: E2 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 0E 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: E2 0E 00 3C 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 90 [08:12:13]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:12:13]wFMCommunicate OK [08:12:13]SAM_PROTO_GetShiftState done [08:12:13]FM_GetShiftState done [08:12:13]opened in 1729212319 [08:12:13]opened+sec_in_day 1729298719 [08:12:13]quantity*price = 40006 [08:12:13]sum+1 = 40007 [08:12:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 13 18.10.2024 08:12 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82304 ФПД: 203704381068266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T081216&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82304&fm=203704381068266&tin=02508201610067®Number=0000000000091680&sum=40000 [08:12:15]StoreToDocumentArchive [08:12:15]shift 526 fd 82304 [08:12:15]save to /storage/0526/doc_00082304 [08:12:15]save last doc name /storage/0526/doc_00082304 to /storage/kkm_last_doc_name [08:12:15]save OK [08:12:15]Clear old archive folders... [08:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:15]tlvbuf is 00B3ABB0 [08:12:15]SAM_PROTO_ClearQueue [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 09 00 00 [08:12:15]Write to MH i2c: E2 08 00 49 05 80 09 00 00 00 00 00 00 C0 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [08:12:15]RAPDU: 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_ClearQueue done [08:12:15]KKMCreateOFDPacket [08:12:15]OFDProtocolAddRootSTLVToBuf [08:12:15]FM_MakeSignedData [08:12:15]FM_MakeSignedData [08:12:15]SAM_PROTO_SignData [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 0D 01 02 [08:12:15]Write to MH i2c: E2 08 00 4A 05 80 0D 01 02 00 00 00 00 C8 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [08:12:15]RAPDU: 90 00 [08:12:15]wFMCommunicate OK [08:12:15]wFMCommunicate request_size=255 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 18 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 41 01 00 35 04 06 00 B9 [08:12:15]Write to MH i2c: E2 02 01 4B 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 18 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 41 01 00 35 04 06 00 B9 00 00 AC [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [08:12:15]RAPDU: 90 00 [08:12:15]wFMCommunicate OK [08:12:15]wFMCommunicate request_size=10 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 0D 02 02 05 44 9F 45 D3 EA [08:12:15]Write to MH i2c: E2 0D 00 4C 05 80 0D 02 02 05 00 44 9F 45 D3 EA 00 00 BA [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [08:12:15]RAPDU: 90 00 [08:12:15]wFMCommunicate OK [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 0D 03 02 [08:12:15]Write to MH i2c: E2 08 00 4D 05 80 0D 03 02 00 00 00 00 CD [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0B 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0B 00 4D 05 00 BC A1 87 24 FF C3 A5 03 90 00 40 [08:12:15]RAPDU: BC A1 87 24 FF C3 A5 03 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_SignData done [08:12:15]FM_MakeSignedData done [08:12:15]CreateOFDProtocolMessage [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 11 00 00 [08:12:15]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 17 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1F [08:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:12:15]wFMCommunicate OK [08:12:15]CreateOFDProtocolMessage done [08:12:15]OFDSenderStorePacket 82304 [08:12:15]StoreOFDPacket docnum=82304 [08:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 86 4B 07 01 01 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 18 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 41 01 00 35 04 06 00 B9 44 9F 45 D3 EA BC A1 87 24 FF C3 A5 03 [08:12:15]CheckFolder [08:12:15]dirname=/storage/ofd_packets [08:12:15]CheckFolder done [08:12:15]ProducePacketName [08:12:15]name=ofd_packets/00082304 [08:12:15]NVStorageSaveData ofd_packets/00082304 [08:12:15]File name is /storage/ofd_packets/00082304 [08:12:15]Write 301 bytes [08:12:15]NVStorageSaveData done [08:12:15]OFDSenderStorePacket done [08:12:15]KKMCreateOFDPacket done [08:12:15]NVStorageSaveData kkm_last_timestamp [08:12:15]File name is /storage/kkm_last_timestamp [08:12:15]Write 4 bytes [08:12:15]NVStorageSaveData done [08:12:15]ExternCall_PrintAddStr [08:12:15]wPrintStart [08:12:15]Write to MH i2c: 01 00 00 4F 05 54 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 07 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 FF 0F 69 [08:12:15]RasterBufferAndPrint [08:12:15]line Счет N : (1)918803 [08:12:15]line ИНН: 02508201610067 [08:12:15]line Контрольно-Кассовый Чек [08:12:15]line ПРОДАЖА [08:12:15]line ТРК (МРК, ГНК) : 22 [08:12:15]line Товар: 2710124130 [08:12:15]line Аи-92-К-4 [08:12:15]line 5.980 * 66.90 [08:12:15]line = 400.06 [08:12:15]line НДС 12% НСП 1% [08:12:15]line > о реализуемом товаре [08:12:15]line ОКРУГЛЕНИЕ: -0.06 [08:12:15]line ИТОГО: 400.00 [08:12:15]line Внесено: 400.00 [08:12:15]line СДАЧА: 0.00 [08:12:15]line НСП 1% : 3.54 [08:12:15]line НДС 12% : 42.48 [08:12:15]line Наличными: 400.00 [08:12:15]line Безнал.: 0.00 [08:12:15]line Место: АЗС № 114 "Партнер Нефть" [08:12:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:12:15]line СНО: Общий режим [08:12:15]line Чек 13 18.10.2024 08:12 [08:12:15]line Смена: 526 ФФД: 1.0 [08:12:15]line ЗНМ: 0300000086 [08:12:15]line РНМ: 0000000000091680 [08:12:15]line Версия ККМ: 001 [08:12:15]line ФМ: 0000000000871843 [08:12:15]line ФД: 82304 [08:12:15]line ФПД: 203704381068266 [08:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T081216&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82304&fm=203704381068266&tin=02508201610067®Number=0000000000091680&sum=40000 [08:12:15]OFD Sender: Processing packet 82304 [packets to send 254, broken 253] [08:12:15]ProducePacketName [08:12:15]name=ofd_packets/00082304 [08:12:15]OFD Sender: To server: pG, [08:12:15]CommunicateWithHost lk.salyk.kg:30040 [08:12:15]ConnectInit lk.salyk.kg [08:12:15]written 0, free lines is 4095 [08:12:16]Write to MH i2c: 01 00 00 7A 05 7F [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: 01 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: 01 07 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 D7 0C 69 [08:12:16]RasterBufferAndPrint [08:12:16]line [08:12:16]line [08:12:16]line [08:12:16]line [08:12:16]line [08:12:16]written 0, free lines is 3294 [08:12:16]MH_Cut [08:12:16]Write to MH i2c: D1 01 00 81 05 01 58 [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: D1 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: D1 01 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: D1 01 00 81 05 00 57 [08:12:16]Write to MH i2c: 01 00 00 82 05 87 [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:17]*** Cut start [08:12:17]*** Partial cut [08:12:17]*** CUTSNS_PIN = 1 [08:12:17]*** CUTSNS_PIN = 0 [08:12:17]*** Brake cut motor [08:12:17]Read from MH i2c: 01 [08:12:17]MH_I2C_Read... [08:12:17]*** Stop cut motor [08:12:17]*** Cut end [08:12:17]Read from MH i2c: 01 07 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [08:12:17]process_action close_receipt done [08:12:17]requested_data is exist [08:12:17]produce_requested_data [08:12:17]requested_item fm.sn is exist - process it [08:12:17]wFMCommunicate request_size=4 [08:12:17]MH_SAM_APDU [08:12:17]CAPDU: 80 11 00 00 [08:12:17]Write to MH i2c: E2 08 00 83 05 80 11 00 00 00 00 00 00 02 [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:17]Read from MH i2c: E2 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 17 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 17 00 83 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 54 [08:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:12:17]wFMCommunicate OK [08:12:17]requested_item fd.num is exist - process it [08:12:17]SAM_PROTO_GetFieldsCounters [08:12:17]wFMCommunicate request_size=4 [08:12:17]MH_SAM_APDU [08:12:17]CAPDU: 80 13 00 00 [08:12:17]Write to MH i2c: E2 08 00 84 05 80 13 00 00 00 00 00 00 05 [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:18]Read from MH i2c: E2 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: E2 62 00 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: E2 62 00 84 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 80 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 80 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:18]wFMCommunicate OK [08:12:18]SAM_PROTO_GetFieldsCounters done [08:12:18]requested_item shift.num is exist - process it [08:12:18]requested_item shift.opened is exist - process it [08:12:18]req_shift_opened [08:12:18]FM_GetShiftState [08:12:18]SAM_PROTO_GetShiftState [08:12:18]wFMCommunicate request_size=4 [08:12:18]MH_SAM_APDU [08:12:18]CAPDU: 80 13 01 00 [08:12:18]Write to MH i2c: E2 08 00 85 05 80 13 01 00 00 00 00 00 07 [08:12:18]Write i2c OK [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: E2 [08:12:18]MH_I2C_Read... [08:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:18]Read from MH i2c: E2 0E 00 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: E2 0E 00 85 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D9 [08:12:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:12:18]wFMCommunicate OK [08:12:18]SAM_PROTO_GetShiftState done [08:12:18]FM_GetShiftState done [08:12:18]req_shift_opened done [08:12:18]requested_item shift.open_date is exist - process it [08:12:18]req_shift_open_date [08:12:18]req_shift_open_date done [08:12:18]produce_requested_data done [08:12:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82304,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [08:12:18]process_action_free close_receipt [08:12:18]json_value_free [08:12:18]json_value_free done [08:12:18]process_json_proto returns [08:12:18]Send response to host [08:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82304,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [08:12:18]free response buf [08:12:18]execute_script done [08:12:18]execute_script returns [08:12:18]free content buf [08:12:18]Sock 8.Close socket [08:12:18]Sock 8.Thread stoped [08:12:20]ConnectInit Can't take IP for lk.salyk.kg [08:12:20]CommunicateWithHost connect error [08:12:20]CommunicateWithHost err = -1 [08:12:20]OFD Sender: Server communicate error [08:12:25]OFD Sender: Processing packet 82304 [packets to send 254, broken 253] [08:12:25]ProducePacketName [08:12:25]name=ofd_packets/00082304 [08:12:25]OFD Sender: To server: pG, [08:12:25]CommunicateWithHost lk.salyk.kg:30040 [08:12:25]ConnectInit lk.salyk.kg [08:12:29]Connected sock=8 [08: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 31 38 34 33 0F 01 00 00 86 4B 07 01 01 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 60 18 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 41 01 00 35 04 06 00 B9 44 9F 45 D3 EA BC A1 87 24 FF C3 A5 03 [08:12:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5A CE 47 00 A7 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 80 41 01 00 F4 03 04 00 A9 BD 11 67 B6 04 01 00 00 18 D5 22 56 9D 3A EA 31 [08:12:30]CommunicateWithHost err = 0 [08:12:30]CheckOFDResponse [08:12:30]1017 (14) - 77093643461234 [08:12:30]1041 (16) - 0000000000871843 [08:12:30]1040 (4) - 82304 [08:12:30]1012 (4) - 18.10.2024 01:45 [08:12:30]1206 (1) - 0 [08:12:30]OFD Sender: Remove packet 82304 [08:12:30]ProducePacketName [08:12:30]name=ofd_packets/00082304 [08:12:30]NVStorageDeleteData [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:07]recv_with_timeout no data received [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:05]recv_with_timeout no data received [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:19]recv_with_timeout no data received [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:02]recv_with_timeout no data received [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:23]recv_with_timeout no data received [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:44]recv_with_timeout no data received [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:44]recv_with_timeout no data received [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:17]recv_with_timeout no data received [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:52]recv_with_timeout no data received [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:20]recv_with_timeout no data received [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:31]accept exits with 10 [08:30:31]New connection [08:30:31]New thread 3067440484 created [08:30:31]Thread 3067297124 joined [08:30:31]Waiting for new connection... [08:30:31] Sock 10.Parse request [08:30:31]Sock 10.Check first char [08:30:31]Sock 10.First char is OK [08:30:31]request: POST /json_proto HTTP/1.0 [08:30:31]Method: POST [08:30:31]URL: /json_proto [08:30:31]Method is POST - this is cgi request [08:30:31]url: /json_proto [08:30:31]query_string will be loaded in cgi processing [08:30:31]execute_cgi json_proto POST (null) [08:30:31]execute_cgi path=json_proto method=POST [08:30:31]POST find Content-Length [08:30:31]Host: 172.17.44.67:8080 [08:30:31]Content-Length: 805 [08:30:31]Content-Type: application/json [08:30:31] [08:30:31]POST finish read [08:30:31]Found Content-Length = 805 [08:30:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4328769", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:31]execute_script... [08: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)918804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4328769", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:31]POST & json_proto [08:30:31]process_json_proto [08:30:31]json parsed OK: [08:30:31]protocol is kg_v1.0 [08:30:31]action value=close_receipt [08:30:31]process_action close_receipt [08:30:31]cmd_close_receipt [08:30:31]MH_GetDate [08:30:31]Write to MH i2c: F0 00 00 86 05 7A [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: F0 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: F0 09 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: F0 09 00 86 05 00 AA 1C 12 67 F1 C7 6B 64 49 [08:30:31]GetLastDocTimeStamp 1729239136 [08:30:31]current date 1729240234 [08:30:31]FM_GetShiftState [08:30:31]SAM_PROTO_GetShiftState [08:30:31]wFMCommunicate request_size=4 [08:30:31]MH_SAM_APDU [08:30:31]CAPDU: 80 13 01 00 [08:30:31]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:31]Read from MH i2c: E2 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: E2 0E 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DB [08:30:31]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:30:31]wFMCommunicate OK [08:30:31]SAM_PROTO_GetShiftState done [08:30:31]FM_GetShiftState done [08:30:31]opened in 1729212319 [08:30:31]opened+sec_in_day 1729298719 [08:30:31]quantity*price = 0 [08:30:31]sum+1 = 1 [08:30:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 14 18.10.2024 08:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4328769 ФМ: 0000000000871843 ФД: 82305 ФПД: 50893242126508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T083034&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82305&fm=50893242126508&tin=02508201610067®Number=0000000000091680&sum=0 [08:30:32]StoreToDocumentArchive [08:30:32]shift 526 fd 82305 [08:30:32]save to /storage/0526/doc_00082305 [08:30:32]save last doc name /storage/0526/doc_00082305 to /storage/kkm_last_doc_name [08:30:32]save OK [08:30:32]Clear old archive folders... [08:30:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:30:32]tlvbuf is 00B09390 [08:30:32]SAM_PROTO_ClearQueue [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 09 00 00 [08:30:32]Write to MH i2c: E2 08 00 94 05 80 09 00 00 00 00 00 00 0B [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 03 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [08:30:32]RAPDU: 90 00 [08:30:32]wFMCommunicate OK [08:30:32]SAM_PROTO_ClearQueue done [08:30:32]KKMCreateOFDPacket [08:30:32]OFDProtocolAddRootSTLVToBuf [08:30:32]FM_MakeSignedData [08:30:32]FM_MakeSignedData [08:30:32]SAM_PROTO_SignData [08:30:32]wFMCommunicate request_size=4 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 0D 01 02 [08:30:32]Write to MH i2c: E2 08 00 95 05 80 0D 01 02 00 00 00 00 13 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 03 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 03 00 95 05 00 90 00 0E [08:30:32]RAPDU: 90 00 [08:30:32]wFMCommunicate OK [08:30:32]wFMCommunicate request_size=255 [08:30:32]MH_SAM_APDU [08:30:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AA 1C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 41 01 00 35 04 06 00 [08:30:32]Write to MH i2c: E2 02 01 96 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AA 1C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 41 01 00 35 04 06 00 00 00 52 [08:30:32]Write i2c OK [08:30:32]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 03 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [08:30:33]RAPDU: 90 00 [08:30:33]wFMCommunicate OK [08:30:33]wFMCommunicate request_size=11 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 0D 02 02 06 2E 49 81 9E 50 AC [08:30:33]Write to MH i2c: E2 0E 00 97 05 80 0D 02 02 06 00 2E 49 81 9E 50 AC 00 00 B4 [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 03 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [08:30:33]RAPDU: 90 00 [08:30:33]wFMCommunicate OK [08:30:33]wFMCommunicate request_size=4 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 0D 03 02 [08:30:33]Write to MH i2c: E2 08 00 98 05 80 0D 03 02 00 00 00 00 18 [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 0B 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 0B 00 98 05 00 02 C6 62 00 A8 54 47 90 90 00 16 [08:30:33]RAPDU: 02 C6 62 00 A8 54 47 90 90 00 [08:30:33]wFMCommunicate OK [08:30:33]SAM_PROTO_SignData done [08:30:33]FM_MakeSignedData done [08:30:33]CreateOFDProtocolMessage [08:30:33]wFMCommunicate request_size=4 [08:30:33]MH_SAM_APDU [08:30:33]CAPDU: 80 11 00 00 [08:30:33]Write to MH i2c: E2 08 00 99 05 80 11 00 00 00 00 00 00 18 [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:33]Read from MH i2c: E2 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 17 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: E2 17 00 99 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6A [08:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:30:33]wFMCommunicate OK [08:30:33]CreateOFDProtocolMessage done [08:30:33]OFDSenderStorePacket 82305 [08:30:33]StoreOFDPacket docnum=82305 [08:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 51 A1 08 01 11 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AA 1C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 41 01 00 35 04 06 00 2E 49 81 9E 50 AC 02 C6 62 00 A8 54 47 90 [08:30:33]CheckFolder [08:30:33]dirname=/storage/ofd_packets [08:30:33]CheckFolder done [08:30:33]ProducePacketName [08:30:33]name=ofd_packets/00082305 [08:30:33]NVStorageSaveData ofd_packets/00082305 [08:30:33]File name is /storage/ofd_packets/00082305 [08:30:33]Write 302 bytes [08:30:33]NVStorageSaveData done [08:30:33]OFDSenderStorePacket done [08:30:33]KKMCreateOFDPacket done [08:30:33]NVStorageSaveData kkm_last_timestamp [08:30:33]File name is /storage/kkm_last_timestamp [08:30:33]Write 4 bytes [08:30:33]NVStorageSaveData done [08:30:33]ExternCall_PrintAddStr [08:30:33]wPrintStart [08:30:33]Write to MH i2c: 01 00 00 9A 05 9F [08:30:33]Write i2c OK [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: 01 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: 01 07 00 [08:30:33]MH_I2C_Read... [08:30:33]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [08:30:33]RasterBufferAndPrint [08:30:33]line Счет N : (1)918804 [08:30:33]line ИНН: 02508201610067 [08:30:33]line Контрольно-Кассовый Чек [08:30:33]line ПРОДАЖА [08:30:33]line ТРК (МРК, ГНК) : 31 [08:30:33]line Товар: 2710194210 [08:30:33]line ДТ(л)-К-5 [08:30:33]line 40.000 * 0.00 [08:30:33]line = 0.00 [08:30:33]line НДС 12% НСП 1% [08:30:33]line > о реализуемом товаре [08:30:33]line ИТОГО: 0.00 [08:30:33]line НСП 1% : 0.00 [08:30:33]line НДС 12% : 0.00 [08:30:33]line Наличными: 0.00 [08:30:33]line Безнал.: 0.00 [08:30:33]line Место: АЗС № 114 "Партнер Нефть" [08:30:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:30:33]line СНО: Общий режим [08:30:33]line Чек 14 18.10.2024 08:30 [08:30:33]line Смена: 526 ФФД: 1.0 [08:30:33]line ЗНМ: 0300000086 [08:30:33]line РНМ: 0000000000091680 [08:30:33]line Версия ККМ: 001 [08:30:33]line Талоны: Топливные Талоны [08:30:33]line 4328769 [08:30:33]line ФМ: 0000000000871843 [08:30:33]line ФД: 82305 [08:30:33]line ФПД: 50893242126508 [08:30:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T083034&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82305&fm=50893242126508&tin=02508201610067®Number=0000000000091680&sum=0 [08:30:33]OFD Sender: Processing packet 82305 [packets to send 254, broken 253] [08:30:33]ProducePacketName [08:30:33]name=ofd_packets/00082305 [08:30:33]OFD Sender: To server: pG, [08:30:33]CommunicateWithHost lk.salyk.kg:30040 [08:30:33]ConnectInit lk.salyk.kg [08:30:33]written 0, free lines is 4095 [08:30:34]Write to MH i2c: 01 00 00 C4 05 C9 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: 01 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: 01 07 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 E1 0C BD [08:30:34]RasterBufferAndPrint [08:30:34]line [08:30:34]line [08:30:34]line [08:30:34]line [08:30:34]line [08:30:34]written 0, free lines is 3303 [08:30:34]MH_Cut [08:30:34]Write to MH i2c: D1 01 00 CB 05 01 A2 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: D1 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: D1 01 00 [08:30:34]MH_I2C_Read... [08:30:34]Read from MH i2c: D1 01 00 CB 05 00 A1 [08:30:34]Write to MH i2c: 01 00 00 CC 05 D1 [08:30:34]Write i2c OK [08:30:34]MH_I2C_Read... [08:30:34]*** Cut start [08:30:34]*** Partial cut [08:30:34]*** CUTSNS_PIN = 1 [08:30:34]*** CUTSNS_PIN = 0 [08:30:35]Connected sock=11 [08:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 51 A1 08 01 11 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 AA 1C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 41 01 00 35 04 06 00 2E 49 81 9E 50 AC 02 C6 62 00 A8 54 47 90 [08:30:35]*** Brake cut motor [08:30:35]Read from MH i2c: 01 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: 01 07 00 [08:30:35]MH_I2C_Read... [08:30:35]*** Stop cut motor [08:30:35]*** Cut end [08:30:35]Read from MH i2c: 01 07 00 CC 05 00 00 00 00 00 FF 0F E6 [08:30:35]process_action close_receipt done [08:30:35]requested_data is exist [08:30:35]produce_requested_data [08:30:35]requested_item fm.sn is exist - process it [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 11 00 00 [08:30:35]Write to MH i2c: E2 08 00 CD 05 80 11 00 00 00 00 00 00 4C [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 17 00 CD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9E [08:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:30:35]wFMCommunicate OK [08:30:35]requested_item fd.num is exist - process it [08:30:35]SAM_PROTO_GetFieldsCounters [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 13 00 00 [08:30:35]Write to MH i2c: E2 08 00 CE 05 80 13 00 00 00 00 00 00 4F [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 62 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 62 00 CE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 81 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [08: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 81 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_GetFieldsCounters done [08:30:35]requested_item shift.num is exist - process it [08:30:35]requested_item shift.opened is exist - process it [08:30:35]req_shift_opened [08:30:35]FM_GetShiftState [08:30:35]SAM_PROTO_GetShiftState [08:30:35]wFMCommunicate request_size=4 [08:30:35]MH_SAM_APDU [08:30:35]CAPDU: 80 13 01 00 [08:30:35]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [08:30:35]Write i2c OK [08:30:35]MH_I2C_Read... [08:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:35]Read from MH i2c: E2 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0E 00 [08:30:35]MH_I2C_Read... [08:30:35]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 23 [08:30:35]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:30:35]wFMCommunicate OK [08:30:35]SAM_PROTO_GetShiftState done [08:30:35]FM_GetShiftState done [08:30:35]req_shift_opened done [08:30:35]requested_item shift.open_date is exist - process it [08:30:35]req_shift_open_date [08:30:35]req_shift_open_date done [08:30:35]produce_requested_data done [08:30:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82305,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [08:30:35]process_action_free close_receipt [08:30:35]json_value_free [08:30:35]json_value_free done [08:30:35]process_json_proto returns [08:30:35]Send response to host [08:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82305,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [08:30:35]free response buf [08:30:35]execute_script done [08:30:35]execute_script returns [08:30:35]free content buf [08:30:35]Sock 10.Close socket [08:30:35]Sock 10.Thread stoped [08:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D3 B8 47 00 E7 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 81 41 01 00 F4 03 04 00 E7 C1 11 67 B6 04 01 00 00 87 6C AE 90 FE C1 1E 60 [08:30:36]CommunicateWithHost err = 0 [08:30:36]CheckOFDResponse [08:30:36]1017 (14) - 77093643461234 [08:30:36]1041 (16) - 0000000000871843 [08:30:36]1040 (4) - 82305 [08:30:36]1012 (4) - 18.10.2024 02:03 [08:30:36]1206 (1) - 0 [08:30:36]OFD Sender: Remove packet 82305 [08:30:36]ProducePacketName [08:30:36]name=ofd_packets/00082305 [08:30:36]NVStorageDeleteData [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:07]recv_with_timeout no data received [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]recv_with_timeout no data received [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:54]accept exits with 8 [08:49:54]New connection [08:49:54]New thread 3067297124 created [08:49:54]Thread 3067440484 joined [08:49:54]Waiting for new connection... [08:49:54] Sock 8.Parse request [08:49:54]Sock 8.Check first char [08:49:54]Sock 8.First char is OK [08:49:54]request: POST /json_proto HTTP/1.0 [08:49:54]Method: POST [08:49:54]URL: /json_proto [08:49:54]Method is POST - this is cgi request [08:49:54]url: /json_proto [08:49:54]query_string will be loaded in cgi processing [08:49:54]execute_cgi json_proto POST (null) [08:49:54]execute_cgi path=json_proto method=POST [08:49:54]POST find Content-Length [08:49:54]Host: 172.17.44.67:8080 [08:49:54]Content-Length: 806 [08:49:54]Content-Type: application/json [08:49:54] [08:49:54]POST finish read [08:49:54]Found Content-Length = 806 [08:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202666", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:54]execute_script... [08:49: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)918805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202666", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:54]POST & json_proto [08:49:54]process_json_proto [08:49:54]json parsed OK: [08:49:54]protocol is kg_v1.0 [08:49:54]action value=close_receipt [08:49:54]process_action close_receipt [08:49:54]cmd_close_receipt [08:49:54]MH_GetDate [08:49:54]Write to MH i2c: F0 00 00 D0 05 C4 [08:49:54]Write i2c OK [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: F0 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: F0 09 00 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: F0 09 00 D0 05 00 35 21 12 67 F1 C7 6B 64 23 [08:49:54]GetLastDocTimeStamp 1729240234 [08:49:54]current date 1729241397 [08:49:54]FM_GetShiftState [08:49:54]SAM_PROTO_GetShiftState [08:49:54]wFMCommunicate request_size=4 [08:49:54]MH_SAM_APDU [08:49:54]CAPDU: 80 13 01 00 [08:49:54]Write to MH i2c: E2 08 00 D1 05 80 13 01 00 00 00 00 00 53 [08:49:54]Write i2c OK [08:49:54]MH_I2C_Read... [08:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:54]Read from MH i2c: E2 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: E2 0E 00 [08:49:54]MH_I2C_Read... [08:49:54]Read from MH i2c: E2 0E 00 D1 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 25 [08:49:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:49:54]wFMCommunicate OK [08:49:54]SAM_PROTO_GetShiftState done [08:49:54]FM_GetShiftState done [08:49:54]opened in 1729212319 [08:49:54]opened+sec_in_day 1729298719 [08:49:54]quantity*price = 0 [08:49:54]sum+1 = 1 [08:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 15 18.10.2024 08:49 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202666 ФМ: 0000000000871843 ФД: 82306 ФПД: 130620808628319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T084957&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82306&fm=130620808628319&tin=02508201610067®Number=0000000000091680&sum=0 [08:49:55]StoreToDocumentArchive [08:49:55]shift 526 fd 82306 [08:49:55]save to /storage/0526/doc_00082306 [08:49:55]save last doc name /storage/0526/doc_00082306 to /storage/kkm_last_doc_name [08:49:55]save OK [08:49:55]Clear old archive folders... [08:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:49:55]tlvbuf is 00B0D6C0 [08:49:55]SAM_PROTO_ClearQueue [08:49:55]wFMCommunicate request_size=4 [08:49:55]MH_SAM_APDU [08:49:55]CAPDU: 80 09 00 00 [08:49:55]Write to MH i2c: E2 08 00 DE 05 80 09 00 00 00 00 00 00 55 [08:49:55]Write i2c OK [08:49:55]MH_I2C_Read... [08:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:55]Read from MH i2c: E2 [08:49:55]MH_I2C_Read... [08:49:55]Read from MH i2c: E2 03 00 [08:49:55]MH_I2C_Read... [08:49:55]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [08:49:55]RAPDU: 90 00 [08:49:55]wFMCommunicate OK [08:49:55]SAM_PROTO_ClearQueue done [08:49:55]KKMCreateOFDPacket [08:49:55]OFDProtocolAddRootSTLVToBuf [08:49:55]FM_MakeSignedData [08:49:55]FM_MakeSignedData [08:49:55]SAM_PROTO_SignData [08:49:55]wFMCommunicate request_size=4 [08:49:55]MH_SAM_APDU [08:49:55]CAPDU: 80 0D 01 02 [08:49:55]Write to MH i2c: E2 08 00 DF 05 80 0D 01 02 00 00 00 00 5D [08:49:55]Write i2c OK [08:49:55]MH_I2C_Read... [08:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:56]Read from MH i2c: E2 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 03 00 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [08:49:56]RAPDU: 90 00 [08:49:56]wFMCommunicate OK [08:49:56]wFMCommunicate request_size=255 [08:49:56]MH_SAM_APDU [08:49:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 41 01 [08:49:56]Write to MH i2c: E2 02 01 E0 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 41 01 00 00 57 [08:49:56]Write i2c OK [08:49:56]MH_I2C_Read... [08:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:56]Read from MH i2c: E2 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 03 00 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [08:49:56]RAPDU: 90 00 [08:49:56]wFMCommunicate OK [08:49:56]wFMCommunicate request_size=16 [08:49:56]MH_SAM_APDU [08:49:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 76 CC 86 E6 08 5F [08:49:56]Write to MH i2c: E2 13 00 E1 05 80 0D 02 02 0B 00 00 35 04 06 00 76 CC 86 E6 08 5F 00 00 CA [08:49:56]Write i2c OK [08:49:56]MH_I2C_Read... [08:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:56]Read from MH i2c: E2 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 03 00 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [08:49:56]RAPDU: 90 00 [08:49:56]wFMCommunicate OK [08:49:56]wFMCommunicate request_size=4 [08:49:56]MH_SAM_APDU [08:49:56]CAPDU: 80 0D 03 02 [08:49:56]Write to MH i2c: E2 08 00 E2 05 80 0D 03 02 00 00 00 00 62 [08:49:56]Write i2c OK [08:49:56]MH_I2C_Read... [08:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:56]Read from MH i2c: E2 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 0B 00 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 0B 00 E2 05 00 C2 41 31 2B 7A 31 0F A6 90 00 22 [08:49:56]RAPDU: C2 41 31 2B 7A 31 0F A6 90 00 [08:49:56]wFMCommunicate OK [08:49:56]SAM_PROTO_SignData done [08:49:56]FM_MakeSignedData done [08:49:56]CreateOFDProtocolMessage [08:49:56]wFMCommunicate request_size=4 [08:49:56]MH_SAM_APDU [08:49:56]CAPDU: 80 11 00 00 [08:49:56]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [08:49:56]Write i2c OK [08:49:56]MH_I2C_Read... [08:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:56]Read from MH i2c: E2 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 17 00 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B4 [08:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:49:56]wFMCommunicate OK [08:49:56]CreateOFDProtocolMessage done [08:49:56]OFDSenderStorePacket 82306 [08:49:56]StoreOFDPacket docnum=82306 [08:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 82 AC 0D 01 E4 96 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 41 01 00 35 04 06 00 76 CC 86 E6 08 5F C2 41 31 2B 7A 31 0F A6 [08:49:56]CheckFolder [08:49:56]dirname=/storage/ofd_packets [08:49:56]CheckFolder done [08:49:56]ProducePacketName [08:49:56]name=ofd_packets/00082306 [08:49:56]NVStorageSaveData ofd_packets/00082306 [08:49:56]File name is /storage/ofd_packets/00082306 [08:49:56]Write 307 bytes [08:49:56]NVStorageSaveData done [08:49:56]OFDSenderStorePacket done [08:49:56]KKMCreateOFDPacket done [08:49:56]NVStorageSaveData kkm_last_timestamp [08:49:56]File name is /storage/kkm_last_timestamp [08:49:56]Write 4 bytes [08:49:56]NVStorageSaveData done [08:49:56]ExternCall_PrintAddStr [08:49:56]wPrintStart [08:49:56]Write to MH i2c: 01 00 00 E4 05 E9 [08:49:56]Write i2c OK [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: 01 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: 01 07 00 [08:49:56]MH_I2C_Read... [08:49:56]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [08:49:56]RasterBufferAndPrint [08:49:56]line Счет N : (1)918805 [08:49:56]line ИНН: 02508201610067 [08:49:56]line Контрольно-Кассовый Чек [08:49:56]line ПРОДАЖА [08:49:56]line ТРК (МРК, ГНК) : 21 [08:49:56]line Товар: 2710194800 [08:49:56]line D-Energy ДТ-К-2 [08:49:56]line 50.000 * 0.00 [08:49:56]line = 0.00 [08:49:56]line НДС 12% НСП 1% [08:49:56]line > о реализуемом товаре [08:49:56]line ИТОГО: 0.00 [08:49:56]line НСП 1% : 0.00 [08:49:56]line НДС 12% : 0.00 [08:49:56]line Наличными: 0.00 [08:49:56]line Безнал.: 0.00 [08:49:56]line Место: АЗС № 114 "Партнер Нефть" [08:49:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:49:56]line СНО: Общий режим [08:49:56]line Чек 15 18.10.2024 08:49 [08:49:56]line Смена: 526 ФФД: 1.0 [08:49:56]line ЗНМ: 0300000086 [08:49:56]line РНМ: 0000000000091680 [08:49:56]line Версия ККМ: 001 [08:49:56]line Талоны: Топливные Талоны [08:49:56]line 2202666 [08:49:56]line ФМ: 0000000000871843 [08:49:56]line ФД: 82306 [08:49:56]line ФПД: 130620808628319 [08:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T084957&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82306&fm=130620808628319&tin=02508201610067®Number=0000000000091680&sum=0 [08:49:56]OFD Sender: Processing packet 82306 [packets to send 254, broken 253] [08:49:56]ProducePacketName [08:49:56]name=ofd_packets/00082306 [08:49:56]OFD Sender: To server: pG, [08:49:56]CommunicateWithHost lk.salyk.kg:30040 [08:49:56]ConnectInit lk.salyk.kg [08:49:56]written 0, free lines is 4095 [08:49:57]Write to MH i2c: 01 00 00 0E 06 14 [08:49:57]Write i2c OK [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: 01 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: 01 07 00 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: 01 07 00 0E 06 00 00 00 00 00 EE 0C 15 [08:49:57]RasterBufferAndPrint [08:49:57]line [08:49:57]line [08:49:57]line [08:49:57]line [08:49:57]line [08:49:57]written 0, free lines is 3316 [08:49:57]MH_Cut [08:49:57]Write to MH i2c: D1 01 00 15 06 01 ED [08:49:57]Write i2c OK [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: D1 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: D1 01 00 [08:49:57]MH_I2C_Read... [08:49:57]Read from MH i2c: D1 01 00 15 06 00 EC [08:49:57]Write to MH i2c: 01 00 00 16 06 1C [08:49:57]Write i2c OK [08:49:57]MH_I2C_Read... [08:49:57]*** Cut start [08:49:57]*** Partial cut [08:49:57]*** CUTSNS_PIN = 1 [08:49:58]*** CUTSNS_PIN = 0 [08:49:58]*** Brake cut motor [08:49:58]Read from MH i2c: 01 [08:49:58]MH_I2C_Read... [08:49:58]*** Stop cut motor [08:49:58]*** Cut end [08:49:58]Read from MH i2c: 01 07 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: 01 07 00 16 06 00 00 00 00 00 FF 0F 31 [08:49:58]process_action close_receipt done [08:49:58]requested_data is exist [08:49:58]produce_requested_data [08:49:58]requested_item fm.sn is exist - process it [08:49:58]wFMCommunicate request_size=4 [08:49:58]MH_SAM_APDU [08:49:58]CAPDU: 80 11 00 00 [08:49:58]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:58]Read from MH i2c: E2 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 17 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E9 [08:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:49:58]wFMCommunicate OK [08:49:58]requested_item fd.num is exist - process it [08:49:58]SAM_PROTO_GetFieldsCounters [08:49:58]wFMCommunicate request_size=4 [08:49:58]MH_SAM_APDU [08:49:58]CAPDU: 80 13 00 00 [08:49:58]Write to MH i2c: E2 08 00 18 06 80 13 00 00 00 00 00 00 9A [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:58]Connected sock=11 [08:49:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 82 AC 0D 01 E4 96 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 35 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 41 01 00 35 04 06 00 76 CC 86 E6 08 5F C2 41 31 2B 7A 31 0F A6 [08:49:58]Read from MH i2c: E2 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 62 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 62 00 18 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 82 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [08:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 82 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:58]wFMCommunicate OK [08:49:58]SAM_PROTO_GetFieldsCounters done [08:49:58]requested_item shift.num is exist - process it [08:49:58]requested_item shift.opened is exist - process it [08:49:58]req_shift_opened [08:49:58]FM_GetShiftState [08:49:58]SAM_PROTO_GetShiftState [08:49:58]wFMCommunicate request_size=4 [08:49:58]MH_SAM_APDU [08:49:58]CAPDU: 80 13 01 00 [08:49:58]Write to MH i2c: E2 08 00 19 06 80 13 01 00 00 00 00 00 9C [08:49:58]Write i2c OK [08:49:58]MH_I2C_Read... [08:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:58]Read from MH i2c: E2 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 0E 00 [08:49:58]MH_I2C_Read... [08:49:58]Read from MH i2c: E2 0E 00 19 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6E [08:49:58]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:49:58]wFMCommunicate OK [08:49:58]SAM_PROTO_GetShiftState done [08:49:58]FM_GetShiftState done [08:49:58]req_shift_opened done [08:49:58]requested_item shift.open_date is exist - process it [08:49:58]req_shift_open_date [08:49:58]req_shift_open_date done [08:49:58]produce_requested_data done [08:49:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82306,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [08:49:58]process_action_free close_receipt [08:49:58]json_value_free [08:49:58]json_value_free done [08:49:58]process_json_proto returns [08:49:58]Send response to host [08:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82306,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [08:49:58]free response buf [08:49:58]execute_script done [08:49:58]execute_script returns [08:49:58]free content buf [08:49:58]Sock 8.Close socket [08:49:58]Sock 8.Thread stoped [08:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 15 48 47 00 2B 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 82 41 01 00 F4 03 04 00 72 C6 11 67 B6 04 01 00 00 D6 83 14 37 3E AA BA C1 [08:49:59]CommunicateWithHost err = 0 [08:49:59]CheckOFDResponse [08:49:59]1017 (14) - 77093643461234 [08:49:59]1041 (16) - 0000000000871843 [08:49:59]1040 (4) - 82306 [08:49:59]1012 (4) - 18.10.2024 02:22 [08:49:59]1206 (1) - 0 [08:49:59]OFD Sender: Remove packet 82306 [08:49:59]ProducePacketName [08:49:59]name=ofd_packets/00082306 [08:49:59]NVStorageDeleteData [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:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:42]recv_with_timeout no data received [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:08]accept exits with 9 [08:51:08]New connection [08:51:08]New thread 3067440484 created [08:51:08]Thread 3067297124 joined [08:51:08]Waiting for new connection... [08:51:08] Sock 9.Parse request [08:51:08]Sock 9.Check first char [08:51:08]Sock 9.First char is OK [08:51:08]request: POST /json_proto HTTP/1.0 [08:51:08]Method: POST [08:51:08]URL: /json_proto [08:51:08]Method is POST - this is cgi request [08:51:08]url: /json_proto [08:51:08]query_string will be loaded in cgi processing [08:51:08]execute_cgi json_proto POST (null) [08:51:08]execute_cgi path=json_proto method=POST [08:51:08]POST find Content-Length [08:51:08]Host: 172.17.44.67:8080 [08:51:08]Content-Length: 677 [08:51:08]Content-Type: application/json [08:51:08] [08:51:08]POST finish read [08:51:08]Found Content-Length = 677 [08:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:08]execute_script... [08:51: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)918806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:08]POST & json_proto [08:51:08]process_json_proto [08:51:08]json parsed OK: [08:51:08]protocol is kg_v1.0 [08:51:08]action value=close_receipt [08:51:08]process_action close_receipt [08:51:08]cmd_close_receipt [08:51:08]MH_GetDate [08:51:08]Write to MH i2c: F0 00 00 1A 06 0F [08:51:08]Write i2c OK [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: F0 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: F0 09 00 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: F0 09 00 1A 06 00 7F 21 12 67 F1 C7 6B 64 B8 [08:51:08]GetLastDocTimeStamp 1729241397 [08:51:08]current date 1729241471 [08:51:08]FM_GetShiftState [08:51:08]SAM_PROTO_GetShiftState [08:51:08]wFMCommunicate request_size=4 [08:51:08]MH_SAM_APDU [08:51:08]CAPDU: 80 13 01 00 [08:51:08]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [08:51:08]Write i2c OK [08:51:08]MH_I2C_Read... [08:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:08]Read from MH i2c: E2 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 0E 00 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 70 [08:51:08]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:51:08]wFMCommunicate OK [08:51:08]SAM_PROTO_GetShiftState done [08:51:08]FM_GetShiftState done [08:51:08]opened in 1729212319 [08:51:08]opened+sec_in_day 1729298719 [08:51:08]quantity*price = 50041 [08:51:08]sum+1 = 50042 [08:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 16 18.10.2024 08:51 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82307 ФПД: 115709339646120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085111&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82307&fm=115709339646120&tin=02508201610067®Number=0000000000091680&sum=50000 [08:51:09]StoreToDocumentArchive [08:51:09]shift 526 fd 82307 [08:51:09]save to /storage/0526/doc_00082307 [08:51:09]save last doc name /storage/0526/doc_00082307 to /storage/kkm_last_doc_name [08:51:09]save OK [08:51:09]Clear old archive folders... [08:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:09]tlvbuf is 00C28B30 [08:51:09]SAM_PROTO_ClearQueue [08:51:09]wFMCommunicate request_size=4 [08:51:09]MH_SAM_APDU [08:51:09]CAPDU: 80 09 00 00 [08:51:09]Write to MH i2c: E2 08 00 28 06 80 09 00 00 00 00 00 00 A0 [08:51:09]Write i2c OK [08:51:09]MH_I2C_Read... [08:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:09]Read from MH i2c: E2 [08:51:09]MH_I2C_Read... [08:51:09]Read from MH i2c: E2 03 00 [08:51:09]MH_I2C_Read... [08:51:09]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [08:51:09]RAPDU: 90 00 [08:51:09]wFMCommunicate OK [08:51:09]SAM_PROTO_ClearQueue done [08:51:09]KKMCreateOFDPacket [08:51:09]OFDProtocolAddRootSTLVToBuf [08:51:09]FM_MakeSignedData [08:51:09]FM_MakeSignedData [08:51:09]SAM_PROTO_SignData [08:51:09]wFMCommunicate request_size=4 [08:51:09]MH_SAM_APDU [08:51:09]CAPDU: 80 0D 01 02 [08:51:09]Write to MH i2c: E2 08 00 29 06 80 0D 01 02 00 00 00 00 A8 [08:51:09]Write i2c OK [08:51:09]MH_I2C_Read... [08:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:09]Read from MH i2c: E2 [08:51:09]MH_I2C_Read... [08:51:09]Read from MH i2c: E2 03 00 [08:51:09]MH_I2C_Read... [08:51:09]Read from MH i2c: E2 03 00 29 06 00 90 00 A3 [08:51:09]RAPDU: 90 00 [08:51:09]wFMCommunicate OK [08:51:09]wFMCommunicate request_size=255 [08:51:09]MH_SAM_APDU [08:51: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7F 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 41 01 00 35 04 06 00 69 [08:51:09]Write to MH i2c: E2 02 01 2A 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7F 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 41 01 00 35 04 06 00 69 00 00 9B [08:51:09]Write i2c OK [08:51:09]MH_I2C_Read... [08:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:09]Read from MH i2c: E2 [08:51:09]MH_I2C_Read... [08:51:09]Read from MH i2c: E2 03 00 [08:51:09]MH_I2C_Read... [08:51:09]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [08:51:09]RAPDU: 90 00 [08:51:09]wFMCommunicate OK [08:51:09]wFMCommunicate request_size=10 [08:51:09]MH_SAM_APDU [08:51:09]CAPDU: 80 0D 02 02 05 3C AE 16 38 A8 [08:51:09]Write to MH i2c: E2 0D 00 2B 06 80 0D 02 02 05 00 3C AE 16 38 A8 00 00 95 [08:51:10]Write i2c OK [08:51:10]MH_I2C_Read... [08:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:10]Read from MH i2c: E2 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: E2 03 00 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [08:51:10]RAPDU: 90 00 [08:51:10]wFMCommunicate OK [08:51:10]wFMCommunicate request_size=4 [08:51:10]MH_SAM_APDU [08:51:10]CAPDU: 80 0D 03 02 [08:51:10]Write to MH i2c: E2 08 00 2C 06 80 0D 03 02 00 00 00 00 AD [08:51:10]Write i2c OK [08:51:10]MH_I2C_Read... [08:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:10]Read from MH i2c: E2 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: E2 0B 00 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: E2 0B 00 2C 06 00 13 43 9A E3 C4 C6 56 1F 90 00 80 [08:51:10]RAPDU: 13 43 9A E3 C4 C6 56 1F 90 00 [08:51:10]wFMCommunicate OK [08:51:10]SAM_PROTO_SignData done [08:51:10]FM_MakeSignedData done [08:51:10]CreateOFDProtocolMessage [08:51:10]wFMCommunicate request_size=4 [08:51:10]MH_SAM_APDU [08:51:10]CAPDU: 80 11 00 00 [08:51:10]Write to MH i2c: E2 08 00 2D 06 80 11 00 00 00 00 00 00 AD [08:51:10]Write i2c OK [08:51:10]MH_I2C_Read... [08:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:10]Read from MH i2c: E2 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: E2 17 00 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: E2 17 00 2D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FF [08:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:51:10]wFMCommunicate OK [08:51:10]CreateOFDProtocolMessage done [08:51:10]OFDSenderStorePacket 82307 [08:51:10]StoreOFDPacket docnum=82307 [08:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B2 52 07 01 D1 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7F 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 41 01 00 35 04 06 00 69 3C AE 16 38 A8 13 43 9A E3 C4 C6 56 1F [08:51:10]CheckFolder [08:51:10]dirname=/storage/ofd_packets [08:51:10]CheckFolder done [08:51:10]ProducePacketName [08:51:10]name=ofd_packets/00082307 [08:51:10]NVStorageSaveData ofd_packets/00082307 [08:51:10]File name is /storage/ofd_packets/00082307 [08:51:10]Write 301 bytes [08:51:10]NVStorageSaveData done [08:51:10]OFDSenderStorePacket done [08:51:10]KKMCreateOFDPacket done [08:51:10]NVStorageSaveData kkm_last_timestamp [08:51:10]File name is /storage/kkm_last_timestamp [08:51:10]Write 4 bytes [08:51:10]NVStorageSaveData done [08:51:10]ExternCall_PrintAddStr [08:51:10]wPrintStart [08:51:10]Write to MH i2c: 01 00 00 2E 06 34 [08:51:10]Write i2c OK [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: 01 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: 01 07 00 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 FF 0F 49 [08:51:10]RasterBufferAndPrint [08:51:10]line Счет N : (1)918806 [08:51:10]line ИНН: 02508201610067 [08:51:10]line Контрольно-Кассовый Чек [08:51:10]line ПРОДАЖА [08:51:10]line ТРК (МРК, ГНК) : 22 [08:51:10]line Товар: 2710124130 [08:51:10]line Аи-92-К-4 [08:51:10]line 7.480 * 66.90 [08:51:10]line = 500.41 [08:51:10]line НДС 12% НСП 1% [08:51:10]line > о реализуемом товаре [08:51:10]line ОКРУГЛЕНИЕ: -0.41 [08:51:10]line ИТОГО: 500.00 [08:51:10]line Внесено: 500.00 [08:51:10]line СДАЧА: 0.00 [08:51:10]line НСП 1% : 4.43 [08:51:10]line НДС 12% : 53.14 [08:51:10]line Наличными: 500.00 [08:51:10]line Безнал.: 0.00 [08:51:10]line Место: АЗС № 114 "Партнер Нефть" [08:51:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:51:10]line СНО: Общий режим [08:51:10]line Чек 16 18.10.2024 08:51 [08:51:10]line Смена: 526 ФФД: 1.0 [08:51:10]line ЗНМ: 0300000086 [08:51:10]line РНМ: 0000000000091680 [08:51:10]line Версия ККМ: 001 [08:51:10]line ФМ: 0000000000871843 [08:51:10]line ФД: 82307 [08:51:10]line ФПД: 115709339646120 [08:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085111&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82307&fm=115709339646120&tin=02508201610067®Number=0000000000091680&sum=50000 [08:51:10]written 0, free lines is 4095 [08:51:10]OFD Sender: Processing packet 82307 [packets to send 254, broken 253] [08:51:10]ProducePacketName [08:51:10]name=ofd_packets/00082307 [08:51:10]OFD Sender: To server: pG, [08:51:10]CommunicateWithHost lk.salyk.kg:30040 [08:51:10]ConnectInit lk.salyk.kg [08:51:10]Write to MH i2c: 01 00 00 59 06 5F [08:51:10]Write i2c OK [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: 01 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: 01 07 00 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: 01 07 00 59 06 00 00 00 00 00 DC 0C 4E [08:51:10]RasterBufferAndPrint [08:51:10]line [08:51:10]line [08:51:10]line [08:51:10]line [08:51:10]line [08:51:10]written 0, free lines is 3298 [08:51:10]MH_Cut [08:51:10]Write to MH i2c: D1 01 00 60 06 01 38 [08:51:10]Write i2c OK [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: D1 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: D1 01 00 [08:51:10]MH_I2C_Read... [08:51:10]Read from MH i2c: D1 01 00 60 06 00 37 [08:51:10]Write to MH i2c: 01 00 00 61 06 67 [08:51:10]Write i2c OK [08:51:10]MH_I2C_Read... [08:51:11]*** Cut start [08:51:11]*** Partial cut [08:51:11]*** CUTSNS_PIN = 1 [08:51:11]*** CUTSNS_PIN = 0 [08:51:11]Connected sock=10 [08:51:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B2 52 07 01 D1 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7F 21 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 41 01 00 35 04 06 00 69 3C AE 16 38 A8 13 43 9A E3 C4 C6 56 1F [08:51:11]*** Brake cut motor [08:51:12]Read from MH i2c: 01 [08:51:12]MH_I2C_Read... [08:51:12]*** Stop cut motor [08:51:12]*** Cut end [08:51:12]Read from MH i2c: 01 07 00 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [08:51:12]process_action close_receipt done [08:51:12]requested_data is exist [08:51:12]produce_requested_data [08:51:12]requested_item fm.sn is exist - process it [08:51:12]wFMCommunicate request_size=4 [08:51:12]MH_SAM_APDU [08:51:12]CAPDU: 80 11 00 00 [08:51:12]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [08:51:12]Write i2c OK [08:51:12]MH_I2C_Read... [08:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:12]Read from MH i2c: E2 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 17 00 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 34 [08:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:51:12]wFMCommunicate OK [08:51:12]requested_item fd.num is exist - process it [08:51:12]SAM_PROTO_GetFieldsCounters [08:51:12]wFMCommunicate request_size=4 [08:51:12]MH_SAM_APDU [08:51:12]CAPDU: 80 13 00 00 [08:51:12]Write to MH i2c: E2 08 00 63 06 80 13 00 00 00 00 00 00 E5 [08:51:12]Write i2c OK [08:51:12]MH_I2C_Read... [08:51:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:12]Read from MH i2c: E2 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 62 00 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 62 00 63 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 83 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [08:51:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 83 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:12]wFMCommunicate OK [08:51:12]SAM_PROTO_GetFieldsCounters done [08:51:12]requested_item shift.num is exist - process it [08:51:12]requested_item shift.opened is exist - process it [08:51:12]req_shift_opened [08:51:12]FM_GetShiftState [08:51:12]SAM_PROTO_GetShiftState [08:51:12]wFMCommunicate request_size=4 [08:51:12]MH_SAM_APDU [08:51:12]CAPDU: 80 13 01 00 [08:51:12]Write to MH i2c: E2 08 00 64 06 80 13 01 00 00 00 00 00 E7 [08:51:12]Write i2c OK [08:51:12]MH_I2C_Read... [08:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:12]Read from MH i2c: E2 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 0E 00 [08:51:12]MH_I2C_Read... [08:51:12]Read from MH i2c: E2 0E 00 64 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B9 [08:51:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:51:12]wFMCommunicate OK [08:51:12]SAM_PROTO_GetShiftState done [08:51:12]FM_GetShiftState done [08:51:12]req_shift_opened done [08:51:12]requested_item shift.open_date is exist - process it [08:51:12]req_shift_open_date [08:51:12]req_shift_open_date done [08:51:12]produce_requested_data done [08:51:12]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82307,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [08:51:12]process_action_free close_receipt [08:51:12]json_value_free [08:51:12]json_value_free done [08:51:12]process_json_proto returns [08:51:12]Send response to host [08:51:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82307,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [08:51:12]free response buf [08:51:12]execute_script done [08:51:12]execute_script returns [08:51:12]free content buf [08:51:12]Sock 9.Close socket [08:51:12]Sock 9.Thread stoped [08:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 72 3D 47 00 7E 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 83 41 01 00 F4 03 04 00 BB C6 11 67 B6 04 01 00 00 29 A0 0D 48 92 B2 E7 9C [08:51:12]CommunicateWithHost err = 0 [08:51:12]CheckOFDResponse [08:51:12]1017 (14) - 77093643461234 [08:51:12]1041 (16) - 0000000000871843 [08:51:12]1040 (4) - 82307 [08:51:12]1012 (4) - 18.10.2024 02:23 [08:51:12]1206 (1) - 0 [08:51:12]OFD Sender: Remove packet 82307 [08:51:12]ProducePacketName [08:51:12]name=ofd_packets/00082307 [08:51:12]NVStorageDeleteData [08:51:13]OFD Sender: No OFD packet to send [08:51:17]recv_with_timeout no data received [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:27]recv_with_timeout no data received [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:09]accept exits with 8 [08:55:09]New connection [08:55:09]New thread 3067297124 created [08:55:09]Thread 3067440484 joined [08:55:09]Waiting for new connection... [08:55:09] Sock 8.Parse request [08:55:09]Sock 8.Check first char [08:55:09]Sock 8.First char is OK [08:55:09]request: POST /json_proto HTTP/1.0 [08:55:09]Method: POST [08:55:09]URL: /json_proto [08:55:09]Method is POST - this is cgi request [08:55:09]url: /json_proto [08:55:09]query_string will be loaded in cgi processing [08:55:09]execute_cgi json_proto POST (null) [08:55:09]execute_cgi path=json_proto method=POST [08:55:09]POST find Content-Length [08:55:09]Host: 172.17.44.67:8080 [08:55:09]Content-Length: 769 [08:55:09]Content-Type: application/json [08:55:09] [08:55:09]POST finish read [08:55:09]Found Content-Length = 769 [08:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:09]execute_script... [08:55: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)918807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:09]POST & json_proto [08:55:09]process_json_proto [08:55:09]json parsed OK: [08:55:09]protocol is kg_v1.0 [08:55:09]action value=close_receipt [08:55:09]process_action close_receipt [08:55:09]cmd_close_receipt [08:55:09]MH_GetDate [08:55:09]Write to MH i2c: F0 00 00 65 06 5A [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: F0 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: F0 09 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: F0 09 00 65 06 00 6F 22 12 67 F1 C7 6B 64 F4 [08:55:09]GetLastDocTimeStamp 1729241471 [08:55:09]current date 1729241711 [08:55:09]FM_GetShiftState [08:55:09]SAM_PROTO_GetShiftState [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 01 00 [08:55:09]Write to MH i2c: E2 08 00 66 06 80 13 01 00 00 00 00 00 E9 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 66 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 BB [08:55:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetShiftState done [08:55:09]FM_GetShiftState done [08:55:09]opened in 1729212319 [08:55:09]opened+sec_in_day 1729298719 [08:55:09]quantity*price = 100015 [08:55:09]sum+1 = 100017 [08:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 17 18.10.2024 08:55 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82308 ФПД: 77022805962829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085512&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82308&fm=77022805962829&tin=02508201610067®Number=0000000000091680&sum=100016 [08:55:10]StoreToDocumentArchive [08:55:10]shift 526 fd 82308 [08:55:10]save to /storage/0526/doc_00082308 [08:55:10]save last doc name /storage/0526/doc_00082308 to /storage/kkm_last_doc_name [08:55:10]save OK [08:55:10]Clear old archive folders... [08:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:10]tlvbuf is 00C26BD0 [08:55:10]SAM_PROTO_ClearQueue [08:55:10]wFMCommunicate request_size=4 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 09 00 00 [08:55:10]Write to MH i2c: E2 08 00 73 06 80 09 00 00 00 00 00 00 EB [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [08:55:10]RAPDU: 90 00 [08:55:10]wFMCommunicate OK [08:55:10]SAM_PROTO_ClearQueue done [08:55:10]KKMCreateOFDPacket [08:55:10]OFDProtocolAddRootSTLVToBuf [08:55:10]FM_MakeSignedData [08:55:10]FM_MakeSignedData [08:55:10]SAM_PROTO_SignData [08:55:10]wFMCommunicate request_size=4 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 0D 01 02 [08:55:10]Write to MH i2c: E2 08 00 74 06 80 0D 01 02 00 00 00 00 F3 [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [08:55:10]RAPDU: 90 00 [08:55:10]wFMCommunicate OK [08:55:10]wFMCommunicate request_size=255 [08:55:10]MH_SAM_APDU [08:55: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 70 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 41 01 00 35 04 06 00 46 [08:55:10]Write to MH i2c: E2 02 01 75 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 70 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 41 01 00 35 04 06 00 46 00 00 D1 [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [08:55:10]RAPDU: 90 00 [08:55:10]wFMCommunicate OK [08:55:10]wFMCommunicate request_size=10 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 0D 02 02 05 0D 44 FD 30 4D [08:55:10]Write to MH i2c: E2 0D 00 76 06 80 0D 02 02 05 00 0D 44 FD 30 4D 00 00 CB [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [08:55:10]RAPDU: 90 00 [08:55:10]wFMCommunicate OK [08:55:10]wFMCommunicate request_size=4 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 0D 03 02 [08:55:10]Write to MH i2c: E2 08 00 77 06 80 0D 03 02 00 00 00 00 F8 [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 0B 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 0B 00 77 06 00 C6 BC 43 58 99 34 1D 00 90 00 00 [08:55:10]RAPDU: C6 BC 43 58 99 34 1D 00 90 00 [08:55:10]wFMCommunicate OK [08:55:10]SAM_PROTO_SignData done [08:55:10]FM_MakeSignedData done [08:55:10]CreateOFDProtocolMessage [08:55:10]wFMCommunicate request_size=4 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 11 00 00 [08:55:10]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 17 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4A [08:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:55:10]wFMCommunicate OK [08:55:10]CreateOFDProtocolMessage done [08:55:10]OFDSenderStorePacket 82308 [08:55:10]StoreOFDPacket docnum=82308 [08:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 00 5D 07 01 93 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 70 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 41 01 00 35 04 06 00 46 0D 44 FD 30 4D C6 BC 43 58 99 34 1D 00 [08:55:10]CheckFolder [08:55:10]dirname=/storage/ofd_packets [08:55:10]CheckFolder done [08:55:10]ProducePacketName [08:55:10]name=ofd_packets/00082308 [08:55:10]NVStorageSaveData ofd_packets/00082308 [08:55:10]File name is /storage/ofd_packets/00082308 [08:55:10]Write 301 bytes [08:55:10]NVStorageSaveData done [08:55:10]OFDSenderStorePacket done [08:55:10]KKMCreateOFDPacket done [08:55:10]NVStorageSaveData kkm_last_timestamp [08:55:10]File name is /storage/kkm_last_timestamp [08:55:10]Write 4 bytes [08:55:10]NVStorageSaveData done [08:55:10]ExternCall_PrintAddStr [08:55:10]wPrintStart [08:55:10]Write to MH i2c: 01 00 00 79 06 7F [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: 01 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: 01 07 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [08:55:10]RasterBufferAndPrint [08:55:10]line Счет N : (1)918807 [08:55:10]line ИНН: 02508201610067 [08:55:10]line Контрольно-Кассовый Чек [08:55:10]line ПРОДАЖА [08:55:10]line ТРК (МРК, ГНК) : 22 [08:55:10]line Товар: 2710124130 [08:55:10]line Аи-92-К-4 [08:55:10]line 14.950 * 66.90 [08:55:10]line = 1000.16 [08:55:10]line НДС 12% НСП 1% [08:55:10]line > о реализуемом товаре [08:55:10]line ИТОГО: 1000.16 [08:55:10]line НСП 1% : 8.85 [08:55:10]line НДС 12% : 106.21 [08:55:10]line Наличными: 0.00 [08:55:10]line Безнал.: 1000.16 [08:55:10]line Место: АЗС № 114 "Партнер Нефть" [08:55:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:55:10]line СНО: Общий режим [08:55:10]line Чек 17 18.10.2024 08:55 [08:55:10]line Смена: 526 ФФД: 1.0 [08:55:10]line ЗНМ: 0300000086 [08:55:10]line РНМ: 0000000000091680 [08:55:10]line Версия ККМ: 001 [08:55:10]line Платежная система: Mbank [08:55:10]line ФМ: 0000000000871843 [08:55:10]line ФД: 82308 [08:55:10]line ФПД: 77022805962829 [08:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085512&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82308&fm=77022805962829&tin=02508201610067®Number=0000000000091680&sum=100016 [08:55:10]written 0, free lines is 4095 [08:55:10]OFD Sender: Processing packet 82308 [packets to send 254, broken 253] [08:55:10]ProducePacketName [08:55:10]name=ofd_packets/00082308 [08:55:10]OFD Sender: To server: pG, [08:55:10]CommunicateWithHost lk.salyk.kg:30040 [08:55:10]ConnectInit lk.salyk.kg [08:55:11]Connected sock=10 [08:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 00 5D 07 01 93 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 70 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 41 01 00 35 04 06 00 46 0D 44 FD 30 4D C6 BC 43 58 99 34 1D 00 [08:55:11]Write to MH i2c: 01 00 00 A2 06 A8 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 07 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 07 00 A2 06 00 00 00 00 00 0C 0D C8 [08:55:11]RasterBufferAndPrint [08:55:11]line [08:55:11]line [08:55:11]line [08:55:11]line [08:55:11]line [08:55:11]written 0, free lines is 3347 [08:55:11]MH_Cut [08:55:11]Write to MH i2c: D1 01 00 A9 06 01 81 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: D1 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: D1 01 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: D1 01 00 A9 06 00 80 [08:55:11]Write to MH i2c: 01 00 00 AA 06 B0 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5C 19 47 00 86 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 84 41 01 00 F4 03 04 00 AB C7 11 67 B6 04 01 00 00 4E 47 00 FA 83 77 4F 1E [08:55:11]CommunicateWithHost err = 0 [08:55:11]CheckOFDResponse [08:55:11]1017 (14) - 77093643461234 [08:55:11]1041 (16) - 0000000000871843 [08:55:11]1040 (4) - 82308 [08:55:11]1012 (4) - 18.10.2024 02:27 [08:55:11]1206 (1) - 0 [08:55:11]OFD Sender: Remove packet 82308 [08:55:11]ProducePacketName [08:55:11]name=ofd_packets/00082308 [08:55:11]NVStorageDeleteData [08:55:12]*** Cut start [08:55:12]*** Partial cut [08:55:12]*** CUTSNS_PIN = 1 [08:55:12]*** CUTSNS_PIN = 0 [08:55:12]OFD Sender: No OFD packet to send [08:55:12]*** Brake cut motor [08:55:12]Read from MH i2c: 01 [08:55:12]MH_I2C_Read... [08:55:12]*** Stop cut motor [08:55:12]*** Cut end [08:55:12]Read from MH i2c: 01 07 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 AA 06 00 00 00 00 00 FF 0F C5 [08:55:12]process_action close_receipt done [08:55:12]requested_data is exist [08:55:12]produce_requested_data [08:55:12]requested_item fm.sn is exist - process it [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 11 00 00 [08:55:12]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7D [08:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:55:12]wFMCommunicate OK [08:55:12]requested_item fd.num is exist - process it [08:55:12]SAM_PROTO_GetFieldsCounters [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 13 00 00 [08:55:12]Write to MH i2c: E2 08 00 AC 06 80 13 00 00 00 00 00 00 2E [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 62 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 62 00 AC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 84 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [08:55:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 84 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_GetFieldsCounters done [08:55:12]requested_item shift.num is exist - process it [08:55:12]requested_item shift.opened is exist - process it [08:55:12]req_shift_opened [08:55:12]FM_GetShiftState [08:55:12]SAM_PROTO_GetShiftState [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 13 01 00 [08:55:12]Write to MH i2c: E2 08 00 AD 06 80 13 01 00 00 00 00 00 30 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0E 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0E 00 AD 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 02 [08:55:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_GetShiftState done [08:55:12]FM_GetShiftState done [08:55:12]req_shift_opened done [08:55:12]requested_item shift.open_date is exist - process it [08:55:12]req_shift_open_date [08:55:12]req_shift_open_date done [08:55:12]produce_requested_data done [08:55:12]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82308,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [08:55:12]process_action_free close_receipt [08:55:12]json_value_free [08:55:12]json_value_free done [08:55:12]process_json_proto returns [08:55:12]Send response to host [08:55:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82308,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [08:55:12]free response buf [08:55:12]execute_script done [08:55:12]execute_script returns [08:55:12]free content buf [08:55:12]Sock 8.Close socket [08:55:12]Sock 8.Thread stoped [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:35]recv_with_timeout no data received [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:15]accept exits with 9 [08:56:15]New connection [08:56:15]New thread 3067440484 created [08:56:15]Thread 3067297124 joined [08:56:15]Waiting for new connection... [08:56:15] Sock 9.Parse request [08:56:15]Sock 9.Check first char [08:56:15]Sock 9.First char is OK [08:56:15]request: POST /json_proto HTTP/1.0 [08:56:15]Method: POST [08:56:15]URL: /json_proto [08:56:15]Method is POST - this is cgi request [08:56:15]url: /json_proto [08:56:15]query_string will be loaded in cgi processing [08:56:15]execute_cgi json_proto POST (null) [08:56:15]execute_cgi path=json_proto method=POST [08:56:15]POST find Content-Length [08:56:15]Host: 172.17.44.67:8080 [08:56:15]Content-Length: 759 [08:56:15]Content-Type: application/json [08:56:15] [08:56:15]POST finish read [08:56:15]Found Content-Length = 759 [08:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087250", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:15]execute_script... [08:56: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)918808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087250", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:15]POST & json_proto [08:56:15]process_json_proto [08:56:15]json parsed OK: [08:56:15]protocol is kg_v1.0 [08:56:15]action value=close_receipt [08:56:15]process_action close_receipt [08:56:15]cmd_close_receipt [08:56:15]MH_GetDate [08:56:15]Write to MH i2c: F0 00 00 AE 06 A3 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: F0 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: F0 09 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: F0 09 00 AE 06 00 B2 22 12 67 F1 C7 6B 64 80 [08:56:15]GetLastDocTimeStamp 1729241712 [08:56:15]current date 1729241778 [08:56:15]FM_GetShiftState [08:56:15]SAM_PROTO_GetShiftState [08:56:15]wFMCommunicate request_size=4 [08:56:15]MH_SAM_APDU [08:56:15]CAPDU: 80 13 01 00 [08:56:15]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:15]Read from MH i2c: E2 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 0E 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 04 [08:56:15]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:56:15]wFMCommunicate OK [08:56:15]SAM_PROTO_GetShiftState done [08:56:15]FM_GetShiftState done [08:56:15]opened in 1729212319 [08:56:15]opened+sec_in_day 1729298719 [08:56:15]quantity*price = 0 [08:56:15]sum+1 = 1 [08:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 18 18.10.2024 08:56 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087250 ФМ: 0000000000871843 ФД: 82309 ФПД: 270370862965590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085618&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82309&fm=270370862965590&tin=02508201610067®Number=0000000000091680&sum=0 [08:56:16]StoreToDocumentArchive [08:56:16]shift 526 fd 82309 [08:56:16]save to /storage/0526/doc_00082309 [08:56:16]save last doc name /storage/0526/doc_00082309 to /storage/kkm_last_doc_name [08:56:16]save OK [08:56:16]Clear old archive folders... [08:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:56:16]tlvbuf is 00C26A90 [08:56:16]SAM_PROTO_ClearQueue [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 09 00 00 [08:56:16]Write to MH i2c: E2 08 00 BC 06 80 09 00 00 00 00 00 00 34 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [08:56:16]RAPDU: 90 00 [08:56:16]wFMCommunicate OK [08:56:16]SAM_PROTO_ClearQueue done [08:56:16]KKMCreateOFDPacket [08:56:16]OFDProtocolAddRootSTLVToBuf [08:56:16]FM_MakeSignedData [08:56:16]FM_MakeSignedData [08:56:16]SAM_PROTO_SignData [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 0D 01 02 [08:56:16]Write to MH i2c: E2 08 00 BD 06 80 0D 01 02 00 00 00 00 3C [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [08:56:16]RAPDU: 90 00 [08:56:16]wFMCommunicate OK [08:56:16]wFMCommunicate request_size=255 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 41 01 00 35 04 06 00 [08:56:16]Write to MH i2c: E2 02 01 BE 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 41 01 00 35 04 06 00 00 00 5F [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [08:56:16]RAPDU: 90 00 [08:56:16]wFMCommunicate OK [08:56:16]wFMCommunicate request_size=11 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 0D 02 02 06 F5 E6 9F 3E A3 56 [08:56:16]Write to MH i2c: E2 0E 00 BF 06 80 0D 02 02 06 00 F5 E6 9F 3E A3 56 00 00 FC [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 03 02 [08:56:17]Write to MH i2c: E2 08 00 C0 06 80 0D 03 02 00 00 00 00 41 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 0B 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 0B 00 C0 06 00 A9 55 73 98 26 4F 40 17 90 00 17 [08:56:17]RAPDU: A9 55 73 98 26 4F 40 17 90 00 [08:56:17]wFMCommunicate OK [08:56:17]SAM_PROTO_SignData done [08:56:17]FM_MakeSignedData done [08:56:17]CreateOFDProtocolMessage [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 11 00 00 [08:56:17]Write to MH i2c: E2 08 00 C1 06 80 11 00 00 00 00 00 00 41 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 17 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 17 00 C1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 93 [08:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:56:17]wFMCommunicate OK [08:56:17]CreateOFDProtocolMessage done [08:56:17]OFDSenderStorePacket 82309 [08:56:17]StoreOFDPacket docnum=82309 [08:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 0D F4 08 01 E4 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 41 01 00 35 04 06 00 F5 E6 9F 3E A3 56 A9 55 73 98 26 4F 40 17 [08:56:17]CheckFolder [08:56:17]dirname=/storage/ofd_packets [08:56:17]CheckFolder done [08:56:17]ProducePacketName [08:56:17]name=ofd_packets/00082309 [08:56:17]NVStorageSaveData ofd_packets/00082309 [08:56:17]File name is /storage/ofd_packets/00082309 [08:56:17]Write 302 bytes [08:56:17]NVStorageSaveData done [08:56:17]OFDSenderStorePacket done [08:56:17]KKMCreateOFDPacket done [08:56:17]NVStorageSaveData kkm_last_timestamp [08:56:17]File name is /storage/kkm_last_timestamp [08:56:17]Write 4 bytes [08:56:17]NVStorageSaveData done [08:56:17]ExternCall_PrintAddStr [08:56:17]wPrintStart [08:56:17]Write to MH i2c: 01 00 00 C2 06 C8 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 FF 0F DD [08:56:17]RasterBufferAndPrint [08:56:17]line Счет N : (1)918808 [08:56:17]line ИНН: 02508201610067 [08:56:17]line Контрольно-Кассовый Чек [08:56:17]line ПРОДАЖА [08:56:17]line ТРК (МРК, ГНК) : 31 [08:56:17]line Товар: 2710194210 [08:56:17]line ДТ(л)-К-5 [08:56:17]line 17.000 * 0.00 [08:56:17]line = 0.00 [08:56:17]line НДС 12% НСП 1% [08:56:17]line > о реализуемом товаре [08:56:17]line ИТОГО: 0.00 [08:56:17]line НСП 1% : 0.00 [08:56:17]line НДС 12% : 0.00 [08:56:17]line Наличными: 0.00 [08:56:17]line Безнал.: 0.00 [08:56:17]line Место: АЗС № 114 "Партнер Нефть" [08:56:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:56:17]line СНО: Общий режим [08:56:17]line Чек 18 18.10.2024 08:56 [08:56:17]line Смена: 526 ФФД: 1.0 [08:56:17]line ЗНМ: 0300000086 [08:56:17]line РНМ: 0000000000091680 [08:56:17]line Версия ККМ: 001 [08:56:17]line Талоны: ТК ГПНА Online [08:56:17]line 30087250 [08:56:17]line ФМ: 0000000000871843 [08:56:17]line ФД: 82309 [08:56:17]line ФПД: 270370862965590 [08:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085618&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82309&fm=270370862965590&tin=02508201610067®Number=0000000000091680&sum=0 [08:56:17]written 0, free lines is 4095 [08:56:17]OFD Sender: Processing packet 82309 [packets to send 254, broken 253] [08:56:17]ProducePacketName [08:56:17]name=ofd_packets/00082309 [08:56:17]OFD Sender: To server: pG, [08:56:17]CommunicateWithHost lk.salyk.kg:30040 [08:56:17]ConnectInit lk.salyk.kg [08:56:17]Write to MH i2c: 01 00 00 EC 06 F2 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 E9 0C EE [08:56:17]RasterBufferAndPrint [08:56:17]line [08:56:17]line [08:56:17]line [08:56:17]line [08:56:17]line [08:56:17]written 0, free lines is 3312 [08:56:17]MH_Cut [08:56:17]Write to MH i2c: D1 01 00 F3 06 01 CB [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]Connected sock=8 [08:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 0D F4 08 01 E4 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B2 22 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 41 01 00 35 04 06 00 F5 E6 9F 3E A3 56 A9 55 73 98 26 4F 40 17 [08:56:17]Read from MH i2c: D1 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: D1 01 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: D1 01 00 F3 06 00 CA [08:56:17]Write to MH i2c: 01 00 00 F4 06 FA [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 36 DA 47 00 A6 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 85 41 01 00 F4 03 04 00 ED C7 11 67 B6 04 01 00 00 4F DD 21 6F 3F DF 84 18 [08:56:18]CommunicateWithHost err = 0 [08:56:18]CheckOFDResponse [08:56:18]1017 (14) - 77093643461234 [08:56:18]1041 (16) - 0000000000871843 [08:56:18]1040 (4) - 82309 [08:56:18]1012 (4) - 18.10.2024 02:29 [08:56:18]1206 (1) - 0 [08:56:18]OFD Sender: Remove packet 82309 [08:56:18]ProducePacketName [08:56:18]name=ofd_packets/00082309 [08:56:18]NVStorageDeleteData [08:56:18]*** Cut start [08:56:18]*** Partial cut [08:56:18]*** CUTSNS_PIN = 1 [08:56:18]*** CUTSNS_PIN = 0 [08:56:18]OFD Sender: No OFD packet to send [08:56:18]*** Brake cut motor [08:56:18]Read from MH i2c: 01 [08:56:18]MH_I2C_Read... [08:56:18]*** Stop cut motor [08:56:19]*** Cut end [08:56:19]Read from MH i2c: 01 07 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 FF 0F 0F [08:56:19]process_action close_receipt done [08:56:19]requested_data is exist [08:56:19]produce_requested_data [08:56:19]requested_item fm.sn is exist - process it [08:56:19]wFMCommunicate request_size=4 [08:56:19]MH_SAM_APDU [08:56:19]CAPDU: 80 11 00 00 [08:56:19]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:19]Read from MH i2c: E2 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 17 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [08:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:56:19]wFMCommunicate OK [08:56:19]requested_item fd.num is exist - process it [08:56:19]SAM_PROTO_GetFieldsCounters [08:56:19]wFMCommunicate request_size=4 [08:56:19]MH_SAM_APDU [08:56:19]CAPDU: 80 13 00 00 [08:56:19]Write to MH i2c: E2 08 00 F6 06 80 13 00 00 00 00 00 00 78 [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:19]Read from MH i2c: E2 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 62 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 62 00 F6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 85 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [08:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 85 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:19]wFMCommunicate OK [08:56:19]SAM_PROTO_GetFieldsCounters done [08:56:19]requested_item shift.num is exist - process it [08:56:19]requested_item shift.opened is exist - process it [08:56:19]req_shift_opened [08:56:19]FM_GetShiftState [08:56:19]SAM_PROTO_GetShiftState [08:56:19]wFMCommunicate request_size=4 [08:56:19]MH_SAM_APDU [08:56:19]CAPDU: 80 13 01 00 [08:56:19]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:19]Read from MH i2c: E2 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 0E 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4C [08:56:19]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:56:19]wFMCommunicate OK [08:56:19]SAM_PROTO_GetShiftState done [08:56:19]FM_GetShiftState done [08:56:19]req_shift_opened done [08:56:19]requested_item shift.open_date is exist - process it [08:56:19]req_shift_open_date [08:56:19]req_shift_open_date done [08:56:19]produce_requested_data done [08:56:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82309,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [08:56:19]process_action_free close_receipt [08:56:19]json_value_free [08:56:19]json_value_free done [08:56:19]process_json_proto returns [08:56:19]Send response to host [08:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82309,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [08:56:19]free response buf [08:56:19]execute_script done [08:56:19]execute_script returns [08:56:19]free content buf [08:56:19]Sock 9.Close socket [08:56:19]Sock 9.Thread stoped [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:42]recv_with_timeout no data received [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:33]accept exits with 10 [08:57:33]New connection [08:57:33]New thread 3067297124 created [08:57:33]Thread 3067440484 joined [08:57:33]Waiting for new connection... [08:57:33] Sock 10.Parse request [08:57:33]Sock 10.Check first char [08:57:33]Sock 10.First char is OK [08:57:33]request: POST /json_proto HTTP/1.0 [08:57:33]Method: POST [08:57:33]URL: /json_proto [08:57:33]Method is POST - this is cgi request [08:57:33]url: /json_proto [08:57:33]query_string will be loaded in cgi processing [08:57:33]execute_cgi json_proto POST (null) [08:57:33]execute_cgi path=json_proto method=POST [08:57:33]POST find Content-Length [08:57:33]Host: 172.17.44.67:8080 [08:57:33]Content-Length: 806 [08:57:33]Content-Type: application/json [08:57:33] [08:57:33]POST finish read [08:57:33]Found Content-Length = 806 [08:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202672", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:33]execute_script... [08:57: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)918809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202672", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:33]POST & json_proto [08:57:33]process_json_proto [08:57:33]json parsed OK: [08:57:33]protocol is kg_v1.0 [08:57:33]action value=close_receipt [08:57:33]process_action close_receipt [08:57:33]cmd_close_receipt [08:57:33]MH_GetDate [08:57:33]Write to MH i2c: F0 00 00 F8 06 ED [08:57:33]Write i2c OK [08:57:33]MH_I2C_Read... [08:57:33]Read from MH i2c: F0 [08:57:33]MH_I2C_Read... [08:57:33]Read from MH i2c: F0 09 00 [08:57:33]MH_I2C_Read... [08:57:33]Read from MH i2c: F0 09 00 F8 06 00 00 23 12 67 F1 C7 6B 64 19 [08:57:33]GetLastDocTimeStamp 1729241778 [08:57:33]current date 1729241856 [08:57:33]FM_GetShiftState [08:57:33]SAM_PROTO_GetShiftState [08:57:33]wFMCommunicate request_size=4 [08:57:33]MH_SAM_APDU [08:57:33]CAPDU: 80 13 01 00 [08:57:33]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [08:57:33]Write i2c OK [08:57:33]MH_I2C_Read... [08:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 0E 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4E [08:57:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:57:34]wFMCommunicate OK [08:57:34]SAM_PROTO_GetShiftState done [08:57:34]FM_GetShiftState done [08:57:34]opened in 1729212319 [08:57:34]opened+sec_in_day 1729298719 [08:57:34]quantity*price = 0 [08:57:34]sum+1 = 1 [08:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 19 18.10.2024 08:57 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202672 ФМ: 0000000000871843 ФД: 82310 ФПД: 124005175575591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085736&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82310&fm=124005175575591&tin=02508201610067®Number=0000000000091680&sum=0 [08:57:35]StoreToDocumentArchive [08:57:35]shift 526 fd 82310 [08:57:35]save to /storage/0526/doc_00082310 [08:57:35]save last doc name /storage/0526/doc_00082310 to /storage/kkm_last_doc_name [08:57:35]save OK [08:57:35]Clear old archive folders... [08:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:57:35]tlvbuf is 00B1F660 [08:57:35]SAM_PROTO_ClearQueue [08:57:35]wFMCommunicate request_size=4 [08:57:35]MH_SAM_APDU [08:57:35]CAPDU: 80 09 00 00 [08:57:35]Write to MH i2c: E2 08 00 06 07 80 09 00 00 00 00 00 00 7F [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:35]Read from MH i2c: E2 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [08:57:35]RAPDU: 90 00 [08:57:35]wFMCommunicate OK [08:57:35]SAM_PROTO_ClearQueue done [08:57:35]KKMCreateOFDPacket [08:57:35]OFDProtocolAddRootSTLVToBuf [08:57:35]FM_MakeSignedData [08:57:35]FM_MakeSignedData [08:57:35]SAM_PROTO_SignData [08:57:35]wFMCommunicate request_size=4 [08:57:35]MH_SAM_APDU [08:57:35]CAPDU: 80 0D 01 02 [08:57:35]Write to MH i2c: E2 08 00 07 07 80 0D 01 02 00 00 00 00 87 [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:35]Read from MH i2c: E2 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [08:57:35]RAPDU: 90 00 [08:57:35]wFMCommunicate OK [08:57:35]wFMCommunicate request_size=255 [08:57:35]MH_SAM_APDU [08:57:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 00 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 41 01 [08:57:35]Write to MH i2c: E2 02 01 08 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 00 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 41 01 00 00 B1 [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:35]Read from MH i2c: E2 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [08:57:35]RAPDU: 90 00 [08:57:35]wFMCommunicate OK [08:57:35]wFMCommunicate request_size=16 [08:57:35]MH_SAM_APDU [08:57:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 70 C8 34 70 C4 27 [08:57:35]Write to MH i2c: E2 13 00 09 07 80 0D 02 02 0B 00 00 35 04 06 00 70 C8 34 70 C4 27 00 00 A6 [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:35]Read from MH i2c: E2 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [08:57:35]RAPDU: 90 00 [08:57:35]wFMCommunicate OK [08:57:35]wFMCommunicate request_size=4 [08:57:35]MH_SAM_APDU [08:57:35]CAPDU: 80 0D 03 02 [08:57:35]Write to MH i2c: E2 08 00 0A 07 80 0D 03 02 00 00 00 00 8C [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:35]Read from MH i2c: E2 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 0B 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 0B 00 0A 07 00 E0 27 AE 3B 00 08 D3 16 90 00 6E [08:57:35]RAPDU: E0 27 AE 3B 00 08 D3 16 90 00 [08:57:35]wFMCommunicate OK [08:57:35]SAM_PROTO_SignData done [08:57:35]FM_MakeSignedData done [08:57:35]CreateOFDProtocolMessage [08:57:35]wFMCommunicate request_size=4 [08:57:35]MH_SAM_APDU [08:57:35]CAPDU: 80 11 00 00 [08:57:35]Write to MH i2c: E2 08 00 0B 07 80 11 00 00 00 00 00 00 8C [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:35]Read from MH i2c: E2 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 17 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: E2 17 00 0B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DE [08:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:57:35]wFMCommunicate OK [08:57:35]CreateOFDProtocolMessage done [08:57:35]OFDSenderStorePacket 82310 [08:57:35]StoreOFDPacket docnum=82310 [08:57:38]1017 (14) - 77093643461234 [08:57:38]1041 (16) - 0000000000871843 [08:57:38]1040 (4) - 82310 [08:57:38]1012 (4) - 18.10.2024 02:30 [08:57:38]1206 (1) - 0 [08:57:38]OFD Sender: Remove packet 82310 [08:57:38]ProducePacketName [08:57:38]name=ofd_packets/00082310 [08:57:38]NVStorageDeleteData [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:46]recv_with_timeout no data received [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:57]recv_with_timeout no data received [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:15]recv_with_timeout no data received [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:28]recv_with_timeout no data received [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:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 84 28 0D 01 99 BF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 00 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 41 01 00 35 04 06 00 70 C8 34 70 C4 27 E0 27 AE 3B 00 08 D3 16 [08:57:35]CheckFolder [08:57:35]dirname=/storage/ofd_packets [08:57:35]CheckFolder done [08:57:35]ProducePacketName [08:57:35]name=ofd_packets/00082310 [08:57:35]NVStorageSaveData ofd_packets/00082310 [08:57:35]File name is /storage/ofd_packets/00082310 [08:57:35]Write 307 bytes [08:57:35]NVStorageSaveData done [08:57:35]OFDSenderStorePacket done [08:57:35]KKMCreateOFDPacket done [08:57:35]NVStorageSaveData kkm_last_timestamp [08:57:35]File name is /storage/kkm_last_timestamp [08:57:35]Write 4 bytes [08:57:35]NVStorageSaveData done [08:57:35]ExternCall_PrintAddStr [08:57:35]wPrintStart [08:57:35]Write to MH i2c: 01 00 00 0C 07 13 [08:57:35]Write i2c OK [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: 01 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: 01 07 00 [08:57:35]MH_I2C_Read... [08:57:35]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 FF 0F 28 [08:57:35]RasterBufferAndPrint [08:57:35]line Счет N : (1)918809 [08:57:35]line ИНН: 02508201610067 [08:57:35]line Контрольно-Кассовый Чек [08:57:35]line ПРОДАЖА [08:57:35]line ТРК (МРК, ГНК) : 21 [08:57:35]line Товар: 2710194800 [08:57:35]line D-Energy ДТ-К-2 [08:57:35]line 20.000 * 0.00 [08:57:35]line = 0.00 [08:57:35]line НДС 12% НСП 1% [08:57:35]line > о реализуемом товаре [08:57:35]line ИТОГО: 0.00 [08:57:35]line НСП 1% : 0.00 [08:57:35]line НДС 12% : 0.00 [08:57:35]line Наличными: 0.00 [08:57:35]line Безнал.: 0.00 [08:57:35]line Место: АЗС № 114 "Партнер Нефть" [08:57:35]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [08:57:35]line СНО: Общий режим [08:57:35]line Чек 19 18.10.2024 08:57 [08:57:35]line Смена: 526 ФФД: 1.0 [08:57:35]line ЗНМ: 0300000086 [08:57:35]line РНМ: 0000000000091680 [08:57:35]line Версия ККМ: 001 [08:57:35]line Талоны: Топливные Талоны [08:57:35]line 2202672 [08:57:35]line ФМ: 0000000000871843 [08:57:35]line ФД: 82310 [08:57:35]line ФПД: 124005175575591 [08:57:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T085736&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82310&fm=124005175575591&tin=02508201610067®Number=0000000000091680&sum=0 [08:57:35]OFD Sender: Processing packet 82310 [packets to send 254, broken 253] [08:57:35]ProducePacketName [08:57:35]name=ofd_packets/00082310 [08:57:35]OFD Sender: To server: pG, [08:57:35]CommunicateWithHost lk.salyk.kg:30040 [08:57:35]ConnectInit lk.salyk.kg [08:57:35]written 0, free lines is 4095 [08:57:36]Write to MH i2c: 01 00 00 36 07 3D [08:57:36]Write i2c OK [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: 01 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: 01 07 00 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: 01 07 00 36 07 00 00 00 00 00 F1 0C 41 [08:57:36]RasterBufferAndPrint [08:57:36]line [08:57:36]line [08:57:36]line [08:57:36]line [08:57:36]line [08:57:36]written 0, free lines is 3319 [08:57:36]MH_Cut [08:57:36]Write to MH i2c: D1 01 00 3D 07 01 16 [08:57:36]Write i2c OK [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: D1 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: D1 01 00 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: D1 01 00 3D 07 00 15 [08:57:36]Write to MH i2c: 01 00 00 3E 07 45 [08:57:36]Write i2c OK [08:57:36]MH_I2C_Read... [08:57:36]Connected sock=8 [08:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 84 28 0D 01 99 BF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 00 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 41 01 00 35 04 06 00 70 C8 34 70 C4 27 E0 27 AE 3B 00 08 D3 16 [08:57:37]*** Cut start [08:57:37]*** Partial cut [08:57:37]*** CUTSNS_PIN = 1 [08:57:37]*** CUTSNS_PIN = 0 [08:57:37]*** Brake cut motor [08:57:37]Read from MH i2c: 01 [08:57:37]MH_I2C_Read... [08:57:37]*** Stop cut motor [08:57:37]*** Cut end [08:57:37]Read from MH i2c: 01 07 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 FF 0F 5A [08:57:37]process_action close_receipt done [08:57:37]requested_data is exist [08:57:37]produce_requested_data [08:57:37]requested_item fm.sn is exist - process it [08:57:37]wFMCommunicate request_size=4 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 11 00 00 [08:57:37]Write to MH i2c: E2 08 00 3F 07 80 11 00 00 00 00 00 00 C0 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 17 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 17 00 3F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [08:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [08:57:37]wFMCommunicate OK [08:57:37]requested_item fd.num is exist - process it [08:57:37]SAM_PROTO_GetFieldsCounters [08:57:37]wFMCommunicate request_size=4 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 13 00 00 [08:57:37]Write to MH i2c: E2 08 00 40 07 80 13 00 00 00 00 00 00 C3 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 62 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 62 00 40 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 86 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [08:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 86 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:38]wFMCommunicate OK [08:57:38]SAM_PROTO_GetFieldsCounters done [08:57:38]requested_item shift.num is exist - process it [08:57:38]requested_item shift.opened is exist - process it [08:57:38]req_shift_opened [08:57:38]FM_GetShiftState [08:57:38]SAM_PROTO_GetShiftState [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 13 01 00 [08:57:38]Write to MH i2c: E2 08 00 41 07 80 13 01 00 00 00 00 00 C5 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 0E 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 0E 00 41 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 97 [08:57:38]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [08:57:38]wFMCommunicate OK [08:57:38]SAM_PROTO_GetShiftState done [08:57:38]FM_GetShiftState done [08:57:38]req_shift_opened done [08:57:38]requested_item shift.open_date is exist - process it [08:57:38]req_shift_open_date [08:57:38]req_shift_open_date done [08:57:38]produce_requested_data done [08:57:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82310,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [08:57:38]process_action_free close_receipt [08:57:38]json_value_free [08:57:38]json_value_free done [08:57:38]process_json_proto returns [08:57:38]Send response to host [08:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82310,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [08:57:38]free response buf [08:57:38]execute_script done [08:57:38]execute_script returns [08:57:38]free content buf [08:57:38]Sock 10.Close socket [08:57:38]Sock 10.Thread stoped [08:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FA 8F 47 00 A2 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 86 41 01 00 F4 03 04 00 3C C8 11 67 B6 04 01 00 00 D8 F5 67 1D 0C 5D 50 39 [08:57:38]CommunicateWithHost err = 0 [08:57:38]CheckOFDResponse [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:03]accept exits with 9 [09:00:03]New connection [09:00:03]New thread 3067440484 created [09:00:03]Thread 3067297124 joined [09:00:03]Waiting for new connection... [09:00:03] Sock 9.Parse request [09:00:03]Sock 9.Check first char [09:00:03]Sock 9.First char is OK [09:00:03]request: POST /json_proto HTTP/1.0 [09:00:03]Method: POST [09:00:03]URL: /json_proto [09:00:03]Method is POST - this is cgi request [09:00:03]url: /json_proto [09:00:03]query_string will be loaded in cgi processing [09:00:03]execute_cgi json_proto POST (null) [09:00:03]execute_cgi path=json_proto method=POST [09:00:03]POST find Content-Length [09:00:03]Host: 172.17.44.67:8080 [09:00:03]Content-Length: 758 [09:00:03]Content-Type: application/json [09:00:03] [09:00:03]POST finish read [09:00:03]Found Content-Length = 758 [09:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:03]execute_script... [09:00: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)918810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:03]POST & json_proto [09:00:03]process_json_proto [09:00:03]json parsed OK: [09:00:03]protocol is kg_v1.0 [09:00:03]action value=close_receipt [09:00:03]process_action close_receipt [09:00:03]cmd_close_receipt [09:00:03]MH_GetDate [09:00:03]Write to MH i2c: F0 00 00 42 07 38 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: F0 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: F0 09 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: F0 09 00 42 07 00 96 23 12 67 F1 C7 6B 64 FA [09:00:03]GetLastDocTimeStamp 1729241856 [09:00:03]current date 1729242006 [09:00:03]FM_GetShiftState [09:00:03]SAM_PROTO_GetShiftState [09:00:03]wFMCommunicate request_size=4 [09:00:03]MH_SAM_APDU [09:00:03]CAPDU: 80 13 01 00 [09:00:03]Write to MH i2c: E2 08 00 43 07 80 13 01 00 00 00 00 00 C7 [09:00:03]Write i2c OK [09:00:03]MH_I2C_Read... [09:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:03]Read from MH i2c: E2 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 0E 00 [09:00:03]MH_I2C_Read... [09:00:03]Read from MH i2c: E2 0E 00 43 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 99 [09:00:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:00:03]wFMCommunicate OK [09:00:03]SAM_PROTO_GetShiftState done [09:00:03]FM_GetShiftState done [09:00:03]opened in 1729212319 [09:00:03]opened+sec_in_day 1729298719 [09:00:03]quantity*price = 0 [09:00:03]sum+1 = 1 [09:00:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 20 18.10.2024 09:00 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30135190 ФМ: 0000000000871843 ФД: 82311 ФПД: 229989297928576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T090006&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82311&fm=229989297928576&tin=02508201610067®Number=0000000000091680&sum=0 [09:00:04]StoreToDocumentArchive [09:00:04]shift 526 fd 82311 [09:00:04]save to /storage/0526/doc_00082311 [09:00:04]save last doc name /storage/0526/doc_00082311 to /storage/kkm_last_doc_name [09:00:04]save OK [09:00:04]Clear old archive folders... [09:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:00:04]tlvbuf is 00C1C650 [09:00:04]SAM_PROTO_ClearQueue [09:00:04]wFMCommunicate request_size=4 [09:00:04]MH_SAM_APDU [09:00:04]CAPDU: 80 09 00 00 [09:00:04]Write to MH i2c: E2 08 00 50 07 80 09 00 00 00 00 00 00 C9 [09:00:04]Write i2c OK [09:00:04]MH_I2C_Read... [09:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:04]Read from MH i2c: E2 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: E2 03 00 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [09:00:04]RAPDU: 90 00 [09:00:04]wFMCommunicate OK [09:00:04]SAM_PROTO_ClearQueue done [09:00:04]KKMCreateOFDPacket [09:00:04]OFDProtocolAddRootSTLVToBuf [09:00:04]FM_MakeSignedData [09:00:04]FM_MakeSignedData [09:00:04]SAM_PROTO_SignData [09:00:04]wFMCommunicate request_size=4 [09:00:04]MH_SAM_APDU [09:00:04]CAPDU: 80 0D 01 02 [09:00:04]Write to MH i2c: E2 08 00 51 07 80 0D 01 02 00 00 00 00 D1 [09:00:04]Write i2c OK [09:00:04]MH_I2C_Read... [09:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:04]Read from MH i2c: E2 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: E2 03 00 [09:00:04]MH_I2C_Read... [09:00:04]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [09:00:04]RAPDU: 90 00 [09:00:04]wFMCommunicate OK [09:00:04]wFMCommunicate request_size=255 [09:00:04]MH_SAM_APDU [09:00:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 41 01 00 35 04 06 00 [09:00:04]Write to MH i2c: E2 02 01 52 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 41 01 00 35 04 06 00 00 00 CE [09:00:04]Write i2c OK [09:00:04]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 03 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [09:00:05]RAPDU: 90 00 [09:00:05]wFMCommunicate OK [09:00:05]wFMCommunicate request_size=11 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 0D 02 02 06 D1 2C 8E 67 B9 80 [09:00:05]Write to MH i2c: E2 0E 00 53 07 80 0D 02 02 06 00 D1 2C 8E 67 B9 80 00 00 0B [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 03 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [09:00:05]RAPDU: 90 00 [09:00:05]wFMCommunicate OK [09:00:05]wFMCommunicate request_size=4 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 0D 03 02 [09:00:05]Write to MH i2c: E2 08 00 54 07 80 0D 03 02 00 00 00 00 D6 [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 0B 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 0B 00 54 07 00 3C EE 12 20 01 9B 7A 9B 90 00 E4 [09:00:05]RAPDU: 3C EE 12 20 01 9B 7A 9B 90 00 [09:00:05]wFMCommunicate OK [09:00:05]SAM_PROTO_SignData done [09:00:05]FM_MakeSignedData done [09:00:05]CreateOFDProtocolMessage [09:00:05]wFMCommunicate request_size=4 [09:00:05]MH_SAM_APDU [09:00:05]CAPDU: 80 11 00 00 [09:00:05]Write to MH i2c: E2 08 00 55 07 80 11 00 00 00 00 00 00 D6 [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:05]Read from MH i2c: E2 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 17 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: E2 17 00 55 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 28 [09:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:00:05]wFMCommunicate OK [09:00:05]CreateOFDProtocolMessage done [09:00:05]OFDSenderStorePacket 82311 [09:00:05]StoreOFDPacket docnum=82311 [09:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AD FB 08 01 01 1E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 41 01 00 35 04 06 00 D1 2C 8E 67 B9 80 3C EE 12 20 01 9B 7A 9B [09:00:05]CheckFolder [09:00:05]dirname=/storage/ofd_packets [09:00:05]CheckFolder done [09:00:05]ProducePacketName [09:00:05]name=ofd_packets/00082311 [09:00:05]NVStorageSaveData ofd_packets/00082311 [09:00:05]File name is /storage/ofd_packets/00082311 [09:00:05]Write 302 bytes [09:00:05]NVStorageSaveData done [09:00:05]OFDSenderStorePacket done [09:00:05]KKMCreateOFDPacket done [09:00:05]NVStorageSaveData kkm_last_timestamp [09:00:05]File name is /storage/kkm_last_timestamp [09:00:05]Write 4 bytes [09:00:05]NVStorageSaveData done [09:00:05]ExternCall_PrintAddStr [09:00:05]wPrintStart [09:00:05]Write to MH i2c: 01 00 00 56 07 5D [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: 01 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: 01 07 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 FF 0F 72 [09:00:05]RasterBufferAndPrint [09:00:05]line Счет N : (1)918810 [09:00:05]line ИНН: 02508201610067 [09:00:05]line Контрольно-Кассовый Чек [09:00:05]line ПРОДАЖА [09:00:05]line ТРК (МРК, ГНК) : 31 [09:00:05]line Товар: 2710194210 [09:00:05]line ДТ(л)-К-5 [09:00:05]line 5.000 * 0.00 [09:00:05]line = 0.00 [09:00:05]line НДС 12% НСП 1% [09:00:05]line > о реализуемом товаре [09:00:05]line ИТОГО: 0.00 [09:00:05]line НСП 1% : 0.00 [09:00:05]line НДС 12% : 0.00 [09:00:05]line Наличными: 0.00 [09:00:05]line Безнал.: 0.00 [09:00:05]line Место: АЗС № 114 "Партнер Нефть" [09:00:05]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:00:05]line СНО: Общий режим [09:00:05]line Чек 20 18.10.2024 09:00 [09:00:05]line Смена: 526 ФФД: 1.0 [09:00:05]line ЗНМ: 0300000086 [09:00:05]line РНМ: 0000000000091680 [09:00:05]line Версия ККМ: 001 [09:00:05]line Талоны: ТК ГПНА Online [09:00:05]line 30135190 [09:00:05]line ФМ: 0000000000871843 [09:00:05]line ФД: 82311 [09:00:05]line ФПД: 229989297928576 [09:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T090006&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82311&fm=229989297928576&tin=02508201610067®Number=0000000000091680&sum=0 [09:00:05]written 0, free lines is 4095 [09:00:05]OFD Sender: Processing packet 82311 [packets to send 254, broken 253] [09:00:05]ProducePacketName [09:00:05]name=ofd_packets/00082311 [09:00:05]OFD Sender: To server: pG, [09:00:05]CommunicateWithHost lk.salyk.kg:30040 [09:00:05]ConnectInit lk.salyk.kg [09:00:05]Write to MH i2c: 01 00 00 80 07 87 [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: 01 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: 01 07 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 DF 0C 79 [09:00:05]RasterBufferAndPrint [09:00:05]line [09:00:05]line [09:00:05]line [09:00:05]line [09:00:05]line [09:00:05]written 0, free lines is 3301 [09:00:05]MH_Cut [09:00:05]Write to MH i2c: D1 01 00 87 07 01 60 [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: D1 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: D1 01 00 [09:00:05]MH_I2C_Read... [09:00:05]Read from MH i2c: D1 01 00 87 07 00 5F [09:00:05]Write to MH i2c: 01 00 00 88 07 8F [09:00:05]Write i2c OK [09:00:05]MH_I2C_Read... [09:00:06]*** Cut start [09:00:06]*** Partial cut [09:00:06]*** CUTSNS_PIN = 1 [09:00:06]Connected sock=11 [09:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 AD FB 08 01 01 1E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 96 23 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 41 01 00 35 04 06 00 D1 2C 8E 67 B9 80 3C EE 12 20 01 9B 7A 9B [09:00:06]*** CUTSNS_PIN = 0 [09:00:06]*** Brake cut motor [09:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A8 95 47 00 51 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 87 41 01 00 F4 03 04 00 D2 C8 11 67 B6 04 01 00 00 07 82 7B 19 3D 42 34 49 [09:00:07]CommunicateWithHost err = 0 [09:00:07]CheckOFDResponse [09:00:07]1017 (14) - 77093643461234 [09:00:07]1041 (16) - 0000000000871843 [09:00:07]1040 (4) - 82311 [09:00:07]1012 (4) - 18.10.2024 02:32 [09:00:07]1206 (1) - 0 [09:00:07]OFD Sender: Remove packet 82311 [09:00:07]ProducePacketName [09:00:07]name=ofd_packets/00082311 [09:00:07]NVStorageDeleteData [09:00:07]Read from MH i2c: 01 [09:00:07]MH_I2C_Read... [09:00:07]*** Stop cut motor [09:00:07]*** Cut end [09:00:07]Read from MH i2c: 01 07 00 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: 01 07 00 88 07 00 00 00 00 00 FF 0F A4 [09:00:07]process_action close_receipt done [09:00:07]requested_data is exist [09:00:07]produce_requested_data [09:00:07]requested_item fm.sn is exist - process it [09:00:07]wFMCommunicate request_size=4 [09:00:07]MH_SAM_APDU [09:00:07]CAPDU: 80 11 00 00 [09:00:07]Write to MH i2c: E2 08 00 89 07 80 11 00 00 00 00 00 00 0A [09:00:07]Write i2c OK [09:00:07]MH_I2C_Read... [09:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:07]Read from MH i2c: E2 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 17 00 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 17 00 89 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [09:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:00:07]wFMCommunicate OK [09:00:07]requested_item fd.num is exist - process it [09:00:07]SAM_PROTO_GetFieldsCounters [09:00:07]wFMCommunicate request_size=4 [09:00:07]MH_SAM_APDU [09:00:07]CAPDU: 80 13 00 00 [09:00:07]Write to MH i2c: E2 08 00 8A 07 80 13 00 00 00 00 00 00 0D [09:00:07]Write i2c OK [09:00:07]MH_I2C_Read... [09:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:07]Read from MH i2c: E2 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 62 00 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 62 00 8A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 87 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 87 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:07]wFMCommunicate OK [09:00:07]SAM_PROTO_GetFieldsCounters done [09:00:07]requested_item shift.num is exist - process it [09:00:07]requested_item shift.opened is exist - process it [09:00:07]req_shift_opened [09:00:07]FM_GetShiftState [09:00:07]SAM_PROTO_GetShiftState [09:00:07]wFMCommunicate request_size=4 [09:00:07]MH_SAM_APDU [09:00:07]CAPDU: 80 13 01 00 [09:00:07]Write to MH i2c: E2 08 00 8B 07 80 13 01 00 00 00 00 00 0F [09:00:07]Write i2c OK [09:00:07]MH_I2C_Read... [09:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:07]Read from MH i2c: E2 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 0E 00 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 0E 00 8B 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E1 [09:00:07]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:00:07]wFMCommunicate OK [09:00:07]SAM_PROTO_GetShiftState done [09:00:07]FM_GetShiftState done [09:00:07]req_shift_opened done [09:00:07]requested_item shift.open_date is exist - process it [09:00:07]req_shift_open_date [09:00:07]req_shift_open_date done [09:00:07]produce_requested_data done [09:00:07]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82311,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:00:07]process_action_free close_receipt [09:00:07]json_value_free [09:00:07]json_value_free done [09:00:07]process_json_proto returns [09:00:07]Send response to host [09:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82311,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:00:07]free response buf [09:00:07]execute_script done [09:00:07]execute_script returns [09:00:07]free content buf [09:00:07]Sock 9.Close socket [09:00:07]Sock 9.Thread stoped [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:19]recv_with_timeout no data received [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:39]recv_with_timeout no data received [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:43]recv_with_timeout no data received [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]accept exits with 8 [09:11:33]New connection [09:11:33]New thread 3067297124 created [09:11:33]Thread 3067440484 joined [09:11:33]Waiting for new connection... [09:11:33] Sock 8.Parse request [09:11:33]Sock 8.Check first char [09:11:33]Sock 8.First char is OK [09:11:33]request: POST /json_proto HTTP/1.0 [09:11:33]Method: POST [09:11:33]URL: /json_proto [09:11:33]Method is POST - this is cgi request [09:11:33]url: /json_proto [09:11:33]query_string will be loaded in cgi processing [09:11:33]execute_cgi json_proto POST (null) [09:11:33]execute_cgi path=json_proto method=POST [09:11:33]POST find Content-Length [09:11:33]Host: 172.17.44.67:8080 [09:11:33]Content-Length: 758 [09:11:33]Content-Type: application/json [09:11:33] [09:11:33]POST finish read [09:11:33]Found Content-Length = 758 [09:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 8.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:33]execute_script... [09:11: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)918812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 8.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:33]POST & json_proto [09:11:33]process_json_proto [09:11:33]json parsed OK: [09:11:33]protocol is kg_v1.0 [09:11:33]action value=close_receipt [09:11:33]process_action close_receipt [09:11:33]cmd_close_receipt [09:11:33]MH_GetDate [09:11:33]Write to MH i2c: F0 00 00 8C 07 82 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: F0 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: F0 09 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: F0 09 00 8C 07 00 48 26 12 67 F1 C7 6B 64 F9 [09:11:33]GetLastDocTimeStamp 1729242006 [09:11:33]current date 1729242696 [09:11:33]FM_GetShiftState [09:11:33]SAM_PROTO_GetShiftState [09:11:33]wFMCommunicate request_size=4 [09:11:33]MH_SAM_APDU [09:11:33]CAPDU: 80 13 01 00 [09:11:33]Write to MH i2c: E2 08 00 8D 07 80 13 01 00 00 00 00 00 11 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:33]Read from MH i2c: E2 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 0E 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 0E 00 8D 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E3 [09:11:33]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:11:33]wFMCommunicate OK [09:11:33]SAM_PROTO_GetShiftState done [09:11:33]FM_GetShiftState done [09:11:33]opened in 1729212319 [09:11:33]opened+sec_in_day 1729298719 [09:11:33]quantity*price = 0 [09:11:33]sum+1 = 1 [09:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 21 18.10.2024 09:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30135190 ФМ: 0000000000871843 ФД: 82312 ФПД: 126741104679625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091136&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82312&fm=126741104679625&tin=02508201610067®Number=0000000000091680&sum=0 [09:11:34]StoreToDocumentArchive [09:11:34]shift 526 fd 82312 [09:11:34]save to /storage/0526/doc_00082312 [09:11:34]save last doc name /storage/0526/doc_00082312 to /storage/kkm_last_doc_name [09:11:34]save OK [09:11:34]Clear old archive folders... [09:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:11:34]tlvbuf is 00B02A30 [09:11:34]SAM_PROTO_ClearQueue [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 09 00 00 [09:11:34]Write to MH i2c: E2 08 00 9A 07 80 09 00 00 00 00 00 00 13 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 9A 07 00 90 00 15 [09:11:34]RAPDU: 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_ClearQueue done [09:11:34]KKMCreateOFDPacket [09:11:34]OFDProtocolAddRootSTLVToBuf [09:11:34]FM_MakeSignedData [09:11:34]FM_MakeSignedData [09:11:34]SAM_PROTO_SignData [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 0D 01 02 [09:11:34]Write to MH i2c: E2 08 00 9B 07 80 0D 01 02 00 00 00 00 1B [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 9B 07 00 90 00 16 [09:11:34]RAPDU: 90 00 [09:11:34]wFMCommunicate OK [09:11:34]wFMCommunicate request_size=255 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 41 01 00 35 04 06 00 [09:11:34]Write to MH i2c: E2 02 01 9C 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 41 01 00 35 04 06 00 00 00 93 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 9C 07 00 90 00 17 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]wFMCommunicate request_size=11 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 02 02 06 73 45 36 85 DA C9 [09:11:35]Write to MH i2c: E2 0E 00 9D 07 80 0D 02 02 06 00 73 45 36 85 DA C9 00 00 40 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 03 00 9D 07 00 90 00 18 [09:11:35]RAPDU: 90 00 [09:11:35]wFMCommunicate OK [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 0D 03 02 [09:11:35]Write to MH i2c: E2 08 00 9E 07 80 0D 03 02 00 00 00 00 20 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 0B 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 0B 00 9E 07 00 96 80 A8 BC E6 7F 43 44 90 00 87 [09:11:35]RAPDU: 96 80 A8 BC E6 7F 43 44 90 00 [09:11:35]wFMCommunicate OK [09:11:35]SAM_PROTO_SignData done [09:11:35]FM_MakeSignedData done [09:11:35]CreateOFDProtocolMessage [09:11:35]wFMCommunicate request_size=4 [09:11:35]MH_SAM_APDU [09:11:35]CAPDU: 80 11 00 00 [09:11:35]Write to MH i2c: E2 08 00 9F 07 80 11 00 00 00 00 00 00 20 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:35]Read from MH i2c: E2 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 17 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: E2 17 00 9F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 72 [09:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:11:35]wFMCommunicate OK [09:11:35]CreateOFDProtocolMessage done [09:11:35]OFDSenderStorePacket 82312 [09:11:35]StoreOFDPacket docnum=82312 [09:11:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 37 2A 08 01 D6 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 41 01 00 35 04 06 00 73 45 36 85 DA C9 96 80 A8 BC E6 7F 43 44 [09:11:35]CheckFolder [09:11:35]dirname=/storage/ofd_packets [09:11:35]CheckFolder done [09:11:35]ProducePacketName [09:11:35]name=ofd_packets/00082312 [09:11:35]NVStorageSaveData ofd_packets/00082312 [09:11:35]File name is /storage/ofd_packets/00082312 [09:11:35]Write 302 bytes [09:11:35]NVStorageSaveData done [09:11:35]OFDSenderStorePacket done [09:11:35]KKMCreateOFDPacket done [09:11:35]NVStorageSaveData kkm_last_timestamp [09:11:35]File name is /storage/kkm_last_timestamp [09:11:35]Write 4 bytes [09:11:35]NVStorageSaveData done [09:11:35]ExternCall_PrintAddStr [09:11:35]wPrintStart [09:11:35]Write to MH i2c: 01 00 00 A0 07 A7 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 A0 07 00 00 00 00 00 FF 0F BC [09:11:35]RasterBufferAndPrint [09:11:35]line Счет N : (1)918812 [09:11:35]line ИНН: 02508201610067 [09:11:35]line Контрольно-Кассовый Чек [09:11:35]line ПРОДАЖА [09:11:35]line ТРК (МРК, ГНК) : 31 [09:11:35]line Товар: 2710194210 [09:11:35]line ДТ(л)-К-5 [09:11:35]line 8.000 * 0.00 [09:11:35]line = 0.00 [09:11:35]line НДС 12% НСП 1% [09:11:35]line > о реализуемом товаре [09:11:35]line ИТОГО: 0.00 [09:11:35]line НСП 1% : 0.00 [09:11:35]line НДС 12% : 0.00 [09:11:35]line Наличными: 0.00 [09:11:35]line Безнал.: 0.00 [09:11:35]line Место: АЗС № 114 "Партнер Нефть" [09:11:35]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:11:35]line СНО: Общий режим [09:11:35]line Чек 21 18.10.2024 09:11 [09:11:35]line Смена: 526 ФФД: 1.0 [09:11:35]line ЗНМ: 0300000086 [09:11:35]line РНМ: 0000000000091680 [09:11:35]line Версия ККМ: 001 [09:11:35]line Талоны: ТК ГПНА Online [09:11:35]line 30135190 [09:11:35]line ФМ: 0000000000871843 [09:11:35]line ФД: 82312 [09:11:35]line ФПД: 126741104679625 [09:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091136&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82312&fm=126741104679625&tin=02508201610067®Number=0000000000091680&sum=0 [09:11:35]written 0, free lines is 4095 [09:11:35]OFD Sender: Processing packet 82312 [packets to send 254, broken 253] [09:11:35]ProducePacketName [09:11:35]name=ofd_packets/00082312 [09:11:35]OFD Sender: To server: pG, [09:11:35]CommunicateWithHost lk.salyk.kg:30040 [09:11:35]ConnectInit lk.salyk.kg [09:11:35]Write to MH i2c: 01 00 00 CA 07 D1 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 E2 0C C6 [09:11:35]RasterBufferAndPrint [09:11:35]line [09:11:35]line [09:11:35]line [09:11:35]line [09:11:35]line [09:11:35]written 0, free lines is 3304 [09:11:35]MH_Cut [09:11:35]Write to MH i2c: D1 01 00 D1 07 01 AA [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: D1 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: D1 01 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: D1 01 00 D1 07 00 A9 [09:11:35]Write to MH i2c: 01 00 00 D2 07 D9 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:36]Connected sock=10 [09:11:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 37 2A 08 01 D6 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 41 01 00 35 04 06 00 73 45 36 85 DA C9 96 80 A8 BC E6 7F 43 44 [09:11:36]*** Cut start [09:11:36]*** Partial cut [09:11:36]*** CUTSNS_PIN = 1 [09:11:36]*** CUTSNS_PIN = 0 [09:11:36]*** Brake cut motor [09:11:37]Read from MH i2c: 01 [09:11:37]MH_I2C_Read... [09:11:37]*** Stop cut motor [09:11:37]*** Cut end [09:11:37]Read from MH i2c: 01 07 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 D2 07 00 00 00 00 00 FF 0F EE [09:11:37]process_action close_receipt done [09:11:37]requested_data is exist [09:11:37]produce_requested_data [09:11:37]requested_item fm.sn is exist - process it [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 11 00 00 [09:11:37]Write to MH i2c: E2 08 00 D3 07 80 11 00 00 00 00 00 00 54 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 17 00 [09:11:37]MH_I2C_Read... [09:11:37]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 31 38 34 33 90 00 A6 [09:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:11:37]wFMCommunicate OK [09:11:37]requested_item fd.num is exist - process it [09:11:37]SAM_PROTO_GetFieldsCounters [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 13 00 00 [09:11:37]Write to MH i2c: E2 08 00 D4 07 80 13 00 00 00 00 00 00 57 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 62 00 [09:11:37]MH_I2C_Read... [09:11:37]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 88 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [09:11:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 88 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:37]wFMCommunicate OK [09:11:37]SAM_PROTO_GetFieldsCounters done [09:11:37]requested_item shift.num is exist - process it [09:11:37]requested_item shift.opened is exist - process it [09:11:37]req_shift_opened [09:11:37]FM_GetShiftState [09:11:37]SAM_PROTO_GetShiftState [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 13 01 00 [09:11:37]Write to MH i2c: E2 08 00 D5 07 80 13 01 00 00 00 00 00 59 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0E 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0E 00 D5 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2B [09:11:37]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:11:37]wFMCommunicate OK [09:11:37]SAM_PROTO_GetShiftState done [09:11:37]FM_GetShiftState done [09:11:37]req_shift_opened done [09:11:37]requested_item shift.open_date is exist - process it [09:11:37]req_shift_open_date [09:11:37]req_shift_open_date done [09:11:37]produce_requested_data done [09:11:37]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82312,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:11:37]process_action_free close_receipt [09:11:37]json_value_free [09:11:37]json_value_free done [09:11:37]process_json_proto returns [09:11:37]Send response to host [09:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82312,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:11:37]free response buf [09:11:37]execute_script done [09:11:37]execute_script returns [09:11:37]free content buf [09:11:37]Sock 8.Close socket [09:11:37]Sock 8.Thread stoped [09:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 81 40 47 00 2E 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 88 41 01 00 F4 03 04 00 84 CB 11 67 B6 04 01 00 00 FF 71 EE 2C 29 D5 81 E1 [09:11:37]CommunicateWithHost err = 0 [09:11:37]CheckOFDResponse [09:11:37]1017 (14) - 77093643461234 [09:11:37]1041 (16) - 0000000000871843 [09:11:37]1040 (4) - 82312 [09:11:37]1012 (4) - 18.10.2024 02:44 [09:11:37]1206 (1) - 0 [09:11:37]OFD Sender: Remove packet 82312 [09:11:37]ProducePacketName [09:11:37]name=ofd_packets/00082312 [09:11:37]NVStorageDeleteData [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:12]accept exits with 9 [09:12:12]New connection [09:12:12]New thread 3067440484 created [09:12:12]Thread 3067297124 joined [09:12:12]Waiting for new connection... [09:12:12] Sock 9.Parse request [09:12:12]Sock 9.Check first char [09:12:12]Sock 9.First char is OK [09:12:12]request: POST /json_proto HTTP/1.0 [09:12:12]Method: POST [09:12:12]URL: /json_proto [09:12:12]Method is POST - this is cgi request [09:12:12]url: /json_proto [09:12:12]query_string will be loaded in cgi processing [09:12:12]execute_cgi json_proto POST (null) [09:12:12]execute_cgi path=json_proto method=POST [09:12:12]POST find Content-Length [09:12:12]Host: 172.17.44.67:8080 [09:12:12]Content-Length: 647 [09:12:12]Content-Type: application/json [09:12:12] [09:12:12]POST finish read [09:12:12]Found Content-Length = 647 [09:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:12]execute_script... [09:12: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)918815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:12]POST & json_proto [09:12:12]process_json_proto [09:12:12]json parsed OK: [09:12:12]protocol is kg_v1.0 [09:12:12]action value=close_receipt [09:12:12]process_action close_receipt [09:12:12]cmd_close_receipt [09:12:12]MH_GetDate [09:12:12]Write to MH i2c: F0 00 00 D6 07 CC [09:12:12]Write i2c OK [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: F0 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: F0 09 00 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: F0 09 00 D6 07 00 6F 26 12 67 F1 C7 6B 64 6A [09:12:12]GetLastDocTimeStamp 1729242696 [09:12:12]current date 1729242735 [09:12:12]FM_GetShiftState [09:12:12]SAM_PROTO_GetShiftState [09:12:12]wFMCommunicate request_size=4 [09:12:12]MH_SAM_APDU [09:12:12]CAPDU: 80 13 01 00 [09:12:12]Write to MH i2c: E2 08 00 D7 07 80 13 01 00 00 00 00 00 5B [09:12:12]Write i2c OK [09:12:12]MH_I2C_Read... [09:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:12]Read from MH i2c: E2 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: E2 0E 00 [09:12:12]MH_I2C_Read... [09:12:12]Read from MH i2c: E2 0E 00 D7 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2D [09:12:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:12]wFMCommunicate OK [09:12:12]SAM_PROTO_GetShiftState done [09:12:12]FM_GetShiftState done [09:12:12]opened in 1729212319 [09:12:12]opened+sec_in_day 1729298719 [09:12:12]quantity*price = 152400 [09:12:12]sum+1 = 152401 [09:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1524.00 НСП 1% : 13.49 НДС 12% : 161.84 Наличными: 1524.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 22 18.10.2024 09:12 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82313 ФПД: 65791050497075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091215&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82313&fm=65791050497075&tin=02508201610067®Number=0000000000091680&sum=152400 [09:12:13]StoreToDocumentArchive [09:12:13]shift 526 fd 82313 [09:12:13]save to /storage/0526/doc_00082313 [09:12:13]save last doc name /storage/0526/doc_00082313 to /storage/kkm_last_doc_name [09:12:13]save OK [09:12:13]Clear old archive folders... [09:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:12:13]tlvbuf is 00B2D0C0 [09:12:13]SAM_PROTO_ClearQueue [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 09 00 00 [09:12:13]Write to MH i2c: E2 08 00 E4 07 80 09 00 00 00 00 00 00 5D [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 E4 07 00 90 00 5F [09:12:13]RAPDU: 90 00 [09:12:13]wFMCommunicate OK [09:12:13]SAM_PROTO_ClearQueue done [09:12:13]KKMCreateOFDPacket [09:12:13]OFDProtocolAddRootSTLVToBuf [09:12:13]FM_MakeSignedData [09:12:13]FM_MakeSignedData [09:12:13]SAM_PROTO_SignData [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 0D 01 02 [09:12:13]Write to MH i2c: E2 08 00 E5 07 80 0D 01 02 00 00 00 00 65 [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 E5 07 00 90 00 60 [09:12:13]RAPDU: 90 00 [09:12:13]wFMCommunicate OK [09:12:13]wFMCommunicate request_size=255 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 6F 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 41 01 00 35 04 06 00 [09:12:13]Write to MH i2c: E2 02 01 E6 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 6F 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 41 01 00 35 04 06 00 00 00 A6 [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]OFD Sender: No OFD packet to send [09:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [09:12:13]RAPDU: 90 00 [09:12:13]wFMCommunicate OK [09:12:13]wFMCommunicate request_size=11 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 0D 02 02 06 3B D6 2C 31 BC 33 [09:12:13]Write to MH i2c: E2 0E 00 E7 07 80 0D 02 02 06 00 3B D6 2C 31 BC 33 00 00 D1 [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 03 00 E7 07 00 90 00 62 [09:12:13]RAPDU: 90 00 [09:12:13]wFMCommunicate OK [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 0D 03 02 [09:12:13]Write to MH i2c: E2 08 00 E8 07 80 0D 03 02 00 00 00 00 6A [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 0B 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 0B 00 E8 07 00 1A 82 BA A6 EC B1 20 CC 90 00 F0 [09:12:13]RAPDU: 1A 82 BA A6 EC B1 20 CC 90 00 [09:12:13]wFMCommunicate OK [09:12:13]SAM_PROTO_SignData done [09:12:13]FM_MakeSignedData done [09:12:13]CreateOFDProtocolMessage [09:12:13]wFMCommunicate request_size=4 [09:12:13]MH_SAM_APDU [09:12:13]CAPDU: 80 11 00 00 [09:12:13]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:13]Read from MH i2c: E2 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: E2 17 00 [09:12:13]MH_I2C_Read... [09:12:13]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 31 38 34 33 90 00 BC [09:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:13]wFMCommunicate OK [09:12:13]CreateOFDProtocolMessage done [09:12:13]OFDSenderStorePacket 82313 [09:12:13]StoreOFDPacket docnum=82313 [09:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 31 29 08 01 F9 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 6F 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 41 01 00 35 04 06 00 3B D6 2C 31 BC 33 1A 82 BA A6 EC B1 20 CC [09:12:13]CheckFolder [09:12:13]dirname=/storage/ofd_packets [09:12:13]CheckFolder done [09:12:13]ProducePacketName [09:12:13]name=ofd_packets/00082313 [09:12:13]NVStorageSaveData ofd_packets/00082313 [09:12:13]File name is /storage/ofd_packets/00082313 [09:12:13]Write 302 bytes [09:12:13]NVStorageSaveData done [09:12:13]OFDSenderStorePacket done [09:12:13]KKMCreateOFDPacket done [09:12:13]NVStorageSaveData kkm_last_timestamp [09:12:13]File name is /storage/kkm_last_timestamp [09:12:13]Write 4 bytes [09:12:13]NVStorageSaveData done [09:12:13]ExternCall_PrintAddStr [09:12:13]wPrintStart [09:12:13]Write to MH i2c: 01 00 00 EA 07 F1 [09:12:13]Write i2c OK [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: 01 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: 01 07 00 [09:12:13]MH_I2C_Read... [09:12:13]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 FF 0F 06 [09:12:13]RasterBufferAndPrint [09:12:13]line Счет N : (1)918815 [09:12:13]line ИНН: 02508201610067 [09:12:13]line Контрольно-Кассовый Чек [09:12:13]line ПРОДАЖА [09:12:13]line ТРК (МРК, ГНК) : 31 [09:12:13]line Товар: 2710194210 [09:12:13]line ДТ(л)-К-5 [09:12:13]line 20.000 * 76.20 [09:12:13]line = 1524.00 [09:12:13]line НДС 12% НСП 1% [09:12:13]line > о реализуемом товаре [09:12:13]line ИТОГО: 1524.00 [09:12:13]line НСП 1% : 13.49 [09:12:13]line НДС 12% : 161.84 [09:12:13]line Наличными: 1524.00 [09:12:13]line Безнал.: 0.00 [09:12:13]line Место: АЗС № 114 "Партнер Нефть" [09:12:13]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:12:13]line СНО: Общий режим [09:12:13]line Чек 22 18.10.2024 09:12 [09:12:13]line Смена: 526 ФФД: 1.0 [09:12:13]line ЗНМ: 0300000086 [09:12:13]line РНМ: 0000000000091680 [09:12:13]line Версия ККМ: 001 [09:12:13]line ФМ: 0000000000871843 [09:12:13]line ФД: 82313 [09:12:13]line ФПД: 65791050497075 [09:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091215&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82313&fm=65791050497075&tin=02508201610067®Number=0000000000091680&sum=152400 [09:12:14]OFD Sender: Processing packet 82313 [packets to send 254, broken 253] [09:12:14]ProducePacketName [09:12:14]name=ofd_packets/00082313 [09:12:14]OFD Sender: To server: pG, [09:12:14]CommunicateWithHost lk.salyk.kg:30040 [09:12:14]ConnectInit lk.salyk.kg [09:12:14]written 0, free lines is 4095 [09:12:14]Connected sock=10 [09:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 31 29 08 01 F9 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 6F 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 89 41 01 00 35 04 06 00 3B D6 2C 31 BC 33 1A 82 BA A6 EC B1 20 CC [09:12:14]Write to MH i2c: 01 00 00 12 08 1A [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: 01 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: 01 07 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: 01 07 00 12 08 00 00 00 00 00 0D 0D 3B [09:12:14]RasterBufferAndPrint [09:12:14]line [09:12:14]line [09:12:14]line [09:12:14]line [09:12:14]line [09:12:14]written 0, free lines is 3347 [09:12:14]MH_Cut [09:12:14]Write to MH i2c: D1 01 00 19 08 01 F3 [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: D1 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: D1 01 00 [09:12:14]MH_I2C_Read... [09:12:14]Read from MH i2c: D1 01 00 19 08 00 F2 [09:12:14]Write to MH i2c: 01 00 00 1A 08 22 [09:12:14]Write i2c OK [09:12:14]MH_I2C_Read... [09:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1F BD 47 00 74 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 31 38 34 33 10 04 04 00 89 41 01 00 F4 03 04 00 AA CB 11 67 B6 04 01 00 00 D1 8D AF 9E 06 60 D8 BB [09:12:14]CommunicateWithHost err = 0 [09:12:14]CheckOFDResponse [09:12:14]1017 (14) - 77093643461234 [09:12:14]1041 (16) - 0000000000871843 [09:12:14]1040 (4) - 82313 [09:12:14]1012 (4) - 18.10.2024 02:44 [09:12:14]1206 (1) - 0 [09:12:14]OFD Sender: Remove packet 82313 [09:12:14]ProducePacketName [09:12:14]name=ofd_packets/00082313 [09:12:14]NVStorageDeleteData [09:12:15]*** Cut start [09:12:15]*** Partial cut [09:12:15]*** CUTSNS_PIN = 1 [09:12:15]*** CUTSNS_PIN = 0 [09:12:15]OFD Sender: No OFD packet to send [09:12:15]*** Brake cut motor [09:12:15]Read from MH i2c: 01 [09:12:15]MH_I2C_Read... [09:12:15]*** Stop cut motor [09:12:15]*** Cut end [09:12:15]Read from MH i2c: 01 07 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FF 0F 37 [09:12:15]process_action close_receipt done [09:12:15]requested_data is exist [09:12:15]produce_requested_data [09:12:15]requested_item fm.sn is exist - process it [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 11 00 00 [09:12:15]Write to MH i2c: E2 08 00 1B 08 80 11 00 00 00 00 00 00 9D [09:12:15]Write i2c OK [09:12:15]MH_I2C_Read... [09:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:15]Read from MH i2c: E2 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 17 00 [09:12:15]MH_I2C_Read... [09:12:15]Read from MH i2c: E2 17 00 1B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EF [09:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:15]wFMCommunicate OK [09:12:15]requested_item fd.num is exist - process it [09:12:15]SAM_PROTO_GetFieldsCounters [09:12:15]wFMCommunicate request_size=4 [09:12:15]MH_SAM_APDU [09:12:15]CAPDU: 80 13 00 00 [09:12:15]Write to MH i2c: E2 08 00 1C 08 80 13 00 00 00 00 00 00 A0 [09:12:16]Write i2c OK [09:12:16]MH_I2C_Read... [09:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:16]Read from MH i2c: E2 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: E2 62 00 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: E2 62 00 1C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 89 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [09:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 89 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:16]wFMCommunicate OK [09:12:16]SAM_PROTO_GetFieldsCounters done [09:12:16]requested_item shift.num is exist - process it [09:12:16]requested_item shift.opened is exist - process it [09:12:16]req_shift_opened [09:12:16]FM_GetShiftState [09:12:16]SAM_PROTO_GetShiftState [09:12:16]wFMCommunicate request_size=4 [09:12:16]MH_SAM_APDU [09:12:16]CAPDU: 80 13 01 00 [09:12:16]Write to MH i2c: E2 08 00 1D 08 80 13 01 00 00 00 00 00 A2 [09:12:16]Write i2c OK [09:12:16]MH_I2C_Read... [09:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:16]Read from MH i2c: E2 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: E2 0E 00 [09:12:16]MH_I2C_Read... [09:12:16]Read from MH i2c: E2 0E 00 1D 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 74 [09:12:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:16]wFMCommunicate OK [09:12:16]SAM_PROTO_GetShiftState done [09:12:16]FM_GetShiftState done [09:12:16]req_shift_opened done [09:12:16]requested_item shift.open_date is exist - process it [09:12:16]req_shift_open_date [09:12:16]req_shift_open_date done [09:12:16]produce_requested_data done [09:12:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82313,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:12:16]process_action_free close_receipt [09:12:16]json_value_free [09:12:16]json_value_free done [09:12:16]process_json_proto returns [09:12:16]Send response to host [09:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82313,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:12:16]free response buf [09:12:16]execute_script done [09:12:16]execute_script returns [09:12:16]free content buf [09:12:16]Sock 9.Close socket [09:12:16]Sock 9.Thread stoped [09:12:20]accept exits with 8 [09:12:20]New connection [09:12:20]New thread 3067297124 created [09:12:20]Thread 3067440484 joined [09:12:20]Waiting for new connection... [09:12:20] Sock 8.Parse request [09:12:20]Sock 8.Check first char [09:12:20]Sock 8.First char is OK [09:12:20]request: POST /json_proto HTTP/1.0 [09:12:20]Method: POST [09:12:20]URL: /json_proto [09:12:20]Method is POST - this is cgi request [09:12:20]url: /json_proto [09:12:20]query_string will be loaded in cgi processing [09:12:20]execute_cgi json_proto POST (null) [09:12:20]execute_cgi path=json_proto method=POST [09:12:20]POST find Content-Length [09:12:20]Host: 172.17.44.67:8080 [09:12:20]Content-Length: 703 [09:12:20]Content-Type: application/json [09:12:20] [09:12:20]POST finish read [09:12:20]Found Content-Length = 703 [09:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82313, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:20]execute_script... [09:12:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82313, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:20]POST & json_proto [09:12:20]process_json_proto [09:12:20]json parsed OK: [09:12:20]protocol is kg_v1.0 [09:12:20]action value=close_receipt [09:12:20]process_action close_receipt [09:12:20]cmd_close_receipt [09:12:20]MH_GetDate [09:12:20]Write to MH i2c: F0 00 00 1E 08 15 [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: F0 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: F0 09 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: F0 09 00 1E 08 00 77 26 12 67 F1 C7 6B 64 BB [09:12:20]GetLastDocTimeStamp 1729242735 [09:12:20]current date 1729242743 [09:12:20]FM_GetShiftState [09:12:20]SAM_PROTO_GetShiftState [09:12:20]wFMCommunicate request_size=4 [09:12:20]MH_SAM_APDU [09:12:20]CAPDU: 80 13 01 00 [09:12:20]Write to MH i2c: E2 08 00 1F 08 80 13 01 00 00 00 00 00 A4 [09:12:20]Write i2c OK [09:12:20]MH_I2C_Read... [09:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:20]Read from MH i2c: E2 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 0E 00 [09:12:20]MH_I2C_Read... [09:12:20]Read from MH i2c: E2 0E 00 1F 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 76 [09:12:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:20]wFMCommunicate OK [09:12:20]SAM_PROTO_GetShiftState done [09:12:20]FM_GetShiftState done [09:12:20]opened in 1729212319 [09:12:20]opened+sec_in_day 1729298719 [09:12:20]quantity*price = 152400 [09:12:20]sum+1 = 152401 [09:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1524.00 НСП 1% : 13.49 НДС 12% : 161.84 Наличными: 1524.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 23 18.10.2024 09:12 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФД осн.: 82313 ФМ осн.: 0000000000871843 ФМ: 0000000000871843 ФД: 82314 ФПД: 209690308587161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091223&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82314&fm=209690308587161&tin=02508201610067®Number=0000000000091680&sum=152400 [09:12:21]StoreToDocumentArchive [09:12:21]shift 526 fd 82314 [09:12:21]save to /storage/0526/doc_00082314 [09:12:21]save last doc name /storage/0526/doc_00082314 to /storage/kkm_last_doc_name [09:12:21]save OK [09:12:21]Clear old archive folders... [09:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:12:21]tlvbuf is 00B2C9C0 [09:12:21]SAM_PROTO_ClearQueue [09:12:21]wFMCommunicate request_size=4 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 09 00 00 [09:12:21]Write to MH i2c: E2 08 00 2E 08 80 09 00 00 00 00 00 00 A8 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 2E 08 00 90 00 AA [09:12:21]RAPDU: 90 00 [09:12:21]wFMCommunicate OK [09:12:21]SAM_PROTO_ClearQueue done [09:12:21]KKMCreateOFDPacket [09:12:21]OFDProtocolAddRootSTLVToBuf [09:12:21]FM_MakeSignedData [09:12:21]FM_MakeSignedData [09:12:21]SAM_PROTO_SignData [09:12:21]wFMCommunicate request_size=4 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 0D 01 02 [09:12:21]Write to MH i2c: E2 08 00 2F 08 80 0D 01 02 00 00 00 00 B0 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 2F 08 00 90 00 AB [09:12:21]RAPDU: 90 00 [09:12:21]wFMCommunicate OK [09:12:21]wFMCommunicate request_size=255 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 77 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 89 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 [09:12:21]Write to MH i2c: E2 02 01 30 08 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 77 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 89 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 00 00 2C [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [09:12:21]RAPDU: 90 00 [09:12:21]wFMCommunicate OK [09:12:21]wFMCommunicate request_size=39 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 41 01 00 35 04 06 00 BE B6 54 5B 2E 99 [09:12:21]Write to MH i2c: E2 2A 00 31 08 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 41 01 00 35 04 06 00 BE B6 54 5B 2E 99 00 00 23 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [09:12:21]RAPDU: 90 00 [09:12:21]wFMCommunicate OK [09:12:21]wFMCommunicate request_size=4 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 0D 03 02 [09:12:21]Write to MH i2c: E2 08 00 32 08 80 0D 03 02 00 00 00 00 B5 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 0B 00 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 0B 00 32 08 00 D0 20 4A 16 C9 B0 E9 95 90 00 FD [09:12:21]RAPDU: D0 20 4A 16 C9 B0 E9 95 90 00 [09:12:21]wFMCommunicate OK [09:12:21]SAM_PROTO_SignData done [09:12:21]FM_MakeSignedData done [09:12:21]CreateOFDProtocolMessage [09:12:21]wFMCommunicate request_size=4 [09:12:21]MH_SAM_APDU [09:12:21]CAPDU: 80 11 00 00 [09:12:21]Write to MH i2c: E2 08 00 33 08 80 11 00 00 00 00 00 00 B5 [09:12:21]Write i2c OK [09:12:21]MH_I2C_Read... [09:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:21]Read from MH i2c: E2 [09:12:21]MH_I2C_Read... [09:12:21]Read from MH i2c: E2 17 00 [09:12:21]MH_I2C_Read... [09:12:22]Read from MH i2c: E2 17 00 33 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [09:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:22]wFMCommunicate OK [09:12:22]CreateOFDProtocolMessage done [09:12:22]OFDSenderStorePacket 82314 [09:12:22]StoreOFDPacket docnum=82314 [09:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 0F EE 24 01 54 9C 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 77 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 89 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 41 01 00 35 04 06 00 BE B6 54 5B 2E 99 D0 20 4A 16 C9 B0 E9 95 [09:12:22]CheckFolder [09:12:22]dirname=/storage/ofd_packets [09:12:22]CheckFolder done [09:12:22]ProducePacketName [09:12:22]name=ofd_packets/00082314 [09:12:22]NVStorageSaveData ofd_packets/00082314 [09:12:22]File name is /storage/ofd_packets/00082314 [09:12:22]Write 330 bytes [09:12:22]NVStorageSaveData done [09:12:22]OFDSenderStorePacket done [09:12:22]KKMCreateOFDPacket done [09:12:22]NVStorageSaveData kkm_last_timestamp [09:12:22]File name is /storage/kkm_last_timestamp [09:12:22]Write 4 bytes [09:12:22]NVStorageSaveData done [09:12:22]ExternCall_PrintAddStr [09:12:22]wPrintStart [09:12:22]Write to MH i2c: 01 00 00 34 08 3C [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 07 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [09:12:22]RasterBufferAndPrint [09:12:22]line Счет N : (1)918815 [09:12:22]line ИНН: 02508201610067 [09:12:22]line Контрольно-Кассовый Чек [09:12:22]line ВОЗВРАТ ПРОДАЖИ [09:12:22]line ТРК (МРК, ГНК) : 31 [09:12:22]line Товар: 2710194210 [09:12:22]line ДТ(л)-К-5 [09:12:22]line 20.000 * 76.20 [09:12:22]line = 1524.00 [09:12:22]line НДС 12% НСП 1% [09:12:22]line > о реализуемом товаре [09:12:22]line ИТОГО: 1524.00 [09:12:22]line НСП 1% : 13.49 [09:12:22]line НДС 12% : 161.84 [09:12:22]line Наличными: 1524.00 [09:12:22]line Безнал.: 0.00 [09:12:22]line Место: АЗС № 114 "Партнер Нефть" [09:12:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:12:22]line СНО: Общий режим [09:12:22]line Чек 23 18.10.2024 09:12 [09:12:22]line Смена: 526 ФФД: 1.0 [09:12:22]line ЗНМ: 0300000086 [09:12:22]line РНМ: 0000000000091680 [09:12:22]line Версия ККМ: 001 [09:12:22]line ФД осн.: 82313 [09:12:22]line ФМ осн.: 0000000000871843 [09:12:22]line ФМ: 0000000000871843 [09:12:22]line ФД: 82314 [09:12:22]line ФПД: 209690308587161 [09:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091223&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82314&fm=209690308587161&tin=02508201610067®Number=0000000000091680&sum=152400 [09:12:22]written 0, free lines is 4095 [09:12:22]OFD Sender: Processing packet 82314 [packets to send 254, broken 253] [09:12:22]ProducePacketName [09:12:22]name=ofd_packets/00082314 [09:12:22]OFD Sender: To server: pG, [09:12:22]CommunicateWithHost lk.salyk.kg:30040 [09:12:22]ConnectInit lk.salyk.kg [09:12:22]Connected sock=10 [09:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 0F EE 24 01 54 9C 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 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 77 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 89 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 41 01 00 35 04 06 00 BE B6 54 5B 2E 99 D0 20 4A 16 C9 B0 E9 95 [09:12:22]Write to MH i2c: 01 00 00 5E 08 66 [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 07 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 5F 0D D9 [09:12:22]RasterBufferAndPrint [09:12:22]line [09:12:22]line [09:12:22]line [09:12:22]line [09:12:22]line [09:12:22]written 0, free lines is 3434 [09:12:22]MH_Cut [09:12:22]Write to MH i2c: D1 01 00 65 08 01 3F [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: D1 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: D1 01 00 [09:12:22]MH_I2C_Read... [09:12:22]Read from MH i2c: D1 01 00 65 08 00 3E [09:12:22]Write to MH i2c: 01 00 00 66 08 6E [09:12:22]Write i2c OK [09:12:22]MH_I2C_Read... [09:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 83 3A 47 00 83 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8A 41 01 00 F4 03 04 00 B2 CB 11 67 B6 04 01 00 00 4A 86 76 4D 1D 31 E6 27 [09:12:22]CommunicateWithHost err = 0 [09:12:22]CheckOFDResponse [09:12:22]1017 (14) - 77093643461234 [09:12:22]1041 (16) - 0000000000871843 [09:12:22]1040 (4) - 82314 [09:12:22]1012 (4) - 18.10.2024 02:45 [09:12:22]1206 (1) - 0 [09:12:22]OFD Sender: Remove packet 82314 [09:12:22]ProducePacketName [09:12:22]name=ofd_packets/00082314 [09:12:22]NVStorageDeleteData [09:12:23]*** Cut start [09:12:23]*** Partial cut [09:12:23]*** CUTSNS_PIN = 1 [09:12:23]*** CUTSNS_PIN = 0 [09:12:23]OFD Sender: No OFD packet to send [09:12:23]*** Brake cut motor [09:12:23]Read from MH i2c: 01 [09:12:23]MH_I2C_Read... [09:12:23]*** Stop cut motor [09:12:23]*** Cut end [09:12:23]Read from MH i2c: 01 07 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 FF 0F 83 [09:12:23]process_action close_receipt done [09:12:23]requested_data is exist [09:12:23]produce_requested_data [09:12:23]requested_item fm.sn is exist - process it [09:12:23]wFMCommunicate request_size=4 [09:12:23]MH_SAM_APDU [09:12:23]CAPDU: 80 11 00 00 [09:12:23]Write to MH i2c: E2 08 00 67 08 80 11 00 00 00 00 00 00 E9 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:23]Read from MH i2c: E2 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 17 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 17 00 67 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3B [09:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:23]wFMCommunicate OK [09:12:23]requested_item fd.num is exist - process it [09:12:23]SAM_PROTO_GetFieldsCounters [09:12:23]wFMCommunicate request_size=4 [09:12:23]MH_SAM_APDU [09:12:23]CAPDU: 80 13 00 00 [09:12:23]Write to MH i2c: E2 08 00 68 08 80 13 00 00 00 00 00 00 EC [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 62 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 62 00 68 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8A 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:12:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8A 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:24]wFMCommunicate OK [09:12:24]SAM_PROTO_GetFieldsCounters done [09:12:24]requested_item shift.num is exist - process it [09:12:24]requested_item shift.opened is exist - process it [09:12:24]req_shift_opened [09:12:24]FM_GetShiftState [09:12:24]SAM_PROTO_GetShiftState [09:12:24]wFMCommunicate request_size=4 [09:12:24]MH_SAM_APDU [09:12:24]CAPDU: 80 13 01 00 [09:12:24]Write to MH i2c: E2 08 00 69 08 80 13 01 00 00 00 00 00 EE [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 0E 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 0E 00 69 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C0 [09:12:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:24]wFMCommunicate OK [09:12:24]SAM_PROTO_GetShiftState done [09:12:24]FM_GetShiftState done [09:12:24]req_shift_opened done [09:12:24]requested_item shift.open_date is exist - process it [09:12:24]req_shift_open_date [09:12:24]req_shift_open_date done [09:12:24]produce_requested_data done [09:12:24]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82314,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:12:24]process_action_free close_receipt [09:12:24]json_value_free [09:12:24]json_value_free done [09:12:24]process_json_proto returns [09:12:24]Send response to host [09:12:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82314,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:12:24]free response buf [09:12:24]execute_script done [09:12:24]execute_script returns [09:12:24]free content buf [09:12:24]Sock 8.Close socket [09:12:24]Sock 8.Thread stoped [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:37]recv_with_timeout no data received [09:12:38]OFD Sender: No OFD packet to send [09:12:42]accept exits with 9 [09:12:42]New connection [09:12:42]New thread 3067440484 created [09:12:42]Thread 3067297124 joined [09:12:42]Waiting for new connection... [09:12:42] Sock 9.Parse request [09:12:42]Sock 9.Check first char [09:12:42]Sock 9.First char is OK [09:12:42]request: POST /json_proto HTTP/1.0 [09:12:42]Method: POST [09:12:42]URL: /json_proto [09:12:42]Method is POST - this is cgi request [09:12:42]url: /json_proto [09:12:42]query_string will be loaded in cgi processing [09:12:42]execute_cgi json_proto POST (null) [09:12:42]execute_cgi path=json_proto method=POST [09:12:42]POST find Content-Length [09:12:42]Host: 172.17.44.67:8080 [09:12:42]Content-Length: 803 [09:12:42]Content-Type: application/json [09:12:42] [09:12:42]POST finish read [09:12:42]Found Content-Length = 803 [09:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918811", "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" : 74.20, "quantity" : 63.950, "sum" : 4745.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4745.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:42]execute_script... [09: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)918811", "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" : 74.20, "quantity" : 63.950, "sum" : 4745.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4745.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:42]POST & json_proto [09:12:42]process_json_proto [09:12:42]json parsed OK: [09:12:42]protocol is kg_v1.0 [09:12:42]action value=close_receipt [09:12:42]process_action close_receipt [09:12:42]cmd_close_receipt [09:12:42]MH_GetDate [09:12:42]Write to MH i2c: F0 00 00 6A 08 61 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: F0 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: F0 09 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: F0 09 00 6A 08 00 8D 26 12 67 F1 C7 6B 64 1D [09:12:42]GetLastDocTimeStamp 1729242743 [09:12:42]current date 1729242765 [09:12:42]FM_GetShiftState [09:12:42]SAM_PROTO_GetShiftState [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 13 01 00 [09:12:42]Write to MH i2c: E2 08 00 6B 08 80 13 01 00 00 00 00 00 F0 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 0E 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 0E 00 6B 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C2 [09:12:42]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:42]wFMCommunicate OK [09:12:42]SAM_PROTO_GetShiftState done [09:12:42]FM_GetShiftState done [09:12:42]opened in 1729212319 [09:12:42]opened+sec_in_day 1729298719 [09:12:42]quantity*price = 474509 [09:12:42]sum+1 = 474510 [09:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4745.09 НСП 1% : 41.99 НДС 12% : 503.90 Наличными: 0.00 Безнал.: 4745.09 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 24 18.10.2024 09:12 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82315 ФПД: 225355878567110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091245&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82315&fm=225355878567110&tin=02508201610067®Number=0000000000091680&sum=474509 [09:12:43]StoreToDocumentArchive [09:12:43]shift 526 fd 82315 [09:12:43]save to /storage/0526/doc_00082315 [09:12:43]save last doc name /storage/0526/doc_00082315 to /storage/kkm_last_doc_name [09:12:43]save OK [09:12:43]Clear old archive folders... [09:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:43]tlvbuf is 00B316C0 [09:12:43]SAM_PROTO_ClearQueue [09:12:43]wFMCommunicate request_size=4 [09:12:43]MH_SAM_APDU [09:12:43]CAPDU: 80 09 00 00 [09:12:43]Write to MH i2c: E2 08 00 78 08 80 09 00 00 00 00 00 00 F2 [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:43]Read from MH i2c: E2 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 03 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 03 00 78 08 00 90 00 F4 [09:12:43]RAPDU: 90 00 [09:12:43]wFMCommunicate OK [09:12:43]SAM_PROTO_ClearQueue done [09:12:43]KKMCreateOFDPacket [09:12:43]OFDProtocolAddRootSTLVToBuf [09:12:43]FM_MakeSignedData [09:12:43]FM_MakeSignedData [09:12:43]SAM_PROTO_SignData [09:12:43]wFMCommunicate request_size=4 [09:12:43]MH_SAM_APDU [09:12:43]CAPDU: 80 0D 01 02 [09:12:43]Write to MH i2c: E2 08 00 79 08 80 0D 01 02 00 00 00 00 FA [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 03 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 03 00 79 08 00 90 00 F5 [09:12:44]RAPDU: 90 00 [09:12:44]wFMCommunicate OK [09:12:44]wFMCommunicate request_size=255 [09:12:44]MH_SAM_APDU [09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CE F9 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8D 3D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 3D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 C4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 3D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8D 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 41 01 00 35 04 06 00 CC [09:12:44]Write to MH i2c: E2 02 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CE F9 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8D 3D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 3D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 C4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 3D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8D 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 41 01 00 35 04 06 00 CC 00 00 56 [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 03 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [09:12:44]RAPDU: 90 00 [09:12:44]wFMCommunicate OK [09:12:44]wFMCommunicate request_size=10 [09:12:44]MH_SAM_APDU [09:12:44]CAPDU: 80 0D 02 02 05 F5 C1 17 0C C6 [09:12:44]Write to MH i2c: E2 0D 00 7B 08 80 0D 02 02 05 00 F5 C1 17 0C C6 00 00 A6 [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 03 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 03 00 7B 08 00 90 00 F7 [09:12:44]RAPDU: 90 00 [09:12:44]wFMCommunicate OK [09:12:44]wFMCommunicate request_size=4 [09:12:44]MH_SAM_APDU [09:12:44]CAPDU: 80 0D 03 02 [09:12:44]Write to MH i2c: E2 08 00 7C 08 80 0D 03 02 00 00 00 00 FF [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 0B 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 0B 00 7C 08 00 7A 45 B6 DE DF 2C 49 F5 90 00 9C [09:12:44]RAPDU: 7A 45 B6 DE DF 2C 49 F5 90 00 [09:12:44]wFMCommunicate OK [09:12:44]SAM_PROTO_SignData done [09:12:44]FM_MakeSignedData done [09:12:44]CreateOFDProtocolMessage [09:12:44]wFMCommunicate request_size=4 [09:12:44]MH_SAM_APDU [09:12:44]CAPDU: 80 11 00 00 [09:12:44]Write to MH i2c: E2 08 00 7D 08 80 11 00 00 00 00 00 00 FF [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:44]Read from MH i2c: E2 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 17 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: E2 17 00 7D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 51 [09:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:44]wFMCommunicate OK [09:12:44]CreateOFDProtocolMessage done [09:12:44]OFDSenderStorePacket 82315 [09:12:44]StoreOFDPacket docnum=82315 [09:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 82 BC 07 01 C4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CE F9 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8D 3D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 3D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 C4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 3D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8D 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 41 01 00 35 04 06 00 CC F5 C1 17 0C C6 7A 45 B6 DE DF 2C 49 F5 [09:12:44]CheckFolder [09:12:44]dirname=/storage/ofd_packets [09:12:44]CheckFolder done [09:12:44]ProducePacketName [09:12:44]name=ofd_packets/00082315 [09:12:44]NVStorageSaveData ofd_packets/00082315 [09:12:44]File name is /storage/ofd_packets/00082315 [09:12:44]Write 301 bytes [09:12:44]NVStorageSaveData done [09:12:44]OFDSenderStorePacket done [09:12:44]KKMCreateOFDPacket done [09:12:44]NVStorageSaveData kkm_last_timestamp [09:12:44]File name is /storage/kkm_last_timestamp [09:12:44]Write 4 bytes [09:12:44]NVStorageSaveData done [09:12:44]ExternCall_PrintAddStr [09:12:44]wPrintStart [09:12:44]Write to MH i2c: 01 00 00 7E 08 86 [09:12:44]OFD Sender: Processing packet 82315 [packets to send 254, broken 253] [09:12:44]ProducePacketName [09:12:44]name=ofd_packets/00082315 [09:12:44]OFD Sender: To server: pG, [09:12:44]CommunicateWithHost lk.salyk.kg:30040 [09:12:44]ConnectInit lk.salyk.kg [09:12:44]Write i2c OK [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: 01 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: 01 07 00 [09:12:44]MH_I2C_Read... [09:12:44]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [09:12:44]RasterBufferAndPrint [09:12:44]line Счет N : (1)918811 [09:12:44]line ИНН: 02508201610067 [09:12:44]line Контрольно-Кассовый Чек [09:12:44]line ПРОДАЖА [09:12:44]line ТРК (МРК, ГНК) : 12 [09:12:44]line Товар: 2710124500 [09:12:44]line Аи-95-К-5 [09:12:44]line 63.950 * 74.20 [09:12:44]line = 4745.09 [09:12:44]line НДС 12% НСП 1% [09:12:44]line > о реализуемом товаре [09:12:44]line ИТОГО: 4745.09 [09:12:44]line НСП 1% : 41.99 [09:12:44]line НДС 12% : 503.90 [09:12:44]line Наличными: 0.00 [09:12:44]line Безнал.: 4745.09 [09:12:44]line Место: АЗС № 114 "Партнер Нефть" [09:12:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:12:44]line СНО: Общий режим [09:12:44]line Чек 24 18.10.2024 09:12 [09:12:44]line Смена: 526 ФФД: 1.0 [09:12:44]line ЗНМ: 0300000086 [09:12:44]line РНМ: 0000000000091680 [09:12:44]line Версия ККМ: 001 [09:12:44]line Платежная система: O! деньги [09:12:44]line ФМ: 0000000000871843 [09:12:44]line ФД: 82315 [09:12:44]line ФПД: 225355878567110 [09:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091245&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82315&fm=225355878567110&tin=02508201610067®Number=0000000000091680&sum=474509 [09:12:44]written 0, free lines is 4095 [09:12:44]Connected sock=11 [09: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 31 38 34 33 0F 01 00 00 82 BC 07 01 C4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CE F9 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8D 3D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 3D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 C4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 3D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8D 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 41 01 00 35 04 06 00 CC F5 C1 17 0C C6 7A 45 B6 DE DF 2C 49 F5 [09:12:45]Write to MH i2c: 01 00 00 A8 08 B0 [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: 01 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: 01 07 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: 01 07 00 A8 08 00 00 00 00 00 0B 0D CF [09:12:45]RasterBufferAndPrint [09:12:45]line [09:12:45]line [09:12:45]line [09:12:45]line [09:12:45]line [09:12:45]written 0, free lines is 3352 [09:12:45]MH_Cut [09:12:45]Write to MH i2c: D1 01 00 AF 08 01 89 [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: D1 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: D1 01 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: D1 01 00 AF 08 00 88 [09:12:45]Write to MH i2c: 01 00 00 B0 08 B8 [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D2 20 47 00 F7 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8B 41 01 00 F4 03 04 00 C8 CB 11 67 B6 04 01 00 00 BC 1E F4 29 8F 98 A5 22 [09:12:45]CommunicateWithHost err = 0 [09:12:45]CheckOFDResponse [09:12:45]1017 (14) - 77093643461234 [09:12:45]1041 (16) - 0000000000871843 [09:12:45]1040 (4) - 82315 [09:12:45]1012 (4) - 18.10.2024 02:45 [09:12:45]1206 (1) - 0 [09:12:45]OFD Sender: Remove packet 82315 [09:12:45]ProducePacketName [09:12:45]name=ofd_packets/00082315 [09:12:45]NVStorageDeleteData [09:12:45]*** Cut start [09:12:45]*** Partial cut [09:12:45]*** CUTSNS_PIN = 1 [09:12:45]*** CUTSNS_PIN = 0 [09:12:45]OFD Sender: No OFD packet to send [09:12:46]*** Brake cut motor [09:12:46]Read from MH i2c: 01 [09:12:46]MH_I2C_Read... [09:12:46]*** Stop cut motor [09:12:46]*** Cut end [09:12:46]Read from MH i2c: 01 07 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: 01 07 00 B0 08 00 00 00 00 00 FF 0F CD [09:12:46]process_action close_receipt done [09:12:46]requested_data is exist [09:12:46]produce_requested_data [09:12:46]requested_item fm.sn is exist - process it [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 11 00 00 [09:12:46]Write to MH i2c: E2 08 00 B1 08 80 11 00 00 00 00 00 00 33 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 17 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 17 00 B1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 85 [09:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:46]wFMCommunicate OK [09:12:46]requested_item fd.num is exist - process it [09:12:46]SAM_PROTO_GetFieldsCounters [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 13 00 00 [09:12:46]Write to MH i2c: E2 08 00 B2 08 80 13 00 00 00 00 00 00 36 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 62 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 62 00 B2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8B 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8B 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:46]wFMCommunicate OK [09:12:46]SAM_PROTO_GetFieldsCounters done [09:12:46]requested_item shift.num is exist - process it [09:12:46]requested_item shift.opened is exist - process it [09:12:46]req_shift_opened [09:12:46]FM_GetShiftState [09:12:46]SAM_PROTO_GetShiftState [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 13 01 00 [09:12:46]Write to MH i2c: E2 08 00 B3 08 80 13 01 00 00 00 00 00 38 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 0E 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 0E 00 B3 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 0A [09:12:46]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:46]wFMCommunicate OK [09:12:46]SAM_PROTO_GetShiftState done [09:12:46]FM_GetShiftState done [09:12:46]req_shift_opened done [09:12:46]requested_item shift.open_date is exist - process it [09:12:46]req_shift_open_date [09:12:46]req_shift_open_date done [09:12:46]produce_requested_data done [09:12:46]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82315,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:12:46]process_action_free close_receipt [09:12:46]json_value_free [09:12:46]json_value_free done [09:12:46]process_json_proto returns [09:12:46]Send response to host [09:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82315,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:12:46]free response buf [09:12:46]execute_script done [09:12:46]execute_script returns [09:12:46]free content buf [09:12:46]Sock 9.Close socket [09:12:46]Sock 9.Thread stoped [09:12:50]OFD Sender: No OFD packet to send [09:12:53]accept exits with 10 [09:12:53]New connection [09:12:53]New thread 3067297124 created [09:12:53]Thread 3067440484 joined [09:12:53]Waiting for new connection... [09:12:53] Sock 10.Parse request [09:12:53]Sock 10.Check first char [09:12:53]Sock 10.First char is OK [09:12:53]request: POST /json_proto HTTP/1.0 [09:12:53]Method: POST [09:12:53]URL: /json_proto [09:12:53]Method is POST - this is cgi request [09:12:53]url: /json_proto [09:12:53]query_string will be loaded in cgi processing [09:12:53]execute_cgi json_proto POST (null) [09:12:53]execute_cgi path=json_proto method=POST [09:12:53]POST find Content-Length [09:12:53]Host: 172.17.44.67:8080 [09:12:53]Content-Length: 677 [09:12:53]Content-Type: application/json [09:12:53] [09:12:53]POST finish read [09:12:53]Found Content-Length = 677 [09:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:53]execute_script... [09:12: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)918814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:53]POST & json_proto [09:12:53]process_json_proto [09:12:53]json parsed OK: [09:12:53]protocol is kg_v1.0 [09:12:53]action value=close_receipt [09:12:53]process_action close_receipt [09:12:53]cmd_close_receipt [09:12:53]MH_GetDate [09:12:53]Write to MH i2c: F0 00 00 B4 08 AB [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: F0 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: F0 09 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: F0 09 00 B4 08 00 98 26 12 67 F1 C7 6B 64 72 [09:12:53]GetLastDocTimeStamp 1729242765 [09:12:53]current date 1729242776 [09:12:53]FM_GetShiftState [09:12:53]SAM_PROTO_GetShiftState [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 13 01 00 [09:12:53]Write to MH i2c: E2 08 00 B5 08 80 13 01 00 00 00 00 00 3A [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 0E 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 0E 00 B5 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 0C [09:12:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:53]wFMCommunicate OK [09:12:53]SAM_PROTO_GetShiftState done [09:12:53]FM_GetShiftState done [09:12:53]opened in 1729212319 [09:12:53]opened+sec_in_day 1729298719 [09:12:53]quantity*price = 40006 [09:12:53]sum+1 = 40007 [09:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 25 18.10.2024 09:12 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82316 ФПД: 176381219864818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091256&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82316&fm=176381219864818&tin=02508201610067®Number=0000000000091680&sum=40000 [09:12:54]StoreToDocumentArchive [09:12:54]shift 526 fd 82316 [09:12:54]save to /storage/0526/doc_00082316 [09:12:54]save last doc name /storage/0526/doc_00082316 to /storage/kkm_last_doc_name [09:12:54]save OK [09:12:54]Clear old archive folders... [09:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:54]tlvbuf is 00B33110 [09:12:54]SAM_PROTO_ClearQueue [09:12:54]wFMCommunicate request_size=4 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 09 00 00 [09:12:54]Write to MH i2c: E2 08 00 C2 08 80 09 00 00 00 00 00 00 3C [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 C2 08 00 90 00 3E [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]SAM_PROTO_ClearQueue done [09:12:54]KKMCreateOFDPacket [09:12:54]OFDProtocolAddRootSTLVToBuf [09:12:54]FM_MakeSignedData [09:12:54]FM_MakeSignedData [09:12:54]SAM_PROTO_SignData [09:12:54]wFMCommunicate request_size=4 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 0D 01 02 [09:12:54]Write to MH i2c: E2 08 00 C3 08 80 0D 01 02 00 00 00 00 44 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 C3 08 00 90 00 3F [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]wFMCommunicate request_size=255 [09:12:54]MH_SAM_APDU [09:12: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 98 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 41 01 00 35 04 06 00 A0 [09:12:54]Write to MH i2c: E2 02 01 C4 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 98 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 41 01 00 35 04 06 00 A0 00 00 6D [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]wFMCommunicate request_size=10 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 0D 02 02 05 6A F3 F4 80 F2 [09:12:54]Write to MH i2c: E2 0D 00 C5 08 80 0D 02 02 05 00 6A F3 F4 80 F2 00 00 14 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [09:12:54]RAPDU: 90 00 [09:12:54]wFMCommunicate OK [09:12:54]wFMCommunicate request_size=4 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 0D 03 02 [09:12:54]Write to MH i2c: E2 08 00 C6 08 80 0D 03 02 00 00 00 00 49 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 0B 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 0B 00 C6 08 00 31 8B 44 42 02 6C 24 61 90 00 7F [09:12:54]RAPDU: 31 8B 44 42 02 6C 24 61 90 00 [09:12:54]wFMCommunicate OK [09:12:54]SAM_PROTO_SignData done [09:12:54]FM_MakeSignedData done [09:12:54]CreateOFDProtocolMessage [09:12:54]wFMCommunicate request_size=4 [09:12:54]MH_SAM_APDU [09:12:54]CAPDU: 80 11 00 00 [09:12:54]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 17 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9B [09:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:54]wFMCommunicate OK [09:12:54]CreateOFDProtocolMessage done [09:12:54]OFDSenderStorePacket 82316 [09:12:54]StoreOFDPacket docnum=82316 [09:12:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 58 84 07 01 26 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 98 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 41 01 00 35 04 06 00 A0 6A F3 F4 80 F2 31 8B 44 42 02 6C 24 61 [09:12:54]CheckFolder [09:12:54]dirname=/storage/ofd_packets [09:12:54]CheckFolder done [09:12:54]ProducePacketName [09:12:54]name=ofd_packets/00082316 [09:12:54]NVStorageSaveData ofd_packets/00082316 [09:12:54]File name is /storage/ofd_packets/00082316 [09:12:54]Write 301 bytes [09:12:54]NVStorageSaveData done [09:12:54]OFDSenderStorePacket done [09:12:54]KKMCreateOFDPacket done [09:12:54]NVStorageSaveData kkm_last_timestamp [09:12:54]File name is /storage/kkm_last_timestamp [09:12:54]Write 4 bytes [09:12:54]NVStorageSaveData done [09:12:54]ExternCall_PrintAddStr [09:12:54]wPrintStart [09:12:54]Write to MH i2c: 01 00 00 C8 08 D0 [09:12:54]Write i2c OK [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 07 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 FF 0F E5 [09:12:54]RasterBufferAndPrint [09:12:54]line Счет N : (1)918814 [09:12:54]line ИНН: 02508201610067 [09:12:54]line Контрольно-Кассовый Чек [09:12:54]line ПРОДАЖА [09:12:54]line ТРК (МРК, ГНК) : 11 [09:12:54]line Товар: 2710124130 [09:12:54]line Аи-92-К-4 [09:12:54]line 5.980 * 66.90 [09:12:54]line = 400.06 [09:12:54]line НДС 12% НСП 1% [09:12:54]line > о реализуемом товаре [09:12:54]line ОКРУГЛЕНИЕ: -0.06 [09:12:54]line ИТОГО: 400.00 [09:12:54]line Внесено: 400.00 [09:12:54]line СДАЧА: 0.00 [09:12:54]line НСП 1% : 3.54 [09:12:54]line НДС 12% : 42.48 [09:12:54]line Наличными: 400.00 [09:12:54]line Безнал.: 0.00 [09:12:54]line Место: АЗС № 114 "Партнер Нефть" [09:12:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:12:54]line СНО: Общий режим [09:12:54]line Чек 25 18.10.2024 09:12 [09:12:54]line Смена: 526 ФФД: 1.0 [09:12:54]line ЗНМ: 0300000086 [09:12:54]line РНМ: 0000000000091680 [09:12:54]line Версия ККМ: 001 [09:12:54]line ФМ: 0000000000871843 [09:12:54]line ФД: 82316 [09:12:54]line ФПД: 176381219864818 [09:12:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091256&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82316&fm=176381219864818&tin=02508201610067®Number=0000000000091680&sum=40000 [09:12:54]written 0, free lines is 4095 [09:12:54]OFD Sender: Processing packet 82316 [packets to send 254, broken 253] [09:12:54]ProducePacketName [09:12:54]name=ofd_packets/00082316 [09:12:54]OFD Sender: To server: pG, [09:12:54]CommunicateWithHost lk.salyk.kg:30040 [09:12:54]ConnectInit lk.salyk.kg [09:12:55]Connected sock=8 [09:12:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 58 84 07 01 26 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 98 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 41 01 00 35 04 06 00 A0 6A F3 F4 80 F2 31 8B 44 42 02 6C 24 61 [09:12:55]Write to MH i2c: 01 00 00 F3 08 FB [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: 01 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: 01 07 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: 01 07 00 F3 08 00 00 00 00 00 80 0D 8F [09:12:55]RasterBufferAndPrint [09:12:55]line [09:12:55]line [09:12:55]line [09:12:55]line [09:12:55]line [09:12:55]written 0, free lines is 3474 [09:12:55]MH_Cut [09:12:55]Write to MH i2c: D1 01 00 FA 08 01 D4 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: D1 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: D1 01 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: D1 01 00 FA 08 00 D3 [09:12:55]Write to MH i2c: 01 00 00 FB 08 03 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 60 F8 47 00 87 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8C 41 01 00 F4 03 04 00 D3 CB 11 67 B6 04 01 00 00 1A FB EA 0A 1C 10 27 C3 [09:12:55]CommunicateWithHost err = 0 [09:12:55]CheckOFDResponse [09:12:55]1017 (14) - 77093643461234 [09:12:55]1041 (16) - 0000000000871843 [09:12:55]1040 (4) - 82316 [09:12:55]1012 (4) - 18.10.2024 02:45 [09:12:55]1206 (1) - 0 [09:12:55]OFD Sender: Remove packet 82316 [09:12:55]ProducePacketName [09:12:55]name=ofd_packets/00082316 [09:12:55]NVStorageDeleteData [09:12:56]*** Cut start [09:12:56]*** Partial cut [09:12:56]*** CUTSNS_PIN = 1 [09:12:56]*** CUTSNS_PIN = 0 [09:12:56]OFD Sender: No OFD packet to send [09:12:56]*** Brake cut motor [09:12:56]Read from MH i2c: 01 [09:12:56]MH_I2C_Read... [09:12:56]*** Stop cut motor [09:12:56]*** Cut end [09:12:56]Read from MH i2c: 01 07 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: 01 07 00 FB 08 00 00 00 00 00 FF 0F 18 [09:12:56]process_action close_receipt done [09:12:56]requested_data is exist [09:12:56]produce_requested_data [09:12:56]requested_item fm.sn is exist - process it [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 11 00 00 [09:12:56]Write to MH i2c: E2 08 00 FC 08 80 11 00 00 00 00 00 00 7E [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 17 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 17 00 FC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D0 [09:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:12:56]wFMCommunicate OK [09:12:56]requested_item fd.num is exist - process it [09:12:56]SAM_PROTO_GetFieldsCounters [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 13 00 00 [09:12:56]Write to MH i2c: E2 08 00 FD 08 80 13 00 00 00 00 00 00 81 [09:12:56]Write i2c OK [09:12:56]MH_I2C_Read... [09:12:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:56]Read from MH i2c: E2 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 62 00 [09:12:56]MH_I2C_Read... [09:12:56]Read from MH i2c: E2 62 00 FD 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8C 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:12:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8C 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:56]wFMCommunicate OK [09:12:56]SAM_PROTO_GetFieldsCounters done [09:12:56]requested_item shift.num is exist - process it [09:12:56]requested_item shift.opened is exist - process it [09:12:56]req_shift_opened [09:12:56]FM_GetShiftState [09:12:56]SAM_PROTO_GetShiftState [09:12:56]wFMCommunicate request_size=4 [09:12:56]MH_SAM_APDU [09:12:56]CAPDU: 80 13 01 00 [09:12:57]Write to MH i2c: E2 08 00 FE 08 80 13 01 00 00 00 00 00 83 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0E 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0E 00 FE 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 55 [09:12:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:12:57]wFMCommunicate OK [09:12:57]SAM_PROTO_GetShiftState done [09:12:57]FM_GetShiftState done [09:12:57]req_shift_opened done [09:12:57]requested_item shift.open_date is exist - process it [09:12:57]req_shift_open_date [09:12:57]req_shift_open_date done [09:12:57]produce_requested_data done [09:12:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82316,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:12:57]process_action_free close_receipt [09:12:57]json_value_free [09:12:57]json_value_free done [09:12:57]process_json_proto returns [09:12:57]Send response to host [09:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82316,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:12:57]free response buf [09:12:57]execute_script done [09:12:57]execute_script returns [09:12:57]free content buf [09:12:57]Sock 10.Close socket [09:12:57]Sock 10.Thread stoped [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:07]accept exits with 9 [09:13:07]New connection [09:13:07]New thread 3067440484 created [09:13:07]Thread 3067297124 joined [09:13:07]Waiting for new connection... [09:13:07] Sock 9.Parse request [09:13:07]Sock 9.Check first char [09:13:07]Sock 9.First char is OK [09:13:07]request: POST /json_proto HTTP/1.0 [09:13:07]Method: POST [09:13:07]URL: /json_proto [09:13:07]Method is POST - this is cgi request [09:13:07]url: /json_proto [09:13:07]query_string will be loaded in cgi processing [09:13:07]execute_cgi json_proto POST (null) [09:13:07]execute_cgi path=json_proto method=POST [09:13:07]POST find Content-Length [09:13:07]Host: 172.17.44.67:8080 [09:13:07]Content-Length: 682 [09:13:07]Content-Type: application/json [09:13:07] [09:13:07]POST finish read [09:13:07]Found Content-Length = 682 [09:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:07]execute_script... [09:13: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)918813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:07]POST & json_proto [09:13:07]process_json_proto [09:13:07]json parsed OK: [09:13:07]protocol is kg_v1.0 [09:13:07]action value=close_receipt [09:13:07]process_action close_receipt [09:13:07]cmd_close_receipt [09:13:07]MH_GetDate [09:13:07]Write to MH i2c: F0 00 00 FF 08 F6 [09:13:07]Write i2c OK [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: F0 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: F0 09 00 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: F0 09 00 FF 08 00 A6 26 12 67 F1 C7 6B 64 CB [09:13:07]GetLastDocTimeStamp 1729242776 [09:13:07]current date 1729242790 [09:13:07]FM_GetShiftState [09:13:07]SAM_PROTO_GetShiftState [09:13:07]wFMCommunicate request_size=4 [09:13:07]MH_SAM_APDU [09:13:07]CAPDU: 80 13 01 00 [09:13:07]Write to MH i2c: E2 08 00 00 09 80 13 01 00 00 00 00 00 86 [09:13:07]Write i2c OK [09:13:07]MH_I2C_Read... [09:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:07]Read from MH i2c: E2 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: E2 0E 00 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: E2 0E 00 00 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 58 [09:13:07]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:13:07]wFMCommunicate OK [09:13:07]SAM_PROTO_GetShiftState done [09:13:07]FM_GetShiftState done [09:13:07]opened in 1729212319 [09:13:07]opened+sec_in_day 1729298719 [09:13:07]quantity*price = 130053 [09:13:07]sum+1 = 130055 [09:13:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 26 18.10.2024 09:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82317 ФПД: 86460796016616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091310&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82317&fm=86460796016616&tin=02508201610067®Number=0000000000091680&sum=130000 [09:13:08]StoreToDocumentArchive [09:13:08]shift 526 fd 82317 [09:13:08]save to /storage/0526/doc_00082317 [09:13:08]save last doc name /storage/0526/doc_00082317 to /storage/kkm_last_doc_name [09:13:08]save OK [09:13:08]Clear old archive folders... [09:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:08]tlvbuf is 00B2E180 [09:13:08]SAM_PROTO_ClearQueue [09:13:08]wFMCommunicate request_size=4 [09:13:08]MH_SAM_APDU [09:13:08]CAPDU: 80 09 00 00 [09:13:08]Write to MH i2c: E2 08 00 0D 09 80 09 00 00 00 00 00 00 88 [09:13:08]Write i2c OK [09:13:08]MH_I2C_Read... [09:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:08]Read from MH i2c: E2 [09:13:08]MH_I2C_Read... [09:13:08]Read from MH i2c: E2 03 00 [09:13:08]MH_I2C_Read... [09:13:08]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [09:13:08]RAPDU: 90 00 [09:13:08]wFMCommunicate OK [09:13:08]SAM_PROTO_ClearQueue done [09:13:08]KKMCreateOFDPacket [09:13:08]OFDProtocolAddRootSTLVToBuf [09:13:08]FM_MakeSignedData [09:13:08]FM_MakeSignedData [09:13:08]SAM_PROTO_SignData [09:13:08]wFMCommunicate request_size=4 [09:13:08]MH_SAM_APDU [09:13:08]CAPDU: 80 0D 01 02 [09:13:08]Write to MH i2c: E2 08 00 0E 09 80 0D 01 02 00 00 00 00 90 [09:13:08]Write i2c OK [09:13:08]MH_I2C_Read... [09:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:08]Read from MH i2c: E2 [09:13:08]MH_I2C_Read... [09:13:08]Read from MH i2c: E2 03 00 [09:13:08]MH_I2C_Read... [09:13:08]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [09:13:08]RAPDU: 90 00 [09:13:08]wFMCommunicate OK [09:13:08]wFMCommunicate request_size=255 [09:13:08]MH_SAM_APDU [09:13:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A6 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 41 01 00 35 04 06 00 4E [09:13:08]Write to MH i2c: E2 02 01 0F 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 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A6 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 41 01 00 35 04 06 00 4E 00 00 E0 [09:13:08]Write i2c OK [09:13:08]MH_I2C_Read... [09:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:09]Read from MH i2c: E2 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 03 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 03 00 0F 09 00 90 00 8C [09:13:09]RAPDU: 90 00 [09:13:09]wFMCommunicate OK [09:13:09]wFMCommunicate request_size=10 [09:13:09]MH_SAM_APDU [09:13:09]CAPDU: 80 0D 02 02 05 A2 B9 08 97 E8 [09:13:09]Write to MH i2c: E2 0D 00 10 09 80 0D 02 02 05 00 A2 B9 08 97 E8 00 00 7F [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:09]Read from MH i2c: E2 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 03 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 03 00 10 09 00 90 00 8D [09:13:09]RAPDU: 90 00 [09:13:09]wFMCommunicate OK [09:13:09]wFMCommunicate request_size=4 [09:13:09]MH_SAM_APDU [09:13:09]CAPDU: 80 0D 03 02 [09:13:09]Write to MH i2c: E2 08 00 11 09 80 0D 03 02 00 00 00 00 95 [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:09]Read from MH i2c: E2 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 0B 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 0B 00 11 09 00 A3 E8 59 96 6C 04 E6 EC 90 00 52 [09:13:09]RAPDU: A3 E8 59 96 6C 04 E6 EC 90 00 [09:13:09]wFMCommunicate OK [09:13:09]SAM_PROTO_SignData done [09:13:09]FM_MakeSignedData done [09:13:09]CreateOFDProtocolMessage [09:13:09]wFMCommunicate request_size=4 [09:13:09]MH_SAM_APDU [09:13:09]CAPDU: 80 11 00 00 [09:13:09]Write to MH i2c: E2 08 00 12 09 80 11 00 00 00 00 00 00 95 [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:09]Read from MH i2c: E2 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 17 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 17 00 12 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E7 [09:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:13:09]wFMCommunicate OK [09:13:09]CreateOFDProtocolMessage done [09:13:09]OFDSenderStorePacket 82317 [09:13:09]StoreOFDPacket docnum=82317 [09:13:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 54 BE 07 01 45 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A6 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 41 01 00 35 04 06 00 4E A2 B9 08 97 E8 A3 E8 59 96 6C 04 E6 EC [09:13:09]CheckFolder [09:13:09]dirname=/storage/ofd_packets [09:13:09]CheckFolder done [09:13:09]ProducePacketName [09:13:09]name=ofd_packets/00082317 [09:13:09]NVStorageSaveData ofd_packets/00082317 [09:13:09]File name is /storage/ofd_packets/00082317 [09:13:09]Write 301 bytes [09:13:09]NVStorageSaveData done [09:13:09]OFDSenderStorePacket done [09:13:09]KKMCreateOFDPacket done [09:13:09]NVStorageSaveData kkm_last_timestamp [09:13:09]File name is /storage/kkm_last_timestamp [09:13:09]Write 4 bytes [09:13:09]NVStorageSaveData done [09:13:09]ExternCall_PrintAddStr [09:13:09]wPrintStart [09:13:09]Write to MH i2c: 01 00 00 13 09 1C [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: 01 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: 01 07 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: 01 07 00 13 09 00 00 00 00 00 FF 0F 31 [09:13:09]RasterBufferAndPrint [09:13:09]line Счет N : (1)918813 [09:13:09]line ИНН: 02508201610067 [09:13:09]line Контрольно-Кассовый Чек [09:13:09]line ПРОДАЖА [09:13:09]line ТРК (МРК, ГНК) : 22 [09:13:09]line Товар: 2710124130 [09:13:09]line Аи-92-К-4 [09:13:09]line 19.440 * 66.90 [09:13:09]line = 1300.54 [09:13:09]line НДС 12% НСП 1% [09:13:09]line > о реализуемом товаре [09:13:09]line ОКРУГЛЕНИЕ: -0.54 [09:13:09]line ИТОГО: 1300.00 [09:13:09]line Внесено: 1300.00 [09:13:09]line СДАЧА: 0.00 [09:13:09]line НСП 1% : 11.51 [09:13:09]line НДС 12% : 138.11 [09:13:09]line Наличными: 1300.00 [09:13:09]line Безнал.: 0.00 [09:13:09]line Место: АЗС № 114 "Партнер Нефть" [09:13:09]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:13:09]line СНО: Общий режим [09:13:09]line Чек 26 18.10.2024 09:13 [09:13:09]line Смена: 526 ФФД: 1.0 [09:13:09]line ЗНМ: 0300000086 [09:13:09]line РНМ: 0000000000091680 [09:13:09]line Версия ККМ: 001 [09:13:09]line ФМ: 0000000000871843 [09:13:09]line ФД: 82317 [09:13:09]line ФПД: 86460796016616 [09:13:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091310&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82317&fm=86460796016616&tin=02508201610067®Number=0000000000091680&sum=130000 [09:13:09]written 0, free lines is 4095 [09:13:09]OFD Sender: Processing packet 82317 [packets to send 254, broken 253] [09:13:09]ProducePacketName [09:13:09]name=ofd_packets/00082317 [09:13:09]OFD Sender: To server: pG, [09:13:09]CommunicateWithHost lk.salyk.kg:30040 [09:13:09]ConnectInit lk.salyk.kg [09:13:09]Write to MH i2c: 01 00 00 3E 09 47 [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: 01 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: 01 07 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: 01 07 00 3E 09 00 00 00 00 00 DA 0C 34 [09:13:09]RasterBufferAndPrint [09:13:09]line [09:13:09]line [09:13:09]line [09:13:09]line [09:13:09]line [09:13:09]written 0, free lines is 3315 [09:13:09]MH_Cut [09:13:09]Write to MH i2c: D1 01 00 45 09 01 20 [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: D1 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: D1 01 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: D1 01 00 45 09 00 1F [09:13:09]Write to MH i2c: 01 00 00 46 09 4F [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:10]*** Cut start [09:13:10]*** Partial cut [09:13:10]*** CUTSNS_PIN = 1 [09:13:10]*** CUTSNS_PIN = 0 [09:13:10]Connected sock=11 [09: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 31 38 34 33 0F 01 00 00 54 BE 07 01 45 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A6 26 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 41 01 00 35 04 06 00 4E A2 B9 08 97 E8 A3 E8 59 96 6C 04 E6 EC [09:13:10]*** Brake cut motor [09:13:11]Read from MH i2c: 01 [09:13:11]MH_I2C_Read... [09:13:11]*** Stop cut motor [09:13:11]*** Cut end [09:13:11]Read from MH i2c: 01 07 00 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: 01 07 00 46 09 00 00 00 00 00 FF 0F 64 [09:13:11]process_action close_receipt done [09:13:11]requested_data is exist [09:13:11]produce_requested_data [09:13:11]requested_item fm.sn is exist - process it [09:13:11]wFMCommunicate request_size=4 [09:13:11]MH_SAM_APDU [09:13:11]CAPDU: 80 11 00 00 [09:13:11]Write to MH i2c: E2 08 00 47 09 80 11 00 00 00 00 00 00 CA [09:13:11]Write i2c OK [09:13:11]MH_I2C_Read... [09:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:11]Read from MH i2c: E2 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 17 00 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 17 00 47 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1C [09:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:13:11]wFMCommunicate OK [09:13:11]requested_item fd.num is exist - process it [09:13:11]SAM_PROTO_GetFieldsCounters [09:13:11]wFMCommunicate request_size=4 [09:13:11]MH_SAM_APDU [09:13:11]CAPDU: 80 13 00 00 [09:13:11]Write to MH i2c: E2 08 00 48 09 80 13 00 00 00 00 00 00 CD [09:13:11]Write i2c OK [09:13:11]MH_I2C_Read... [09:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 81 0B 47 00 7B 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8D 41 01 00 F4 03 04 00 E2 CB 11 67 B6 04 01 00 00 68 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:11]07 Read from MH i2c: 2D E2 89 [09:13:11]52 MH_I2C_Read... [09:13:11]0C Read from MH i2c: 35 E2 5C 62 [09:13:11]00 CommunicateWithHost err = 0 [09:13:11] [09:13:11]CheckOFDResponse [09:13:11]MH_I2C_Read... [09:13:11]1017 (14) - 77093643461234 [09:13:11]1041 (16) - 0000000000871843 [09:13:11]1040 (4) - 82317 [09:13:11]1012 (4) - 18.10.2024 02:45 [09:13:11]1206 (1) - 0 [09:13:11]Read from MH i2c: OFD Sender: Remove packet 82317 [09:13:11]E2 ProducePacketName [09:13:11]62 name=ofd_packets/00082317 [09:13:11]00 NVStorageDeleteData [09:13:11]48 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8D 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8D 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:11]wFMCommunicate OK [09:13:11]SAM_PROTO_GetFieldsCounters done [09:13:11]requested_item shift.num is exist - process it [09:13:11]requested_item shift.opened is exist - process it [09:13:11]req_shift_opened [09:13:11]FM_GetShiftState [09:13:11]SAM_PROTO_GetShiftState [09:13:11]wFMCommunicate request_size=4 [09:13:11]MH_SAM_APDU [09:13:11]CAPDU: 80 13 01 00 [09:13:11]Write to MH i2c: E2 08 00 49 09 80 13 01 00 00 00 00 00 CF [09:13:11]Write i2c OK [09:13:11]MH_I2C_Read... [09:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:11]Read from MH i2c: E2 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 0E 00 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 0E 00 49 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A1 [09:13:11]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:13:11]wFMCommunicate OK [09:13:11]SAM_PROTO_GetShiftState done [09:13:11]FM_GetShiftState done [09:13:11]req_shift_opened done [09:13:11]requested_item shift.open_date is exist - process it [09:13:11]req_shift_open_date [09:13:11]req_shift_open_date done [09:13:11]produce_requested_data done [09:13:11]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82317,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:13:11]process_action_free close_receipt [09:13:11]json_value_free [09:13:11]json_value_free done [09:13:11]process_json_proto returns [09:13:11]Send response to host [09:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82317,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:13:11]free response buf [09:13:11]execute_script done [09:13:11]execute_script returns [09:13:11]free content buf [09:13:11]Sock 9.Close socket [09:13:11]Sock 9.Thread stoped [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:16:58]accept exits with 8 [09:16:58]New connection [09:16:58]New thread 3067297124 created [09:16:58]Thread 3067440484 joined [09:16:58]Waiting for new connection... [09:16:58] Sock 8.Parse request [09:16:58]Sock 8.Check first char [09:16:58]Sock 8.First char is OK [09:16:58]request: POST /json_proto HTTP/1.0 [09:16:58]Method: POST [09:16:58]URL: /json_proto [09:16:58]Method is POST - this is cgi request [09:16:58]url: /json_proto [09:16:58]query_string will be loaded in cgi processing [09:16:58]execute_cgi json_proto POST (null) [09:16:58]execute_cgi path=json_proto method=POST [09:16:58]POST find Content-Length [09:16:58]Host: 172.17.44.67:8080 [09:16:58]Content-Length: 677 [09:16:58]Content-Type: application/json [09:16:58] [09:16:58]POST finish read [09:16:58]Found Content-Length = 677 [09:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:58]execute_script... [09:16: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)918816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:58]POST & json_proto [09:16:58]process_json_proto [09:16:58]json parsed OK: [09:16:58]protocol is kg_v1.0 [09:16:58]action value=close_receipt [09:16:58]process_action close_receipt [09:16:58]cmd_close_receipt [09:16:58]MH_GetDate [09:16:58]Write to MH i2c: F0 00 00 4A 09 42 [09:16:58]Write i2c OK [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: F0 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: F0 09 00 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: F0 09 00 4A 09 00 8D 27 12 67 F1 C7 6B 64 FF [09:16:58]GetLastDocTimeStamp 1729242790 [09:16:58]current date 1729243021 [09:16:58]FM_GetShiftState [09:16:58]SAM_PROTO_GetShiftState [09:16:58]wFMCommunicate request_size=4 [09:16:58]MH_SAM_APDU [09:16:58]CAPDU: 80 13 01 00 [09:16:58]Write to MH i2c: E2 08 00 4B 09 80 13 01 00 00 00 00 00 D1 [09:16:58]Write i2c OK [09:16:58]MH_I2C_Read... [09:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:58]Read from MH i2c: E2 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: E2 0E 00 [09:16:58]MH_I2C_Read... [09:16:58]Read from MH i2c: E2 0E 00 4B 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A3 [09:16:58]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:16:58]wFMCommunicate OK [09:16:58]SAM_PROTO_GetShiftState done [09:16:58]FM_GetShiftState done [09:16:58]opened in 1729212319 [09:16:58]opened+sec_in_day 1729298719 [09:16:58]quantity*price = 50041 [09:16:58]sum+1 = 50042 [09:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 27 18.10.2024 09:17 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82318 ФПД: 133777709690969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091701&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82318&fm=133777709690969&tin=02508201610067®Number=0000000000091680&sum=50000 [09:17:00]StoreToDocumentArchive [09:17:00]shift 526 fd 82318 [09:17:00]save to /storage/0526/doc_00082318 [09:17:00]save last doc name /storage/0526/doc_00082318 to /storage/kkm_last_doc_name [09:17:00]save OK [09:17:00]Clear old archive folders... [09:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:00]tlvbuf is 00B2DC70 [09:17:00]SAM_PROTO_ClearQueue [09:17:00]wFMCommunicate request_size=4 [09:17:00]MH_SAM_APDU [09:17:00]CAPDU: 80 09 00 00 [09:17:00]Write to MH i2c: E2 08 00 58 09 80 09 00 00 00 00 00 00 D3 [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:00]Read from MH i2c: E2 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [09:17:00]RAPDU: 90 00 [09:17:00]wFMCommunicate OK [09:17:00]SAM_PROTO_ClearQueue done [09:17:00]KKMCreateOFDPacket [09:17:00]OFDProtocolAddRootSTLVToBuf [09:17:00]FM_MakeSignedData [09:17:00]FM_MakeSignedData [09:17:00]SAM_PROTO_SignData [09:17:00]wFMCommunicate request_size=4 [09:17:00]MH_SAM_APDU [09:17:00]CAPDU: 80 0D 01 02 [09:17:00]Write to MH i2c: E2 08 00 59 09 80 0D 01 02 00 00 00 00 DB [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:00]Read from MH i2c: E2 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [09:17:00]RAPDU: 90 00 [09:17:00]wFMCommunicate OK [09:17:00]wFMCommunicate request_size=255 [09:17:00]MH_SAM_APDU [09:17: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8D 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 41 01 00 35 04 06 00 79 [09:17:00]Write to MH i2c: E2 02 01 5A 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8D 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 41 01 00 35 04 06 00 79 00 00 08 [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:00]Read from MH i2c: E2 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 5A 09 00 90 00 D7 [09:17:00]RAPDU: 90 00 [09:17:00]wFMCommunicate OK [09:17:00]wFMCommunicate request_size=10 [09:17:00]MH_SAM_APDU [09:17:00]CAPDU: 80 0D 02 02 05 AB 8C DD 70 59 [09:17:00]Write to MH i2c: E2 0D 00 5B 09 80 0D 02 02 05 00 AB 8C DD 70 59 00 00 C5 [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:00]Read from MH i2c: E2 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 03 00 5B 09 00 90 00 D8 [09:17:00]RAPDU: 90 00 [09:17:00]wFMCommunicate OK [09:17:00]wFMCommunicate request_size=4 [09:17:00]MH_SAM_APDU [09:17:00]CAPDU: 80 0D 03 02 [09:17:00]Write to MH i2c: E2 08 00 5C 09 80 0D 03 02 00 00 00 00 E0 [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:00]Read from MH i2c: E2 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 0B 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 0B 00 5C 09 00 80 64 0F 13 11 37 88 36 90 00 ED [09:17:00]RAPDU: 80 64 0F 13 11 37 88 36 90 00 [09:17:00]wFMCommunicate OK [09:17:00]SAM_PROTO_SignData done [09:17:00]FM_MakeSignedData done [09:17:00]CreateOFDProtocolMessage [09:17:00]wFMCommunicate request_size=4 [09:17:00]MH_SAM_APDU [09:17:00]CAPDU: 80 11 00 00 [09:17:00]Write to MH i2c: E2 08 00 5D 09 80 11 00 00 00 00 00 00 E0 [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:00]Read from MH i2c: E2 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 17 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: E2 17 00 5D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 32 [09:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:17:00]wFMCommunicate OK [09:17:00]CreateOFDProtocolMessage done [09:17:00]OFDSenderStorePacket 82318 [09:17:00]StoreOFDPacket docnum=82318 [09:17:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DF B8 07 01 CD 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8D 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 41 01 00 35 04 06 00 79 AB 8C DD 70 59 80 64 0F 13 11 37 88 36 [09:17:00]CheckFolder [09:17:00]dirname=/storage/ofd_packets [09:17:00]CheckFolder done [09:17:00]ProducePacketName [09:17:00]name=ofd_packets/00082318 [09:17:00]NVStorageSaveData ofd_packets/00082318 [09:17:00]File name is /storage/ofd_packets/00082318 [09:17:00]Write 301 bytes [09:17:00]NVStorageSaveData done [09:17:00]OFDSenderStorePacket done [09:17:00]KKMCreateOFDPacket done [09:17:00]NVStorageSaveData kkm_last_timestamp [09:17:00]File name is /storage/kkm_last_timestamp [09:17:00]Write 4 bytes [09:17:00]NVStorageSaveData done [09:17:00]OFD Sender: Processing packet 82318 [packets to send 254, broken 253] [09:17:00]ProducePacketName [09:17:00]name=ofd_packets/00082318 [09:17:00]OFD Sender: To server: pG, [09:17:00]CommunicateWithHost lk.salyk.kg:30040 [09:17:00]ConnectInit lk.salyk.kg [09:17:00]ExternCall_PrintAddStr [09:17:00]wPrintStart [09:17:00]Write to MH i2c: 01 00 00 5E 09 67 [09:17:00]Write i2c OK [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: 01 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: 01 07 00 [09:17:00]MH_I2C_Read... [09:17:00]Read from MH i2c: 01 07 00 5E 09 00 00 00 00 00 FF 0F 7C [09:17:00]RasterBufferAndPrint [09:17:00]line Счет N : (1)918816 [09:17:00]line ИНН: 02508201610067 [09:17:00]line Контрольно-Кассовый Чек [09:17:00]line ПРОДАЖА [09:17:00]line ТРК (МРК, ГНК) : 11 [09:17:00]line Товар: 2710124130 [09:17:00]line Аи-92-К-4 [09:17:00]line 7.480 * 66.90 [09:17:00]line = 500.41 [09:17:00]line НДС 12% НСП 1% [09:17:00]line > о реализуемом товаре [09:17:00]line ОКРУГЛЕНИЕ: -0.41 [09:17:00]line ИТОГО: 500.00 [09:17:00]line Внесено: 500.00 [09:17:00]line СДАЧА: 0.00 [09:17:00]line НСП 1% : 4.43 [09:17:00]line НДС 12% : 53.14 [09:17:00]line Наличными: 500.00 [09:17:00]line Безнал.: 0.00 [09:17:00]line Место: АЗС № 114 "Партнер Нефть" [09:17:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:17:00]line СНО: Общий режим [09:17:00]line Чек 27 18.10.2024 09:17 [09:17:00]line Смена: 526 ФФД: 1.0 [09:17:00]line ЗНМ: 0300000086 [09:17:00]line РНМ: 0000000000091680 [09:17:00]line Версия ККМ: 001 [09:17:00]line ФМ: 0000000000871843 [09:17:00]line ФД: 82318 [09:17:00]line ФПД: 133777709690969 [09:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091701&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82318&fm=133777709690969&tin=02508201610067®Number=0000000000091680&sum=50000 [09:17:00]written 0, free lines is 4095 [09:17:01]Connected sock=11 [09:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DF B8 07 01 CD 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8D 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 41 01 00 35 04 06 00 79 AB 8C DD 70 59 80 64 0F 13 11 37 88 36 [09:17:01]Write to MH i2c: 01 00 00 89 09 92 [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: 01 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: 01 07 00 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 D7 0C 7C [09:17:01]RasterBufferAndPrint [09:17:01]line [09:17:01]line [09:17:01]line [09:17:01]line [09:17:01]line [09:17:01]written 0, free lines is 3294 [09:17:01]MH_Cut [09:17:01]Write to MH i2c: D1 01 00 90 09 01 6B [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: D1 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: D1 01 00 [09:17:01]MH_I2C_Read... [09:17:01]Read from MH i2c: D1 01 00 90 09 00 6A [09:17:01]Write to MH i2c: 01 00 00 91 09 9A [09:17:01]Write i2c OK [09:17:01]MH_I2C_Read... [09:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 92 E8 47 00 62 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8E 41 01 00 F4 03 04 00 C9 CC 11 67 B6 04 01 00 00 F2 8E 2D EE EA 56 1C 00 [09:17:02]CommunicateWithHost err = 0 [09:17:02]CheckOFDResponse [09:17:02]1017 (14) - 77093643461234 [09:17:02]1041 (16) - 0000000000871843 [09:17:02]1040 (4) - 82318 [09:17:02]1012 (4) - 18.10.2024 02:49 [09:17:02]1206 (1) - 0 [09:17:02]OFD Sender: Remove packet 82318 [09:17:02]ProducePacketName [09:17:02]name=ofd_packets/00082318 [09:17:02]NVStorageDeleteData [09:17:02]*** Cut start [09:17:02]*** Partial cut [09:17:02]*** CUTSNS_PIN = 1 [09:17:02]*** CUTSNS_PIN = 0 [09:17:02]*** Brake cut motor [09:17:02]OFD Sender: No OFD packet to send [09:17:02]Read from MH i2c: 01 [09:17:02]MH_I2C_Read... [09:17:02]*** Stop cut motor [09:17:02]*** Cut end [09:17:02]Read from MH i2c: 01 07 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: 01 07 00 91 09 00 00 00 00 00 FF 0F AF [09:17:02]process_action close_receipt done [09:17:02]requested_data is exist [09:17:02]produce_requested_data [09:17:02]requested_item fm.sn is exist - process it [09:17:02]wFMCommunicate request_size=4 [09:17:02]MH_SAM_APDU [09:17:02]CAPDU: 80 11 00 00 [09:17:02]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:02]Read from MH i2c: E2 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 17 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 17 00 92 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 67 [09:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:17:02]wFMCommunicate OK [09:17:02]requested_item fd.num is exist - process it [09:17:02]SAM_PROTO_GetFieldsCounters [09:17:02]wFMCommunicate request_size=4 [09:17:02]MH_SAM_APDU [09:17:02]CAPDU: 80 13 00 00 [09:17:02]Write to MH i2c: E2 08 00 93 09 80 13 00 00 00 00 00 00 18 [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 62 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 62 00 93 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8E 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [09:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8E 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_GetFieldsCounters done [09:17:03]requested_item shift.num is exist - process it [09:17:03]requested_item shift.opened is exist - process it [09:17:03]req_shift_opened [09:17:03]FM_GetShiftState [09:17:03]SAM_PROTO_GetShiftState [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 13 01 00 [09:17:03]Write to MH i2c: E2 08 00 94 09 80 13 01 00 00 00 00 00 1A [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 94 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EC [09:17:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_GetShiftState done [09:17:03]FM_GetShiftState done [09:17:03]req_shift_opened done [09:17:03]requested_item shift.open_date is exist - process it [09:17:03]req_shift_open_date [09:17:03]req_shift_open_date done [09:17:03]produce_requested_data done [09:17:03]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82318,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:17:03]process_action_free close_receipt [09:17:03]json_value_free [09:17:03]json_value_free done [09:17:03]process_json_proto returns [09:17:03]Send response to host [09:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82318,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:17:03]free response buf [09:17:03]execute_script done [09:17:03]execute_script returns [09:17:03]free content buf [09:17:03]Sock 8.Close socket [09:17:03]Sock 8.Thread stoped [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:54]accept exits with 9 [09:17:54]New connection [09:17:54]New thread 3067440484 created [09:17:54]Thread 3067297124 joined [09:17:54]Waiting for new connection... [09:17:54] Sock 9.Parse request [09:17:54]Sock 9.Check first char [09:17:54]Sock 9.First char is OK [09:17:54]request: POST /json_proto HTTP/1.0 [09:17:54]Method: POST [09:17:54]URL: /json_proto [09:17:54]Method is POST - this is cgi request [09:17:54]url: /json_proto [09:17:54]query_string will be loaded in cgi processing [09:17:54]execute_cgi json_proto POST (null) [09:17:54]execute_cgi path=json_proto method=POST [09:17:54]POST find Content-Length [09:17:54]Host: 172.17.44.67:8080 [09:17:54]Content-Length: 792 [09:17:54]Content-Type: application/json [09:17:54] [09:17:54]POST finish read [09:17:54]Found Content-Length = 792 [09:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918817", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03202", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:54]execute_script... [09:17: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)918817", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03202", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:54]POST & json_proto [09:17:54]process_json_proto [09:17:54]json parsed OK: [09:17:54]protocol is kg_v1.0 [09:17:54]action value=close_receipt [09:17:54]process_action close_receipt [09:17:54]cmd_close_receipt [09:17:54]MH_GetDate [09:17:54]Write to MH i2c: F0 00 00 95 09 8D [09:17:54]Write i2c OK [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: F0 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: F0 09 00 [09:17:54]MH_I2C_Read... [09:17:54]Read from MH i2c: F0 09 00 95 09 00 C5 27 12 67 F1 C7 6B 64 82 [09:17:54]GetLastDocTimeStamp 1729243021 [09:17:54]current date 1729243077 [09:17:54]FM_GetShiftState [09:17:54]SAM_PROTO_GetShiftState [09:17:54]wFMCommunicate request_size=4 [09:17:54]MH_SAM_APDU [09:17:54]CAPDU: 80 13 01 00 [09:17:54]Write to MH i2c: E2 08 00 96 09 80 13 01 00 00 00 00 00 1C [09:17:54]Write i2c OK [09:17:54]MH_I2C_Read... [09:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:55]Read from MH i2c: E2 [09:17:55]MH_I2C_Read... [09:17:55]Read from MH i2c: E2 0E 00 [09:17:55]MH_I2C_Read... [09:17:55]Read from MH i2c: E2 0E 00 96 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EE [09:17:55]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:17:55]wFMCommunicate OK [09:17:55]SAM_PROTO_GetShiftState done [09:17:55]FM_GetShiftState done [09:17:55]opened in 1729212319 [09:17:55]opened+sec_in_day 1729298719 [09:17:55]quantity*price = 0 [09:17:55]sum+1 = 1 [09:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 28 18.10.2024 09:17 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 03202 ФМ: 0000000000871843 ФД: 82319 ФПД: 11310566865595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091758&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82319&fm=11310566865595&tin=02508201610067®Number=0000000000091680&sum=0 [09:17:56]StoreToDocumentArchive [09:17:56]shift 526 fd 82319 [09:17:56]save to /storage/0526/doc_00082319 [09:17:56]save last doc name /storage/0526/doc_00082319 to /storage/kkm_last_doc_name [09:17:56]save OK [09:17:56]Clear old archive folders... [09:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:56]tlvbuf is 00B31F20 [09:17:56]SAM_PROTO_ClearQueue [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 09 00 00 [09:17:56]Write to MH i2c: E2 08 00 A3 09 80 09 00 00 00 00 00 00 1E [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_ClearQueue done [09:17:56]KKMCreateOFDPacket [09:17:56]OFDProtocolAddRootSTLVToBuf [09:17:56]FM_MakeSignedData [09:17:56]FM_MakeSignedData [09:17:56]SAM_PROTO_SignData [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 0D 01 02 [09:17:56]Write to MH i2c: E2 08 00 A4 09 80 0D 01 02 00 00 00 00 26 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]wFMCommunicate request_size=255 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C6 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 41 01 00 35 04 06 00 0A [09:17:56]Write to MH i2c: E2 02 01 A5 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C6 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 41 01 00 35 04 06 00 0A 00 00 0D [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 A5 09 00 90 00 22 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]wFMCommunicate request_size=10 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 0D 02 02 05 49 72 51 FA BB [09:17:56]Write to MH i2c: E2 0D 00 A6 09 80 0D 02 02 05 00 49 72 51 FA BB 00 00 F4 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [09:17:56]RAPDU: 90 00 [09:17:56]wFMCommunicate OK [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 0D 03 02 [09:17:56]Write to MH i2c: E2 08 00 A7 09 80 0D 03 02 00 00 00 00 2B [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0B 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0B 00 A7 09 00 3B DA 8A 50 CE A7 7C F2 90 00 FE [09:17:56]RAPDU: 3B DA 8A 50 CE A7 7C F2 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_SignData done [09:17:56]FM_MakeSignedData done [09:17:56]CreateOFDProtocolMessage [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 11 00 00 [09:17:56]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 17 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7D [09:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:17:56]wFMCommunicate OK [09:17:56]CreateOFDProtocolMessage done [09:17:56]OFDSenderStorePacket 82319 [09:17:56]StoreOFDPacket docnum=82319 [09:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 12 E6 07 01 AB 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C6 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 41 01 00 35 04 06 00 0A 49 72 51 FA BB 3B DA 8A 50 CE A7 7C F2 [09:17:56]CheckFolder [09:17:56]dirname=/storage/ofd_packets [09:17:56]CheckFolder done [09:17:56]ProducePacketName [09:17:56]name=ofd_packets/00082319 [09:17:56]NVStorageSaveData ofd_packets/00082319 [09:17:56]File name is /storage/ofd_packets/00082319 [09:17:56]Write 301 bytes [09:17:56]NVStorageSaveData done [09:17:56]OFDSenderStorePacket done [09:17:56]KKMCreateOFDPacket done [09:17:56]NVStorageSaveData kkm_last_timestamp [09:17:56]File name is /storage/kkm_last_timestamp [09:17:56]Write 4 bytes [09:17:56]NVStorageSaveData done [09:17:56]ExternCall_PrintAddStr [09:17:56]wPrintStart [09:17:56]Write to MH i2c: 01 00 00 A9 09 B2 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: 01 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: 01 07 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: 01 07 00 A9 09 00 00 00 00 00 FF 0F C7 [09:17:56]RasterBufferAndPrint [09:17:56]line Счет N : (1)918817 [09:17:56]line ИНН: 02508201610067 [09:17:56]line Контрольно-Кассовый Чек [09:17:56]line ПРОДАЖА [09:17:56]line ТРК (МРК, ГНК) : 12 [09:17:56]line Товар: 2710124500 [09:17:56]line Аи-95-К-5 [09:17:56]line 20.000 * 0.00 [09:17:56]line = 0.00 [09:17:56]line НДС 12% НСП 1% [09:17:56]line > о реализуемом товаре [09:17:56]line ИТОГО: 0.00 [09:17:56]line НСП 1% : 0.00 [09:17:56]line НДС 12% : 0.00 [09:17:56]line Наличными: 0.00 [09:17:56]line Безнал.: 0.00 [09:17:56]line Место: АЗС № 114 "Партнер Нефть" [09:17:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:17:56]line СНО: Общий режим [09:17:56]line Чек 28 18.10.2024 09:17 [09:17:56]line Смена: 526 ФФД: 1.0 [09:17:56]line ЗНМ: 0300000086 [09:17:56]line РНМ: 0000000000091680 [09:17:56]line Версия ККМ: 001 [09:17:56]line Талоны: Топливная Карта [09:17:56]line 03202 [09:17:56]line ФМ: 0000000000871843 [09:17:56]line ФД: 82319 [09:17:56]line ФПД: 11310566865595 [09:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091758&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82319&fm=11310566865595&tin=02508201610067®Number=0000000000091680&sum=0 [09:17:57]OFD Sender: Processing packet 82319 [packets to send 254, broken 253] [09:17:57]ProducePacketName [09:17:57]name=ofd_packets/00082319 [09:17:57]OFD Sender: To server: pG, [09:17:57]CommunicateWithHost lk.salyk.kg:30040 [09:17:57]ConnectInit lk.salyk.kg [09:17:57]written 0, free lines is 4095 [09:17:57]Write to MH i2c: 01 00 00 D3 09 DC [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 07 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: 01 07 00 D3 09 00 00 00 00 00 E4 0C D3 [09:17:57]RasterBufferAndPrint [09:17:57]line [09:17:57]line [09:17:57]line [09:17:57]line [09:17:57]line [09:17:57]written 0, free lines is 3306 [09:17:57]MH_Cut [09:17:57]Write to MH i2c: D1 01 00 DA 09 01 B5 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: D1 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: D1 01 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: D1 01 00 DA 09 00 B4 [09:17:57]Write to MH i2c: 01 00 00 DB 09 E4 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:58]*** Cut start [09:17:58]*** Partial cut [09:17:58]*** CUTSNS_PIN = 1 [09:17:58]*** CUTSNS_PIN = 0 [09:17:58]Connected sock=11 [09:17:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 12 E6 07 01 AB 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C6 27 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 41 01 00 35 04 06 00 0A 49 72 51 FA BB 3B DA 8A 50 CE A7 7C F2 [09:17:58]*** Brake cut motor [09:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CC E0 47 00 A0 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 8F 41 01 00 F4 03 04 00 02 CD 11 67 B6 04 01 00 00 79 AB 53 7D 72 1E 38 46 [09:17:58]CommunicateWithHost err = 0 [09:17:58]CheckOFDResponse [09:17:58]1017 (14) - 77093643461234 [09:17:58]1041 (16) - 0000000000871843 [09:17:58]1040 (4) - 82319 [09:17:58]1012 (4) - 18.10.2024 02:50 [09:17:58]1206 (1) - 0 [09:17:58]OFD Sender: Remove packet 82319 [09:17:58]ProducePacketName [09:17:58]name=ofd_packets/00082319 [09:17:58]NVStorageDeleteData [09:17:58]Read from MH i2c: 01 [09:17:58]MH_I2C_Read... [09:17:58]*** Stop cut motor [09:17:58]*** Cut end [09:17:58]Read from MH i2c: 01 07 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 DB 09 00 00 00 00 00 FF 0F F9 [09:17:58]process_action close_receipt done [09:17:58]requested_data is exist [09:17:58]produce_requested_data [09:17:58]requested_item fm.sn is exist - process it [09:17:58]wFMCommunicate request_size=4 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 11 00 00 [09:17:58]Write to MH i2c: E2 08 00 DC 09 80 11 00 00 00 00 00 00 5F [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 17 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 17 00 DC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B1 [09:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:17:58]wFMCommunicate OK [09:17:58]requested_item fd.num is exist - process it [09:17:58]SAM_PROTO_GetFieldsCounters [09:17:58]wFMCommunicate request_size=4 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 13 00 00 [09:17:58]Write to MH i2c: E2 08 00 DD 09 80 13 00 00 00 00 00 00 62 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:59]Read from MH i2c: E2 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 62 00 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 62 00 DD 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8F 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 8F 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:59]wFMCommunicate OK [09:17:59]SAM_PROTO_GetFieldsCounters done [09:17:59]requested_item shift.num is exist - process it [09:17:59]requested_item shift.opened is exist - process it [09:17:59]req_shift_opened [09:17:59]FM_GetShiftState [09:17:59]SAM_PROTO_GetShiftState [09:17:59]wFMCommunicate request_size=4 [09:17:59]MH_SAM_APDU [09:17:59]CAPDU: 80 13 01 00 [09:17:59]Write to MH i2c: E2 08 00 DE 09 80 13 01 00 00 00 00 00 64 [09:17:59]Write i2c OK [09:17:59]MH_I2C_Read... [09:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:59]Read from MH i2c: E2 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 0E 00 [09:17:59]MH_I2C_Read... [09:17:59]Read from MH i2c: E2 0E 00 DE 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 36 [09:17:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:17:59]wFMCommunicate OK [09:17:59]SAM_PROTO_GetShiftState done [09:17:59]FM_GetShiftState done [09:17:59]req_shift_opened done [09:17:59]requested_item shift.open_date is exist - process it [09:17:59]req_shift_open_date [09:17:59]req_shift_open_date done [09:17:59]produce_requested_data done [09:17:59]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82319,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:17:59]process_action_free close_receipt [09:17:59]json_value_free [09:17:59]json_value_free done [09:17:59]process_json_proto returns [09:17:59]Send response to host [09:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82319,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:17:59]free response buf [09:17:59]execute_script done [09:17:59]execute_script returns [09:17:59]free content buf [09:17:59]Sock 9.Close socket [09:17:59]Sock 9.Thread stoped [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:10]recv_with_timeout no data received [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:39]accept exits with 8 [09:19:39]New connection [09:19:39]New thread 3067297124 created [09:19:39]Thread 3067440484 joined [09:19:39]Waiting for new connection... [09:19:39] Sock 8.Parse request [09:19:39]Sock 8.Check first char [09:19:39]Sock 8.First char is OK [09:19:39]request: POST /json_proto HTTP/1.0 [09:19:39]Method: POST [09:19:39]URL: /json_proto [09:19:39]Method is POST - this is cgi request [09:19:39]url: /json_proto [09:19:39]query_string will be loaded in cgi processing [09:19:39]execute_cgi json_proto POST (null) [09:19:39]execute_cgi path=json_proto method=POST [09:19:39]POST find Content-Length [09:19:39]Host: 172.17.44.67:8080 [09:19:39]Content-Length: 754 [09:19:39]Content-Type: application/json [09:19:39] [09:19:39]POST finish read [09:19:39]Found Content-Length = 754 [09:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058178", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:39]execute_script... [09: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)918818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058178", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:39]POST & json_proto [09:19:39]process_json_proto [09:19:39]json parsed OK: [09:19:39]protocol is kg_v1.0 [09:19:39]action value=close_receipt [09:19:39]process_action close_receipt [09:19:39]cmd_close_receipt [09:19:39]MH_GetDate [09:19:39]Write to MH i2c: F0 00 00 DF 09 D7 [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: F0 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: F0 09 00 [09:19:39]MH_I2C_Read... [09:19:39]Read from MH i2c: F0 09 00 DF 09 00 2E 28 12 67 F1 C7 6B 64 36 [09:19:39]GetLastDocTimeStamp 1729243078 [09:19:39]current date 1729243182 [09:19:39]FM_GetShiftState [09:19:39]SAM_PROTO_GetShiftState [09:19:39]wFMCommunicate request_size=4 [09:19:39]MH_SAM_APDU [09:19:39]CAPDU: 80 13 01 00 [09:19:39]Write to MH i2c: E2 08 00 E0 09 80 13 01 00 00 00 00 00 66 [09:19:39]Write i2c OK [09:19:39]MH_I2C_Read... [09:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:40]Read from MH i2c: E2 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 0E 00 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 0E 00 E0 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 38 [09:19:40]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:19:40]wFMCommunicate OK [09:19:40]SAM_PROTO_GetShiftState done [09:19:40]FM_GetShiftState done [09:19:40]opened in 1729212319 [09:19:40]opened+sec_in_day 1729298719 [09:19:40]quantity*price = 0 [09:19:40]sum+1 = 1 [09:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 29 18.10.2024 09:19 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30058178 ФМ: 0000000000871843 ФД: 82320 ФПД: 265697156268569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091943&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82320&fm=265697156268569&tin=02508201610067®Number=0000000000091680&sum=0 [09:19:41]StoreToDocumentArchive [09:19:41]shift 526 fd 82320 [09:19:41]save to /storage/0526/doc_00082320 [09:19:41]save last doc name /storage/0526/doc_00082320 to /storage/kkm_last_doc_name [09:19:41]save OK [09:19:41]Clear old archive folders... [09:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:41]tlvbuf is 00B0DAF0 [09:19:41]SAM_PROTO_ClearQueue [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 09 00 00 [09:19:41]Write to MH i2c: E2 08 00 ED 09 80 09 00 00 00 00 00 00 68 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 ED 09 00 90 00 6A [09:19:41]RAPDU: 90 00 [09:19:41]wFMCommunicate OK [09:19:41]SAM_PROTO_ClearQueue done [09:19:41]KKMCreateOFDPacket [09:19:41]OFDProtocolAddRootSTLVToBuf [09:19:41]FM_MakeSignedData [09:19:41]FM_MakeSignedData [09:19:41]SAM_PROTO_SignData [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 0D 01 02 [09:19:41]Write to MH i2c: E2 08 00 EE 09 80 0D 01 02 00 00 00 00 70 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 EE 09 00 90 00 6B [09:19:41]RAPDU: 90 00 [09:19:41]wFMCommunicate OK [09:19:41]wFMCommunicate request_size=255 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2F 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 41 01 00 35 04 06 00 F1 [09:19:41]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2F 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 41 01 00 35 04 06 00 F1 00 00 13 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [09:19:41]RAPDU: 90 00 [09:19:41]wFMCommunicate OK [09:19:41]wFMCommunicate request_size=10 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 0D 02 02 05 A6 70 9E 02 19 [09:19:41]Write to MH i2c: E2 0D 00 F0 09 80 0D 02 02 05 00 A6 70 9E 02 19 00 00 4C [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 F0 09 00 90 00 6D [09:19:41]RAPDU: 90 00 [09:19:41]wFMCommunicate OK [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 0D 03 02 [09:19:41]Write to MH i2c: E2 08 00 F1 09 80 0D 03 02 00 00 00 00 75 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 0B 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 0B 00 F1 09 00 91 49 2C 58 AC A6 E1 C2 90 00 C9 [09:19:41]RAPDU: 91 49 2C 58 AC A6 E1 C2 90 00 [09:19:41]wFMCommunicate OK [09:19:41]SAM_PROTO_SignData done [09:19:41]FM_MakeSignedData done [09:19:41]CreateOFDProtocolMessage [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 11 00 00 [09:19:41]Write to MH i2c: E2 08 00 F2 09 80 11 00 00 00 00 00 00 75 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 17 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 17 00 F2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [09:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:19:41]wFMCommunicate OK [09:19:41]CreateOFDProtocolMessage done [09:19:41]OFDSenderStorePacket 82320 [09:19:41]StoreOFDPacket docnum=82320 [09:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 88 07 01 A7 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2F 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 41 01 00 35 04 06 00 F1 A6 70 9E 02 19 91 49 2C 58 AC A6 E1 C2 [09:19:41]CheckFolder [09:19:41]dirname=/storage/ofd_packets [09:19:41]CheckFolder done [09:19:41]ProducePacketName [09:19:41]name=ofd_packets/00082320 [09:19:41]NVStorageSaveData ofd_packets/00082320 [09:19:41]File name is /storage/ofd_packets/00082320 [09:19:41]Write 301 bytes [09:19:41]NVStorageSaveData done [09:19:41]OFDSenderStorePacket done [09:19:41]KKMCreateOFDPacket done [09:19:41]NVStorageSaveData kkm_last_timestamp [09:19:41]File name is /storage/kkm_last_timestamp [09:19:41]Write 4 bytes [09:19:41]NVStorageSaveData done [09:19:41]ExternCall_PrintAddStr [09:19:41]wPrintStart [09:19:41]Write to MH i2c: 01 00 00 F3 09 FC [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 07 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 07 00 F3 09 00 00 00 00 00 FF 0F 11 [09:19:41]RasterBufferAndPrint [09:19:41]line Счет N : (1)918818 [09:19:41]line ИНН: 02508201610067 [09:19:41]line Контрольно-Кассовый Чек [09:19:41]line ПРОДАЖА [09:19:41]line ТРК (МРК, ГНК) : 11 [09:19:41]line Товар: 2710124130 [09:19:41]line Аи-92-К-4 [09:19:41]line 40.000 * 0.00 [09:19:41]line = 0.00 [09:19:41]line НДС 12% НСП 1% [09:19:41]line > о реализуемом товаре [09:19:41]line ИТОГО: 0.00 [09:19:41]line НСП 1% : 0.00 [09:19:41]line НДС 12% : 0.00 [09:19:41]line Наличными: 0.00 [09:19:41]line Безнал.: 0.00 [09:19:41]line Место: АЗС № 114 "Партнер Нефть" [09:19:41]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:19:41]line СНО: Общий режим [09:19:41]line Чек 29 18.10.2024 09:19 [09:19:41]line Смена: 526 ФФД: 1.0 [09:19:41]line ЗНМ: 0300000086 [09:19:41]line РНМ: 0000000000091680 [09:19:41]line Версия ККМ: 001 [09:19:41]line Талоны: ТК ГПНА Online [09:19:41]line 30058178 [09:19:41]line ФМ: 0000000000871843 [09:19:41]line ФД: 82320 [09:19:41]line ФПД: 265697156268569 [09:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T091943&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82320&fm=265697156268569&tin=02508201610067®Number=0000000000091680&sum=0 [09:19:42]OFD Sender: Processing packet 82320 [packets to send 254, broken 253] [09:19:42]ProducePacketName [09:19:42]name=ofd_packets/00082320 [09:19:42]OFD Sender: To server: pG, [09:19:42]CommunicateWithHost lk.salyk.kg:30040 [09:19:42]ConnectInit lk.salyk.kg [09:19:42]written 0, free lines is 4095 [09:19:42]Write to MH i2c: 01 00 00 1D 0A 27 [09:19:42]Write i2c OK [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: 01 [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: 01 07 00 [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: 01 07 00 1D 0A 00 00 00 00 00 E3 0C 1D [09:19:42]RasterBufferAndPrint [09:19:42]line [09:19:42]line [09:19:42]line [09:19:42]line [09:19:42]line [09:19:42]written 0, free lines is 3305 [09:19:42]MH_Cut [09:19:42]Write to MH i2c: D1 01 00 24 0A 01 00 [09:19:42]Write i2c OK [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: D1 [09:19:42]MH_I2C_Read... [09:19:42]Connected sock=10 [09:19:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 88 07 01 A7 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 2F 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 41 01 00 35 04 06 00 F1 A6 70 9E 02 19 91 49 2C 58 AC A6 E1 C2 [09:19:42]Read from MH i2c: D1 01 00 [09:19:42]MH_I2C_Read... [09:19:42]Read from MH i2c: D1 01 00 24 0A 00 FF [09:19:42]Write to MH i2c: 01 00 00 25 0A 2F [09:19:42]Write i2c OK [09:19:42]MH_I2C_Read... [09:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 92 A3 47 00 52 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 90 41 01 00 F4 03 04 00 6A CD 11 67 B6 04 01 00 00 34 EC 14 4F 9C B1 00 6A [09:19:42]CommunicateWithHost err = 0 [09:19:42]CheckOFDResponse [09:19:42]1017 (14) - 77093643461234 [09:19:42]1041 (16) - 0000000000871843 [09:19:42]1040 (4) - 82320 [09:19:42]1012 (4) - 18.10.2024 02:52 [09:19:42]1206 (1) - 0 [09:19:42]OFD Sender: Remove packet 82320 [09:19:42]ProducePacketName [09:19:42]name=ofd_packets/00082320 [09:19:42]NVStorageDeleteData [09:19:43]*** Cut start [09:19:43]*** Partial cut [09:19:43]*** CUTSNS_PIN = 1 [09:19:43]*** CUTSNS_PIN = 0 [09:19:43]OFD Sender: No OFD packet to send [09:19:43]*** Brake cut motor [09:19:43]Read from MH i2c: 01 [09:19:43]MH_I2C_Read... [09:19:43]*** Stop cut motor [09:19:43]*** Cut end [09:19:43]Read from MH i2c: 01 07 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: 01 07 00 25 0A 00 00 00 00 00 FF 0F 44 [09:19:43]process_action close_receipt done [09:19:43]requested_data is exist [09:19:43]produce_requested_data [09:19:43]requested_item fm.sn is exist - process it [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 11 00 00 [09:19:43]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 17 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [09:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:19:43]wFMCommunicate OK [09:19:43]requested_item fd.num is exist - process it [09:19:43]SAM_PROTO_GetFieldsCounters [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 13 00 00 [09:19:43]Write to MH i2c: E2 08 00 27 0A 80 13 00 00 00 00 00 00 AD [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 62 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 62 00 27 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 90 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [09:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 90 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:44]wFMCommunicate OK [09:19:44]SAM_PROTO_GetFieldsCounters done [09:19:44]requested_item shift.num is exist - process it [09:19:44]requested_item shift.opened is exist - process it [09:19:44]req_shift_opened [09:19:44]FM_GetShiftState [09:19:44]SAM_PROTO_GetShiftState [09:19:44]wFMCommunicate request_size=4 [09:19:44]MH_SAM_APDU [09:19:44]CAPDU: 80 13 01 00 [09:19:44]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [09:19:44]Write i2c OK [09:19:44]MH_I2C_Read... [09:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:44]Read from MH i2c: E2 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 0E 00 [09:19:44]MH_I2C_Read... [09:19:44]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 81 [09:19:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:19:44]wFMCommunicate OK [09:19:44]SAM_PROTO_GetShiftState done [09:19:44]FM_GetShiftState done [09:19:44]req_shift_opened done [09:19:44]requested_item shift.open_date is exist - process it [09:19:44]req_shift_open_date [09:19:44]req_shift_open_date done [09:19:44]produce_requested_data done [09:19:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82320,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:19:44]process_action_free close_receipt [09:19:44]json_value_free [09:19:44]json_value_free done [09:19:44]process_json_proto returns [09:19:44]Send response to host [09:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82320,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:19:44]free response buf [09:19:44]execute_script done [09:19:44]execute_script returns [09:19:44]free content buf [09:19:44]Sock 8.Close socket [09:19:44]Sock 8.Thread stoped [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:05]recv_with_timeout no data received [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:37]accept exits with 9 [09:22:37]New connection [09:22:37]New thread 3067440484 created [09:22:37]Thread 3067297124 joined [09:22:37]Waiting for new connection... [09:22:37] Sock 9.Parse request [09:22:37]Sock 9.Check first char [09:22:37]Sock 9.First char is OK [09:22:37]request: POST /json_proto HTTP/1.0 [09:22:37]Method: POST [09:22:37]URL: /json_proto [09:22:37]Method is POST - this is cgi request [09:22:37]url: /json_proto [09:22:37]query_string will be loaded in cgi processing [09:22:37]execute_cgi json_proto POST (null) [09:22:37]execute_cgi path=json_proto method=POST [09:22:37]POST find Content-Length [09:22:37]Host: 172.17.44.67:8080 [09:22:37]Content-Length: 806 [09:22:37]Content-Type: application/json [09:22:37] [09:22:37]POST finish read [09:22:37]Found Content-Length = 806 [09:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202678", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:37]execute_script... [09:22: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)918819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202678", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:37]POST & json_proto [09:22:37]process_json_proto [09:22:37]json parsed OK: [09:22:37]protocol is kg_v1.0 [09:22:37]action value=close_receipt [09:22:37]process_action close_receipt [09:22:37]cmd_close_receipt [09:22:37]MH_GetDate [09:22:37]Write to MH i2c: F0 00 00 29 0A 22 [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: F0 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: F0 09 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: F0 09 00 29 0A 00 E0 28 12 67 F1 C7 6B 64 33 [09:22:37]GetLastDocTimeStamp 1729243183 [09:22:37]current date 1729243360 [09:22:37]FM_GetShiftState [09:22:37]SAM_PROTO_GetShiftState [09:22:37]wFMCommunicate request_size=4 [09:22:37]MH_SAM_APDU [09:22:37]CAPDU: 80 13 01 00 [09:22:37]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 0E 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 83 [09:22:37]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:22:37]wFMCommunicate OK [09:22:37]SAM_PROTO_GetShiftState done [09:22:37]FM_GetShiftState done [09:22:37]opened in 1729212319 [09:22:37]opened+sec_in_day 1729298719 [09:22:37]quantity*price = 0 [09:22:37]sum+1 = 1 [09:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 30 18.10.2024 09:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202678 ФМ: 0000000000871843 ФД: 82321 ФПД: 251847480899262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T092240&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82321&fm=251847480899262&tin=02508201610067®Number=0000000000091680&sum=0 [09:22:38]StoreToDocumentArchive [09:22:38]shift 526 fd 82321 [09:22:38]save to /storage/0526/doc_00082321 [09:22:38]save last doc name /storage/0526/doc_00082321 to /storage/kkm_last_doc_name [09:22:38]save OK [09:22:38]Clear old archive folders... [09:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:22:38]tlvbuf is 00B2CAB0 [09:22:38]SAM_PROTO_ClearQueue [09:22:38]wFMCommunicate request_size=4 [09:22:38]MH_SAM_APDU [09:22:38]CAPDU: 80 09 00 00 [09:22:38]Write to MH i2c: E2 08 00 37 0A 80 09 00 00 00 00 00 00 B3 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]SAM_PROTO_ClearQueue done [09:22:39]KKMCreateOFDPacket [09:22:39]OFDProtocolAddRootSTLVToBuf [09:22:39]FM_MakeSignedData [09:22:39]FM_MakeSignedData [09:22:39]SAM_PROTO_SignData [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 01 02 [09:22:39]Write to MH i2c: E2 08 00 38 0A 80 0D 01 02 00 00 00 00 BB [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 38 0A 00 90 00 B6 [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]wFMCommunicate request_size=255 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E0 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 41 01 [09:22:39]Write to MH i2c: E2 02 01 39 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E0 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 41 01 00 00 17 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]wFMCommunicate request_size=16 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E5 0D CF A2 F6 BE [09:22:39]Write to MH i2c: E2 13 00 3A 0A 80 0D 02 02 0B 00 00 35 04 06 00 E5 0D CF A2 F6 BE 00 00 2A [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [09:22:39]RAPDU: 90 00 [09:22:39]wFMCommunicate OK [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 0D 03 02 [09:22:39]Write to MH i2c: E2 08 00 3B 0A 80 0D 03 02 00 00 00 00 C0 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 0B 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 0B 00 3B 0A 00 02 3D 8D 45 6E 54 40 FF 90 00 D3 [09:22:39]RAPDU: 02 3D 8D 45 6E 54 40 FF 90 00 [09:22:39]wFMCommunicate OK [09:22:39]SAM_PROTO_SignData done [09:22:39]FM_MakeSignedData done [09:22:39]CreateOFDProtocolMessage [09:22:39]wFMCommunicate request_size=4 [09:22:39]MH_SAM_APDU [09:22:39]CAPDU: 80 11 00 00 [09:22:39]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:39]Read from MH i2c: E2 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 17 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [09:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:22:39]wFMCommunicate OK [09:22:39]CreateOFDProtocolMessage done [09:22:39]OFDSenderStorePacket 82321 [09:22:39]StoreOFDPacket docnum=82321 [09:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 77 DB 0D 01 E4 42 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E0 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 41 01 00 35 04 06 00 E5 0D CF A2 F6 BE 02 3D 8D 45 6E 54 40 FF [09:22:39]CheckFolder [09:22:39]dirname=/storage/ofd_packets [09:22:39]CheckFolder done [09:22:39]ProducePacketName [09:22:39]name=ofd_packets/00082321 [09:22:39]NVStorageSaveData ofd_packets/00082321 [09:22:39]File name is /storage/ofd_packets/00082321 [09:22:39]Write 307 bytes [09:22:39]NVStorageSaveData done [09:22:39]OFDSenderStorePacket done [09:22:39]KKMCreateOFDPacket done [09:22:39]NVStorageSaveData kkm_last_timestamp [09:22:39]File name is /storage/kkm_last_timestamp [09:22:39]Write 4 bytes [09:22:39]NVStorageSaveData done [09:22:39]ExternCall_PrintAddStr [09:22:39]wPrintStart [09:22:39]Write to MH i2c: 01 00 00 3D 0A 47 [09:22:39]Write i2c OK [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: 01 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: 01 07 00 [09:22:39]MH_I2C_Read... [09:22:39]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [09:22:39]RasterBufferAndPrint [09:22:39]line Счет N : (1)918819 [09:22:39]line ИНН: 02508201610067 [09:22:39]line Контрольно-Кассовый Чек [09:22:39]line ПРОДАЖА [09:22:39]line ТРК (МРК, ГНК) : 21 [09:22:39]line Товар: 2710194800 [09:22:39]line D-Energy ДТ-К-2 [09:22:39]line 30.000 * 0.00 [09:22:39]line = 0.00 [09:22:39]line НДС 12% НСП 1% [09:22:39]line > о реализуемом товаре [09:22:39]line ИТОГО: 0.00 [09:22:39]line НСП 1% : 0.00 [09:22:39]line НДС 12% : 0.00 [09:22:39]line Наличными: 0.00 [09:22:39]line Безнал.: 0.00 [09:22:39]line Место: АЗС № 114 "Партнер Нефть" [09:22:39]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:22:39]line СНО: Общий режим [09:22:39]line Чек 30 18.10.2024 09:22 [09:22:39]line Смена: 526 ФФД: 1.0 [09:22:39]line ЗНМ: 0300000086 [09:22:39]line РНМ: 0000000000091680 [09:22:39]line Версия ККМ: 001 [09:22:39]line Талоны: Топливные Талоны [09:22:39]line 2202678 [09:22:39]line ФМ: 0000000000871843 [09:22:39]line ФД: 82321 [09:22:39]line ФПД: 251847480899262 [09:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T092240&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82321&fm=251847480899262&tin=02508201610067®Number=0000000000091680&sum=0 [09:22:39]OFD Sender: Processing packet 82321 [packets to send 254, broken 253] [09:22:39]ProducePacketName [09:22:39]name=ofd_packets/00082321 [09:22:39]OFD Sender: To server: pG, [09:22:39]CommunicateWithHost lk.salyk.kg:30040 [09:22:39]ConnectInit lk.salyk.kg [09:22:39]written 0, free lines is 4095 [09:22:40]Write to MH i2c: 01 00 00 67 0A 71 [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: 01 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: 01 07 00 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: 01 07 00 67 0A 00 00 00 00 00 F1 0C 75 [09:22:40]RasterBufferAndPrint [09:22:40]line [09:22:40]line [09:22:40]line [09:22:40]line [09:22:40]line [09:22:40]written 0, free lines is 3319 [09:22:40]MH_Cut [09:22:40]Write to MH i2c: D1 01 00 6E 0A 01 4A [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: D1 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: D1 01 00 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: D1 01 00 6E 0A 00 49 [09:22:40]Write to MH i2c: 01 00 00 6F 0A 79 [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]Connected sock=10 [09:22:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 77 DB 0D 01 E4 42 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E0 28 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 41 01 00 35 04 06 00 E5 0D CF A2 F6 BE 02 3D 8D 45 6E 54 40 FF [09:22:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E8 AB 47 00 F0 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 91 41 01 00 F4 03 04 00 1C CE 11 67 B6 04 01 00 00 B9 3F AF 2F 6D 9B 1A 45 [09:22:40]CommunicateWithHost err = 0 [09:22:40]CheckOFDResponse [09:22:40]1017 (14) - 77093643461234 [09:22:40]1041 (16) - 0000000000871843 [09:22:40]1040 (4) - 82321 [09:22:40]1012 (4) - 18.10.2024 02:55 [09:22:40]1206 (1) - 0 [09:22:40]OFD Sender: Remove packet 82321 [09:22:40]ProducePacketName [09:22:40]name=ofd_packets/00082321 [09:22:40]NVStorageDeleteData [09:22:41]*** Cut start [09:22:41]*** Partial cut [09:22:41]*** CUTSNS_PIN = 1 [09:22:41]*** CUTSNS_PIN = 0 [09:22:41]OFD Sender: No OFD packet to send [09:22:41]*** Brake cut motor [09:22:41]Read from MH i2c: 01 [09:22:41]MH_I2C_Read... [09:22:41]*** Stop cut motor [09:22:41]*** Cut end [09:22:41]Read from MH i2c: 01 07 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: 01 07 00 6F 0A 00 00 00 00 00 FF 0F 8E [09:22:41]process_action close_receipt done [09:22:41]requested_data is exist [09:22:41]produce_requested_data [09:22:41]requested_item fm.sn is exist - process it [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 11 00 00 [09:22:41]Write to MH i2c: E2 08 00 70 0A 80 11 00 00 00 00 00 00 F4 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 17 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 17 00 70 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 46 [09:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:22:41]wFMCommunicate OK [09:22:41]requested_item fd.num is exist - process it [09:22:41]SAM_PROTO_GetFieldsCounters [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 13 00 00 [09:22:41]Write to MH i2c: E2 08 00 71 0A 80 13 00 00 00 00 00 00 F7 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 62 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 62 00 71 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 91 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [09:22:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 91 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_GetFieldsCounters done [09:22:41]requested_item shift.num is exist - process it [09:22:41]requested_item shift.opened is exist - process it [09:22:41]req_shift_opened [09:22:41]FM_GetShiftState [09:22:41]SAM_PROTO_GetShiftState [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 13 01 00 [09:22:41]Write to MH i2c: E2 08 00 72 0A 80 13 01 00 00 00 00 00 F9 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0E 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 0E 00 72 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CB [09:22:41]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_GetShiftState done [09:22:41]FM_GetShiftState done [09:22:41]req_shift_opened done [09:22:41]requested_item shift.open_date is exist - process it [09:22:41]req_shift_open_date [09:22:41]req_shift_open_date done [09:22:41]produce_requested_data done [09:22:41]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82321,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:22:41]process_action_free close_receipt [09:22:41]json_value_free [09:22:41]json_value_free done [09:22:41]process_json_proto returns [09:22:41]Send response to host [09:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82321,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:22:41]free response buf [09:22:41]execute_script done [09:22:41]execute_script returns [09:22:41]free content buf [09:22:41]Sock 9.Close socket [09:22:41]Sock 9.Thread stoped [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:40]recv_with_timeout no data received [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:52]recv_with_timeout no data received [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]recv_with_timeout no data received [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:04]recv_with_timeout no data received [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [09:29:28]accept exits with 8 [09:29:28]New connection [09:29:28]New thread 3067297124 created [09:29:28]Thread 3067440484 joined [09:29:28]Waiting for new connection... [09:29:28] Sock 8.Parse request [09:29:28]Sock 8.Check first char [09:29:28]Sock 8.First char is OK [09:29:28]request: POST /json_proto HTTP/1.0 [09:29:28]Method: POST [09:29:28]URL: /json_proto [09:29:28]Method is POST - this is cgi request [09:29:28]url: /json_proto [09:29:28]query_string will be loaded in cgi processing [09:29:28]execute_cgi json_proto POST (null) [09:29:28]execute_cgi path=json_proto method=POST [09:29:28]POST find Content-Length [09:29:28]Host: 172.17.44.67:8080 [09:29:28]Content-Length: 806 [09:29:28]Content-Type: application/json [09:29:28] [09:29:28]POST finish read [09:29:28]Found Content-Length = 806 [09:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202690", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:28]execute_script... [09:29: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)918820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202690", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:28]POST & json_proto [09:29:28]process_json_proto [09:29:28]json parsed OK: [09:29:28]protocol is kg_v1.0 [09:29:28]action value=close_receipt [09:29:28]process_action close_receipt [09:29:28]cmd_close_receipt [09:29:28]MH_GetDate [09:29:28]Write to MH i2c: F0 00 00 73 0A 6C [09:29:28]Write i2c OK [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: F0 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: F0 09 00 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: F0 09 00 73 0A 00 7B 2A 12 67 F1 C7 6B 64 1A [09:29:28]GetLastDocTimeStamp 1729243360 [09:29:28]current date 1729243771 [09:29:28]FM_GetShiftState [09:29:28]SAM_PROTO_GetShiftState [09:29:28]wFMCommunicate request_size=4 [09:29:28]MH_SAM_APDU [09:29:28]CAPDU: 80 13 01 00 [09:29:28]Write to MH i2c: E2 08 00 74 0A 80 13 01 00 00 00 00 00 FB [09:29:28]Write i2c OK [09:29:28]MH_I2C_Read... [09:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:28]Read from MH i2c: E2 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 0E 00 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 0E 00 74 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CD [09:29:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:29:28]wFMCommunicate OK [09:29:28]SAM_PROTO_GetShiftState done [09:29:28]FM_GetShiftState done [09:29:28]opened in 1729212319 [09:29:28]opened+sec_in_day 1729298719 [09:29:28]quantity*price = 0 [09:29:28]sum+1 = 1 [09:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 31 18.10.2024 09:29 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202690 ФМ: 0000000000871843 ФД: 82322 ФПД: 145406565169858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T092931&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82322&fm=145406565169858&tin=02508201610067®Number=0000000000091680&sum=0 [09:29:29]StoreToDocumentArchive [09:29:29]shift 526 fd 82322 [09:29:29]save to /storage/0526/doc_00082322 [09:29:29]save last doc name /storage/0526/doc_00082322 to /storage/kkm_last_doc_name [09:29:29]save OK [09:29:29]Clear old archive folders... [09:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:29:29]tlvbuf is 00B39D20 [09:29:29]SAM_PROTO_ClearQueue [09:29:29]wFMCommunicate request_size=4 [09:29:29]MH_SAM_APDU [09:29:29]CAPDU: 80 09 00 00 [09:29:29]Write to MH i2c: E2 08 00 81 0A 80 09 00 00 00 00 00 00 FD [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:29]Read from MH i2c: E2 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 03 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 03 00 81 0A 00 90 00 FF [09:29:29]RAPDU: 90 00 [09:29:29]wFMCommunicate OK [09:29:29]SAM_PROTO_ClearQueue done [09:29:29]KKMCreateOFDPacket [09:29:29]OFDProtocolAddRootSTLVToBuf [09:29:29]FM_MakeSignedData [09:29:29]FM_MakeSignedData [09:29:29]SAM_PROTO_SignData [09:29:29]wFMCommunicate request_size=4 [09:29:29]MH_SAM_APDU [09:29:29]CAPDU: 80 0D 01 02 [09:29:29]Write to MH i2c: E2 08 00 82 0A 80 0D 01 02 00 00 00 00 05 [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:29]Read from MH i2c: E2 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 03 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 03 00 82 0A 00 90 00 00 [09:29:29]RAPDU: 90 00 [09:29:29]wFMCommunicate OK [09:29:29]wFMCommunicate request_size=255 [09:29:29]MH_SAM_APDU [09:29:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 2A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 41 01 [09:29:29]Write to MH i2c: E2 02 01 83 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 2A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 41 01 00 00 A5 [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:30]Read from MH i2c: E2 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 03 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [09:29:30]RAPDU: 90 00 [09:29:30]wFMCommunicate OK [09:29:30]wFMCommunicate request_size=16 [09:29:30]MH_SAM_APDU [09:29:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 84 3F 1A AA 3A C2 [09:29:30]Write to MH i2c: E2 13 00 84 0A 80 0D 02 02 0B 00 00 35 04 06 00 84 3F 1A AA 3A C2 00 00 E0 [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:30]Read from MH i2c: E2 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 03 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [09:29:30]RAPDU: 90 00 [09:29:30]wFMCommunicate OK [09:29:30]wFMCommunicate request_size=4 [09:29:30]MH_SAM_APDU [09:29:30]CAPDU: 80 0D 03 02 [09:29:30]Write to MH i2c: E2 08 00 85 0A 80 0D 03 02 00 00 00 00 0A [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:30]Read from MH i2c: E2 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 0B 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 0B 00 85 0A 00 E0 85 C0 BF D9 90 F7 35 90 00 84 [09:29:30]RAPDU: E0 85 C0 BF D9 90 F7 35 90 00 [09:29:30]wFMCommunicate OK [09:29:30]SAM_PROTO_SignData done [09:29:30]FM_MakeSignedData done [09:29:30]CreateOFDProtocolMessage [09:29:30]wFMCommunicate request_size=4 [09:29:30]MH_SAM_APDU [09:29:30]CAPDU: 80 11 00 00 [09:29:30]Write to MH i2c: E2 08 00 86 0A 80 11 00 00 00 00 00 00 0A [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:30]Read from MH i2c: E2 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 17 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: E2 17 00 86 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [09:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:29:30]wFMCommunicate OK [09:29:30]CreateOFDProtocolMessage done [09:29:30]OFDSenderStorePacket 82322 [09:29:30]StoreOFDPacket docnum=82322 [09:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 39 D8 0D 01 0E 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 2A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 41 01 00 35 04 06 00 84 3F 1A AA 3A C2 E0 85 C0 BF D9 90 F7 35 [09:29:30]CheckFolder [09:29:30]dirname=/storage/ofd_packets [09:29:30]CheckFolder done [09:29:30]ProducePacketName [09:29:30]name=ofd_packets/00082322 [09:29:30]NVStorageSaveData ofd_packets/00082322 [09:29:30]File name is /storage/ofd_packets/00082322 [09:29:30]Write 307 bytes [09:29:30]NVStorageSaveData done [09:29:30]OFDSenderStorePacket done [09:29:30]KKMCreateOFDPacket done [09:29:30]NVStorageSaveData kkm_last_timestamp [09:29:30]File name is /storage/kkm_last_timestamp [09:29:30]Write 4 bytes [09:29:30]NVStorageSaveData done [09:29:30]ExternCall_PrintAddStr [09:29:30]wPrintStart [09:29:30]Write to MH i2c: 01 00 00 87 0A 91 [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: 01 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: 01 07 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: 01 07 00 87 0A 00 00 00 00 00 FF 0F A6 [09:29:30]RasterBufferAndPrint [09:29:30]line Счет N : (1)918820 [09:29:30]line ИНН: 02508201610067 [09:29:30]line Контрольно-Кассовый Чек [09:29:30]line ПРОДАЖА [09:29:30]line ТРК (МРК, ГНК) : 21 [09:29:30]line Товар: 2710194800 [09:29:30]line D-Energy ДТ-К-2 [09:29:30]line 60.000 * 0.00 [09:29:30]line = 0.00 [09:29:30]line НДС 12% НСП 1% [09:29:30]line > о реализуемом товаре [09:29:30]line ИТОГО: 0.00 [09:29:30]line НСП 1% : 0.00 [09:29:30]line НДС 12% : 0.00 [09:29:30]line Наличными: 0.00 [09:29:30]line Безнал.: 0.00 [09:29:30]line Место: АЗС № 114 "Партнер Нефть" [09:29:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:29:30]line СНО: Общий режим [09:29:30]line Чек 31 18.10.2024 09:29 [09:29:30]line Смена: 526 ФФД: 1.0 [09:29:30]line ЗНМ: 0300000086 [09:29:30]line РНМ: 0000000000091680 [09:29:30]line Версия ККМ: 001 [09:29:30]line Талоны: Топливные Талоны [09:29:30]line 2202690 [09:29:30]line ФМ: 0000000000871843 [09:29:30]line ФД: 82322 [09:29:30]line ФПД: 145406565169858 [09:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T092931&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82322&fm=145406565169858&tin=02508201610067®Number=0000000000091680&sum=0 [09:29:30]written 0, free lines is 4095 [09:29:30]OFD Sender: Processing packet 82322 [packets to send 254, broken 253] [09:29:30]ProducePacketName [09:29:30]name=ofd_packets/00082322 [09:29:30]OFD Sender: To server: pG, [09:29:30]CommunicateWithHost lk.salyk.kg:30040 [09:29:30]ConnectInit lk.salyk.kg [09:29:30]Write to MH i2c: 01 00 00 B1 0A BB [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: 01 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: 01 07 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: 01 07 00 B1 0A 00 00 00 00 00 F6 0C C4 [09:29:30]RasterBufferAndPrint [09:29:30]line [09:29:30]line [09:29:30]line [09:29:30]line [09:29:30]line [09:29:30]written 0, free lines is 3325 [09:29:30]MH_Cut [09:29:30]Write to MH i2c: D1 01 00 B8 0A 01 94 [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: D1 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: D1 01 00 [09:29:30]MH_I2C_Read... [09:29:30]Read from MH i2c: D1 01 00 B8 0A 00 93 [09:29:30]Write to MH i2c: 01 00 00 B9 0A C3 [09:29:30]Write i2c OK [09:29:30]MH_I2C_Read... [09:29:30]Connected sock=9 [09:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 39 D8 0D 01 0E 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 2A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 41 01 00 35 04 06 00 84 3F 1A AA 3A C2 E0 85 C0 BF D9 90 F7 35 [09:29:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 ED 3B 47 00 7D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 92 41 01 00 F4 03 04 00 B6 CF 11 67 B6 04 01 00 00 95 F8 AC D7 07 AB B0 71 [09:29:31]CommunicateWithHost err = 0 [09:29:31]CheckOFDResponse [09:29:31]1017 (14) - 77093643461234 [09:29:31]1041 (16) - 0000000000871843 [09:29:31]1040 (4) - 82322 [09:29:31]1012 (4) - 18.10.2024 03:02 [09:29:31]1206 (1) - 0 [09:29:31]OFD Sender: Remove packet 82322 [09:29:31]ProducePacketName [09:29:31]name=ofd_packets/00082322 [09:29:31]NVStorageDeleteData [09:29:31]*** Cut start [09:29:31]*** Partial cut [09:29:31]*** CUTSNS_PIN = 1 [09:29:31]*** CUTSNS_PIN = 0 [09:29:31]OFD Sender: No OFD packet to send [09:29:31]*** Brake cut motor [09:29:32]Read from MH i2c: 01 [09:29:32]MH_I2C_Read... [09:29:32]*** Stop cut motor [09:29:32]*** Cut end [09:29:32]Read from MH i2c: 01 07 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: 01 07 00 B9 0A 00 00 00 00 00 FF 0F D8 [09:29:32]process_action close_receipt done [09:29:32]requested_data is exist [09:29:32]produce_requested_data [09:29:32]requested_item fm.sn is exist - process it [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 11 00 00 [09:29:32]Write to MH i2c: E2 08 00 BA 0A 80 11 00 00 00 00 00 00 3E [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 17 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 17 00 BA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [09:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:29:32]wFMCommunicate OK [09:29:32]requested_item fd.num is exist - process it [09:29:32]SAM_PROTO_GetFieldsCounters [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 13 00 00 [09:29:32]Write to MH i2c: E2 08 00 BB 0A 80 13 00 00 00 00 00 00 41 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 62 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 62 00 BB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 92 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 92 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:32]wFMCommunicate OK [09:29:32]SAM_PROTO_GetFieldsCounters done [09:29:32]requested_item shift.num is exist - process it [09:29:32]requested_item shift.opened is exist - process it [09:29:32]req_shift_opened [09:29:32]FM_GetShiftState [09:29:32]SAM_PROTO_GetShiftState [09:29:32]wFMCommunicate request_size=4 [09:29:32]MH_SAM_APDU [09:29:32]CAPDU: 80 13 01 00 [09:29:32]Write to MH i2c: E2 08 00 BC 0A 80 13 01 00 00 00 00 00 43 [09:29:32]Write i2c OK [09:29:32]MH_I2C_Read... [09:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:32]Read from MH i2c: E2 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 0E 00 [09:29:32]MH_I2C_Read... [09:29:32]Read from MH i2c: E2 0E 00 BC 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 15 [09:29:32]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:29:32]wFMCommunicate OK [09:29:32]SAM_PROTO_GetShiftState done [09:29:32]FM_GetShiftState done [09:29:32]req_shift_opened done [09:29:32]requested_item shift.open_date is exist - process it [09:29:32]req_shift_open_date [09:29:32]req_shift_open_date done [09:29:32]produce_requested_data done [09:29:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82322,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:29:32]process_action_free close_receipt [09:29:32]json_value_free [09:29:32]json_value_free done [09:29:32]process_json_proto returns [09:29:32]Send response to host [09:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82322,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:29:32]free response buf [09:29:32]execute_script done [09:29:32]execute_script returns [09:29:32]free content buf [09:29:32]Sock 8.Close socket [09:29:32]Sock 8.Thread stoped [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:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:05]recv_with_timeout no data received [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:53]accept exits with 10 [09:33:53]New connection [09:33:53]New thread 3067440484 created [09:33:53]Thread 3067297124 joined [09:33:53]Waiting for new connection... [09:33:53] Sock 10.Parse request [09:33:53]Sock 10.Check first char [09:33:53]Sock 10.First char is OK [09:33:53]request: POST /json_proto HTTP/1.0 [09:33:53]Method: POST [09:33:53]URL: /json_proto [09:33:53]Method is POST - this is cgi request [09:33:53]url: /json_proto [09:33:53]query_string will be loaded in cgi processing [09:33:53]execute_cgi json_proto POST (null) [09:33:53]execute_cgi path=json_proto method=POST [09:33:53]POST find Content-Length [09:33:53]Host: 172.17.44.67:8080 [09:33:53]Content-Length: 759 [09:33:53]Content-Type: application/json [09:33:53] [09:33:53]POST finish read [09:33:53]Found Content-Length = 759 [09:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:53]execute_script... [09:33: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)918821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121604", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:53]POST & json_proto [09:33:53]process_json_proto [09:33:53]json parsed OK: [09:33:53]protocol is kg_v1.0 [09:33:53]action value=close_receipt [09:33:53]process_action close_receipt [09:33:53]cmd_close_receipt [09:33:53]MH_GetDate [09:33:53]Write to MH i2c: F0 00 00 BD 0A B6 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: F0 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: F0 09 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: F0 09 00 BD 0A 00 84 2B 12 67 F1 C7 6B 64 6E [09:33:53]GetLastDocTimeStamp 1729243771 [09:33:53]current date 1729244036 [09:33:53]FM_GetShiftState [09:33:53]SAM_PROTO_GetShiftState [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 13 01 00 [09:33:53]Write to MH i2c: E2 08 00 BE 0A 80 13 01 00 00 00 00 00 45 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0E 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0E 00 BE 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 17 [09:33:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:33:53]wFMCommunicate OK [09:33:53]SAM_PROTO_GetShiftState done [09:33:53]FM_GetShiftState done [09:33:53]opened in 1729212319 [09:33:53]opened+sec_in_day 1729298719 [09:33:53]quantity*price = 0 [09:33:53]sum+1 = 1 [09:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 32 18.10.2024 09:33 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121604 ФМ: 0000000000871843 ФД: 82323 ФПД: 27260915095210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T093356&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82323&fm=27260915095210&tin=02508201610067®Number=0000000000091680&sum=0 [09:33:54]StoreToDocumentArchive [09:33:54]shift 526 fd 82323 [09:33:54]save to /storage/0526/doc_00082323 [09:33:54]save last doc name /storage/0526/doc_00082323 to /storage/kkm_last_doc_name [09:33:54]save OK [09:33:54]Clear old archive folders... [09:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:33:54]tlvbuf is 00C26860 [09:33:54]SAM_PROTO_ClearQueue [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 09 00 00 [09:33:54]Write to MH i2c: E2 08 00 CB 0A 80 09 00 00 00 00 00 00 47 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 CB 0A 00 90 00 49 [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]SAM_PROTO_ClearQueue done [09:33:54]KKMCreateOFDPacket [09:33:54]OFDProtocolAddRootSTLVToBuf [09:33:54]FM_MakeSignedData [09:33:54]FM_MakeSignedData [09:33:54]SAM_PROTO_SignData [09:33:54]wFMCommunicate request_size=4 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 01 02 [09:33:54]Write to MH i2c: E2 08 00 CC 0A 80 0D 01 02 00 00 00 00 4F [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:54]Read from MH i2c: E2 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: E2 03 00 CC 0A 00 90 00 4A [09:33:54]RAPDU: 90 00 [09:33:54]wFMCommunicate OK [09:33:54]wFMCommunicate request_size=255 [09:33:54]MH_SAM_APDU [09:33:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 84 2B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 41 01 00 35 04 06 00 [09:33:54]Write to MH i2c: E2 02 01 CD 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 84 2B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 41 01 00 35 04 06 00 00 00 91 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 03 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 03 00 CD 0A 00 90 00 4B [09:33:55]RAPDU: 90 00 [09:33:55]wFMCommunicate OK [09:33:55]wFMCommunicate request_size=11 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 0D 02 02 06 18 CB 2D 29 16 AA [09:33:55]Write to MH i2c: E2 0E 00 CE 0A 80 0D 02 02 06 00 18 CB 2D 29 16 AA 00 00 57 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 03 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 03 00 CE 0A 00 90 00 4C [09:33:55]RAPDU: 90 00 [09:33:55]wFMCommunicate OK [09:33:55]wFMCommunicate request_size=4 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 0D 03 02 [09:33:55]Write to MH i2c: E2 08 00 CF 0A 80 0D 03 02 00 00 00 00 54 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 0B 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 0B 00 CF 0A 00 24 33 1A DD 75 79 3A 37 90 00 02 [09:33:55]RAPDU: 24 33 1A DD 75 79 3A 37 90 00 [09:33:55]wFMCommunicate OK [09:33:55]SAM_PROTO_SignData done [09:33:55]FM_MakeSignedData done [09:33:55]CreateOFDProtocolMessage [09:33:55]wFMCommunicate request_size=4 [09:33:55]MH_SAM_APDU [09:33:55]CAPDU: 80 11 00 00 [09:33:55]Write to MH i2c: E2 08 00 D0 0A 80 11 00 00 00 00 00 00 54 [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:55]Read from MH i2c: E2 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 17 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: E2 17 00 D0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A6 [09:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:33:55]wFMCommunicate OK [09:33:55]CreateOFDProtocolMessage done [09:33:55]OFDSenderStorePacket 82323 [09:33:55]StoreOFDPacket docnum=82323 [09:34:00]1041 (16) - 0000000000871843 [09:34:00]1040 (4) - 82323 [09:34:00]1012 (4) - 18.10.2024 03:06 [09:34:00]1206 (1) - 0 [09:34:00]OFD Sender: Remove packet 82323 [09:34:00]ProducePacketName [09:34:00]name=ofd_packets/00082323 [09:34:00]NVStorageDeleteData [09:34:00]recv_with_timeout no data received [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:13]recv_with_timeout no data received [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:24]recv_with_timeout no data received [09:34:25]OFD Sender: No OFD packet to send [09:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 67 9B 08 01 AB 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 84 2B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 41 01 00 35 04 06 00 18 CB 2D 29 16 AA 24 33 1A DD 75 79 3A 37 [09:33:55]CheckFolder [09:33:55]dirname=/storage/ofd_packets [09:33:55]CheckFolder done [09:33:55]ProducePacketName [09:33:55]name=ofd_packets/00082323 [09:33:55]NVStorageSaveData ofd_packets/00082323 [09:33:55]File name is /storage/ofd_packets/00082323 [09:33:55]Write 302 bytes [09:33:55]NVStorageSaveData done [09:33:55]OFDSenderStorePacket done [09:33:55]KKMCreateOFDPacket done [09:33:55]NVStorageSaveData kkm_last_timestamp [09:33:55]File name is /storage/kkm_last_timestamp [09:33:55]Write 4 bytes [09:33:55]NVStorageSaveData done [09:33:55]ExternCall_PrintAddStr [09:33:55]wPrintStart [09:33:55]Write to MH i2c: 01 00 00 D1 0A DB [09:33:55]Write i2c OK [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 [09:33:55]MH_I2C_Read... [09:33:55]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 FF 0F F0 [09:33:55]RasterBufferAndPrint [09:33:55]line Счет N : (1)918821 [09:33:55]line ИНН: 02508201610067 [09:33:55]line Контрольно-Кассовый Чек [09:33:55]line ПРОДАЖА [09:33:55]line ТРК (МРК, ГНК) : 31 [09:33:55]line Товар: 2710194210 [09:33:55]line ДТ(л)-К-5 [09:33:55]line 15.000 * 0.00 [09:33:55]line = 0.00 [09:33:55]line НДС 12% НСП 1% [09:33:55]line > о реализуемом товаре [09:33:55]line ИТОГО: 0.00 [09:33:55]line НСП 1% : 0.00 [09:33:55]line НДС 12% : 0.00 [09:33:55]line Наличными: 0.00 [09:33:55]line Безнал.: 0.00 [09:33:55]line Место: АЗС № 114 "Партнер Нефть" [09:33:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:33:55]line СНО: Общий режим [09:33:55]line Чек 32 18.10.2024 09:33 [09:33:55]line Смена: 526 ФФД: 1.0 [09:33:55]line ЗНМ: 0300000086 [09:33:55]line РНМ: 0000000000091680 [09:33:55]line Версия ККМ: 001 [09:33:55]line Талоны: ТК ГПНА Online [09:33:55]line 30121604 [09:33:55]line ФМ: 0000000000871843 [09:33:55]line ФД: 82323 [09:33:55]line ФПД: 27260915095210 [09:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T093356&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82323&fm=27260915095210&tin=02508201610067®Number=0000000000091680&sum=0 [09:33:55]written 0, free lines is 4095 [09:33:55]OFD Sender: Processing packet 82323 [packets to send 254, broken 253] [09:33:55]ProducePacketName [09:33:55]name=ofd_packets/00082323 [09:33:55]OFD Sender: To server: pG, [09:33:55]CommunicateWithHost lk.salyk.kg:30040 [09:33:55]ConnectInit lk.salyk.kg [09:33:56]Write to MH i2c: 01 00 00 FB 0A 05 [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: 01 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: 01 07 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: 01 07 00 FB 0A 00 00 00 00 00 DA 0C F2 [09:33:56]RasterBufferAndPrint [09:33:56]line [09:33:56]line [09:33:56]line [09:33:56]line [09:33:56]line [09:33:56]written 0, free lines is 3296 [09:33:56]MH_Cut [09:33:56]Write to MH i2c: D1 01 00 02 0B 01 DF [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: D1 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: D1 01 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: D1 01 00 02 0B 00 DE [09:33:56]Write to MH i2c: 01 00 00 03 0B 0E [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** Cut start [09:33:56]*** Partial cut [09:33:56]*** CUTSNS_PIN = 1 [09:33:56]*** CUTSNS_PIN = 0 [09:33:57]*** Brake cut motor [09:33:57]Read from MH i2c: 01 [09:33:57]MH_I2C_Read... [09:33:57]*** Stop cut motor [09:33:57]*** Cut end [09:33:57]Read from MH i2c: 01 07 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: 01 07 00 03 0B 00 00 00 00 00 FF 0F 23 [09:33:57]process_action close_receipt done [09:33:57]requested_data is exist [09:33:57]produce_requested_data [09:33:57]requested_item fm.sn is exist - process it [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 11 00 00 [09:33:57]Write to MH i2c: E2 08 00 04 0B 80 11 00 00 00 00 00 00 89 [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 17 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 17 00 04 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DB [09:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:33:57]wFMCommunicate OK [09:33:57]requested_item fd.num is exist - process it [09:33:57]SAM_PROTO_GetFieldsCounters [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 13 00 00 [09:33:57]Write to MH i2c: E2 08 00 05 0B 80 13 00 00 00 00 00 00 8C [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 62 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 62 00 05 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 93 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [09:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 93 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:57]wFMCommunicate OK [09:33:57]SAM_PROTO_GetFieldsCounters done [09:33:57]requested_item shift.num is exist - process it [09:33:57]requested_item shift.opened is exist - process it [09:33:57]req_shift_opened [09:33:57]FM_GetShiftState [09:33:57]SAM_PROTO_GetShiftState [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 13 01 00 [09:33:57]Write to MH i2c: E2 08 00 06 0B 80 13 01 00 00 00 00 00 8E [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 0E 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 0E 00 06 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 60 [09:33:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:33:57]wFMCommunicate OK [09:33:57]SAM_PROTO_GetShiftState done [09:33:57]FM_GetShiftState done [09:33:57]req_shift_opened done [09:33:57]requested_item shift.open_date is exist - process it [09:33:57]req_shift_open_date [09:33:57]req_shift_open_date done [09:33:57]produce_requested_data done [09:33:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82323,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:33:57]process_action_free close_receipt [09:33:57]json_value_free [09:33:57]json_value_free done [09:33:57]process_json_proto returns [09:33:57]Send response to host [09:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82323,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:33:57]free response buf [09:33:57]execute_script done [09:33:57]execute_script returns [09:33:57]free content buf [09:33:57]Sock 10.Close socket [09:33:57]Sock 10.Thread stoped [09:33:58]Connected sock=11 [09:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 67 9B 08 01 AB 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 84 2B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 41 01 00 35 04 06 00 18 CB 2D 29 16 AA 24 33 1A DD 75 79 3A 37 [09:34:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BB 3D 47 00 78 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 93 41 01 00 F4 03 04 00 C2 D0 11 67 B6 04 01 00 00 78 C2 F9 56 9C EB 59 BE [09:34:00]CommunicateWithHost err = 0 [09:34:00]CheckOFDResponse [09:34:00]1017 (14) - 77093643461234 [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]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:35:01]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [09:37:06]accept exits with 8 [09:37:06]New connection [09:37:06]New thread 3067297124 created [09:37:06]Thread 3067440484 joined [09:37:06]Waiting for new connection... [09:37:06] Sock 8.Parse request [09:37:06]Sock 8.Check first char [09:37:06]Sock 8.First char is OK [09:37:06]request: POST /json_proto HTTP/1.0 [09:37:06]Method: POST [09:37:06]URL: /json_proto [09:37:06]Method is POST - this is cgi request [09:37:06]url: /json_proto [09:37:06]query_string will be loaded in cgi processing [09:37:06]execute_cgi json_proto POST (null) [09:37:06]execute_cgi path=json_proto method=POST [09:37:06]POST find Content-Length [09:37:06]Host: 172.17.44.67:8080 [09:37:06]Content-Length: 621 [09:37:06]Content-Type: application/json [09:37:06] [09:37:06]POST finish read [09:37:06]Found Content-Length = 621 [09:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10592", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:06]execute_script... [09:37:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10592", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:06]POST & json_proto [09:37:06]process_json_proto [09:37:06]json parsed OK: [09:37:06]protocol is kg_v1.0 [09:37:06]action value=close_receipt [09:37:06]process_action close_receipt [09:37:06]cmd_close_receipt [09:37:06]MH_GetDate [09:37:06]Write to MH i2c: F0 00 00 07 0B 01 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 07 0B 00 45 2C 12 67 F1 C7 6B 64 7B [09:37:06]GetLastDocTimeStamp 1729244036 [09:37:06]current date 1729244229 [09:37:06]FM_GetShiftState [09:37:06]SAM_PROTO_GetShiftState [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 13 01 00 [09:37:06]Write to MH i2c: E2 08 00 08 0B 80 13 01 00 00 00 00 00 90 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 08 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 62 [09:37:06]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_GetShiftState done [09:37:06]FM_GetShiftState done [09:37:06]opened in 1729212319 [09:37:06]opened+sec_in_day 1729298719 [09:37:06]quantity*price = 13800 [09:37:06]sum+1 = 13801 [09:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 33 18.10.2024 09:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82324 ФПД: 209612438292157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T093709&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82324&fm=209612438292157&tin=02508201610067®Number=0000000000091680&sum=13800 0 [09:37:07]StoreToDocumentArchive [09:37:07]shift 526 fd 82324 [09:37:07]save to /storage/0526/doc_00082324 [09:37:07]save last doc name /storage/0526/doc_00082324 to /storage/kkm_last_doc_name [09:37:07]save OK [09:37:07]Clear old archive folders... [09:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:37:07]tlvbuf is 00B3B500 [09:37:07]SAM_PROTO_ClearQueue [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 09 00 00 [09:37:07]Write to MH i2c: E2 08 00 15 0B 80 09 00 00 00 00 00 00 92 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 09 00 00... 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 15 0B 00 90 00 94 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_ClearQueue done [09:37:07]KKMCreateOFDPacket [09:37:07]OFDProtocolAddRootSTLVToBuf [09:37:07]FM_MakeSignedData [09:37:07]FM_MakeSignedData [09:37:07]SAM_PROTO_SignData [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 01 02 [09:37:07]Write to MH i2c: E2 08 00 16 0B 80 0D 01 02 00 00 00 00 9A [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 01 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 16 0B 00 90 00 95 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=255 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 45 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 [09:37:07]Write to MH i2c: E2 02 01 17 0B 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 45 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 00 00 F1 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=33 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 41 01 00 35 04 06 00 BE A4 32 EC C6 BD [09:37:08]Write to MH i2c: E2 24 00 18 0B 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 41 01 00 35 04 06 00 BE A4 32 EC C6 BD 00 00 04 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 18 0B 00 90 00 97 [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 03 02 [09:37:08]Write to MH i2c: E2 08 00 19 0B 80 0D 03 02 00 00 00 00 9F [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0B 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0B 00 19 0B 00 CE AC 9B EE 8D 8A 48 50 90 00 52 [09:37:08]RAPDU: CE AC 9B EE 8D 8A 48 50 90 00 [09:37:08]wFMCommunicate OK [09:37:08]SAM_PROTO_SignData done [09:37:08]FM_MakeSignedData done [09:37:08]CreateOFDProtocolMessage [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 11 00 00 [09:37:08]Write to MH i2c: E2 08 00 1A 0B 80 11 00 00 00 00 00 00 9F [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 1A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F1 [09:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:37:08]wFMCommunicate OK [09:37:08]CreateOFDProtocolMessage done [09:37:08]OFDSenderStorePacket 82324 [09:37:08]StoreOFDPacket docnum=82324 [09:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 26 01 00 00 69 9F 1E 01 5F 2C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 45 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 41 01 00 35 04 06 00 BE A4 32 EC C6 BD CE AC 9B EE 8D 8A 48 50 [09:37:08]CheckFolder [09:37:08]dirname=/storage/ofd_packets [09:37:08]CheckFolder done [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00082324 [09:37:08]NVStorageSaveData ofd_packets/00082324 [09:37:08]File name is /storage/ofd_packets/00082324 [09:37:08]Write 324 bytes [09:37:08]NVStorageSaveData done [09:37:08]OFDSenderStorePacket done [09:37:08]KKMCreateOFDPacket done [09:37:08]NVStorageSaveData kkm_last_timestamp [09:37:08]File name is /storage/kkm_last_timestamp [09:37:08]Write 4 bytes [09:37:08]NVStorageSaveData done [09:37:08]ExternCall_PrintAddStr [09:37:08]wPrintStart [09:37:08]Write to MH i2c: 01 00 00 1B 0B 26 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 FF 0F 3B [09:37:08]RasterBufferAndPrint [09:37:08]line Счет N : (3)10592 [09:37:08]line ИНН: 02508201610067 [09:37:08]line Контрольно-Кассовый Чек [09:37:08]line ПРОДАЖА [09:37:08]line Товар: 4640030091645 [09:37:08]line Сигареты ESSE Exchange M [09:37:08]line 1.000 * 138.00 [09:37:08]line = 138.00 [09:37:08]line НДС 12% НСП 1% [09:37:08]line > о реализуемом товаре [09:37:08]line ИТОГО: 138.00 [09:37:08]line НСП 1% : 1.22 [09:37:08]line НДС 12% : 14.65 [09:37:08]line Наличными: 138.00 [09:37:08]line Безнал.: 0.00 [09:37:08]line Место: АЗС № 114 "Партнер Нефть" [09:37:08]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:37:08]line СНО: Общий режим [09:37:08]line Чек 33 18.10.2024 09:37 [09:37:08]line Смена: 526 ФФД: 1.0 [09:37:08]line ЗНМ: 0300000086 [09:37:08]line РНМ: 0000000000091680 [09:37:08]line Версия ККМ: 001 [09:37:08]line ФМ: 0000000000871843 [09:37:08]line ФД: 82324 [09:37:08]line ФПД: 209612438292157 [09:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T093709&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82324&fm=209612438292157&tin=02508201610067®Number=0000000000091680&sum=13800 [09:37:08]line 0 [09:37:08]OFD Sender: Processing packet 82324 [packets to send 254, broken 253] [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00082324 [09:37:08]OFD Sender: To server: pG, [09:37:08]CommunicateWithHost lk.salyk.kg:30040 [09:37:08]ConnectInit lk.salyk.kg [09:37:08]written 0, free lines is 4095 [09:37:09]Write to MH i2c: 01 00 00 43 0B 4E [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [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 43 0B 00 00 00 00 00 F7 0C 58 [09:37:09]RasterBufferAndPrint [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]written 0, free lines is 3327 [09:37:09]MH_Cut [09:37:09]Write to MH i2c: D1 01 00 4A 0B 01 27 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 01 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 01 00 4A 0B 00 26 [09:37:09]Write to MH i2c: 01 00 00 4B 0B 56 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Connected sock=10 [09:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 26 01 00 00 69 9F 1E 01 5F 2C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 45 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 41 01 00 35 04 06 00 BE A4 32 EC C6 BD CE AC 9B EE 8D 8A 48 50 [09:37:09]*** Cut start [09:37:09]*** Partial cut [09:37:09]*** CUTSNS_PIN = 1 [09:37:10]*** CUTSNS_PIN = 0 [09:37:10]*** Brake cut motor [09:37:10]Read from MH i2c: 01 [09:37:10]MH_I2C_Read... [09:37:10]*** Stop cut motor [09:37:10]*** Cut end [09:37:10]Read from MH i2c: 01 07 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 4B 0B 00 00 00 00 00 FF 0F 6B [09:37:10]process_action close_receipt done [09:37:10]requested_data is exist [09:37:10]produce_requested_data [09:37:10]requested_item fm.sn is exist - process it [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 11 00 00 [09:37:10]Write to MH i2c: E2 08 00 4C 0B 80 11 00 00 00 00 00 00 D1 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 17 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 17 00 4C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 23 [09:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:37:10]wFMCommunicate OK [09:37:10]requested_item fd.num is exist - process it [09:37:10]SAM_PROTO_GetFieldsCounters [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 00 00 [09:37:10]Write to MH i2c: E2 08 00 4D 0B 80 13 00 00 00 00 00 00 D4 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 4D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 94 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [09:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 94 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetFieldsCounters done [09:37:10]requested_item shift.num is exist - process it [09:37:10]requested_item shift.opened is exist - process it [09:37:10]req_shift_opened [09:37:10]FM_GetShiftState [09:37:10]SAM_PROTO_GetShiftState [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 01 00 [09:37:10]Write to MH i2c: E2 08 00 4E 0B 80 13 01 00 00 00 00 00 D6 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 4E 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A8 [09:37:10]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetShiftState done [09:37:10]FM_GetShiftState done [09:37:10]req_shift_opened done [09:37:10]requested_item shift.open_date is exist - process it [09:37:10]req_shift_open_date [09:37:10]req_shift_open_date done [09:37:10]produce_requested_data done [09:37:10]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82324,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:37:10]process_action_free close_receipt [09:37:10]json_value_free [09:37:10]json_value_free done [09:37:10]process_json_proto returns [09:37:10]Send response to host [09:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82324,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:37:10]free response buf [09:37:10]execute_script done [09:37:10]execute_script returns [09:37:10]free content buf [09:37:10]Sock 8.Close socket [09:37:10]Sock 8.Thread stoped [09:37:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 87 D3 47 00 B5 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 94 41 01 00 F4 03 04 00 81 D1 11 67 B6 04 01 00 00 6F 04 12 CE 43 1B B1 35 [09:37:11]CommunicateWithHost err = 0 [09:37:11]CheckOFDResponse [09:37:11]1017 (14) - 77093643461234 [09:37:11]1041 (16) - 0000000000871843 [09:37:11]1040 (4) - 82324 [09:37:11]1012 (4) - 18.10.2024 03:09 [09:37:11]1206 (1) - 0 [09:37:11]OFD Sender: Remove packet 82324 [09:37:11]ProducePacketName [09:37:11]name=ofd_packets/00082324 [09:37:11]NVStorageDeleteData [09:37:11]OFD Sender: No OFD packet to send [09:37:16]recv_with_timeout no data received [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:35]recv_with_timeout no data received [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:43]accept exits with 9 [09:37:43]New connection [09:37:43]New thread 3067440484 created [09:37:43]Thread 3067297124 joined [09:37:43]Waiting for new connection... [09:37:43] Sock 9.Parse request [09:37:43]Sock 9.Check first char [09:37:43]Sock 9.First char is OK [09:37:43]request: POST /json_proto HTTP/1.0 [09:37:43]Method: POST [09:37:43]URL: /json_proto [09:37:43]Method is POST - this is cgi request [09:37:43]url: /json_proto [09:37:43]query_string will be loaded in cgi processing [09:37:43]execute_cgi json_proto POST (null) [09:37:43]execute_cgi path=json_proto method=POST [09:37:43]POST find Content-Length [09:37:43]Host: 172.17.44.67:8080 [09:37:43]Content-Length: 754 [09:37:43]Content-Type: application/json [09:37:43] [09:37:43]POST finish read [09:37:43]Found Content-Length = 754 [09:37:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:43]execute_script... [09:37:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:43]POST & json_proto [09:37:43]process_json_proto [09:37:43]json parsed OK: [09:37:43]protocol is kg_v1.0 [09:37:43]action value=close_receipt [09:37:43]process_action close_receipt [09:37:43]cmd_close_receipt [09:37:43]MH_GetDate [09:37:43]Write to MH i2c: F0 00 00 4F 0B 49 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: F0 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: F0 09 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: F0 09 00 4F 0B 00 6A 2C 12 67 F1 C7 6B 64 E8 [09:37:43]GetLastDocTimeStamp 1729244229 [09:37:43]current date 1729244266 [09:37:43]FM_GetShiftState [09:37:43]SAM_PROTO_GetShiftState [09:37:43]wFMCommunicate request_size=4 [09:37:43]MH_SAM_APDU [09:37:43]CAPDU: 80 13 01 00 [09:37:43]Write to MH i2c: E2 08 00 50 0B 80 13 01 00 00 00 00 00 D8 [09:37:43]Write i2c OK [09:37:43]MH_I2C_Read... [09:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:43]Read from MH i2c: E2 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 0E 00 [09:37:43]MH_I2C_Read... [09:37:43]Read from MH i2c: E2 0E 00 50 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AA [09:37:43]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:37:43]wFMCommunicate OK [09:37:43]SAM_PROTO_GetShiftState done [09:37:43]FM_GetShiftState done [09:37:43]opened in 1729212319 [09:37:43]opened+sec_in_day 1729298719 [09:37:43]quantity*price = 0 [09:37:43]sum+1 = 1 [09:37:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 34 18.10.2024 09:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100657 ФМ: 0000000000871843 ФД: 82325 ФПД: 131357950993652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T093746&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82325&fm=131357950993652&tin=02508201610067®Number=0000000000091680&sum=0 [09:37:44]StoreToDocumentArchive [09:37:44]shift 526 fd 82325 [09:37:44]save to /storage/0526/doc_00082325 [09:37:44]save last doc name /storage/0526/doc_00082325 to /storage/kkm_last_doc_name [09:37:44]save OK [09:37:44]Clear old archive folders... [09:37:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:44]tlvbuf is 00B08F70 [09:37:44]SAM_PROTO_ClearQueue [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 09 00 00 [09:37:44]Write to MH i2c: E2 08 00 5D 0B 80 09 00 00 00 00 00 00 DA [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 5D 0B 00 90 00 DC [09:37:44]RAPDU: 90 00 [09:37:44]wFMCommunicate OK [09:37:44]SAM_PROTO_ClearQueue done [09:37:44]KKMCreateOFDPacket [09:37:44]OFDProtocolAddRootSTLVToBuf [09:37:44]FM_MakeSignedData [09:37:44]FM_MakeSignedData [09:37:44]SAM_PROTO_SignData [09:37:44]wFMCommunicate request_size=4 [09:37:44]MH_SAM_APDU [09:37:44]CAPDU: 80 0D 01 02 [09:37:44]Write to MH i2c: E2 08 00 5E 0B 80 0D 01 02 00 00 00 00 E2 [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:44]Read from MH i2c: E2 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 [09:37:44]MH_I2C_Read... [09:37:44]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [09:37:44]RAPDU: 90 00 [09:37:44]wFMCommunicate OK [09:37:44]wFMCommunicate request_size=255 [09:37:44]MH_SAM_APDU [09:37: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6A 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 95 41 01 00 35 04 06 00 77 [09:37:44]Write to MH i2c: E2 02 01 5F 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6A 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 95 41 01 00 35 04 06 00 77 00 00 AF [09:37:44]Write i2c OK [09:37:44]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]wFMCommunicate request_size=10 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 02 02 05 78 28 01 E4 F4 [09:37:45]Write to MH i2c: E2 0D 00 60 0B 80 0D 02 02 05 00 78 28 01 E4 F4 00 00 68 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [09:37:45]RAPDU: 90 00 [09:37:45]wFMCommunicate OK [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 0D 03 02 [09:37:45]Write to MH i2c: E2 08 00 61 0B 80 0D 03 02 00 00 00 00 E7 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0B 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 0B 00 61 0B 00 FE 5C 0D 8D BB 21 03 71 90 00 2C [09:37:45]RAPDU: FE 5C 0D 8D BB 21 03 71 90 00 [09:37:45]wFMCommunicate OK [09:37:45]SAM_PROTO_SignData done [09:37:45]FM_MakeSignedData done [09:37:45]CreateOFDProtocolMessage [09:37:45]wFMCommunicate request_size=4 [09:37:45]MH_SAM_APDU [09:37:45]CAPDU: 80 11 00 00 [09:37:45]Write to MH i2c: E2 08 00 62 0B 80 11 00 00 00 00 00 00 E7 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:45]Read from MH i2c: E2 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: E2 17 00 62 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 39 [09:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:37:45]wFMCommunicate OK [09:37:45]CreateOFDProtocolMessage done [09:37:45]OFDSenderStorePacket 82325 [09:37:45]StoreOFDPacket docnum=82325 [09:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 35 61 07 01 70 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6A 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 95 41 01 00 35 04 06 00 77 78 28 01 E4 F4 FE 5C 0D 8D BB 21 03 71 [09:37:45]CheckFolder [09:37:45]dirname=/storage/ofd_packets [09:37:45]CheckFolder done [09:37:45]ProducePacketName [09:37:45]name=ofd_packets/00082325 [09:37:45]NVStorageSaveData ofd_packets/00082325 [09:37:45]File name is /storage/ofd_packets/00082325 [09:37:45]Write 301 bytes [09:37:45]NVStorageSaveData done [09:37:45]OFDSenderStorePacket done [09:37:45]KKMCreateOFDPacket done [09:37:45]NVStorageSaveData kkm_last_timestamp [09:37:45]File name is /storage/kkm_last_timestamp [09:37:45]Write 4 bytes [09:37:45]NVStorageSaveData done [09:37:45]ExternCall_PrintAddStr [09:37:45]wPrintStart [09:37:45]Write to MH i2c: 01 00 00 63 0B 6E [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 FF 0F 83 [09:37:45]RasterBufferAndPrint [09:37:45]line Счет N : (1)918822 [09:37:45]line ИНН: 02508201610067 [09:37:45]line Контрольно-Кассовый Чек [09:37:45]line ПРОДАЖА [09:37:45]line ТРК (МРК, ГНК) : 22 [09:37:45]line Товар: 2710124130 [09:37:45]line Аи-92-К-4 [09:37:45]line 10.000 * 0.00 [09:37:45]line = 0.00 [09:37:45]line НДС 12% НСП 1% [09:37:45]line > о реализуемом товаре [09:37:45]line ИТОГО: 0.00 [09:37:45]line НСП 1% : 0.00 [09:37:45]line НДС 12% : 0.00 [09:37:45]line Наличными: 0.00 [09:37:45]line Безнал.: 0.00 [09:37:45]line Место: АЗС № 114 "Партнер Нефть" [09:37:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:37:45]line СНО: Общий режим [09:37:45]line Чек 34 18.10.2024 09:37 [09:37:45]line Смена: 526 ФФД: 1.0 [09:37:45]line ЗНМ: 0300000086 [09:37:45]line РНМ: 0000000000091680 [09:37:45]line Версия ККМ: 001 [09:37:45]line Талоны: ТК ГПНА Online [09:37:45]line 30100657 [09:37:45]line ФМ: 0000000000871843 [09:37:45]line ФД: 82325 [09:37:45]line ФПД: 131357950993652 [09:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T093746&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82325&fm=131357950993652&tin=02508201610067®Number=0000000000091680&sum=0 [09:37:45]written 0, free lines is 4095 [09:37:45]OFD Sender: Processing packet 82325 [packets to send 254, broken 253] [09:37:45]ProducePacketName [09:37:45]name=ofd_packets/00082325 [09:37:45]OFD Sender: To server: pG, [09:37:45]CommunicateWithHost lk.salyk.kg:30040 [09:37:45]ConnectInit lk.salyk.kg [09:37:45]Write to MH i2c: 01 00 00 8D 0B 98 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 DD 0C 88 [09:37:45]RasterBufferAndPrint [09:37:45]line [09:37:45]line [09:37:45]line [09:37:45]line [09:37:45]line [09:37:45]written 0, free lines is 3299 [09:37:45]MH_Cut [09:37:45]Write to MH i2c: D1 01 00 94 0B 01 71 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: D1 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: D1 01 00 [09:37:45]MH_I2C_Read... [09:37:45]Read from MH i2c: D1 01 00 94 0B 00 70 [09:37:45]Write to MH i2c: 01 00 00 95 0B A0 [09:37:45]Write i2c OK [09:37:45]MH_I2C_Read... [09:37:46]*** Cut start [09:37:46]*** Partial cut [09:37:46]*** CUTSNS_PIN = 1 [09:37:46]*** CUTSNS_PIN = 0 [09:37:46]*** Brake cut motor [09:37:47]Read from MH i2c: 01 [09:37:47]MH_I2C_Read... [09:37:47]*** Stop cut motor [09:37:47]*** Cut end [09:37:47]Read from MH i2c: 01 07 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: 01 07 00 95 0B 00 00 00 00 00 FF 0F B5 [09:37:47]process_action close_receipt done [09:37:47]requested_data is exist [09:37:47]produce_requested_data [09:37:47]requested_item fm.sn is exist - process it [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 11 00 00 [09:37:47]Write to MH i2c: E2 08 00 96 0B 80 11 00 00 00 00 00 00 1B [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 17 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 17 00 96 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6D [09:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:37:47]wFMCommunicate OK [09:37:47]requested_item fd.num is exist - process it [09:37:47]SAM_PROTO_GetFieldsCounters [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 13 00 00 [09:37:47]Write to MH i2c: E2 08 00 97 0B 80 13 00 00 00 00 00 00 1E [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 62 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 62 00 97 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 95 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [09:37:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 95 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:47]wFMCommunicate OK [09:37:47]SAM_PROTO_GetFieldsCounters done [09:37:47]requested_item shift.num is exist - process it [09:37:47]requested_item shift.opened is exist - process it [09:37:47]req_shift_opened [09:37:47]FM_GetShiftState [09:37:47]SAM_PROTO_GetShiftState [09:37:47]wFMCommunicate request_size=4 [09:37:47]MH_SAM_APDU [09:37:47]CAPDU: 80 13 01 00 [09:37:47]Write to MH i2c: E2 08 00 98 0B 80 13 01 00 00 00 00 00 20 [09:37:47]Write i2c OK [09:37:47]MH_I2C_Read... [09:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:47]Read from MH i2c: E2 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 0E 00 [09:37:47]MH_I2C_Read... [09:37:47]Read from MH i2c: E2 0E 00 98 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F2 [09:37:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:37:47]wFMCommunicate OK [09:37:47]SAM_PROTO_GetShiftState done [09:37:47]FM_GetShiftState done [09:37:47]req_shift_opened done [09:37:47]requested_item shift.open_date is exist - process it [09:37:47]req_shift_open_date [09:37:47]req_shift_open_date done [09:37:47]produce_requested_data done [09:37:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82325,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:37:47]process_action_free close_receipt [09:37:47]json_value_free [09:37:47]json_value_free done [09:37:47]process_json_proto returns [09:37:47]Send response to host [09:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82325,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:37:47]free response buf [09:37:47]execute_script done [09:37:47]execute_script returns [09:37:47]free content buf [09:37:47]Sock 9.Close socket [09:37:47]Sock 9.Thread stoped [09:37:48]Connected sock=10 [09:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 35 61 07 01 70 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 6A 2C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 95 41 01 00 35 04 06 00 77 78 28 01 E4 F4 FE 5C 0D 8D BB 21 03 71 [09:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 41 E9 47 00 3A 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 95 41 01 00 F4 03 04 00 A8 D1 11 67 B6 04 01 00 00 9F F4 3D F3 27 E1 3C A9 [09:37:51]CommunicateWithHost err = 0 [09:37:51]CheckOFDResponse [09:37:51]1017 (14) - 77093643461234 [09:37:51]1041 (16) - 0000000000871843 [09:37:51]1040 (4) - 82325 [09:37:51]1012 (4) - 18.10.2024 03:10 [09:37:51]1206 (1) - 0 [09:37:51]OFD Sender: Remove packet 82325 [09:37:51]ProducePacketName [09:37:51]name=ofd_packets/00082325 [09:37:51]NVStorageDeleteData [09:37:51]OFD Sender: No OFD packet to send [09:37:53]recv_with_timeout no data received [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:52]recv_with_timeout no data received [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]accept exits with 8 [09:41:47]New connection [09:41:47]New thread 3067297124 created [09:41:47]Thread 3067440484 joined [09:41:47]Waiting for new connection... [09:41:47] Sock 8.Parse request [09:41:47]Sock 8.Check first char [09:41:47]Sock 8.First char is OK [09:41:47]request: POST /json_proto HTTP/1.0 [09:41:47]Method: POST [09:41:47]URL: /json_proto [09:41:47]Method is POST - this is cgi request [09:41:47]url: /json_proto [09:41:47]query_string will be loaded in cgi processing [09:41:47]execute_cgi json_proto POST (null) [09:41:47]execute_cgi path=json_proto method=POST [09:41:47]POST find Content-Length [09:41:47]Host: 172.17.44.67:8080 [09:41:47]Content-Length: 803 [09:41:47]Content-Type: application/json [09:41:47] [09:41:47]POST finish read [09:41:47]Found Content-Length = 803 [09:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:47]execute_script... [09:41:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:47]POST & json_proto [09:41:47]process_json_proto [09:41:47]json parsed OK: [09:41:47]protocol is kg_v1.0 [09:41:47]action value=close_receipt [09:41:47]process_action close_receipt [09:41:47]cmd_close_receipt [09:41:47]MH_GetDate [09:41:47]Write to MH i2c: F0 00 00 99 0B 93 [09:41:47]Write i2c OK [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: F0 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: F0 09 00 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: F0 09 00 99 0B 00 5E 2D 12 67 F1 C7 6B 64 27 [09:41:47]GetLastDocTimeStamp 1729244266 [09:41:47]current date 1729244510 [09:41:47]FM_GetShiftState [09:41:47]SAM_PROTO_GetShiftState [09:41:47]wFMCommunicate request_size=4 [09:41:47]MH_SAM_APDU [09:41:47]CAPDU: 80 13 01 00 [09:41:47]Write to MH i2c: E2 08 00 9A 0B 80 13 01 00 00 00 00 00 22 [09:41:47]Write i2c OK [09:41:47]MH_I2C_Read... [09:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:47]Read from MH i2c: E2 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: E2 0E 00 [09:41:47]MH_I2C_Read... [09:41:47]Read from MH i2c: E2 0E 00 9A 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F4 [09:41:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:41:47]wFMCommunicate OK [09:41:47]SAM_PROTO_GetShiftState done [09:41:47]FM_GetShiftState done [09:41:47]opened in 1729212319 [09:41:47]opened+sec_in_day 1729298719 [09:41:47]quantity*price = 150056 [09:41:47]sum+1 = 150058 [09:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 35 18.10.2024 09:41 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82326 ФПД: 59310614560075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T094150&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82326&fm=59310614560075&tin=02508201610067®Number=0000000000091680&sum=150057 [09:41:48]StoreToDocumentArchive [09:41:48]shift 526 fd 82326 [09:41:48]save to /storage/0526/doc_00082326 [09:41:48]save last doc name /storage/0526/doc_00082326 to /storage/kkm_last_doc_name [09:41:48]save OK [09:41:48]Clear old archive folders... [09:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:48]tlvbuf is 00B398D0 [09:41:48]SAM_PROTO_ClearQueue [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 09 00 00 [09:41:48]Write to MH i2c: E2 08 00 A7 0B 80 09 00 00 00 00 00 00 24 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]SAM_PROTO_ClearQueue done [09:41:48]KKMCreateOFDPacket [09:41:48]OFDProtocolAddRootSTLVToBuf [09:41:48]FM_MakeSignedData [09:41:48]FM_MakeSignedData [09:41:48]SAM_PROTO_SignData [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 01 02 [09:41:48]Write to MH i2c: E2 08 00 A8 0B 80 0D 01 02 00 00 00 00 2C [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=255 [09:41:48]MH_SAM_APDU [09:41: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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5E 2D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 96 41 01 00 35 04 06 00 35 [09:41:48]Write to MH i2c: E2 02 01 A9 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5E 2D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 96 41 01 00 35 04 06 00 35 00 00 B9 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=10 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 02 02 05 F1 54 1C BD 4B [09:41:48]Write to MH i2c: E2 0D 00 AA 0B 80 0D 02 02 05 00 F1 54 1C BD 4B 00 00 A2 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 AA 0B 00 90 00 29 [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 03 02 [09:41:48]Write to MH i2c: E2 08 00 AB 0B 80 0D 03 02 00 00 00 00 31 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0B 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0B 00 AB 0B 00 11 4F 6A 14 12 EA 8B 98 90 00 2F [09:41:48]RAPDU: 11 4F 6A 14 12 EA 8B 98 90 00 [09:41:48]wFMCommunicate OK [09:41:48]SAM_PROTO_SignData done [09:41:48]FM_MakeSignedData done [09:41:48]CreateOFDProtocolMessage [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 11 00 00 [09:41:48]Write to MH i2c: E2 08 00 AC 0B 80 11 00 00 00 00 00 00 31 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 17 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 17 00 AC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 83 [09:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:41:48]wFMCommunicate OK [09:41:48]CreateOFDProtocolMessage done [09:41:48]OFDSenderStorePacket 82326 [09:41:48]StoreOFDPacket docnum=82326 [09:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AD 5C 07 01 AB 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5E 2D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 96 41 01 00 35 04 06 00 35 F1 54 1C BD 4B 11 4F 6A 14 12 EA 8B 98 [09:41:48]CheckFolder [09:41:48]dirname=/storage/ofd_packets [09:41:48]CheckFolder done [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00082326 [09:41:48]NVStorageSaveData ofd_packets/00082326 [09:41:48]File name is /storage/ofd_packets/00082326 [09:41:48]Write 301 bytes [09:41:48]NVStorageSaveData done [09:41:48]OFDSenderStorePacket done [09:41:48]KKMCreateOFDPacket done [09:41:48]NVStorageSaveData kkm_last_timestamp [09:41:48]File name is /storage/kkm_last_timestamp [09:41:48]Write 4 bytes [09:41:48]NVStorageSaveData done [09:41:48]ExternCall_PrintAddStr [09:41:48]wPrintStart [09:41:48]Write to MH i2c: 01 00 00 AD 0B B8 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 FF 0F CD [09:41:48]RasterBufferAndPrint [09:41:48]line Счет N : (1)918823 [09:41:48]line ИНН: 02508201610067 [09:41:48]line Контрольно-Кассовый Чек [09:41:48]line ПРОДАЖА [09:41:48]line ТРК (МРК, ГНК) : 22 [09:41:48]line Товар: 2710124130 [09:41:48]line Аи-92-К-4 [09:41:48]line 22.430 * 66.90 [09:41:48]line = 1500.57 [09:41:48]line НДС 12% НСП 1% [09:41:48]line > о реализуемом товаре [09:41:48]line ИТОГО: 1500.57 [09:41:48]line НСП 1% : 13.28 [09:41:48]line НДС 12% : 159.35 [09:41:48]line Наличными: 0.00 [09:41:48]line Безнал.: 1500.57 [09:41:48]line Место: АЗС № 114 "Партнер Нефть" [09:41:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:41:48]line СНО: Общий режим [09:41:48]line Чек 35 18.10.2024 09:41 [09:41:48]line Смена: 526 ФФД: 1.0 [09:41:48]line ЗНМ: 0300000086 [09:41:48]line РНМ: 0000000000091680 [09:41:48]line Версия ККМ: 001 [09:41:48]line Платежная система: O! деньги [09:41:48]line ФМ: 0000000000871843 [09:41:48]line ФД: 82326 [09:41:48]line ФПД: 59310614560075 [09:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T094150&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82326&fm=59310614560075&tin=02508201610067®Number=0000000000091680&sum=150057 [09:41:48]written 0, free lines is 4095 [09:41:48]OFD Sender: Processing packet 82326 [packets to send 254, broken 253] [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00082326 [09:41:48]OFD Sender: To server: pG, [09:41:48]CommunicateWithHost lk.salyk.kg:30040 [09:41:48]ConnectInit lk.salyk.kg [09:41:49]Write to MH i2c: 01 00 00 D7 0B E2 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 D7 0B 00 00 00 00 00 E4 0C D9 [09:41:49]RasterBufferAndPrint [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]written 0, free lines is 3307 [09:41:49]MH_Cut [09:41:49]Write to MH i2c: D1 01 00 DE 0B 01 BB [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 01 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 01 00 DE 0B 00 BA [09:41:49]Write to MH i2c: 01 00 00 DF 0B EA [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:50]*** Cut start [09:41:50]*** Partial cut [09:41:50]*** CUTSNS_PIN = 1 [09:41:50]*** CUTSNS_PIN = 0 [09:41:50]*** Brake cut motor [09:41:50]Read from MH i2c: 01 [09:41:50]MH_I2C_Read... [09:41:50]*** Stop cut motor [09:41:50]*** Cut end [09:41:50]Read from MH i2c: 01 07 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 07 00 DF 0B 00 00 00 00 00 FF 0F FF [09:41:50]process_action close_receipt done [09:41:50]requested_data is exist [09:41:50]produce_requested_data [09:41:50]requested_item fm.sn is exist - process it [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 11 00 00 [09:41:50]Write to MH i2c: E2 08 00 E0 0B 80 11 00 00 00 00 00 00 65 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 E0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B7 [09:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:41:50]wFMCommunicate OK [09:41:50]requested_item fd.num is exist - process it [09:41:50]SAM_PROTO_GetFieldsCounters [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 13 00 00 [09:41:50]Write to MH i2c: E2 08 00 E1 0B 80 13 00 00 00 00 00 00 68 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:51]Read from MH i2c: E2 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 62 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 62 00 E1 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 96 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [09:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 96 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:51]wFMCommunicate OK [09:41:51]SAM_PROTO_GetFieldsCounters done [09:41:51]requested_item shift.num is exist - process it [09:41:51]requested_item shift.opened is exist - process it [09:41:51]req_shift_opened [09:41:51]FM_GetShiftState [09:41:51]SAM_PROTO_GetShiftState [09:41:51]wFMCommunicate request_size=4 [09:41:51]MH_SAM_APDU [09:41:51]CAPDU: 80 13 01 00 [09:41:51]Write to MH i2c: E2 08 00 E2 0B 80 13 01 00 00 00 00 00 6A [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:51]Read from MH i2c: E2 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 0E 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: E2 0E 00 E2 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3C [09:41:51]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:41:51]wFMCommunicate OK [09:41:51]SAM_PROTO_GetShiftState done [09:41:51]FM_GetShiftState done [09:41:51]req_shift_opened done [09:41:51]requested_item shift.open_date is exist - process it [09:41:51]req_shift_open_date [09:41:51]req_shift_open_date done [09:41:51]produce_requested_data done [09:41:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82326,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [09:41:51]process_action_free close_receipt [09:41:51]json_value_free [09:41:51]json_value_free done [09:41:51]process_json_proto returns [09:41:51]Send response to host [09:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82326,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [09:41:51]free response buf [09:41:51]execute_script done [09:41:51]execute_script returns [09:41:51]free content buf [09:41:51]Sock 8.Close socket [09:41:51]Sock 8.Thread stoped [09:41:52]Connected sock=10 [09:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AD 5C 07 01 AB 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5E 2D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 96 41 01 00 35 04 06 00 35 F1 54 1C BD 4B 11 4F 6A 14 12 EA 8B 98 [09:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 05 16 47 00 D4 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 96 41 01 00 F4 03 04 00 9C D2 11 67 B6 04 01 00 00 D9 A0 69 C1 56 9E BD FB [09:41:53]CommunicateWithHost err = 0 [09:41:53]CheckOFDResponse [09:41:53]1017 (14) - 77093643461234 [09:41:53]1041 (16) - 0000000000871843 [09:41:53]1040 (4) - 82326 [09:41:53]1012 (4) - 18.10.2024 03:14 [09:41:53]1206 (1) - 0 [09:41:53]OFD Sender: Remove packet 82326 [09:41:53]ProducePacketName [09:41:53]name=ofd_packets/00082326 [09:41:53]NVStorageDeleteData [09:41:53]OFD Sender: No OFD packet to send [09:41:58]recv_with_timeout no data received [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]recv_with_timeout no data received [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:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:16]recv_with_timeout no data received [09:43:18]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:33]recv_with_timeout no data received [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:26]recv_with_timeout no data received [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:15]recv_with_timeout no data received [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:46]recv_with_timeout no data received [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [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:16]recv_with_timeout no data received [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:45]recv_with_timeout no data received [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]recv_with_timeout no data received [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:23]recv_with_timeout no data received [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]recv_with_timeout no data received [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:30]accept exits with 9 [09:58:30]New connection [09:58:30]New thread 3067440484 created [09:58:30]Thread 3067297124 joined [09:58:30]Waiting for new connection... [09:58:30] Sock 9.Parse request [09:58:30]Sock 9.Check first char [09:58:30]Sock 9.First char is OK [09:58:30]request: POST /json_proto HTTP/1.0 [09:58:30]Method: POST [09:58:30]URL: /json_proto [09:58:30]Method is POST - this is cgi request [09:58:30]url: /json_proto [09:58:30]query_string will be loaded in cgi processing [09:58:30]execute_cgi json_proto POST (null) [09:58:30]execute_cgi path=json_proto method=POST [09:58:30]POST find Content-Length [09:58:30]Host: 172.17.44.67:8080 [09:58:30]Content-Length: 806 [09:58:30]Content-Type: application/json [09:58:30] [09:58:30]POST finish read [09:58:30]Found Content-Length = 806 [09:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202686", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:30]execute_script... [09:58: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)918824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202686", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:30]POST & json_proto [09:58:30]process_json_proto [09:58:30]json parsed OK: [09:58:30]protocol is kg_v1.0 [09:58:30]action value=close_receipt [09:58:30]process_action close_receipt [09:58:30]cmd_close_receipt [09:58:30]MH_GetDate [09:58:30]Write to MH i2c: F0 00 00 E3 0B DD [09:58:30]Write i2c OK [09:58:30]MH_I2C_Read... [09:58:30]Read from MH i2c: F0 [09:58:30]MH_I2C_Read... [09:58:30]Read from MH i2c: F0 09 00 [09:58:30]MH_I2C_Read... [09:58:30]Read from MH i2c: F0 09 00 E3 0B 00 49 31 12 67 F1 C7 6B 64 60 [09:58:30]GetLastDocTimeStamp 1729244510 [09:58:30]current date 1729245513 [09:58:30]FM_GetShiftState [09:58:30]SAM_PROTO_GetShiftState [09:58:30]wFMCommunicate request_size=4 [09:58:30]MH_SAM_APDU [09:58:30]CAPDU: 80 13 01 00 [09:58:30]Write to MH i2c: E2 08 00 E4 0B 80 13 01 00 00 00 00 00 6C [09:58:30]Write i2c OK [09:58:30]MH_I2C_Read... [09:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:30]Read from MH i2c: E2 [09:58:30]MH_I2C_Read... [09:58:30]Read from MH i2c: E2 0E 00 [09:58:30]MH_I2C_Read... [09:58:30]Read from MH i2c: E2 0E 00 E4 0B 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3E [09:58:30]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [09:58:30]wFMCommunicate OK [09:58:30]SAM_PROTO_GetShiftState done [09:58:30]FM_GetShiftState done [09:58:30]opened in 1729212319 [09:58:30]opened+sec_in_day 1729298719 [09:58:30]quantity*price = 0 [09:58:30]sum+1 = 1 [09:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 36 18.10.2024 09:58 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202686 ФМ: 0000000000871843 ФД: 82327 ФПД: 204798498521315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T095833&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82327&fm=204798498521315&tin=02508201610067®Number=0000000000091680&sum=0 [09:58:31]StoreToDocumentArchive [09:58:31]shift 526 fd 82327 [09:58:31]save to /storage/0526/doc_00082327 [09:58:31]save last doc name /storage/0526/doc_00082327 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=257 [09:58:31]tlvbuf is 00B092F0 [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 F1 0B 80 09 00 00 00 00 00 00 6E [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 F1 0B 00 90 00 70 [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 F2 0B 80 0D 01 02 00 00 00 00 76 [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:32]Read from MH i2c: E2 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 03 00 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [09:58:32]RAPDU: 90 00 [09:58:32]wFMCommunicate OK [09:58:32]wFMCommunicate request_size=255 [09:58:32]MH_SAM_APDU [09:58:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 49 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 97 41 01 [09:58:32]Write to MH i2c: E2 02 01 F3 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 49 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 97 41 01 00 00 19 [09:58:32]Write i2c OK [09:58:32]MH_I2C_Read... [09:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:32]Read from MH i2c: E2 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 03 00 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 03 00 F3 0B 00 90 00 72 [09:58:32]RAPDU: 90 00 [09:58:32]wFMCommunicate OK [09:58:32]wFMCommunicate request_size=16 [09:58:32]MH_SAM_APDU [09:58:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BA 43 5D C1 40 E3 [09:58:32]Write to MH i2c: E2 13 00 F4 0B 80 0D 02 02 0B 00 00 35 04 06 00 BA 43 5D C1 40 E3 00 00 0C [09:58:32]Write i2c OK [09:58:32]MH_I2C_Read... [09:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:32]Read from MH i2c: E2 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 03 00 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 03 00 F4 0B 00 90 00 73 [09:58:32]RAPDU: 90 00 [09:58:32]wFMCommunicate OK [09:58:32]wFMCommunicate request_size=4 [09:58:32]MH_SAM_APDU [09:58:32]CAPDU: 80 0D 03 02 [09:58:32]Write to MH i2c: E2 08 00 F5 0B 80 0D 03 02 00 00 00 00 7B [09:58:32]Write i2c OK [09:58:32]MH_I2C_Read... [09:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:32]Read from MH i2c: E2 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 0B 00 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 0B 00 F5 0B 00 C9 AA F1 68 21 49 47 EE 90 00 E7 [09:58:32]RAPDU: C9 AA F1 68 21 49 47 EE 90 00 [09:58:32]wFMCommunicate OK [09:58:32]SAM_PROTO_SignData done [09:58:32]FM_MakeSignedData done [09:58:32]CreateOFDProtocolMessage [09:58:32]wFMCommunicate request_size=4 [09:58:32]MH_SAM_APDU [09:58:32]CAPDU: 80 11 00 00 [09:58:32]Write to MH i2c: E2 08 00 F6 0B 80 11 00 00 00 00 00 00 7B [09:58:32]Write i2c OK [09:58:32]MH_I2C_Read... [09:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:32]Read from MH i2c: E2 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 17 00 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: E2 17 00 F6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CD [09:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:58:32]wFMCommunicate OK [09:58:32]CreateOFDProtocolMessage done [09:58:32]OFDSenderStorePacket 82327 [09:58:32]StoreOFDPacket docnum=82327 [09:58:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 BC C2 0D 01 A2 6F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 49 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 97 41 01 00 35 04 06 00 BA 43 5D C1 40 E3 C9 AA F1 68 21 49 47 EE [09:58:32]CheckFolder [09:58:32]dirname=/storage/ofd_packets [09:58:32]CheckFolder done [09:58:32]ProducePacketName [09:58:32]name=ofd_packets/00082327 [09:58:32]NVStorageSaveData ofd_packets/00082327 [09:58:32]File name is /storage/ofd_packets/00082327 [09:58:32]Write 307 bytes [09:58:32]NVStorageSaveData done [09:58:32]OFDSenderStorePacket done [09:58:32]KKMCreateOFDPacket done [09:58:32]NVStorageSaveData kkm_last_timestamp [09:58:32]File name is /storage/kkm_last_timestamp [09:58:32]Write 4 bytes [09:58:32]NVStorageSaveData done [09:58:32]ExternCall_PrintAddStr [09:58:32]wPrintStart [09:58:32]Write to MH i2c: 01 00 00 F7 0B 02 [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 F7 0B 00 00 00 00 00 FF 0F 17 [09:58:32]RasterBufferAndPrint [09:58:32]line Счет N : (1)918824 [09:58:32]line ИНН: 02508201610067 [09:58:32]line Контрольно-Кассовый Чек [09:58:32]line ПРОДАЖА [09:58:32]line ТРК (МРК, ГНК) : 21 [09:58:32]line Товар: 2710194800 [09:58:32]line D-Energy ДТ-К-2 [09:58:32]line 20.000 * 0.00 [09:58:32]line = 0.00 [09:58:32]line НДС 12% НСП 1% [09:58:32]line > о реализуемом товаре [09:58:32]line ИТОГО: 0.00 [09:58:32]line НСП 1% : 0.00 [09:58:32]line НДС 12% : 0.00 [09:58:32]line Наличными: 0.00 [09:58:32]line Безнал.: 0.00 [09:58:32]line Место: АЗС № 114 "Партнер Нефть" [09:58:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [09:58:32]line СНО: Общий режим [09:58:32]line Чек 36 18.10.2024 09:58 [09:58:32]line Смена: 526 ФФД: 1.0 [09:58:32]line ЗНМ: 0300000086 [09:58:32]line РНМ: 0000000000091680 [09:58:32]line Версия ККМ: 001 [09:58:32]line Талоны: Топливные Талоны [09:58:32]line 2202686 [09:58:32]line ФМ: 0000000000871843 [09:58:32]line ФД: 82327 [09:58:32]line ФПД: 204798498521315 [09:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T095833&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82327&fm=204798498521315&tin=02508201610067®Number=0000000000091680&sum=0 [09:58:32]OFD Sender: Processing packet 82327 [packets to send 254, broken 253] [09:58:32]ProducePacketName [09:58:32]name=ofd_packets/00082327 [09:58:32]OFD Sender: To server: pG, [09:58:32]CommunicateWithHost lk.salyk.kg:30040 [09:58:32]ConnectInit lk.salyk.kg [09:58:32]written 0, free lines is 4095 [09:58:33]Write to MH i2c: 01 00 00 21 0C 2D [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: 01 [09:58:33]MH_I2C_Read... [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 21 0C 00 00 00 00 00 F0 0C 30 [09:58:33]RasterBufferAndPrint [09:58:33]line [09:58:33]line [09:58:33]line [09:58:33]line [09:58:33]line [09:58:33]written 0, free lines is 3318 [09:58:33]MH_Cut [09:58:33]Write to MH i2c: D1 01 00 28 0C 01 06 [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: D1 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: D1 01 00 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: D1 01 00 28 0C 00 05 [09:58:33]Write to MH i2c: 01 00 00 29 0C 35 [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]*** Cut start [09:58:33]*** Partial cut [09:58:33]*** CUTSNS_PIN = 1 [09:58:34]*** CUTSNS_PIN = 0 [09:58:34]*** Brake cut motor [09:58:34]Connected sock=10 [09:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 BC C2 0D 01 A2 6F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 49 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 97 41 01 00 35 04 06 00 BA 43 5D C1 40 E3 C9 AA F1 68 21 49 47 EE [09:58:34]Read from MH i2c: 01 [09:58:34]MH_I2C_Read... [09:58:34]*** Stop cut motor [09:58:34]*** Cut end [09:58:34]Read from MH i2c: 01 07 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: 01 07 00 29 0C 00 00 00 00 00 FF 0F 4A [09:58:34]process_action close_receipt done [09:58:34]requested_data is exist [09:58:34]produce_requested_data [09:58:34]requested_item fm.sn is exist - process it [09:58:34]wFMCommunicate request_size=4 [09:58:34]MH_SAM_APDU [09:58:34]CAPDU: 80 11 00 00 [09:58:34]Write to MH i2c: E2 08 00 2A 0C 80 11 00 00 00 00 00 00 B0 [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:34]Read from MH i2c: E2 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 17 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 17 00 2A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 02 [09:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [09:58:34]wFMCommunicate OK [09:58:34]requested_item fd.num is exist - process it [09:58:34]SAM_PROTO_GetFieldsCounters [09:58:34]wFMCommunicate request_size=4 [09:58:34]MH_SAM_APDU [09:58:34]CAPDU: 80 13 00 00 [09:58:34]Write to MH i2c: E2 08 00 2B 0C 80 13 00 00 00 00 00 00 B3 [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:34]Read from MH i2c: E2 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 62 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 62 00 2B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 97 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [09:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 97 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:34]wFMCommunicate OK [09:58:34]SAM_PROTO_GetFieldsCounters done [09:58:34]requested_item shift.num is exist - process it [09:58:34]requested_item shift.opened is exist - process it [09:58:34]req_shift_opened [09:58:34]FM_GetShiftState [09:58:34]SAM_PROTO_GetShiftState [09:58:34]wFMCommunicate request_size=4 [09:58:34]MH_SAM_APDU [09:58:34]CAPDU: 80 13 01 00 [09:58:34]Write to MH i2c: E2 08 00 2C 0C 80 13 01 00 00 00 00 00 B5 [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** 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 2C 0C 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 87 [09:58:34]RAPDU: 09 00 01 9F AF 11 67 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":"0000000000871843","fd.num":82327,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [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":"0000000000871843","fd.num":82327,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [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 9.Close socket [09:58:34]Sock 9.Thread stoped [09:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B6 7D 47 00 39 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 97 41 01 00 F4 03 04 00 86 D6 11 67 B6 04 01 00 00 58 67 27 5D 73 CB 7A 6B [09:58:36]CommunicateWithHost err = 0 [09:58:36]CheckOFDResponse [09:58:36]1017 (14) - 77093643461234 [09:58:36]1041 (16) - 0000000000871843 [09:58:36]1040 (4) - 82327 [09:58:36]1012 (4) - 18.10.2024 03:31 [09:58:36]1206 (1) - 0 [09:58:36]OFD Sender: Remove packet 82327 [09:58:36]ProducePacketName [09:58:36]name=ofd_packets/00082327 [09:58:36]NVStorageDeleteData [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:51]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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:48]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:29]accept exits with 8 [10:01:29]New connection [10:01:29]New thread 3067297124 created [10:01:29]Thread 3067440484 joined [10:01:29]Waiting for new connection... [10:01:29] Sock 8.Parse request [10:01:29]Sock 8.Check first char [10:01:29]Sock 8.First char is OK [10:01:29]request: POST /json_proto HTTP/1.0 [10:01:29]Method: POST [10:01:29]URL: /json_proto [10:01:29]Method is POST - this is cgi request [10:01:29]url: /json_proto [10:01:29]query_string will be loaded in cgi processing [10:01:29]execute_cgi json_proto POST (null) [10:01:29]execute_cgi path=json_proto method=POST [10:01:29]POST find Content-Length [10:01:29]Host: 172.17.44.67:8080 [10:01:29]Content-Length: 797 [10:01:29]Content-Type: application/json [10:01:29] [10:01:29]POST finish read [10:01:29]Found Content-Length = 797 [10:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81639", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:29]execute_script... [10:01:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81639", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:29]POST & json_proto [10:01:29]process_json_proto [10:01:29]json parsed OK: [10:01:29]protocol is kg_v1.0 [10:01:29]action value=close_receipt [10:01:29]process_action close_receipt [10:01:29]cmd_close_receipt [10:01:29]MH_GetDate [10:01:29]Write to MH i2c: F0 00 00 2D 0C 28 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: F0 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: F0 09 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: F0 09 00 2D 0C 00 FD 31 12 67 F1 C7 6B 64 5F [10:01:29]GetLastDocTimeStamp 1729245513 [10:01:29]current date 1729245693 [10:01:29]FM_GetShiftState [10:01:29]SAM_PROTO_GetShiftState [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 13 01 00 [10:01:29]Write to MH i2c: E2 08 00 2E 0C 80 13 01 00 00 00 00 00 B7 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0E 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0E 00 2E 0C 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 89 [10:01:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_GetShiftState done [10:01:29]FM_GetShiftState done [10:01:29]opened in 1729212319 [10:01:29]opened+sec_in_day 1729298719 [10:01:29]quantity*price = 0 [10:01:29]sum+1 = 1 [10:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 37 18.10.2024 10:01 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 81639 ФМ: 0000000000871843 ФД: 82328 ФПД: 96170037997955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100133&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82328&fm=96170037997955&tin=02508201610067®Number=0000000000091680&sum=0 [10:01:30]StoreToDocumentArchive [10:01:30]shift 526 fd 82328 [10:01:30]save to /storage/0526/doc_00082328 [10:01:31]save last doc name /storage/0526/doc_00082328 to /storage/kkm_last_doc_name [10:01:31]save OK [10:01:31]Clear old archive folders... [10:01:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:01:31]tlvbuf is 00B1E270 [10:01:31]SAM_PROTO_ClearQueue [10:01:31]wFMCommunicate request_size=4 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 09 00 00 [10:01:31]Write to MH i2c: E2 08 00 3B 0C 80 09 00 00 00 00 00 00 B9 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 3B 0C 00 90 00 BB [10:01:31]RAPDU: 90 00 [10:01:31]wFMCommunicate OK [10:01:31]SAM_PROTO_ClearQueue done [10:01:31]KKMCreateOFDPacket [10:01:31]OFDProtocolAddRootSTLVToBuf [10:01:31]FM_MakeSignedData [10:01:31]FM_MakeSignedData [10:01:31]SAM_PROTO_SignData [10:01:31]wFMCommunicate request_size=4 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 0D 01 02 [10:01:31]Write to MH i2c: E2 08 00 3C 0C 80 0D 01 02 00 00 00 00 C1 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [10:01:31]RAPDU: 90 00 [10:01:31]wFMCommunicate OK [10:01:31]wFMCommunicate request_size=255 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 98 41 01 00 35 04 06 00 [10:01:31]Write to MH i2c: E2 02 01 3D 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 98 41 01 00 35 04 06 00 00 00 96 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [10:01:31]RAPDU: 90 00 [10:01:31]wFMCommunicate OK [10:01:31]wFMCommunicate request_size=11 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 0D 02 02 06 57 77 54 F3 F1 83 [10:01:31]Write to MH i2c: E2 0E 00 3E 0C 80 0D 02 02 06 00 57 77 54 F3 F1 83 00 00 59 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [10:01:31]RAPDU: 90 00 [10:01:31]wFMCommunicate OK [10:01:31]wFMCommunicate request_size=4 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 0D 03 02 [10:01:31]Write to MH i2c: E2 08 00 3F 0C 80 0D 03 02 00 00 00 00 C6 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 0B 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 0B 00 3F 0C 00 3A DE 6C 57 64 DB FD 6A 90 00 48 [10:01:31]RAPDU: 3A DE 6C 57 64 DB FD 6A 90 00 [10:01:31]wFMCommunicate OK [10:01:31]SAM_PROTO_SignData done [10:01:31]FM_MakeSignedData done [10:01:31]CreateOFDProtocolMessage [10:01:31]wFMCommunicate request_size=4 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 11 00 00 [10:01:31]Write to MH i2c: E2 08 00 40 0C 80 11 00 00 00 00 00 00 C6 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 17 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 17 00 40 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 18 [10:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:01:31]wFMCommunicate OK [10:01:31]CreateOFDProtocolMessage done [10:01:31]OFDSenderStorePacket 82328 [10:01:31]StoreOFDPacket docnum=82328 [10:01:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F0 A5 08 01 B0 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 98 41 01 00 35 04 06 00 57 77 54 F3 F1 83 3A DE 6C 57 64 DB FD 6A [10:01:31]CheckFolder [10:01:31]dirname=/storage/ofd_packets [10:01:31]CheckFolder done [10:01:31]ProducePacketName [10:01:31]name=ofd_packets/00082328 [10:01:31]NVStorageSaveData ofd_packets/00082328 [10:01:31]File name is /storage/ofd_packets/00082328 [10:01:31]Write 302 bytes [10:01:31]NVStorageSaveData done [10:01:31]OFDSenderStorePacket done [10:01:31]KKMCreateOFDPacket done [10:01:31]NVStorageSaveData kkm_last_timestamp [10:01:31]File name is /storage/kkm_last_timestamp [10:01:31]Write 4 bytes [10:01:31]NVStorageSaveData done [10:01:31]OFD Sender: Processing packet 82328 [packets to send 254, broken 253] [10:01:31]ProducePacketName [10:01:31]name=ofd_packets/00082328 [10:01:31]OFD Sender: To server: pG, [10:01:31]CommunicateWithHost lk.salyk.kg:30040 [10:01:31]ConnectInit lk.salyk.kg [10:01:31]ExternCall_PrintAddStr [10:01:31]wPrintStart [10:01:31]Write to MH i2c: 01 00 00 41 0C 4D [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: 01 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: 01 07 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 FF 0F 62 [10:01:31]RasterBufferAndPrint [10:01:31]line Счет N : (1)918825 [10:01:31]line ИНН: 02508201610067 [10:01:31]line Контрольно-Кассовый Чек [10:01:31]line ПРОДАЖА [10:01:31]line ТРК (МРК, ГНК) : 31 [10:01:31]line Товар: 2710194210 [10:01:31]line ДТ(л)-К-5 [10:01:31]line 40.000 * 0.00 [10:01:31]line = 0.00 [10:01:31]line НДС 12% НСП 1% [10:01:31]line > о реализуемом товаре [10:01:31]line ИТОГО: 0.00 [10:01:31]line НСП 1% : 0.00 [10:01:31]line НДС 12% : 0.00 [10:01:31]line Наличными: 0.00 [10:01:31]line Безнал.: 0.00 [10:01:31]line Место: АЗС № 114 "Партнер Нефть" [10:01:31]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:01:31]line СНО: Общий режим [10:01:31]line Чек 37 18.10.2024 10:01 [10:01:31]line Смена: 526 ФФД: 1.0 [10:01:31]line ЗНМ: 0300000086 [10:01:31]line РНМ: 0000000000091680 [10:01:31]line Версия ККМ: 001 [10:01:31]line Талоны: Топливная Карта [10:01:31]line 81639 [10:01:31]line ФМ: 0000000000871843 [10:01:31]line ФД: 82328 [10:01:31]line ФПД: 96170037997955 [10:01:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100133&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82328&fm=96170037997955&tin=02508201610067®Number=0000000000091680&sum=0 [10:01:31]written 0, free lines is 4095 [10:01:31]Connected sock=11 [10:01:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F0 A5 08 01 B0 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FD 31 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 98 41 01 00 35 04 06 00 57 77 54 F3 F1 83 3A DE 6C 57 64 DB FD 6A [10:01:32]Write to MH i2c: 01 00 00 6B 0C 77 [10:01:32]Write i2c OK [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: 01 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: 01 07 00 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: 01 07 00 6B 0C 00 00 00 00 00 F6 0C 80 [10:01:32]RasterBufferAndPrint [10:01:32]line [10:01:32]line [10:01:32]line [10:01:32]line [10:01:32]line [10:01:32]written 0, free lines is 3324 [10:01:32]MH_Cut [10:01:32]Write to MH i2c: D1 01 00 72 0C 01 50 [10:01:32]Write i2c OK [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: D1 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: D1 01 00 [10:01:32]MH_I2C_Read... [10:01:32]Read from MH i2c: D1 01 00 72 0C 00 4F [10:01:32]Write to MH i2c: 01 00 00 73 0C 7F [10:01:32]Write i2c OK [10:01:32]MH_I2C_Read... [10:01:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 49 9C 47 00 82 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 98 41 01 00 F4 03 04 00 37 D7 11 67 B6 04 01 00 00 38 4E CD 19 F1 61 A6 41 [10:01:32]CommunicateWithHost err = 0 [10:01:32]CheckOFDResponse [10:01:32]1017 (14) - 77093643461234 [10:01:32]1041 (16) - 0000000000871843 [10:01:32]1040 (4) - 82328 [10:01:32]1012 (4) - 18.10.2024 03:34 [10:01:32]1206 (1) - 0 [10:01:32]OFD Sender: Remove packet 82328 [10:01:32]ProducePacketName [10:01:32]name=ofd_packets/00082328 [10:01:32]NVStorageDeleteData [10:01:32]OFD Sender: No OFD packet to send [10:01:33]*** Cut start [10:01:33]*** Partial cut [10:01:33]*** CUTSNS_PIN = 1 [10:01:33]*** CUTSNS_PIN = 0 [10:01:33]*** Brake cut motor [10:01:33]Read from MH i2c: 01 [10:01:33]MH_I2C_Read... [10:01:33]*** Stop cut motor [10:01:33]*** Cut end [10:01:33]Read from MH i2c: 01 07 00 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: 01 07 00 73 0C 00 00 00 00 00 FF 0F 94 [10:01:33]process_action close_receipt done [10:01:33]requested_data is exist [10:01:33]produce_requested_data [10:01:33]requested_item fm.sn is exist - process it [10:01:33]wFMCommunicate request_size=4 [10:01:33]MH_SAM_APDU [10:01:33]CAPDU: 80 11 00 00 [10:01:33]Write to MH i2c: E2 08 00 74 0C 80 11 00 00 00 00 00 00 FA [10:01:33]Write i2c OK [10:01:33]MH_I2C_Read... [10:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:33]Read from MH i2c: E2 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 17 00 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 17 00 74 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4C [10:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:01:33]wFMCommunicate OK [10:01:33]requested_item fd.num is exist - process it [10:01:33]SAM_PROTO_GetFieldsCounters [10:01:33]wFMCommunicate request_size=4 [10:01:33]MH_SAM_APDU [10:01:33]CAPDU: 80 13 00 00 [10:01:33]Write to MH i2c: E2 08 00 75 0C 80 13 00 00 00 00 00 00 FD [10:01:33]Write i2c OK [10:01:33]MH_I2C_Read... [10:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:33]Read from MH i2c: E2 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 62 00 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 62 00 75 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 98 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [10:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 98 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:33]wFMCommunicate OK [10:01:33]SAM_PROTO_GetFieldsCounters done [10:01:33]requested_item shift.num is exist - process it [10:01:33]requested_item shift.opened is exist - process it [10:01:33]req_shift_opened [10:01:33]FM_GetShiftState [10:01:33]SAM_PROTO_GetShiftState [10:01:33]wFMCommunicate request_size=4 [10:01:33]MH_SAM_APDU [10:01:33]CAPDU: 80 13 01 00 [10:01:33]Write to MH i2c: E2 08 00 76 0C 80 13 01 00 00 00 00 00 FF [10:01:33]Write i2c OK [10:01:33]MH_I2C_Read... [10:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:33]Read from MH i2c: E2 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 0E 00 [10:01:33]MH_I2C_Read... [10:01:33]Read from MH i2c: E2 0E 00 76 0C 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D1 [10:01:33]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:01:33]wFMCommunicate OK [10:01:33]SAM_PROTO_GetShiftState done [10:01:33]FM_GetShiftState done [10:01:33]req_shift_opened done [10:01:33]requested_item shift.open_date is exist - process it [10:01:33]req_shift_open_date [10:01:33]req_shift_open_date done [10:01:33]produce_requested_data done [10:01:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82328,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:01:33]process_action_free close_receipt [10:01:33]json_value_free [10:01:33]json_value_free done [10:01:33]process_json_proto returns [10:01:33]Send response to host [10:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82328,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:01:33]free response buf [10:01:33]execute_script done [10:01:33]execute_script returns [10:01:33]free content buf [10:01:33]Sock 8.Close socket [10:01:33]Sock 8.Thread stoped [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:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]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:49]accept exits with 9 [10:04:49]New connection [10:04:49]New thread 3067440484 created [10:04:49]Thread 3067297124 joined [10:04:49]Waiting for new connection... [10:04:49] Sock 9.Parse request [10:04:49]Sock 9.Check first char [10:04:49]Sock 9.First char is OK [10:04:49]request: POST /json_proto HTTP/1.0 [10:04:49]Method: POST [10:04:49]URL: /json_proto [10:04:49]Method is POST - this is cgi request [10:04:49]url: /json_proto [10:04:49]query_string will be loaded in cgi processing [10:04:49]execute_cgi json_proto POST (null) [10:04:49]execute_cgi path=json_proto method=POST [10:04:49]POST find Content-Length [10:04:49]Host: 172.17.44.67:8080 [10:04:49]Content-Length: 803 [10:04:49]Content-Type: application/json [10:04:49] [10:04:49]POST finish read [10:04:49]Found Content-Length = 803 [10:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:49]execute_script... [10:04: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)918826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:49]POST & json_proto [10:04:49]process_json_proto [10:04:49]json parsed OK: [10:04:49]protocol is kg_v1.0 [10:04:49]action value=close_receipt [10:04:49]process_action close_receipt [10:04:49]cmd_close_receipt [10:04:49]MH_GetDate [10:04:49]Write to MH i2c: F0 00 00 77 0C 72 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: F0 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: F0 09 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: F0 09 00 77 0C 00 C4 32 12 67 F1 C7 6B 64 71 [10:04:49]GetLastDocTimeStamp 1729245693 [10:04:49]current date 1729245892 [10:04:49]FM_GetShiftState [10:04:49]SAM_PROTO_GetShiftState [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 13 01 00 [10:04:49]Write to MH i2c: E2 08 00 78 0C 80 13 01 00 00 00 00 00 01 [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0E 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0E 00 78 0C 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D3 [10:04:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:04:49]wFMCommunicate OK [10:04:49]SAM_PROTO_GetShiftState done [10:04:49]FM_GetShiftState done [10:04:49]opened in 1729212319 [10:04:49]opened+sec_in_day 1729298719 [10:04:49]quantity*price = 200031 [10:04:49]sum+1 = 200032 [10:04:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 38 18.10.2024 10:04 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82329 ФПД: 199403685634315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100452&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82329&fm=199403685634315&tin=02508201610067®Number=0000000000091680&sum=200031 [10:04:50]StoreToDocumentArchive [10:04:50]shift 526 fd 82329 [10:04:50]save to /storage/0526/doc_00082329 [10:04:50]save last doc name /storage/0526/doc_00082329 to /storage/kkm_last_doc_name [10:04:50]save OK [10:04:50]Clear old archive folders... [10:04:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:50]tlvbuf is 00C265A0 [10:04:50]SAM_PROTO_ClearQueue [10:04:50]wFMCommunicate request_size=4 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 09 00 00 [10:04:50]Write to MH i2c: E2 08 00 85 0C 80 09 00 00 00 00 00 00 03 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 85 0C 00 90 00 05 [10:04:50]RAPDU: 90 00 [10:04:50]wFMCommunicate OK [10:04:50]SAM_PROTO_ClearQueue done [10:04:50]KKMCreateOFDPacket [10:04:50]OFDProtocolAddRootSTLVToBuf [10:04:50]FM_MakeSignedData [10:04:50]FM_MakeSignedData [10:04:50]SAM_PROTO_SignData [10:04:50]wFMCommunicate request_size=4 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 0D 01 02 [10:04:50]Write to MH i2c: E2 08 00 86 0C 80 0D 01 02 00 00 00 00 0B [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 86 0C 00 90 00 06 [10:04:50]RAPDU: 90 00 [10:04:50]wFMCommunicate OK [10:04:50]wFMCommunicate request_size=255 [10:04:50]MH_SAM_APDU [10:04: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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 32 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 99 41 01 00 35 04 06 00 B5 [10:04:50]Write to MH i2c: E2 02 01 87 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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 32 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 99 41 01 00 35 04 06 00 B5 00 00 4C [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [10:04:50]RAPDU: 90 00 [10:04:50]wFMCommunicate OK [10:04:50]wFMCommunicate request_size=10 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 0D 02 02 05 5B 49 D9 61 0B [10:04:50]Write to MH i2c: E2 0D 00 88 0C 80 0D 02 02 05 00 5B 49 D9 61 0B 00 00 01 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [10:04:50]RAPDU: 90 00 [10:04:50]wFMCommunicate OK [10:04:50]wFMCommunicate request_size=4 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 0D 03 02 [10:04:50]Write to MH i2c: E2 08 00 89 0C 80 0D 03 02 00 00 00 00 10 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 0B 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 0B 00 89 0C 00 C3 42 92 A0 10 BA 59 76 90 00 E1 [10:04:50]RAPDU: C3 42 92 A0 10 BA 59 76 90 00 [10:04:50]wFMCommunicate OK [10:04:50]SAM_PROTO_SignData done [10:04:50]FM_MakeSignedData done [10:04:50]CreateOFDProtocolMessage [10:04:50]wFMCommunicate request_size=4 [10:04:50]MH_SAM_APDU [10:04:50]CAPDU: 80 11 00 00 [10:04:50]Write to MH i2c: E2 08 00 8A 0C 80 11 00 00 00 00 00 00 10 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:50]Read from MH i2c: E2 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 17 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: E2 17 00 8A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 62 [10:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:04:50]wFMCommunicate OK [10:04:50]CreateOFDProtocolMessage done [10:04:50]OFDSenderStorePacket 82329 [10:04:50]StoreOFDPacket docnum=82329 [10:04:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BF 9A 07 01 D1 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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 32 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 99 41 01 00 35 04 06 00 B5 5B 49 D9 61 0B C3 42 92 A0 10 BA 59 76 [10:04:50]CheckFolder [10:04:50]dirname=/storage/ofd_packets [10:04:50]CheckFolder done [10:04:50]ProducePacketName [10:04:50]name=ofd_packets/00082329 [10:04:50]NVStorageSaveData ofd_packets/00082329 [10:04:50]File name is /storage/ofd_packets/00082329 [10:04:50]Write 301 bytes [10:04:50]NVStorageSaveData done [10:04:50]OFDSenderStorePacket done [10:04:50]KKMCreateOFDPacket done [10:04:50]NVStorageSaveData kkm_last_timestamp [10:04:50]File name is /storage/kkm_last_timestamp [10:04:50]Write 4 bytes [10:04:50]NVStorageSaveData done [10:04:50]ExternCall_PrintAddStr [10:04:50]wPrintStart [10:04:50]Write to MH i2c: 01 00 00 8B 0C 97 [10:04:50]Write i2c OK [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: 01 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: 01 07 00 [10:04:50]MH_I2C_Read... [10:04:50]Read from MH i2c: 01 07 00 8B 0C 00 00 00 00 00 FF 0F AC [10:04:50]RasterBufferAndPrint [10:04:50]line Счет N : (1)918826 [10:04:50]line ИНН: 02508201610067 [10:04:50]line Контрольно-Кассовый Чек [10:04:50]line ПРОДАЖА [10:04:50]line ТРК (МРК, ГНК) : 22 [10:04:50]line Товар: 2710124130 [10:04:50]line Аи-92-К-4 [10:04:50]line 29.900 * 66.90 [10:04:50]line = 2000.31 [10:04:50]line НДС 12% НСП 1% [10:04:50]line > о реализуемом товаре [10:04:50]line ИТОГО: 2000.31 [10:04:50]line НСП 1% : 17.70 [10:04:50]line НДС 12% : 212.42 [10:04:50]line Наличными: 0.00 [10:04:50]line Безнал.: 2000.31 [10:04:50]line Место: АЗС № 114 "Партнер Нефть" [10:04:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:04:50]line СНО: Общий режим [10:04:50]line Чек 38 18.10.2024 10:04 [10:04:50]line Смена: 526 ФФД: 1.0 [10:04:50]line ЗНМ: 0300000086 [10:04:50]line РНМ: 0000000000091680 [10:04:50]line Версия ККМ: 001 [10:04:50]line Платежная система: O! деньги [10:04:50]line ФМ: 0000000000871843 [10:04:50]line ФД: 82329 [10:04:50]line ФПД: 199403685634315 [10:04:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100452&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82329&fm=199403685634315&tin=02508201610067®Number=0000000000091680&sum=200031 [10:04:50]written 0, free lines is 4095 [10:04:50]OFD Sender: Processing packet 82329 [packets to send 254, broken 253] [10:04:50]ProducePacketName [10:04:50]name=ofd_packets/00082329 [10:04:50]OFD Sender: To server: pG, [10:04:50]CommunicateWithHost lk.salyk.kg:30040 [10:04:50]ConnectInit lk.salyk.kg [10:04:51]Write to MH i2c: 01 00 00 B5 0C C1 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 B5 0C 00 00 00 00 00 F1 0C C5 [10:04:51]RasterBufferAndPrint [10:04:51]line [10:04:51]line [10:04:51]line [10:04:51]line [10:04:51]line [10:04:51]written 0, free lines is 3319 [10:04:51]MH_Cut [10:04:51]Write to MH i2c: D1 01 00 BC 0C 01 9A [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: D1 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: D1 01 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: D1 01 00 BC 0C 00 99 [10:04:51]Write to MH i2c: 01 00 00 BD 0C C9 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Connected sock=8 [10:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BF 9A 07 01 D1 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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 32 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 99 41 01 00 35 04 06 00 B5 5B 49 D9 61 0B C3 42 92 A0 10 BA 59 76 [10:04:52]*** Cut start [10:04:52]*** Partial cut [10:04:52]*** CUTSNS_PIN = 1 [10:04:52]*** CUTSNS_PIN = 0 [10:04:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 73 BD 47 00 58 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 99 41 01 00 F4 03 04 00 FF D7 11 67 B6 04 01 00 00 F1 AA C2 5B 15 4B 7E 99 [10:04:52]CommunicateWithHost err = 0 [10:04:52]CheckOFDResponse [10:04:52]1017 (14) - 77093643461234 [10:04:52]1041 (16) - 0000000000871843 [10:04:52]1040 (4) - 82329 [10:04:52]1012 (4) - 18.10.2024 03:37 [10:04:52]1206 (1) - 0 [10:04:52]OFD Sender: Remove packet 82329 [10:04:52]ProducePacketName [10:04:52]name=ofd_packets/00082329 [10:04:52]NVStorageDeleteData [10:04:52]*** Brake cut motor [10:04:52]Read from MH i2c: 01 *** Stop cut motor [10:04:52]*** Cut end [10:04:52] [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: 01 07 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [10:04:52]process_action close_receipt done [10:04:52]requested_data is exist [10:04:52]produce_requested_data [10:04:52]requested_item fm.sn is exist - process it [10:04:52]wFMCommunicate request_size=4 [10:04:52]MH_SAM_APDU [10:04:52]CAPDU: 80 11 00 00 [10:04:52]Write to MH i2c: E2 08 00 BE 0C 80 11 00 00 00 00 00 00 44 [10:04:52]Write i2c OK [10:04:52]MH_I2C_Read... [10:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 17 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 17 00 BE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 96 [10:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:04:52]wFMCommunicate OK [10:04:52]requested_item fd.num is exist - process it [10:04:52]SAM_PROTO_GetFieldsCounters [10:04:52]wFMCommunicate request_size=4 [10:04:52]MH_SAM_APDU [10:04:52]CAPDU: 80 13 00 00 [10:04:52]Write to MH i2c: E2 08 00 BF 0C 80 13 00 00 00 00 00 00 47 [10:04:52]Write i2c OK [10:04:52]MH_I2C_Read... [10:04:52]OFD Sender: No OFD packet to send [10:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 62 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 62 00 BF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 99 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [10:04:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 99 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:52]wFMCommunicate OK [10:04:52]SAM_PROTO_GetFieldsCounters done [10:04:52]requested_item shift.num is exist - process it [10:04:52]requested_item shift.opened is exist - process it [10:04:52]req_shift_opened [10:04:52]FM_GetShiftState [10:04:52]SAM_PROTO_GetShiftState [10:04:52]wFMCommunicate request_size=4 [10:04:52]MH_SAM_APDU [10:04:52]CAPDU: 80 13 01 00 [10:04:52]Write to MH i2c: E2 08 00 C0 0C 80 13 01 00 00 00 00 00 49 [10:04:52]Write i2c OK [10:04:52]MH_I2C_Read... [10:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:52]Read from MH i2c: E2 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 0E 00 [10:04:52]MH_I2C_Read... [10:04:52]Read from MH i2c: E2 0E 00 C0 0C 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 1B [10:04:52]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:04:52]wFMCommunicate OK [10:04:52]SAM_PROTO_GetShiftState done [10:04:52]FM_GetShiftState done [10:04:52]req_shift_opened done [10:04:52]requested_item shift.open_date is exist - process it [10:04:52]req_shift_open_date [10:04:52]req_shift_open_date done [10:04:52]produce_requested_data done [10:04:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82329,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:04:52]process_action_free close_receipt [10:04:52]json_value_free [10:04:52]json_value_free done [10:04:52]process_json_proto returns [10:04:52]Send response to host [10:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82329,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:04:52]free response buf [10:04:52]execute_script done [10:04:52]execute_script returns [10:04:52]free content buf [10:04:52]Sock 9.Close socket [10:04:52]Sock 9.Thread stoped [10:04:57]OFD Sender: No OFD packet to send [10:05:00]recv_with_timeout no data received [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:10]recv_with_timeout no data received [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]recv_with_timeout no data received [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:02]accept exits with 10 [10:07:02]New connection [10:07:02]New thread 3067297124 created [10:07:02]Thread 3067440484 joined [10:07:02]Waiting for new connection... [10:07:02] Sock 10.Parse request [10:07:02]Sock 10.Check first char [10:07:02]Sock 10.First char is OK [10:07:02]request: POST /json_proto HTTP/1.0 [10:07:02]Method: POST [10:07:02]URL: /json_proto [10:07:02]Method is POST - this is cgi request [10:07:02]url: /json_proto [10:07:02]query_string will be loaded in cgi processing [10:07:02]execute_cgi json_proto POST (null) [10:07:02]execute_cgi path=json_proto method=POST [10:07:02]POST find Content-Length [10:07:02]Host: 172.17.44.67:8080 [10:07:02]Content-Length: 754 [10:07:02]Content-Type: application/json [10:07:02] [10:07:02]POST finish read [10:07:02]Found Content-Length = 754 [10:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918827", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096574", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:02]execute_script... [10:07: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)918827", "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" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096574", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:02]POST & json_proto [10:07:02]process_json_proto [10:07:02]json parsed OK: [10:07:02]protocol is kg_v1.0 [10:07:02]action value=close_receipt [10:07:02]process_action close_receipt [10:07:02]cmd_close_receipt [10:07:02]MH_GetDate [10:07:02]Write to MH i2c: F0 00 00 C1 0C BC [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: F0 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: F0 09 00 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: F0 09 00 C1 0C 00 49 33 12 67 F1 C7 6B 64 41 [10:07:02]GetLastDocTimeStamp 1729245892 [10:07:02]current date 1729246025 [10:07:02]FM_GetShiftState [10:07:02]SAM_PROTO_GetShiftState [10:07:02]wFMCommunicate request_size=4 [10:07:02]MH_SAM_APDU [10:07:02]CAPDU: 80 13 01 00 [10:07:02]Write to MH i2c: E2 08 00 C2 0C 80 13 01 00 00 00 00 00 4B [10:07:02]Write i2c OK [10:07:02]MH_I2C_Read... [10:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:02]Read from MH i2c: E2 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: E2 0E 00 [10:07:02]MH_I2C_Read... [10:07:02]Read from MH i2c: E2 0E 00 C2 0C 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 1D [10:07:02]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:07:02]wFMCommunicate OK [10:07:02]SAM_PROTO_GetShiftState done [10:07:02]FM_GetShiftState done [10:07:02]opened in 1729212319 [10:07:02]opened+sec_in_day 1729298719 [10:07:02]quantity*price = 0 [10:07:02]sum+1 = 1 [10:07:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 39 18.10.2024 10:07 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096574 ФМ: 0000000000871843 ФД: 82330 ФПД: 210403560099516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100705&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82330&fm=210403560099516&tin=02508201610067®Number=0000000000091680&sum=0 [10:07:03]StoreToDocumentArchive [10:07:03]shift 526 fd 82330 [10:07:03]save to /storage/0526/doc_00082330 [10:07:03]save last doc name /storage/0526/doc_00082330 to /storage/kkm_last_doc_name [10:07:03]save OK [10:07:03]Clear old archive folders... [10:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:03]tlvbuf is 00C54850 [10:07:03]SAM_PROTO_ClearQueue [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 09 00 00 [10:07:03]Write to MH i2c: E2 08 00 CF 0C 80 09 00 00 00 00 00 00 4D [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 CF 0C 00 90 00 4F [10:07:03]RAPDU: 90 00 [10:07:03]wFMCommunicate OK [10:07:03]SAM_PROTO_ClearQueue done [10:07:03]KKMCreateOFDPacket [10:07:03]OFDProtocolAddRootSTLVToBuf [10:07:03]FM_MakeSignedData [10:07:03]FM_MakeSignedData [10:07:03]SAM_PROTO_SignData [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 0D 01 02 [10:07:03]Write to MH i2c: E2 08 00 D0 0C 80 0D 01 02 00 00 00 00 55 [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [10:07:03]RAPDU: 90 00 [10:07:03]wFMCommunicate OK [10:07:03]wFMCommunicate request_size=255 [10:07:03]MH_SAM_APDU [10:07: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9A 41 01 00 35 04 06 00 BF [10:07:03]Write to MH i2c: E2 02 01 D1 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9A 41 01 00 35 04 06 00 BF 00 00 CD [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [10:07:03]RAPDU: 90 00 [10:07:03]wFMCommunicate OK [10:07:03]wFMCommunicate request_size=10 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 0D 02 02 05 5C 65 75 8E BC [10:07:03]Write to MH i2c: E2 0D 00 D2 0C 80 0D 02 02 05 00 5C 65 75 8E BC 00 00 E2 [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [10:07:03]RAPDU: 90 00 [10:07:03]wFMCommunicate OK [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 0D 03 02 [10:07:03]Write to MH i2c: E2 08 00 D3 0C 80 0D 03 02 00 00 00 00 5A [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 0B 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 0B 00 D3 0C 00 25 7B 72 10 09 35 20 05 90 00 E0 [10:07:03]RAPDU: 25 7B 72 10 09 35 20 05 90 00 [10:07:03]wFMCommunicate OK [10:07:03]SAM_PROTO_SignData done [10:07:03]FM_MakeSignedData done [10:07:03]CreateOFDProtocolMessage [10:07:03]wFMCommunicate request_size=4 [10:07:03]MH_SAM_APDU [10:07:03]CAPDU: 80 11 00 00 [10:07:03]Write to MH i2c: E2 08 00 D4 0C 80 11 00 00 00 00 00 00 5A [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:03]Read from MH i2c: E2 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 17 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: E2 17 00 D4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AC [10:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:07:03]wFMCommunicate OK [10:07:03]CreateOFDProtocolMessage done [10:07:03]OFDSenderStorePacket 82330 [10:07:03]StoreOFDPacket docnum=82330 [10:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8A EB 07 01 85 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9A 41 01 00 35 04 06 00 BF 5C 65 75 8E BC 25 7B 72 10 09 35 20 05 [10:07:03]CheckFolder [10:07:03]dirname=/storage/ofd_packets [10:07:03]CheckFolder done [10:07:03]ProducePacketName [10:07:03]name=ofd_packets/00082330 [10:07:03]NVStorageSaveData ofd_packets/00082330 [10:07:03]File name is /storage/ofd_packets/00082330 [10:07:03]Write 301 bytes [10:07:03]NVStorageSaveData done [10:07:03]OFDSenderStorePacket done [10:07:03]KKMCreateOFDPacket done [10:07:03]NVStorageSaveData kkm_last_timestamp [10:07:03]File name is /storage/kkm_last_timestamp [10:07:03]Write 4 bytes [10:07:03]NVStorageSaveData done [10:07:03]ExternCall_PrintAddStr [10:07:03]wPrintStart [10:07:03]Write to MH i2c: 01 00 00 D5 0C E1 [10:07:03]Write i2c OK [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: 01 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: 01 07 00 [10:07:03]MH_I2C_Read... [10:07:03]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 FF 0F F6 [10:07:03]RasterBufferAndPrint [10:07:03]line Счет N : (1)918827 [10:07:03]line ИНН: 02508201610067 [10:07:03]line Контрольно-Кассовый Чек [10:07:03]line ПРОДАЖА [10:07:03]line ТРК (МРК, ГНК) : 12 [10:07:03]line Товар: 2710124500 [10:07:03]line Аи-95-К-5 [10:07:03]line 30.000 * 0.00 [10:07:03]line = 0.00 [10:07:03]line НДС 12% НСП 1% [10:07:03]line > о реализуемом товаре [10:07:03]line ИТОГО: 0.00 [10:07:03]line НСП 1% : 0.00 [10:07:03]line НДС 12% : 0.00 [10:07:03]line Наличными: 0.00 [10:07:03]line Безнал.: 0.00 [10:07:03]line Место: АЗС № 114 "Партнер Нефть" [10:07:03]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:07:03]line СНО: Общий режим [10:07:03]line Чек 39 18.10.2024 10:07 [10:07:03]line Смена: 526 ФФД: 1.0 [10:07:03]line ЗНМ: 0300000086 [10:07:03]line РНМ: 0000000000091680 [10:07:03]line Версия ККМ: 001 [10:07:03]line Талоны: ТК ГПНА Online [10:07:03]line 30096574 [10:07:03]line ФМ: 0000000000871843 [10:07:03]line ФД: 82330 [10:07:03]line ФПД: 210403560099516 [10:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100705&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82330&fm=210403560099516&tin=02508201610067®Number=0000000000091680&sum=0 [10:07:04]OFD Sender: Processing packet 82330 [packets to send 254, broken 253] [10:07:04]ProducePacketName [10:07:04]name=ofd_packets/00082330 [10:07:04]OFD Sender: To server: pG, [10:07:04]CommunicateWithHost lk.salyk.kg:30040 [10:07:04]ConnectInit lk.salyk.kg [10:07:04]written 0, free lines is 4095 [10:07:04]Write to MH i2c: 01 00 00 FF 0C 0B [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 07 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: 01 07 00 FF 0C 00 00 00 00 00 EA 0C 08 [10:07:04]RasterBufferAndPrint [10:07:04]line [10:07:04]line [10:07:04]line [10:07:04]line [10:07:04]line [10:07:04]written 0, free lines is 3312 [10:07:04]MH_Cut [10:07:04]Write to MH i2c: D1 01 00 06 0D 01 E5 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: D1 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: D1 01 00 [10:07:04]MH_I2C_Read... [10:07:04]Read from MH i2c: D1 01 00 06 0D 00 E4 [10:07:04]Write to MH i2c: 01 00 00 07 0D 14 [10:07:04]Write i2c OK [10:07:04]MH_I2C_Read... [10:07:05]*** Cut start [10:07:05]*** Partial cut [10:07:05]*** CUTSNS_PIN = 1 [10:07:05]*** CUTSNS_PIN = 0 [10:07:05]*** Brake cut motor [10:07:06]Read from MH i2c: 01 [10:07:06]MH_I2C_Read... [10:07:06]*** Stop cut motor [10:07:06]Connected sock=11 [10:07:06]*** Cut end [10:07:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8A EB 07 01 85 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 49 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9A 41 01 00 35 04 06 00 BF 5C 65 75 8E BC 25 7B 72 10 09 35 20 05 [10:07:06]Read from MH i2c: 01 07 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: 01 07 00 07 0D 00 00 00 00 00 FF 0F 29 [10:07:06]process_action close_receipt done [10:07:06]requested_data is exist [10:07:06]produce_requested_data [10:07:06]requested_item fm.sn is exist - process it [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 11 00 00 [10:07:06]Write to MH i2c: E2 08 00 08 0D 80 11 00 00 00 00 00 00 8F [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 17 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 17 00 08 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E1 [10:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:07:06]wFMCommunicate OK [10:07:06]requested_item fd.num is exist - process it [10:07:06]SAM_PROTO_GetFieldsCounters [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 13 00 00 [10:07:06]Write to MH i2c: E2 08 00 09 0D 80 13 00 00 00 00 00 00 92 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 62 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 62 00 09 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9A 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:07:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9A 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:06]wFMCommunicate OK [10:07:06]SAM_PROTO_GetFieldsCounters done [10:07:06]requested_item shift.num is exist - process it [10:07:06]requested_item shift.opened is exist - process it [10:07:06]req_shift_opened [10:07:06]FM_GetShiftState [10:07:06]SAM_PROTO_GetShiftState [10:07:06]wFMCommunicate request_size=4 [10:07:06]MH_SAM_APDU [10:07:06]CAPDU: 80 13 01 00 [10:07:06]Write to MH i2c: E2 08 00 0A 0D 80 13 01 00 00 00 00 00 94 [10:07:06]Write i2c OK [10:07:06]MH_I2C_Read... [10:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:06]Read from MH i2c: E2 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 0E 00 [10:07:06]MH_I2C_Read... [10:07:06]Read from MH i2c: E2 0E 00 0A 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 66 [10:07:06]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:07:06]wFMCommunicate OK [10:07:06]SAM_PROTO_GetShiftState done [10:07:06]FM_GetShiftState done [10:07:06]req_shift_opened done [10:07:06]requested_item shift.open_date is exist - process it [10:07:06]req_shift_open_date [10:07:06]req_shift_open_date done [10:07:06]produce_requested_data done [10:07:06]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82330,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:07:06]process_action_free close_receipt [10:07:06]json_value_free [10:07:06]json_value_free done [10:07:06]process_json_proto returns [10:07:06]Send response to host [10:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82330,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:07:06]free response buf [10:07:06]execute_script done [10:07:06]execute_script returns [10:07:06]free content buf [10:07:06]Sock 10.Close socket [10:07:06]Sock 10.Thread stoped [10:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F7 A0 47 00 F7 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9A 41 01 00 F4 03 04 00 86 D8 11 67 B6 04 01 00 00 CC 4A 6F 70 D9 B2 35 9D [10:07:06]CommunicateWithHost err = 0 [10:07:06]CheckOFDResponse [10:07:06]1017 (14) - 77093643461234 [10:07:06]1041 (16) - 0000000000871843 [10:07:06]1040 (4) - 82330 [10:07:06]1012 (4) - 18.10.2024 03:39 [10:07:06]1206 (1) - 0 [10:07:06]OFD Sender: Remove packet 82330 [10:07:06]ProducePacketName [10:07:06]name=ofd_packets/00082330 [10:07:06]NVStorageDeleteData [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:15]recv_with_timeout no data received [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:09]accept exits with 9 [10:09:09]New connection [10:09:09]New thread 3067440484 created [10:09:09]Thread 3067297124 joined [10:09:09]Waiting for new connection... [10:09:09] Sock 9.Parse request [10:09:09]Sock 9.Check first char [10:09:09]Sock 9.First char is OK [10:09:09]request: POST /json_proto HTTP/1.0 [10:09:09]Method: POST [10:09:09]URL: /json_proto [10:09:09]Method is POST - this is cgi request [10:09:09]url: /json_proto [10:09:09]query_string will be loaded in cgi processing [10:09:09]execute_cgi json_proto POST (null) [10:09:09]execute_cgi path=json_proto method=POST [10:09:09]POST find Content-Length [10:09:09]Host: 172.17.44.67:8080 [10:09:09]Content-Length: 677 [10:09:09]Content-Type: application/json [10:09:09] [10:09:09]POST finish read [10:09:09]Found Content-Length = 677 [10:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:09]execute_script... [10:09: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)918828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:09]POST & json_proto [10:09:09]process_json_proto [10:09:09]json parsed OK: [10:09:09]protocol is kg_v1.0 [10:09:09]action value=close_receipt [10:09:09]process_action close_receipt [10:09:09]cmd_close_receipt [10:09:09]MH_GetDate [10:09:09]Write to MH i2c: F0 00 00 0B 0D 07 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 09 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 09 00 0B 0D 00 C9 33 12 67 F1 C7 6B 64 0C [10:09:09]GetLastDocTimeStamp 1729246025 [10:09:09]current date 1729246153 [10:09:09]FM_GetShiftState [10:09:09]SAM_PROTO_GetShiftState [10:09:09]wFMCommunicate request_size=4 [10:09:09]MH_SAM_APDU [10:09:09]CAPDU: 80 13 01 00 [10:09:09]Write to MH i2c: E2 08 00 0C 0D 80 13 01 00 00 00 00 00 96 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:09]Read from MH i2c: E2 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 0E 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 0E 00 0C 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 68 [10:09:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:09:09]wFMCommunicate OK [10:09:09]SAM_PROTO_GetShiftState done [10:09:09]FM_GetShiftState done [10:09:09]opened in 1729212319 [10:09:09]opened+sec_in_day 1729298719 [10:09:09]quantity*price = 30038 [10:09:09]sum+1 = 30039 [10:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 40 18.10.2024 10:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82331 ФПД: 274121038809993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100913&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82331&fm=274121038809993&tin=02508201610067®Number=0000000000091680&sum=30000 [10:09:11]StoreToDocumentArchive [10:09:11]shift 526 fd 82331 [10:09:11]save to /storage/0526/doc_00082331 [10:09:11]save last doc name /storage/0526/doc_00082331 to /storage/kkm_last_doc_name [10:09:11]save OK [10:09:11]Clear old archive folders... [10:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:11]tlvbuf is 00C25D80 [10:09:11]SAM_PROTO_ClearQueue [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 09 00 00 [10:09:11]Write to MH i2c: E2 08 00 19 0D 80 09 00 00 00 00 00 00 98 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 19 0D 00 90 00 9A [10:09:11]RAPDU: 90 00 [10:09:11]wFMCommunicate OK [10:09:11]SAM_PROTO_ClearQueue done [10:09:11]KKMCreateOFDPacket [10:09:11]OFDProtocolAddRootSTLVToBuf [10:09:11]FM_MakeSignedData [10:09:11]FM_MakeSignedData [10:09:11]SAM_PROTO_SignData [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 0D 01 02 [10:09:11]Write to MH i2c: E2 08 00 1A 0D 80 0D 01 02 00 00 00 00 A0 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 1A 0D 00 90 00 9B [10:09:11]RAPDU: 90 00 [10:09:11]wFMCommunicate OK [10:09:11]wFMCommunicate request_size=255 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C9 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9B 41 01 00 35 04 06 00 F9 [10:09:11]Write to MH i2c: E2 02 01 1B 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C9 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9B 41 01 00 35 04 06 00 F9 00 00 A3 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 1B 0D 00 90 00 9C [10:09:11]RAPDU: 90 00 [10:09:11]wFMCommunicate OK [10:09:11]wFMCommunicate request_size=10 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 0D 02 02 05 4F C7 24 CB 89 [10:09:11]Write to MH i2c: E2 0D 00 1C 0D 80 0D 02 02 05 00 4F C7 24 CB 89 00 00 3B [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 1C 0D 00 90 00 9D [10:09:11]RAPDU: 90 00 [10:09:11]wFMCommunicate OK [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 0D 03 02 [10:09:11]Write to MH i2c: E2 08 00 1D 0D 80 0D 03 02 00 00 00 00 A5 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0B 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0B 00 1D 0D 00 BA A6 49 A8 E5 FF 17 59 90 00 4B [10:09:11]RAPDU: BA A6 49 A8 E5 FF 17 59 90 00 [10:09:11]wFMCommunicate OK [10:09:11]SAM_PROTO_SignData done [10:09:11]FM_MakeSignedData done [10:09:11]CreateOFDProtocolMessage [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 11 00 00 [10:09:11]Write to MH i2c: E2 08 00 1E 0D 80 11 00 00 00 00 00 00 A5 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 17 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 17 00 1E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F7 [10:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:09:11]wFMCommunicate OK [10:09:11]CreateOFDProtocolMessage done [10:09:11]OFDSenderStorePacket 82331 [10:09:11]StoreOFDPacket docnum=82331 [10:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 18 D5 07 01 46 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C9 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9B 41 01 00 35 04 06 00 F9 4F C7 24 CB 89 BA A6 49 A8 E5 FF 17 59 [10:09:11]CheckFolder [10:09:11]dirname=/storage/ofd_packets [10:09:11]CheckFolder done [10:09:11]ProducePacketName [10:09:11]name=ofd_packets/00082331 [10:09:11]NVStorageSaveData ofd_packets/00082331 [10:09:11]File name is /storage/ofd_packets/00082331 [10:09:11]Write 301 bytes [10:09:11]NVStorageSaveData done [10:09:11]OFDSenderStorePacket done [10:09:11]KKMCreateOFDPacket done [10:09:11]NVStorageSaveData kkm_last_timestamp [10:09:11]File name is /storage/kkm_last_timestamp [10:09:11]Write 4 bytes [10:09:11]NVStorageSaveData done [10:09:11]ExternCall_PrintAddStr [10:09:11]wPrintStart [10:09:11]Write to MH i2c: 01 00 00 1F 0D 2C [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FF 0F 41 [10:09:11]RasterBufferAndPrint [10:09:11]line Счет N : (1)918828 [10:09:11]line ИНН: 02508201610067 [10:09:11]line Контрольно-Кассовый Чек [10:09:11]line ПРОДАЖА [10:09:11]line ТРК (МРК, ГНК) : 22 [10:09:11]line Товар: 2710124130 [10:09:11]line Аи-92-К-4 [10:09:11]line 4.490 * 66.90 [10:09:11]line = 300.38 [10:09:11]line НДС 12% НСП 1% [10:09:11]line > о реализуемом товаре [10:09:11]line ОКРУГЛЕНИЕ: -0.38 [10:09:11]line ИТОГО: 300.00 [10:09:11]line Внесено: 300.00 [10:09:11]line СДАЧА: 0.00 [10:09:11]line НСП 1% : 2.66 [10:09:11]line НДС 12% : 31.90 [10:09:11]line Наличными: 300.00 [10:09:11]line Безнал.: 0.00 [10:09:11]line Место: АЗС № 114 "Партнер Нефть" [10:09:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:09:11]line СНО: Общий режим [10:09:11]line Чек 40 18.10.2024 10:09 [10:09:11]line Смена: 526 ФФД: 1.0 [10:09:11]line ЗНМ: 0300000086 [10:09:11]line РНМ: 0000000000091680 [10:09:11]line Версия ККМ: 001 [10:09:11]line ФМ: 0000000000871843 [10:09:11]line ФД: 82331 [10:09:11]line ФПД: 274121038809993 [10:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T100913&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82331&fm=274121038809993&tin=02508201610067®Number=0000000000091680&sum=30000 [10:09:11]OFD Sender: Processing packet 82331 [packets to send 254, broken 253] [10:09:11]ProducePacketName [10:09:11]name=ofd_packets/00082331 [10:09:11]OFD Sender: To server: pG, [10:09:11]CommunicateWithHost lk.salyk.kg:30040 [10:09:11]ConnectInit lk.salyk.kg [10:09:11]written 0, free lines is 4095 [10:09:12]Connected sock=8 [10:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 18 D5 07 01 46 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 C9 33 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9B 41 01 00 35 04 06 00 F9 4F C7 24 CB 89 BA A6 49 A8 E5 FF 17 59 [10:09:12]Write to MH i2c: 01 00 00 4A 0D 57 [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: 01 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: 01 07 00 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 E1 0C 4B [10:09:12]RasterBufferAndPrint [10:09:12]line [10:09:12]line [10:09:12]line [10:09:12]line [10:09:12]line [10:09:12]written 0, free lines is 3303 [10:09:12]MH_Cut [10:09:12]Write to MH i2c: D1 01 00 51 0D 01 30 [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: D1 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: D1 01 00 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: D1 01 00 51 0D 00 2F [10:09:12]Write to MH i2c: 01 00 00 52 0D 5F [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8E 97 47 00 72 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9B 41 01 00 F4 03 04 00 04 D9 11 67 B6 04 01 00 00 80 F9 4C F7 21 D2 7F 13 [10:09:12]CommunicateWithHost err = 0 [10:09:12]CheckOFDResponse [10:09:12]1017 (14) - 77093643461234 [10:09:12]1041 (16) - 0000000000871843 [10:09:12]1040 (4) - 82331 [10:09:12]1012 (4) - 18.10.2024 03:41 [10:09:12]1206 (1) - 0 [10:09:12]OFD Sender: Remove packet 82331 [10:09:12]ProducePacketName [10:09:12]name=ofd_packets/00082331 [10:09:12]NVStorageDeleteData [10:09:13]*** Cut start [10:09:13]*** Partial cut [10:09:13]*** CUTSNS_PIN = 1 [10:09:13]*** CUTSNS_PIN = 0 [10:09:13]OFD Sender: No OFD packet to send [10:09:13]*** Brake cut motor [10:09:13]Read from MH i2c: 01 [10:09:13]MH_I2C_Read... [10:09:13]*** Stop cut motor [10:09:13]*** Cut end [10:09:13]Read from MH i2c: 01 07 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 07 00 52 0D 00 00 00 00 00 FF 0F 74 [10:09:13]process_action close_receipt done [10:09:13]requested_data is exist [10:09:13]produce_requested_data [10:09:13]requested_item fm.sn is exist - process it [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 11 00 00 [10:09:13]Write to MH i2c: E2 08 00 53 0D 80 11 00 00 00 00 00 00 DA [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 17 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 17 00 53 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2C [10:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:09:13]wFMCommunicate OK [10:09:13]requested_item fd.num is exist - process it [10:09:13]SAM_PROTO_GetFieldsCounters [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 13 00 00 [10:09:13]Write to MH i2c: E2 08 00 54 0D 80 13 00 00 00 00 00 00 DD [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:14]Read from MH i2c: E2 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 62 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 62 00 54 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9B 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [10:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9B 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:14]wFMCommunicate OK [10:09:14]SAM_PROTO_GetFieldsCounters done [10:09:14]requested_item shift.num is exist - process it [10:09:14]requested_item shift.opened is exist - process it [10:09:14]req_shift_opened [10:09:14]FM_GetShiftState [10:09:14]SAM_PROTO_GetShiftState [10:09:14]wFMCommunicate request_size=4 [10:09:14]MH_SAM_APDU [10:09:14]CAPDU: 80 13 01 00 [10:09:14]Write to MH i2c: E2 08 00 55 0D 80 13 01 00 00 00 00 00 DF [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:14]Read from MH i2c: E2 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 0E 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: E2 0E 00 55 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B1 [10:09:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:09:14]wFMCommunicate OK [10:09:14]SAM_PROTO_GetShiftState done [10:09:14]FM_GetShiftState done [10:09:14]req_shift_opened done [10:09:14]requested_item shift.open_date is exist - process it [10:09:14]req_shift_open_date [10:09:14]req_shift_open_date done [10:09:14]produce_requested_data done [10:09:14]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82331,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:09:14]process_action_free close_receipt [10:09:14]json_value_free [10:09:14]json_value_free done [10:09:14]process_json_proto returns [10:09:14]Send response to host [10:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82331,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:09:14]free response buf [10:09:14]execute_script done [10:09:14]execute_script returns [10:09:14]free content buf [10:09:14]Sock 9.Close socket [10:09:14]Sock 9.Thread stoped [10:09:18]OFD Sender: No OFD packet to send [10:09:21]recv_with_timeout no data received [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [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:30]accept exits with 10 [10:13:30]New connection [10:13:30]New thread 3067297124 created [10:13:30]Thread 3067440484 joined [10:13:30]Waiting for new connection... [10:13:30] Sock 10.Parse request [10:13:30]Sock 10.Check first char [10:13:30]Sock 10.First char is OK [10:13:30]request: POST /json_proto HTTP/1.0 [10:13:30]Method: POST [10:13:30]URL: /json_proto [10:13:30]Method is POST - this is cgi request [10:13:30]url: /json_proto [10:13:30]query_string will be loaded in cgi processing [10:13:30]execute_cgi json_proto POST (null) [10:13:30]execute_cgi path=json_proto method=POST [10:13:30]POST find Content-Length [10:13:30]Host: 172.17.44.67:8080 [10:13:30]Content-Length: 677 [10:13:30]Content-Type: application/json [10:13:30] [10:13:30]POST finish read [10:13:30]Found Content-Length = 677 [10:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:30]execute_script... [10:13: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)918829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:30]POST & json_proto [10:13:30]process_json_proto [10:13:30]json parsed OK: [10:13:30]protocol is kg_v1.0 [10:13:30]action value=close_receipt [10:13:30]process_action close_receipt [10:13:30]cmd_close_receipt [10:13:30]MH_GetDate [10:13:30]Write to MH i2c: F0 00 00 56 0D 52 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: F0 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: F0 09 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: F0 09 00 56 0D 00 CD 34 12 67 F1 C7 6B 64 5C [10:13:30]GetLastDocTimeStamp 1729246153 [10:13:30]current date 1729246413 [10:13:30]FM_GetShiftState [10:13:30]SAM_PROTO_GetShiftState [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 13 01 00 [10:13:30]Write to MH i2c: E2 08 00 57 0D 80 13 01 00 00 00 00 00 E1 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0E 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0E 00 57 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B3 [10:13:30]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:13:30]wFMCommunicate OK [10:13:30]SAM_PROTO_GetShiftState done [10:13:30]FM_GetShiftState done [10:13:30]opened in 1729212319 [10:13:30]opened+sec_in_day 1729298719 [10:13:30]quantity*price = 40006 [10:13:30]sum+1 = 40007 [10:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 41 18.10.2024 10:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82332 ФПД: 24995424918503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T101333&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82332&fm=24995424918503&tin=02508201610067®Number=0000000000091680&sum=40000 [10:13:31]StoreToDocumentArchive [10:13:31]shift 526 fd 82332 [10:13:31]save to /storage/0526/doc_00082332 [10:13:31]save last doc name /storage/0526/doc_00082332 to /storage/kkm_last_doc_name [10:13:31]save OK [10:13:31]Clear old archive folders... [10:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:31]tlvbuf is 00B252E0 [10:13:31]SAM_PROTO_ClearQueue [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 09 00 00 [10:13:31]Write to MH i2c: E2 08 00 64 0D 80 09 00 00 00 00 00 00 E3 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_ClearQueue done [10:13:31]KKMCreateOFDPacket [10:13:31]OFDProtocolAddRootSTLVToBuf [10:13:31]FM_MakeSignedData [10:13:31]FM_MakeSignedData [10:13:31]SAM_PROTO_SignData [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 0D 01 02 [10:13:31]Write to MH i2c: E2 08 00 65 0D 80 0D 01 02 00 00 00 00 EB [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]wFMCommunicate request_size=255 [10:13:31]MH_SAM_APDU [10:13: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CD 34 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9C 41 01 00 35 04 06 00 16 [10:13:31]Write to MH i2c: E2 02 01 66 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CD 34 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9C 41 01 00 35 04 06 00 16 00 00 ED [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 66 0D 00 90 00 E7 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]wFMCommunicate request_size=10 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 0D 02 02 05 BB B3 6C 5B E7 [10:13:31]Write to MH i2c: E2 0D 00 67 0D 80 0D 02 02 05 00 BB B3 6C 5B E7 00 00 14 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 67 0D 00 90 00 E8 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 0D 03 02 [10:13:31]Write to MH i2c: E2 08 00 68 0D 80 0D 03 02 00 00 00 00 F0 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0B 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0B 00 68 0D 00 5B CB 68 59 5D 30 A8 1E 90 00 2B [10:13:31]RAPDU: 5B CB 68 59 5D 30 A8 1E 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_SignData done [10:13:31]FM_MakeSignedData done [10:13:31]CreateOFDProtocolMessage [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 11 00 00 [10:13:31]Write to MH i2c: E2 08 00 69 0D 80 11 00 00 00 00 00 00 F0 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 69 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 42 [10:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:13:31]wFMCommunicate OK [10:13:31]CreateOFDProtocolMessage done [10:13:31]OFDSenderStorePacket 82332 [10:13:31]StoreOFDPacket docnum=82332 [10:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7E 86 07 01 B4 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CD 34 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9C 41 01 00 35 04 06 00 16 BB B3 6C 5B E7 5B CB 68 59 5D 30 A8 1E [10:13:31]CheckFolder [10:13:31]dirname=/storage/ofd_packets [10:13:31]CheckFolder done [10:13:31]ProducePacketName [10:13:31]name=ofd_packets/00082332 [10:13:31]NVStorageSaveData ofd_packets/00082332 [10:13:31]File name is /storage/ofd_packets/00082332 [10:13:31]Write 301 bytes [10:13:31]NVStorageSaveData done [10:13:31]OFDSenderStorePacket done [10:13:31]KKMCreateOFDPacket done [10:13:31]NVStorageSaveData kkm_last_timestamp [10:13:31]File name is /storage/kkm_last_timestamp [10:13:31]Write 4 bytes [10:13:31]NVStorageSaveData done [10:13:31]ExternCall_PrintAddStr [10:13:31]wPrintStart [10:13:31]Write to MH i2c: 01 00 00 6A 0D 77 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 6A 0D 00 00 00 00 00 FF 0F 8C [10:13:31]RasterBufferAndPrint [10:13:31]line Счет N : (1)918829 [10:13:31]line ИНН: 02508201610067 [10:13:31]line Контрольно-Кассовый Чек [10:13:31]line ПРОДАЖА [10:13:31]line ТРК (МРК, ГНК) : 22 [10:13:31]line Товар: 2710124130 [10:13:31]line Аи-92-К-4 [10:13:31]line 5.980 * 66.90 [10:13:31]line = 400.06 [10:13:31]line НДС 12% НСП 1% [10:13:31]line > о реализуемом товаре [10:13:31]line ОКРУГЛЕНИЕ: -0.06 [10:13:31]line ИТОГО: 400.00 [10:13:31]line Внесено: 400.00 [10:13:31]line СДАЧА: 0.00 [10:13:31]line НСП 1% : 3.54 [10:13:31]line НДС 12% : 42.48 [10:13:31]line Наличными: 400.00 [10:13:31]line Безнал.: 0.00 [10:13:31]line Место: АЗС № 114 "Партнер Нефть" [10:13:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:13:32]line СНО: Общий режим [10:13:32]line Чек 41 18.10.2024 10:13 [10:13:32]line Смена: 526 ФФД: 1.0 [10:13:32]line ЗНМ: 0300000086 [10:13:32]line РНМ: 0000000000091680 [10:13:32]line Версия ККМ: 001 [10:13:32]line ФМ: 0000000000871843 [10:13:32]line ФД: 82332 [10:13:32]line ФПД: 24995424918503 [10:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T101333&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82332&fm=24995424918503&tin=02508201610067®Number=0000000000091680&sum=40000 [10:13:32]OFD Sender: Processing packet 82332 [packets to send 254, broken 253] [10:13:32]ProducePacketName [10:13:32]name=ofd_packets/00082332 [10:13:32]OFD Sender: To server: pG, [10:13:32]CommunicateWithHost lk.salyk.kg:30040 [10:13:32]ConnectInit lk.salyk.kg [10:13:32]written 0, free lines is 4095 [10:13:32]Write to MH i2c: 01 00 00 95 0D A2 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 07 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 D4 0C 89 [10:13:32]RasterBufferAndPrint [10:13:32]line [10:13:32]line [10:13:32]line [10:13:32]line [10:13:32]line [10:13:32]written 0, free lines is 3288 [10:13:32]MH_Cut [10:13:32]Write to MH i2c: D1 01 00 9C 0D 01 7B [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: D1 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: D1 01 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: D1 01 00 9C 0D 00 7A [10:13:32]Write to MH i2c: 01 00 00 9D 0D AA [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]Connected sock=11 [10:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7E 86 07 01 B4 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CD 34 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9C 41 01 00 35 04 06 00 16 BB B3 6C 5B E7 5B CB 68 59 5D 30 A8 1E [10:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E1 0D 47 00 68 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9C 41 01 00 F4 03 04 00 08 DA 11 67 B6 04 01 00 00 3F 0C 51 02 6A 3A 78 13 [10:13:33]CommunicateWithHost err = 0 [10:13:33]CheckOFDResponse [10:13:33]1017 (14) - 77093643461234 [10:13:33]1041 (16) - 0000000000871843 [10:13:33]1040 (4) - 82332 [10:13:33]1012 (4) - 18.10.2024 03:46 [10:13:33]1206 (1) - 0 [10:13:33]OFD Sender: Remove packet 82332 [10:13:33]ProducePacketName [10:13:33]name=ofd_packets/00082332 [10:13:33]NVStorageDeleteData [10:13:33]*** Cut start [10:13:33]*** Partial cut [10:13:33]*** CUTSNS_PIN = 1 [10:13:33]*** CUTSNS_PIN = 0 [10:13:33]*** Brake cut motor [10:13:33]OFD Sender: No OFD packet to send [10:13:33]Read from MH i2c: 01 [10:13:33]MH_I2C_Read... [10:13:33]*** Stop cut motor [10:13:33]*** Cut end [10:13:33]Read from MH i2c: 01 07 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 07 00 9D 0D 00 00 00 00 00 FF 0F BF [10:13:33]process_action close_receipt done [10:13:33]requested_data is exist [10:13:33]produce_requested_data [10:13:33]requested_item fm.sn is exist - process it [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 11 00 00 [10:13:33]Write to MH i2c: E2 08 00 9E 0D 80 11 00 00 00 00 00 00 25 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 9E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 77 [10:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:13:33]wFMCommunicate OK [10:13:33]requested_item fd.num is exist - process it [10:13:33]SAM_PROTO_GetFieldsCounters [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 13 00 00 [10:13:33]Write to MH i2c: E2 08 00 9F 0D 80 13 00 00 00 00 00 00 28 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 62 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 62 00 9F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9C 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9C 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:34]wFMCommunicate OK [10:13:34]SAM_PROTO_GetFieldsCounters done [10:13:34]requested_item shift.num is exist - process it [10:13:34]requested_item shift.opened is exist - process it [10:13:34]req_shift_opened [10:13:34]FM_GetShiftState [10:13:34]SAM_PROTO_GetShiftState [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 13 01 00 [10:13:34]Write to MH i2c: E2 08 00 A0 0D 80 13 01 00 00 00 00 00 2A [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 A0 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FC [10:13:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:13:34]wFMCommunicate OK [10:13:34]SAM_PROTO_GetShiftState done [10:13:34]FM_GetShiftState done [10:13:34]req_shift_opened done [10:13:34]requested_item shift.open_date is exist - process it [10:13:34]req_shift_open_date [10:13:34]req_shift_open_date done [10:13:34]produce_requested_data done [10:13:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82332,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:13:34]process_action_free close_receipt [10:13:34]json_value_free [10:13:34]json_value_free done [10:13:34]process_json_proto returns [10:13:34]Send response to host [10:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82332,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:13:34]free response buf [10:13:34]execute_script done [10:13:34]execute_script returns [10:13:34]free content buf [10:13:34]Sock 10.Close socket [10:13:34]Sock 10.Thread stoped [10:13:38]OFD Sender: No OFD packet to send [10:13:43]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:56]recv_with_timeout no data received [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]accept exits with 8 [10:29:45]New connection [10:29:45]New thread 3067440484 created [10:29:45]Thread 3067297124 joined [10:29:45]Waiting for new connection... [10:29:45] Sock 8.Parse request [10:29:45]Sock 8.Check first char [10:29:45]Sock 8.First char is OK [10:29:45]request: POST /json_proto HTTP/1.0 [10:29:45]Method: POST [10:29:45]URL: /json_proto [10:29:45]Method is POST - this is cgi request [10:29:45]url: /json_proto [10:29:45]query_string will be loaded in cgi processing [10:29:45]execute_cgi json_proto POST (null) [10:29:45]execute_cgi path=json_proto method=POST [10:29:45]POST find Content-Length [10:29:45]Host: 172.17.44.67:8080 [10:29:45]Content-Length: 774 [10:29:45]Content-Type: application/json [10:29:45] [10:29:45]POST finish read [10:29:45]Found Content-Length = 774 [10:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:45]execute_script... [10:29: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)918830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:45]POST & json_proto [10:29:45]process_json_proto [10:29:45]json parsed OK: [10:29:45]protocol is kg_v1.0 [10:29:45]action value=close_receipt [10:29:45]process_action close_receipt [10:29:45]cmd_close_receipt [10:29:45]MH_GetDate [10:29:45]Write to MH i2c: F0 00 00 A1 0D 9D [10:29:45]Write i2c OK [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: F0 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: F0 09 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: F0 09 00 A1 0D 00 9C 38 12 67 F1 C7 6B 64 7A [10:29:45]GetLastDocTimeStamp 1729246413 [10:29:45]current date 1729247388 [10:29:45]FM_GetShiftState [10:29:45]SAM_PROTO_GetShiftState [10:29:45]wFMCommunicate request_size=4 [10:29:45]MH_SAM_APDU [10:29:45]CAPDU: 80 13 01 00 [10:29:45]Write to MH i2c: E2 08 00 A2 0D 80 13 01 00 00 00 00 00 2C [10:29:45]Write i2c OK [10:29:45]MH_I2C_Read... [10:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:45]Read from MH i2c: E2 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 0E 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 0E 00 A2 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FE [10:29:45]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:29:45]wFMCommunicate OK [10:29:45]SAM_PROTO_GetShiftState done [10:29:45]FM_GetShiftState done [10:29:45]opened in 1729212319 [10:29:45]opened+sec_in_day 1729298719 [10:29:45]quantity*price = 100050 [10:29:45]sum+1 = 100052 [10:29:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 42 18.10.2024 10:29 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82333 ФПД: 278247233632347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T102948&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82333&fm=278247233632347&tin=02508201610067®Number=0000000000091680&sum=100051 [10:29:46]StoreToDocumentArchive [10:29:46]shift 526 fd 82333 [10:29:46]save to /storage/0526/doc_00082333 [10:29:46]save last doc name /storage/0526/doc_00082333 to /storage/kkm_last_doc_name [10:29:46]save OK [10:29:46]Clear old archive folders... [10:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:29:46]tlvbuf is 00B24EA0 [10:29:46]SAM_PROTO_ClearQueue [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 09 00 00 [10:29:46]Write to MH i2c: E2 08 00 AF 0D 80 09 00 00 00 00 00 00 2E [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 AF 0D 00 90 00 30 [10:29:46]RAPDU: 90 00 [10:29:46]wFMCommunicate OK [10:29:46]SAM_PROTO_ClearQueue done [10:29:46]KKMCreateOFDPacket [10:29:46]OFDProtocolAddRootSTLVToBuf [10:29:46]FM_MakeSignedData [10:29:46]FM_MakeSignedData [10:29:46]SAM_PROTO_SignData [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 0D 01 02 [10:29:46]Write to MH i2c: E2 08 00 B0 0D 80 0D 01 02 00 00 00 00 36 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 B0 0D 00 90 00 31 [10:29:46]RAPDU: 90 00 [10:29:46]wFMCommunicate OK [10:29:46]wFMCommunicate request_size=255 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9C 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9D 41 01 00 35 04 06 00 [10:29:46]Write to MH i2c: E2 02 01 B1 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9C 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9D 41 01 00 35 04 06 00 00 00 6D [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 B1 0D 00 90 00 32 [10:29:46]RAPDU: 90 00 [10:29:46]wFMCommunicate OK [10:29:46]wFMCommunicate request_size=11 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 0D 02 02 06 FD 10 7B 85 38 5B [10:29:46]Write to MH i2c: E2 0E 00 B2 0D 80 0D 02 02 06 00 FD 10 7B 85 38 5B 00 00 E5 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 03 00 B2 0D 00 90 00 33 [10:29:46]RAPDU: 90 00 [10:29:46]wFMCommunicate OK [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 0D 03 02 [10:29:46]Write to MH i2c: E2 08 00 B3 0D 80 0D 03 02 00 00 00 00 3B [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0B 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 0B 00 B3 0D 00 93 9D 36 69 90 22 01 DC 90 00 9A [10:29:46]RAPDU: 93 9D 36 69 90 22 01 DC 90 00 [10:29:46]wFMCommunicate OK [10:29:46]SAM_PROTO_SignData done [10:29:46]FM_MakeSignedData done [10:29:46]CreateOFDProtocolMessage [10:29:46]wFMCommunicate request_size=4 [10:29:46]MH_SAM_APDU [10:29:46]CAPDU: 80 11 00 00 [10:29:46]Write to MH i2c: E2 08 00 B4 0D 80 11 00 00 00 00 00 00 3B [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:46]Read from MH i2c: E2 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 17 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: E2 17 00 B4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8D [10:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:29:46]wFMCommunicate OK [10:29:46]CreateOFDProtocolMessage done [10:29:46]OFDSenderStorePacket 82333 [10:29:46]StoreOFDPacket docnum=82333 [10:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B2 AF 08 01 AF 7D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9C 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9D 41 01 00 35 04 06 00 FD 10 7B 85 38 5B 93 9D 36 69 90 22 01 DC [10:29:46]CheckFolder [10:29:46]dirname=/storage/ofd_packets [10:29:46]CheckFolder done [10:29:46]ProducePacketName [10:29:46]name=ofd_packets/00082333 [10:29:46]NVStorageSaveData ofd_packets/00082333 [10:29:46]File name is /storage/ofd_packets/00082333 [10:29:46]Write 302 bytes [10:29:46]NVStorageSaveData done [10:29:46]OFDSenderStorePacket done [10:29:46]KKMCreateOFDPacket done [10:29:46]NVStorageSaveData kkm_last_timestamp [10:29:46]File name is /storage/kkm_last_timestamp [10:29:46]Write 4 bytes [10:29:46]NVStorageSaveData done [10:29:46]ExternCall_PrintAddStr [10:29:46]wPrintStart [10:29:46]Write to MH i2c: 01 00 00 B5 0D C2 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 07 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 07 00 B5 0D 00 00 00 00 00 FF 0F D7 [10:29:46]RasterBufferAndPrint [10:29:46]line Счет N : (1)918830 [10:29:46]line ИНН: 02508201610067 [10:29:46]line Контрольно-Кассовый Чек [10:29:46]line ПРОДАЖА [10:29:46]line ТРК (МРК, ГНК) : 31 [10:29:46]line Товар: 2710194210 [10:29:46]line ДТ(л)-К-5 [10:29:46]line 13.130 * 76.20 [10:29:46]line = 1000.51 [10:29:46]line НДС 12% НСП 1% [10:29:46]line > о реализуемом товаре [10:29:46]line ИТОГО: 1000.51 [10:29:46]line НСП 1% : 8.85 [10:29:46]line НДС 12% : 106.25 [10:29:46]line Наличными: 0.00 [10:29:46]line Безнал.: 1000.51 [10:29:46]line Место: АЗС № 114 "Партнер Нефть" [10:29:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:29:46]line СНО: Общий режим [10:29:46]line Чек 42 18.10.2024 10:29 [10:29:46]line Смена: 526 ФФД: 1.0 [10:29:46]line ЗНМ: 0300000086 [10:29:46]line РНМ: 0000000000091680 [10:29:46]line Версия ККМ: 001 [10:29:46]line Платежная система: Mbank [10:29:46]line ФМ: 0000000000871843 [10:29:46]line ФД: 82333 [10:29:46]line ФПД: 278247233632347 [10:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T102948&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82333&fm=278247233632347&tin=02508201610067®Number=0000000000091680&sum=100051 [10:29:46]written 0, free lines is 4095 [10:29:46]OFD Sender: Processing packet 82333 [packets to send 254, broken 253] [10:29:46]ProducePacketName [10:29:46]name=ofd_packets/00082333 [10:29:46]OFD Sender: To server: pG, [10:29:46]CommunicateWithHost lk.salyk.kg:30040 [10:29:46]ConnectInit lk.salyk.kg [10:29:47]Write to MH i2c: 01 00 00 DE 0D EB [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: 01 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: 01 07 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: 01 07 00 DE 0D 00 00 00 00 00 FB 0C F9 [10:29:47]RasterBufferAndPrint [10:29:47]line [10:29:47]line [10:29:47]line [10:29:47]line [10:29:47]line [10:29:47]written 0, free lines is 3329 [10:29:47]MH_Cut [10:29:47]Write to MH i2c: D1 01 00 E5 0D 01 C4 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: D1 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: D1 01 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: D1 01 00 E5 0D 00 C3 [10:29:47]Write to MH i2c: 01 00 00 E6 0D F3 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]Connected sock=10 [10:29:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 B2 AF 08 01 AF 7D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 9C 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9D 41 01 00 35 04 06 00 FD 10 7B 85 38 5B 93 9D 36 69 90 22 01 DC [10:29:47]*** Cut start [10:29:47]*** Partial cut [10:29:47]*** CUTSNS_PIN = 1 [10:29:48]*** CUTSNS_PIN = 0 [10:29:48]*** Brake cut motor [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]*** Stop cut motor [10:29:48]*** Cut end [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 E6 0D 00 00 00 00 00 FF 0F 08 [10:29:48]process_action close_receipt done [10:29:48]requested_data is exist [10:29:48]produce_requested_data [10:29:48]requested_item fm.sn is exist - process it [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 11 00 00 [10:29:48]Write to MH i2c: E2 08 00 E7 0D 80 11 00 00 00 00 00 00 6E [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 E7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C0 [10:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:29:48]wFMCommunicate OK [10:29:48]requested_item fd.num is exist - process it [10:29:48]SAM_PROTO_GetFieldsCounters [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 13 00 00 [10:29:48]Write to MH i2c: E2 08 00 E8 0D 80 13 00 00 00 00 00 00 71 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 62 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 62 00 E8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9D 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [10:29:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9D 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:48]wFMCommunicate OK [10:29:48]SAM_PROTO_GetFieldsCounters done [10:29:48]requested_item shift.num is exist - process it [10:29:48]requested_item shift.opened is exist - process it [10:29:48]req_shift_opened [10:29:48]FM_GetShiftState [10:29:48]SAM_PROTO_GetShiftState [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 13 01 00 [10:29:48]Write to MH i2c: E2 08 00 E9 0D 80 13 01 00 00 00 00 00 73 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0E 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 0E 00 E9 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 45 [10:29:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:29:48]wFMCommunicate OK [10:29:48]SAM_PROTO_GetShiftState done [10:29:48]FM_GetShiftState done [10:29:48]req_shift_opened done [10:29:48]requested_item shift.open_date is exist - process it [10:29:48]req_shift_open_date [10:29:48]req_shift_open_date done [10:29:48]produce_requested_data done [10:29:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82333,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:29:48]process_action_free close_receipt [10:29:48]json_value_free [10:29:48]json_value_free done [10:29:48]process_json_proto returns [10:29:48]Send response to host [10:29:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82333,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:29:48]free response buf [10:29:48]execute_script done [10:29:48]execute_script returns [10:29:48]free content buf [10:29:48]Sock 8.Close socket [10:29:48]Sock 8.Thread stoped [10:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 31 0F 47 00 26 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9D 41 01 00 F4 03 04 00 D7 DD 11 67 B6 04 01 00 00 89 69 50 F4 B1 F3 EE 83 [10:29:49]CommunicateWithHost err = 0 [10:29:49]CheckOFDResponse [10:29:49]1017 (14) - 77093643461234 [10:29:49]1041 (16) - 0000000000871843 [10:29:49]1040 (4) - 82333 [10:29:49]1012 (4) - 18.10.2024 04:02 [10:29:49]1206 (1) - 0 [10:29:49]OFD Sender: Remove packet 82333 [10:29:49]ProducePacketName [10:29:49]name=ofd_packets/00082333 [10:29:49]NVStorageDeleteData [10:29:49]OFD Sender: No OFD packet to send [10:29:54]recv_with_timeout no data received [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]recv_with_timeout no data received [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:25]recv_with_timeout no data received [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:07]accept exits with 9 [10:31:07]New connection [10:31:07]New thread 3067297124 created [10:31:07]Thread 3067440484 joined [10:31:07]Waiting for new connection... [10:31:07] Sock 9.Parse request [10:31:07]Sock 9.Check first char [10:31:07]Sock 9.First char is OK [10:31:07]request: POST /json_proto HTTP/1.0 [10:31:07]Method: POST [10:31:07]URL: /json_proto [10:31:07]Method is POST - this is cgi request [10:31:07]url: /json_proto [10:31:07]query_string will be loaded in cgi processing [10:31:07]execute_cgi json_proto POST (null) [10:31:07]execute_cgi path=json_proto method=POST [10:31:07]POST find Content-Length [10:31:07]Host: 172.17.44.67:8080 [10:31:07]Content-Length: 754 [10:31:07]Content-Type: application/json [10:31:07] [10:31:07]POST finish read [10:31:07]Found Content-Length = 754 [10:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097853", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:07]execute_script... [10:31: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)918831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097853", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:07]POST & json_proto [10:31:07]process_json_proto [10:31:07]json parsed OK: [10:31:07]protocol is kg_v1.0 [10:31:07]action value=close_receipt [10:31:07]process_action close_receipt [10:31:07]cmd_close_receipt [10:31:07]MH_GetDate [10:31:07]Write to MH i2c: F0 00 00 EA 0D E6 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: F0 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: F0 09 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: F0 09 00 EA 0D 00 EE 38 12 67 F1 C7 6B 64 15 [10:31:07]GetLastDocTimeStamp 1729247388 [10:31:07]current date 1729247470 [10:31:07]FM_GetShiftState [10:31:07]SAM_PROTO_GetShiftState [10:31:07]wFMCommunicate request_size=4 [10:31:07]MH_SAM_APDU [10:31:07]CAPDU: 80 13 01 00 [10:31:07]Write to MH i2c: E2 08 00 EB 0D 80 13 01 00 00 00 00 00 75 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:07]Read from MH i2c: E2 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 0E 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 0E 00 EB 0D 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 47 [10:31:07]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:31:07]wFMCommunicate OK [10:31:07]SAM_PROTO_GetShiftState done [10:31:07]FM_GetShiftState done [10:31:07]opened in 1729212319 [10:31:07]opened+sec_in_day 1729298719 [10:31:07]quantity*price = 0 [10:31:07]sum+1 = 1 [10:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 43 18.10.2024 10:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097853 ФМ: 0000000000871843 ФД: 82334 ФПД: 192088963016178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103110&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82334&fm=192088963016178&tin=02508201610067®Number=0000000000091680&sum=0 [10:31:08]StoreToDocumentArchive [10:31:08]shift 526 fd 82334 [10:31:08]save to /storage/0526/doc_00082334 [10:31:08]save last doc name /storage/0526/doc_00082334 to /storage/kkm_last_doc_name [10:31:08]save OK [10:31:08]Clear old archive folders... [10:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:08]tlvbuf is 00B24940 [10:31:08]SAM_PROTO_ClearQueue [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 09 00 00 [10:31:08]Write to MH i2c: E2 08 00 F8 0D 80 09 00 00 00 00 00 00 77 [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [10:31:08]RAPDU: 90 00 [10:31:08]wFMCommunicate OK [10:31:08]SAM_PROTO_ClearQueue done [10:31:08]KKMCreateOFDPacket [10:31:08]OFDProtocolAddRootSTLVToBuf [10:31:08]FM_MakeSignedData [10:31:08]FM_MakeSignedData [10:31:08]SAM_PROTO_SignData [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 0D 01 02 [10:31:08]Write to MH i2c: E2 08 00 F9 0D 80 0D 01 02 00 00 00 00 7F [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 F9 0D 00 90 00 7A [10:31:08]RAPDU: 90 00 [10:31:08]wFMCommunicate OK [10:31:08]wFMCommunicate request_size=255 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 EE 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9E 41 01 00 35 04 06 00 AE [10:31:08]Write to MH i2c: E2 02 01 FA 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 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 EE 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9E 41 01 00 35 04 06 00 AE 00 00 FC [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 FA 0D 00 90 00 7B [10:31:08]RAPDU: 90 00 [10:31:08]wFMCommunicate OK [10:31:08]wFMCommunicate request_size=10 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 0D 02 02 05 B4 32 67 E5 F2 [10:31:08]Write to MH i2c: E2 0D 00 FB 0D 80 0D 02 02 05 00 B4 32 67 E5 F2 00 00 B0 [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 03 00 FB 0D 00 90 00 7C [10:31:08]RAPDU: 90 00 [10:31:08]wFMCommunicate OK [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 0D 03 02 [10:31:08]Write to MH i2c: E2 08 00 FC 0D 80 0D 03 02 00 00 00 00 84 [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 0B 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 0B 00 FC 0D 00 76 FE 37 95 7C 42 68 B1 90 00 9C [10:31:08]RAPDU: 76 FE 37 95 7C 42 68 B1 90 00 [10:31:08]wFMCommunicate OK [10:31:08]SAM_PROTO_SignData done [10:31:08]FM_MakeSignedData done [10:31:08]CreateOFDProtocolMessage [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 11 00 00 [10:31:08]Write to MH i2c: E2 08 00 FD 0D 80 11 00 00 00 00 00 00 84 [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 17 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 17 00 FD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [10:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:31:08]wFMCommunicate OK [10:31:08]CreateOFDProtocolMessage done [10:31:08]OFDSenderStorePacket 82334 [10:31:08]StoreOFDPacket docnum=82334 [10:31:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7D 86 07 01 4F D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 EE 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9E 41 01 00 35 04 06 00 AE B4 32 67 E5 F2 76 FE 37 95 7C 42 68 B1 [10:31:08]CheckFolder [10:31:08]dirname=/storage/ofd_packets [10:31:08]CheckFolder done [10:31:08]ProducePacketName [10:31:08]name=ofd_packets/00082334 [10:31:08]NVStorageSaveData ofd_packets/00082334 [10:31:08]File name is /storage/ofd_packets/00082334 [10:31:08]Write 301 bytes [10:31:08]NVStorageSaveData done [10:31:08]OFDSenderStorePacket done [10:31:08]KKMCreateOFDPacket done [10:31:08]NVStorageSaveData kkm_last_timestamp [10:31:08]File name is /storage/kkm_last_timestamp [10:31:08]Write 4 bytes [10:31:08]NVStorageSaveData done [10:31:08]ExternCall_PrintAddStr [10:31:08]wPrintStart [10:31:08]Write to MH i2c: 01 00 00 FE 0D 0B [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: 01 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: 01 07 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: 01 07 00 FE 0D 00 00 00 00 00 FF 0F 20 [10:31:08]RasterBufferAndPrint [10:31:08]line Счет N : (1)918831 [10:31:08]line ИНН: 02508201610067 [10:31:08]line Контрольно-Кассовый Чек [10:31:08]line ПРОДАЖА [10:31:08]line ТРК (МРК, ГНК) : 11 [10:31:08]line Товар: 2710124130 [10:31:08]line Аи-92-К-4 [10:31:08]line 12.000 * 0.00 [10:31:08]line = 0.00 [10:31:08]line НДС 12% НСП 1% [10:31:08]line > о реализуемом товаре [10:31:08]line ИТОГО: 0.00 [10:31:08]line НСП 1% : 0.00 [10:31:08]line НДС 12% : 0.00 [10:31:08]line Наличными: 0.00 [10:31:08]line Безнал.: 0.00 [10:31:08]line Место: АЗС № 114 "Партнер Нефть" [10:31:08]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:31:08]line СНО: Общий режим [10:31:08]line Чек 43 18.10.2024 10:31 [10:31:08]line Смена: 526 ФФД: 1.0 [10:31:08]line ЗНМ: 0300000086 [10:31:08]line РНМ: 0000000000091680 [10:31:08]line Версия ККМ: 001 [10:31:08]line Талоны: ТК ГПНА Online [10:31:08]line 30097853 [10:31:08]line ФМ: 0000000000871843 [10:31:08]line ФД: 82334 [10:31:08]line ФПД: 192088963016178 [10:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103110&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82334&fm=192088963016178&tin=02508201610067®Number=0000000000091680&sum=0 [10:31:09]written 0, free lines is 4095 [10:31:09]OFD Sender: Processing packet 82334 [packets to send 254, broken 253] [10:31:09]ProducePacketName [10:31:09]name=ofd_packets/00082334 [10:31:09]OFD Sender: To server: pG, [10:31:09]CommunicateWithHost lk.salyk.kg:30040 [10:31:09]ConnectInit lk.salyk.kg [10:31:09]Write to MH i2c: 01 00 00 28 0E 36 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: 01 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: 01 07 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 DF 0C 28 [10:31:09]RasterBufferAndPrint [10:31:09]line [10:31:09]line [10:31:09]line [10:31:09]line [10:31:09]line [10:31:09]written 0, free lines is 3301 [10:31:09]MH_Cut [10:31:09]Write to MH i2c: D1 01 00 2F 0E 01 0F [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: D1 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: D1 01 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: D1 01 00 2F 0E 00 0E [10:31:09]Write to MH i2c: 01 00 00 30 0E 3E [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:10]*** Cut start [10:31:10]*** Partial cut [10:31:10]*** CUTSNS_PIN = 1 [10:31:10]*** CUTSNS_PIN = 0 [10:31:10]*** Brake cut motor [10:31:10]Read from MH i2c: 01 [10:31:10]MH_I2C_Read... [10:31:10]*** Stop cut motor [10:31:10]*** Cut end [10:31:10]Read from MH i2c: 01 07 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: 01 07 00 30 0E 00 00 00 00 00 FF 0F 53 [10:31:10]process_action close_receipt done [10:31:10]requested_data is exist [10:31:10]produce_requested_data [10:31:10]requested_item fm.sn is exist - process it [10:31:10]wFMCommunicate request_size=4 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 11 00 00 [10:31:10]Write to MH i2c: E2 08 00 31 0E 80 11 00 00 00 00 00 00 B9 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 17 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 17 00 31 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0B [10:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:31:11]wFMCommunicate OK [10:31:11]requested_item fd.num is exist - process it [10:31:11]SAM_PROTO_GetFieldsCounters [10:31:11]wFMCommunicate request_size=4 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 13 00 00 [10:31:11]Write to MH i2c: E2 08 00 32 0E 80 13 00 00 00 00 00 00 BC [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 62 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 62 00 32 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9E 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [10:31:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9E 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:11]wFMCommunicate OK [10:31:11]SAM_PROTO_GetFieldsCounters done [10:31:11]requested_item shift.num is exist - process it [10:31:11]requested_item shift.opened is exist - process it [10:31:11]req_shift_opened [10:31:11]FM_GetShiftState [10:31:11]SAM_PROTO_GetShiftState [10:31:11]wFMCommunicate request_size=4 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 13 01 00 [10:31:11]Write to MH i2c: E2 08 00 33 0E 80 13 01 00 00 00 00 00 BE [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 33 0E 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 90 [10:31:11]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:31:11]wFMCommunicate OK [10:31:11]SAM_PROTO_GetShiftState done [10:31:11]FM_GetShiftState done [10:31:11]req_shift_opened done [10:31:11]requested_item shift.open_date is exist - process it [10:31:11]req_shift_open_date [10:31:11]req_shift_open_date done [10:31:11]produce_requested_data done [10:31:11]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82334,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:31:11]process_action_free close_receipt [10:31:11]json_value_free [10:31:11]json_value_free done [10:31:11]process_json_proto returns [10:31:11]Send response to host [10:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82334,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:31:11]free response buf [10:31:11]execute_script done [10:31:11]execute_script returns [10:31:11]free content buf [10:31:11]Sock 9.Close socket [10:31:11]Sock 9.Thread stoped [10:31:14]ConnectInit Can't take IP for lk.salyk.kg [10:31:14]CommunicateWithHost connect error [10:31:14]CommunicateWithHost err = -1 [10:31:14]OFD Sender: Server communicate error [10:31:19]OFD Sender: Processing packet 82334 [packets to send 254, broken 253] [10:31:19]ProducePacketName [10:31:19]name=ofd_packets/00082334 [10:31:19]OFD Sender: To server: pG, [10:31:19]CommunicateWithHost lk.salyk.kg:30040 [10:31:19]ConnectInit lk.salyk.kg [10:31:20]Connected sock=9 [10:31:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7D 86 07 01 4F D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 EE 38 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9E 41 01 00 35 04 06 00 AE B4 32 67 E5 F2 76 FE 37 95 7C 42 68 B1 [10:31:20]recv_with_timeout no data received [10:31:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 45 BD 47 00 2B F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9E 41 01 00 F4 03 04 00 34 DE 11 67 B6 04 01 00 00 49 36 B1 14 C3 2B 23 40 [10:31:21]CommunicateWithHost err = 0 [10:31:21]CheckOFDResponse [10:31:21]1017 (14) - 77093643461234 [10:31:21]1041 (16) - 0000000000871843 [10:31:21]1040 (4) - 82334 [10:31:21]1012 (4) - 18.10.2024 04:04 [10:31:21]1206 (1) - 0 [10:31:21]OFD Sender: Remove packet 82334 [10:31:21]ProducePacketName [10:31:21]name=ofd_packets/00082334 [10:31:21]NVStorageDeleteData [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:34]recv_with_timeout no data received [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:48]recv_with_timeout no data received [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:02]recv_with_timeout no data received [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:53]accept exits with 8 [10:36:53]New connection [10:36:53]New thread 3067440484 created [10:36:53]Thread 3067297124 joined [10:36:53]Waiting for new connection... [10:36:53] Sock 8.Parse request [10:36:53]Sock 8.Check first char [10:36:53]Sock 8.First char is OK [10:36:53]request: POST /json_proto HTTP/1.0 [10:36:53]Method: POST [10:36:53]URL: /json_proto [10:36:53]Method is POST - this is cgi request [10:36:53]url: /json_proto [10:36:53]query_string will be loaded in cgi processing [10:36:53]execute_cgi json_proto POST (null) [10:36:53]execute_cgi path=json_proto method=POST [10:36:53]POST find Content-Length [10:36:53]Host: 172.17.44.67:8080 [10:36:53]Content-Length: 759 [10:36:53]Content-Type: application/json [10:36:53] [10:36:53]POST finish read [10:36:53]Found Content-Length = 759 [10:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100723", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:53]execute_script... [10:36: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)918832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100723", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:53]POST & json_proto [10:36:53]process_json_proto [10:36:53]json parsed OK: [10:36:53]protocol is kg_v1.0 [10:36:53]action value=close_receipt [10:36:53]process_action close_receipt [10:36:53]cmd_close_receipt [10:36:53]MH_GetDate [10:36:53]Write to MH i2c: F0 00 00 34 0E 31 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: F0 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: F0 09 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: F0 09 00 34 0E 00 48 3A 12 67 F1 C7 6B 64 BC [10:36:53]GetLastDocTimeStamp 1729247470 [10:36:53]current date 1729247816 [10:36:53]FM_GetShiftState [10:36:53]SAM_PROTO_GetShiftState [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 13 01 00 [10:36:53]Write to MH i2c: E2 08 00 35 0E 80 13 01 00 00 00 00 00 C0 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0E 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0E 00 35 0E 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 92 [10:36:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:36:53]wFMCommunicate OK [10:36:53]SAM_PROTO_GetShiftState done [10:36:53]FM_GetShiftState done [10:36:53]opened in 1729212319 [10:36:53]opened+sec_in_day 1729298719 [10:36:53]quantity*price = 0 [10:36:53]sum+1 = 1 [10:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 44 18.10.2024 10:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100723 ФМ: 0000000000871843 ФД: 82335 ФПД: 155448250165556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103656&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82335&fm=155448250165556&tin=02508201610067®Number=0000000000091680&sum=0 [10:36:54]StoreToDocumentArchive [10:36:54]shift 526 fd 82335 [10:36:54]save to /storage/0526/doc_00082335 [10:36:54]save last doc name /storage/0526/doc_00082335 to /storage/kkm_last_doc_name [10:36:54]save OK [10:36:54]Clear old archive folders... [10:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:36:54]tlvbuf is 00B121D0 [10:36:54]SAM_PROTO_ClearQueue [10:36:54]wFMCommunicate request_size=4 [10:36:54]MH_SAM_APDU [10:36:54]CAPDU: 80 09 00 00 [10:36:54]Write to MH i2c: E2 08 00 42 0E 80 09 00 00 00 00 00 00 C2 [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:54]Read from MH i2c: E2 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 03 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 03 00 42 0E 00 90 00 C4 [10:36:54]RAPDU: 90 00 [10:36:54]wFMCommunicate OK [10:36:54]SAM_PROTO_ClearQueue done [10:36:54]KKMCreateOFDPacket [10:36:54]OFDProtocolAddRootSTLVToBuf [10:36:54]FM_MakeSignedData [10:36:54]FM_MakeSignedData [10:36:54]SAM_PROTO_SignData [10:36:54]wFMCommunicate request_size=4 [10:36:54]MH_SAM_APDU [10:36:54]CAPDU: 80 0D 01 02 [10:36:54]Write to MH i2c: E2 08 00 43 0E 80 0D 01 02 00 00 00 00 CA [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:54]Read from MH i2c: E2 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 03 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 03 00 43 0E 00 90 00 C5 [10:36:54]RAPDU: 90 00 [10:36:54]wFMCommunicate OK [10:36:54]wFMCommunicate request_size=255 [10:36:54]MH_SAM_APDU [10:36:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 41 01 00 35 04 06 00 [10:36:54]Write to MH i2c: E2 02 01 44 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 41 01 00 35 04 06 00 00 00 93 [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:55]Read from MH i2c: E2 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 03 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [10:36:55]RAPDU: 90 00 [10:36:55]wFMCommunicate OK [10:36:55]wFMCommunicate request_size=11 [10:36:55]MH_SAM_APDU [10:36:55]CAPDU: 80 0D 02 02 06 8D 61 1D BB 69 34 [10:36:55]Write to MH i2c: E2 0E 00 45 0E 80 0D 02 02 06 00 8D 61 1D BB 69 34 00 00 3C [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:55]Read from MH i2c: E2 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 03 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 03 00 45 0E 00 90 00 C7 [10:36:55]RAPDU: 90 00 [10:36:55]wFMCommunicate OK [10:36:55]wFMCommunicate request_size=4 [10:36:55]MH_SAM_APDU [10:36:55]CAPDU: 80 0D 03 02 [10:36:55]Write to MH i2c: E2 08 00 46 0E 80 0D 03 02 00 00 00 00 CF [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:55]Read from MH i2c: E2 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 0B 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 0B 00 46 0E 00 19 E4 8E 51 CB 26 67 DD 90 00 E1 [10:36:55]RAPDU: 19 E4 8E 51 CB 26 67 DD 90 00 [10:36:55]wFMCommunicate OK [10:36:55]SAM_PROTO_SignData done [10:36:55]FM_MakeSignedData done [10:36:55]CreateOFDProtocolMessage [10:36:55]wFMCommunicate request_size=4 [10:36:55]MH_SAM_APDU [10:36:55]CAPDU: 80 11 00 00 [10:36:55]Write to MH i2c: E2 08 00 47 0E 80 11 00 00 00 00 00 00 CF [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:55]Read from MH i2c: E2 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 17 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: E2 17 00 47 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 21 [10:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:36:55]wFMCommunicate OK [10:36:55]CreateOFDProtocolMessage done [10:36:55]OFDSenderStorePacket 82335 [10:36:55]StoreOFDPacket docnum=82335 [10:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 8E E8 08 01 2C 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 41 01 00 35 04 06 00 8D 61 1D BB 69 34 19 E4 8E 51 CB 26 67 DD [10:36:55]CheckFolder [10:36:55]dirname=/storage/ofd_packets [10:36:55]CheckFolder done [10:36:55]ProducePacketName [10:36:55]name=ofd_packets/00082335 [10:36:55]NVStorageSaveData ofd_packets/00082335 [10:36:55]File name is /storage/ofd_packets/00082335 [10:36:55]Write 302 bytes [10:36:55]NVStorageSaveData done [10:36:55]OFDSenderStorePacket done [10:36:55]KKMCreateOFDPacket done [10:36:55]NVStorageSaveData kkm_last_timestamp [10:36:55]File name is /storage/kkm_last_timestamp [10:36:55]Write 4 bytes [10:36:55]NVStorageSaveData done [10:36:55]ExternCall_PrintAddStr [10:36:55]wPrintStart [10:36:55]Write to MH i2c: 01 00 00 48 0E 56 [10:36:55]Write i2c OK [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: 01 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: 01 07 00 [10:36:55]MH_I2C_Read... [10:36:55]Read from MH i2c: 01 07 00 48 0E 00 00 00 00 00 FF 0F 6B [10:36:55]RasterBufferAndPrint [10:36:55]line Счет N : (1)918832 [10:36:55]line ИНН: 02508201610067 [10:36:55]line Контрольно-Кассовый Чек [10:36:55]line ПРОДАЖА [10:36:55]line ТРК (МРК, ГНК) : 31 [10:36:55]line Товар: 2710194210 [10:36:55]line ДТ(л)-К-5 [10:36:55]line 20.000 * 0.00 [10:36:55]line = 0.00 [10:36:55]line НДС 12% НСП 1% [10:36:55]line > о реализуемом товаре [10:36:55]line ИТОГО: 0.00 [10:36:55]line НСП 1% : 0.00 [10:36:55]line НДС 12% : 0.00 [10:36:55]line Наличными: 0.00 [10:36:55]line Безнал.: 0.00 [10:36:55]line Место: АЗС № 114 "Партнер Нефть" [10:36:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:36:55]line СНО: Общий режим [10:36:55]line Чек 44 18.10.2024 10:36 [10:36:55]line Смена: 526 ФФД: 1.0 [10:36:55]line ЗНМ: 0300000086 [10:36:55]line РНМ: 0000000000091680 [10:36:55]line Версия ККМ: 001 [10:36:55]line Талоны: ТК ГПНА Online [10:36:55]line 30100723 [10:36:55]line ФМ: 0000000000871843 [10:36:55]line ФД: 82335 [10:36:55]line ФПД: 155448250165556 [10:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103656&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82335&fm=155448250165556&tin=02508201610067®Number=0000000000091680&sum=0 [10:36:55]OFD Sender: Processing packet 82335 [packets to send 254, broken 253] [10:36:55]ProducePacketName [10:36:55]name=ofd_packets/00082335 [10:36:55]OFD Sender: To server: pG, [10:36:55]CommunicateWithHost lk.salyk.kg:30040 [10:36:55]ConnectInit lk.salyk.kg [10:36:55]written 0, free lines is 4095 [10:36:56]Write to MH i2c: 01 00 00 72 0E 80 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 E5 0C 78 [10:36:56]RasterBufferAndPrint [10:36:56]line [10:36:56]line [10:36:56]line [10:36:56]line [10:36:56]line [10:36:56]written 0, free lines is 3308 [10:36:56]MH_Cut [10:36:56]Write to MH i2c: D1 01 00 79 0E 01 59 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: D1 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: D1 01 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: D1 01 00 79 0E 00 58 [10:36:56]Write to MH i2c: 01 00 00 7A 0E 88 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]Connected sock=10 [10:36:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 8E E8 08 01 2C 6A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 48 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 41 01 00 35 04 06 00 8D 61 1D BB 69 34 19 E4 8E 51 CB 26 67 DD [10:36:56]*** Cut start [10:36:56]*** Partial cut [10:36:56]*** CUTSNS_PIN = 1 [10:36:56]*** CUTSNS_PIN = 0 [10:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6D D8 47 00 7B 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 9F 41 01 00 F4 03 04 00 84 DF 11 67 B6 04 01 00 00 F3 3C CD 31 42 F4 65 5A [10:36:57]CommunicateWithHost err = 0 [10:36:57]CheckOFDResponse [10:36:57]1017 (14) - 77093643461234 [10:36:57]1041 (16) - 0000000000871843 [10:36:57]1040 (4) - 82335 [10:36:57]1012 (4) - 18.10.2024 04:09 [10:36:57]1206 (1) - 0 [10:36:57]OFD Sender: Remove packet 82335 [10:36:57]ProducePacketName [10:36:57]name=ofd_packets/00082335 [10:36:57]NVStorageDeleteData [10:36:57]*** Brake cut motor [10:36:57]Read from MH i2c: 01 [10:36:57]MH_I2C_Read... [10:36:57]*** Stop cut motor [10:36:57]*** Cut end [10:36:57]Read from MH i2c: 01 07 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 FF 0F 9D [10:36:57]process_action close_receipt done [10:36:57]requested_data is exist [10:36:57]produce_requested_data [10:36:57]requested_item fm.sn is exist - process it [10:36:57]wFMCommunicate request_size=4 [10:36:57]MH_SAM_APDU [10:36:57]CAPDU: 80 11 00 00 [10:36:57]Write to MH i2c: E2 08 00 7B 0E 80 11 00 00 00 00 00 00 03 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:57]Read from MH i2c: E2 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 17 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 17 00 7B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 55 [10:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:36:57]wFMCommunicate OK [10:36:57]requested_item fd.num is exist - process it [10:36:57]SAM_PROTO_GetFieldsCounters [10:36:57]wFMCommunicate request_size=4 [10:36:57]MH_SAM_APDU [10:36:57]CAPDU: 80 13 00 00 [10:36:57]Write to MH i2c: E2 08 00 7C 0E 80 13 00 00 00 00 00 00 06 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]OFD Sender: No OFD packet to send [10:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:57]Read from MH i2c: E2 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 62 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 62 00 7C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9F 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:36:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 9F 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:57]wFMCommunicate OK [10:36:57]SAM_PROTO_GetFieldsCounters done [10:36:57]requested_item shift.num is exist - process it [10:36:57]requested_item shift.opened is exist - process it [10:36:57]req_shift_opened [10:36:57]FM_GetShiftState [10:36:57]SAM_PROTO_GetShiftState [10:36:57]wFMCommunicate request_size=4 [10:36:57]MH_SAM_APDU [10:36:57]CAPDU: 80 13 01 00 [10:36:57]Write to MH i2c: E2 08 00 7D 0E 80 13 01 00 00 00 00 00 08 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:57]Read from MH i2c: E2 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 0E 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: E2 0E 00 7D 0E 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DA [10:36:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:36:57]wFMCommunicate OK [10:36:57]SAM_PROTO_GetShiftState done [10:36:57]FM_GetShiftState done [10:36:57]req_shift_opened done [10:36:57]requested_item shift.open_date is exist - process it [10:36:57]req_shift_open_date [10:36:57]req_shift_open_date done [10:36:57]produce_requested_data done [10:36:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82335,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:36:57]process_action_free close_receipt [10:36:57]json_value_free [10:36:57]json_value_free done [10:36:57]process_json_proto returns [10:36:57]Send response to host [10:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82335,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:36:57]free response buf [10:36:57]execute_script done [10:36:57]execute_script returns [10:36:57]free content buf [10:36:57]Sock 8.Close socket [10:36:57]Sock 8.Thread stoped [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:07]accept exits with 9 [10:38:07]New connection [10:38:07]New thread 3067297124 created [10:38:07]Thread 3067440484 joined [10:38:07]Waiting for new connection... [10:38:07] Sock 9.Parse request [10:38:07]Sock 9.Check first char [10:38:07]Sock 9.First char is OK [10:38:07]request: POST /json_proto HTTP/1.0 [10:38:07]Method: POST [10:38:07]URL: /json_proto [10:38:07]Method is POST - this is cgi request [10:38:07]url: /json_proto [10:38:07]query_string will be loaded in cgi processing [10:38:07]execute_cgi json_proto POST (null) [10:38:07]execute_cgi path=json_proto method=POST [10:38:07]POST find Content-Length [10:38:07]Host: 172.17.44.67:8080 [10:38:07]Content-Length: 766 [10:38:07]Content-Type: application/json [10:38:07] [10:38:07]POST finish read [10:38:07]Found Content-Length = 766 [10:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918833", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:07]execute_script... [10:38: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)918833", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:07]POST & json_proto [10:38:07]process_json_proto [10:38:07]json parsed OK: [10:38:07]protocol is kg_v1.0 [10:38:07]action value=close_receipt [10:38:07]process_action close_receipt [10:38:07]cmd_close_receipt [10:38:07]MH_GetDate [10:38:07]Write to MH i2c: F0 00 00 7E 0E 7B [10:38:07]Write i2c OK [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: F0 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: F0 09 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: F0 09 00 7E 0E 00 93 3A 12 67 F1 C7 6B 64 51 [10:38:07]GetLastDocTimeStamp 1729247816 [10:38:07]current date 1729247891 [10:38:07]FM_GetShiftState [10:38:07]SAM_PROTO_GetShiftState [10:38:07]wFMCommunicate request_size=4 [10:38:07]MH_SAM_APDU [10:38:07]CAPDU: 80 13 01 00 [10:38:07]Write to MH i2c: E2 08 00 7F 0E 80 13 01 00 00 00 00 00 0A [10:38:07]Write i2c OK [10:38:07]MH_I2C_Read... [10:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:07]Read from MH i2c: E2 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 0E 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 0E 00 7F 0E 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DC [10:38:07]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:38:07]wFMCommunicate OK [10:38:07]SAM_PROTO_GetShiftState done [10:38:07]FM_GetShiftState done [10:38:07]opened in 1729212319 [10:38:07]opened+sec_in_day 1729298719 [10:38:07]quantity*price = 50010 [10:38:07]sum+1 = 50012 [10:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 45 18.10.2024 10:38 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82336 ФПД: 217364809688722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103811&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82336&fm=217364809688722&tin=02508201610067®Number=0000000000091680&sum=50011 [10:38:08]StoreToDocumentArchive [10:38:08]shift 526 fd 82336 [10:38:08]save to /storage/0526/doc_00082336 [10:38:08]save last doc name /storage/0526/doc_00082336 to /storage/kkm_last_doc_name [10:38:08]save OK [10:38:08]Clear old archive folders... [10:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:08]tlvbuf is 00B12090 [10:38:08]SAM_PROTO_ClearQueue [10:38:08]wFMCommunicate request_size=4 [10:38:08]MH_SAM_APDU [10:38:08]CAPDU: 80 09 00 00 [10:38:08]Write to MH i2c: E2 08 00 8C 0E 80 09 00 00 00 00 00 00 0C [10:38:08]Write i2c OK [10:38:08]MH_I2C_Read... [10:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:08]Read from MH i2c: E2 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 03 00 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 03 00 8C 0E 00 90 00 0E [10:38:08]RAPDU: 90 00 [10:38:08]wFMCommunicate OK [10:38:08]SAM_PROTO_ClearQueue done [10:38:08]KKMCreateOFDPacket [10:38:08]OFDProtocolAddRootSTLVToBuf [10:38:08]FM_MakeSignedData [10:38:08]FM_MakeSignedData [10:38:08]SAM_PROTO_SignData [10:38:08]wFMCommunicate request_size=4 [10:38:08]MH_SAM_APDU [10:38:08]CAPDU: 80 0D 01 02 [10:38:08]Write to MH i2c: E2 08 00 8D 0E 80 0D 01 02 00 00 00 00 14 [10:38:08]Write i2c OK [10:38:08]MH_I2C_Read... [10:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:08]Read from MH i2c: E2 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 03 00 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 03 00 8D 0E 00 90 00 0F [10:38:08]RAPDU: 90 00 [10:38:08]wFMCommunicate OK [10:38:08]wFMCommunicate request_size=255 [10:38:08]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 93 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 41 01 00 35 04 06 00 C5 [10:38:08]Write to MH i2c: E2 02 01 8E 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 93 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 41 01 00 35 04 06 00 C5 00 00 B9 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:09]Read from MH i2c: E2 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 03 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [10:38:09]RAPDU: 90 00 [10:38:09]wFMCommunicate OK [10:38:09]wFMCommunicate request_size=10 [10:38:09]MH_SAM_APDU [10:38:09]CAPDU: 80 0D 02 02 05 B1 30 44 A6 92 [10:38:09]Write to MH i2c: E2 0D 00 8F 0E 80 0D 02 02 05 00 B1 30 44 A6 92 00 00 7E [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:09]Read from MH i2c: E2 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 03 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [10:38:09]RAPDU: 90 00 [10:38:09]wFMCommunicate OK [10:38:09]wFMCommunicate request_size=4 [10:38:09]MH_SAM_APDU [10:38:09]CAPDU: 80 0D 03 02 [10:38:09]Write to MH i2c: E2 08 00 90 0E 80 0D 03 02 00 00 00 00 19 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:09]Read from MH i2c: E2 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 0B 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 0B 00 90 0E 00 2A B7 2D E1 21 66 B6 76 90 00 BC [10:38:09]RAPDU: 2A B7 2D E1 21 66 B6 76 90 00 [10:38:09]wFMCommunicate OK [10:38:09]SAM_PROTO_SignData done [10:38:09]FM_MakeSignedData done [10:38:09]CreateOFDProtocolMessage [10:38:09]wFMCommunicate request_size=4 [10:38:09]MH_SAM_APDU [10:38:09]CAPDU: 80 11 00 00 [10:38:09]Write to MH i2c: E2 08 00 91 0E 80 11 00 00 00 00 00 00 19 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:09]Read from MH i2c: E2 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 17 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: E2 17 00 91 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6B [10:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:38:09]wFMCommunicate OK [10:38:09]CreateOFDProtocolMessage done [10:38:09]OFDSenderStorePacket 82336 [10:38:09]StoreOFDPacket docnum=82336 [10:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CB B4 07 01 95 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 93 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 41 01 00 35 04 06 00 C5 B1 30 44 A6 92 2A B7 2D E1 21 66 B6 76 [10:38:09]CheckFolder [10:38:09]dirname=/storage/ofd_packets [10:38:09]CheckFolder done [10:38:09]ProducePacketName [10:38:09]name=ofd_packets/00082336 [10:38:09]NVStorageSaveData ofd_packets/00082336 [10:38:09]File name is /storage/ofd_packets/00082336 [10:38:09]Write 301 bytes [10:38:09]NVStorageSaveData done [10:38:09]OFDSenderStorePacket done [10:38:09]KKMCreateOFDPacket done [10:38:09]NVStorageSaveData kkm_last_timestamp [10:38:09]File name is /storage/kkm_last_timestamp [10:38:09]Write 4 bytes [10:38:09]NVStorageSaveData done [10:38:09]ExternCall_PrintAddStr [10:38:09]wPrintStart [10:38:09]Write to MH i2c: 01 00 00 92 0E A0 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: 01 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: 01 07 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 FF 0F B5 [10:38:09]RasterBufferAndPrint [10:38:09]line Счет N : (1)918833 [10:38:09]line ИНН: 02508201610067 [10:38:09]line Контрольно-Кассовый Чек [10:38:09]line ПРОДАЖА [10:38:09]line ТРК (МРК, ГНК) : 12 [10:38:09]line Товар: 2710124500 [10:38:09]line Аи-95-К-5 [10:38:09]line 6.740 * 74.20 [10:38:09]line = 500.11 [10:38:09]line НДС 12% НСП 1% [10:38:09]line > о реализуемом товаре [10:38:09]line ИТОГО: 500.11 [10:38:09]line НСП 1% : 4.43 [10:38:09]line НДС 12% : 53.11 [10:38:09]line Наличными: 0.00 [10:38:09]line Безнал.: 500.11 [10:38:09]line Место: АЗС № 114 "Партнер Нефть" [10:38:09]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:38:09]line СНО: Общий режим [10:38:09]line Чек 45 18.10.2024 10:38 [10:38:09]line Смена: 526 ФФД: 1.0 [10:38:09]line ЗНМ: 0300000086 [10:38:09]line РНМ: 0000000000091680 [10:38:09]line Версия ККМ: 001 [10:38:09]line Платежная система: Mbank [10:38:09]line ФМ: 0000000000871843 [10:38:09]line ФД: 82336 [10:38:09]line ФПД: 217364809688722 [10:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103811&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82336&fm=217364809688722&tin=02508201610067®Number=0000000000091680&sum=50011 [10:38:09]written 0, free lines is 4095 [10:38:09]OFD Sender: Processing packet 82336 [packets to send 254, broken 253] [10:38:09]ProducePacketName [10:38:09]name=ofd_packets/00082336 [10:38:09]OFD Sender: To server: pG, [10:38:09]CommunicateWithHost lk.salyk.kg:30040 [10:38:09]ConnectInit lk.salyk.kg [10:38:09]Connected sock=10 [10:38:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CB B4 07 01 95 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 93 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 41 01 00 35 04 06 00 C5 B1 30 44 A6 92 2A B7 2D E1 21 66 B6 76 [10:38:09]Write to MH i2c: 01 00 00 BB 0E C9 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: 01 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: 01 07 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: 01 07 00 BB 0E 00 00 00 00 00 00 0D DD [10:38:09]RasterBufferAndPrint [10:38:09]line [10:38:09]line [10:38:09]line [10:38:09]line [10:38:09]line [10:38:09]written 0, free lines is 3334 [10:38:09]MH_Cut [10:38:09]Write to MH i2c: D1 01 00 C2 0E 01 A2 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: D1 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: D1 01 00 [10:38:09]MH_I2C_Read... [10:38:09]Read from MH i2c: D1 01 00 C2 0E 00 A1 [10:38:09]Write to MH i2c: 01 00 00 C3 0E D1 [10:38:09]Write i2c OK [10:38:09]MH_I2C_Read... [10:38:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8C 14 47 00 42 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A0 41 01 00 F4 03 04 00 CD DF 11 67 B6 04 01 00 00 56 B9 0C DE 0E AB 3E E5 [10:38:10]CommunicateWithHost err = 0 [10:38:10]CheckOFDResponse [10:38:10]1017 (14) - 77093643461234 [10:38:10]1041 (16) - 0000000000871843 [10:38:10]1040 (4) - 82336 [10:38:10]1012 (4) - 18.10.2024 04:10 [10:38:10]1206 (1) - 0 [10:38:10]OFD Sender: Remove packet 82336 [10:38:10]ProducePacketName [10:38:10]name=ofd_packets/00082336 [10:38:10]NVStorageDeleteData [10:38:10]*** Cut start [10:38:10]*** Partial cut [10:38:10]*** CUTSNS_PIN = 1 [10:38:10]*** CUTSNS_PIN = 0 [10:38:10]OFD Sender: No OFD packet to send [10:38:10]*** Brake cut motor [10:38:11]Read from MH i2c: 01 [10:38:11]MH_I2C_Read... [10:38:11]*** Stop cut motor [10:38:11]*** Cut end [10:38:11]Read from MH i2c: 01 07 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 FF 0F E6 [10:38:11]process_action close_receipt done [10:38:11]requested_data is exist [10:38:11]produce_requested_data [10:38:11]requested_item fm.sn is exist - process it [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 11 00 00 [10:38:11]Write to MH i2c: E2 08 00 C4 0E 80 11 00 00 00 00 00 00 4C [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 17 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 17 00 C4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9E [10:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:38:11]wFMCommunicate OK [10:38:11]requested_item fd.num is exist - process it [10:38:11]SAM_PROTO_GetFieldsCounters [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 13 00 00 [10:38:11]Write to MH i2c: E2 08 00 C5 0E 80 13 00 00 00 00 00 00 4F [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 62 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 62 00 C5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:11]wFMCommunicate OK [10:38:11]SAM_PROTO_GetFieldsCounters done [10:38:11]requested_item shift.num is exist - process it [10:38:11]requested_item shift.opened is exist - process it [10:38:11]req_shift_opened [10:38:11]FM_GetShiftState [10:38:11]SAM_PROTO_GetShiftState [10:38:11]wFMCommunicate request_size=4 [10:38:11]MH_SAM_APDU [10:38:11]CAPDU: 80 13 01 00 [10:38:11]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [10:38:11]Write i2c OK [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 [10:38:11]MH_I2C_Read... [10:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:11]Read from MH i2c: E2 0E 00 [10:38:11]MH_I2C_Read... [10:38:11]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 23 [10:38:11]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:38:11]wFMCommunicate OK [10:38:11]SAM_PROTO_GetShiftState done [10:38:11]FM_GetShiftState done [10:38:11]req_shift_opened done [10:38:11]requested_item shift.open_date is exist - process it [10:38:11]req_shift_open_date [10:38:11]req_shift_open_date done [10:38:11]produce_requested_data done [10:38:11]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82336,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:38:11]process_action_free close_receipt [10:38:11]json_value_free [10:38:11]json_value_free done [10:38:11]process_json_proto returns [10:38:11]Send response to host [10:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82336,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:38:11]free response buf [10:38:11]execute_script done [10:38:11]execute_script returns [10:38:11]free content buf [10:38:11]Sock 9.Close socket [10:38:11]Sock 9.Thread stoped [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:36]accept exits with 8 [10:39:36]New connection [10:39:36]New thread 3067440484 created [10:39:36]Thread 3067297124 joined [10:39:36]Waiting for new connection... [10:39:36] Sock 8.Parse request [10:39:36]Sock 8.Check first char [10:39:36]Sock 8.First char is OK [10:39:36]request: POST /json_proto HTTP/1.0 [10:39:36]Method: POST [10:39:36]URL: /json_proto [10:39:36]Method is POST - this is cgi request [10:39:36]url: /json_proto [10:39:36]query_string will be loaded in cgi processing [10:39:36]execute_cgi json_proto POST (null) [10:39:36]execute_cgi path=json_proto method=POST [10:39:36]POST find Content-Length [10:39:36]Host: 172.17.44.67:8080 [10:39:36]Content-Length: 677 [10:39:36]Content-Type: application/json [10:39:36] [10:39:36]POST finish read [10:39:36]Found Content-Length = 677 [10:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:36]execute_script... [10:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:36]POST & json_proto [10:39:36]process_json_proto [10:39:36]json parsed OK: [10:39:36]protocol is kg_v1.0 [10:39:36]action value=close_receipt [10:39:36]process_action close_receipt [10:39:36]cmd_close_receipt [10:39:36]MH_GetDate [10:39:36]Write to MH i2c: F0 00 00 C7 0E C4 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: F0 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: F0 09 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: F0 09 00 C7 0E 00 EB 3A 12 67 F1 C7 6B 64 F2 [10:39:36]GetLastDocTimeStamp 1729247891 [10:39:36]current date 1729247979 [10:39:36]FM_GetShiftState [10:39:36]SAM_PROTO_GetShiftState [10:39:36]wFMCommunicate request_size=4 [10:39:36]MH_SAM_APDU [10:39:36]CAPDU: 80 13 01 00 [10:39:36]Write to MH i2c: E2 08 00 C8 0E 80 13 01 00 00 00 00 00 53 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:36]Read from MH i2c: E2 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 0E 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 0E 00 C8 0E 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 25 [10:39:36]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:39:36]wFMCommunicate OK [10:39:36]SAM_PROTO_GetShiftState done [10:39:36]FM_GetShiftState done [10:39:36]opened in 1729212319 [10:39:36]opened+sec_in_day 1729298719 [10:39:36]quantity*price = 22010 [10:39:36]sum+1 = 22011 [10:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 46 18.10.2024 10:39 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82337 ФПД: 12857519076716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103939&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82337&fm=12857519076716&tin=02508201610067®Number=0000000000091680&sum=22000 [10:39:37]StoreToDocumentArchive [10:39:37]shift 526 fd 82337 [10:39:37]save to /storage/0526/doc_00082337 [10:39:37]save last doc name /storage/0526/doc_00082337 to /storage/kkm_last_doc_name [10:39:37]save OK [10:39:37]Clear old archive folders... [10:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:37]tlvbuf is 00B2CBC0 [10:39:37]SAM_PROTO_ClearQueue [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 09 00 00 [10:39:37]Write to MH i2c: E2 08 00 D5 0E 80 09 00 00 00 00 00 00 55 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [10:39:37]RAPDU: 90 00 [10:39:37]wFMCommunicate OK [10:39:37]SAM_PROTO_ClearQueue done [10:39:37]KKMCreateOFDPacket [10:39:37]OFDProtocolAddRootSTLVToBuf [10:39:37]FM_MakeSignedData [10:39:37]FM_MakeSignedData [10:39:37]SAM_PROTO_SignData [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 0D 01 02 [10:39:37]Write to MH i2c: E2 08 00 D6 0E 80 0D 01 02 00 00 00 00 5D [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [10:39:37]RAPDU: 90 00 [10:39:37]wFMCommunicate OK [10:39:37]wFMCommunicate request_size=255 [10:39:37]MH_SAM_APDU [10:39: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 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EB 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A1 41 01 00 35 04 06 00 0B [10:39:37]Write to MH i2c: E2 02 01 D7 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 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EB 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A1 41 01 00 35 04 06 00 0B 00 00 16 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 D7 0E 00 90 00 59 [10:39:37]RAPDU: 90 00 [10:39:37]wFMCommunicate OK [10:39:37]wFMCommunicate request_size=10 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 0D 02 02 05 B1 9F DB 75 6C [10:39:37]Write to MH i2c: E2 0D 00 D8 0E 80 0D 02 02 05 00 B1 9F DB 75 6C 00 00 76 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [10:39:37]RAPDU: 90 00 [10:39:37]wFMCommunicate OK [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 0D 03 02 [10:39:37]Write to MH i2c: E2 08 00 D9 0E 80 0D 03 02 00 00 00 00 62 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:37]Read from MH i2c: E2 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 0B 00 [10:39:37]MH_I2C_Read... [10:39:37]Read from MH i2c: E2 0B 00 D9 0E 00 94 5C 2F C3 A0 38 D0 1D 90 00 0A [10:39:37]RAPDU: 94 5C 2F C3 A0 38 D0 1D 90 00 [10:39:37]wFMCommunicate OK [10:39:37]SAM_PROTO_SignData done [10:39:37]FM_MakeSignedData done [10:39:37]CreateOFDProtocolMessage [10:39:37]wFMCommunicate request_size=4 [10:39:37]MH_SAM_APDU [10:39:37]CAPDU: 80 11 00 00 [10:39:37]Write to MH i2c: E2 08 00 DA 0E 80 11 00 00 00 00 00 00 62 [10:39:37]Write i2c OK [10:39:37]MH_I2C_Read... [10:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:38]Read from MH i2c: E2 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: E2 17 00 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: E2 17 00 DA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B4 [10:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:39:38]wFMCommunicate OK [10:39:38]CreateOFDProtocolMessage done [10:39:38]OFDSenderStorePacket 82337 [10:39:38]StoreOFDPacket docnum=82337 [10:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DC FA 07 01 CB 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 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EB 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A1 41 01 00 35 04 06 00 0B B1 9F DB 75 6C 94 5C 2F C3 A0 38 D0 1D [10:39:38]CheckFolder [10:39:38]dirname=/storage/ofd_packets [10:39:38]CheckFolder done [10:39:38]ProducePacketName [10:39:38]name=ofd_packets/00082337 [10:39:38]NVStorageSaveData ofd_packets/00082337 [10:39:38]File name is /storage/ofd_packets/00082337 [10:39:38]Write 301 bytes [10:39:38]NVStorageSaveData done [10:39:38]OFDSenderStorePacket done [10:39:38]KKMCreateOFDPacket done [10:39:38]NVStorageSaveData kkm_last_timestamp [10:39:38]File name is /storage/kkm_last_timestamp [10:39:38]Write 4 bytes [10:39:38]NVStorageSaveData done [10:39:38]ExternCall_PrintAddStr [10:39:38]wPrintStart [10:39:38]Write to MH i2c: 01 00 00 DB 0E E9 [10:39:38]Write i2c OK [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: 01 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: 01 07 00 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 FF 0F FE [10:39:38]RasterBufferAndPrint [10:39:38]line Счет N : (1)918834 [10:39:38]line ИНН: 02508201610067 [10:39:38]line Контрольно-Кассовый Чек [10:39:38]line ПРОДАЖА [10:39:38]line ТРК (МРК, ГНК) : 22 [10:39:38]line Товар: 2710124130 [10:39:38]line Аи-92-К-4 [10:39:38]line 3.290 * 66.90 [10:39:38]line = 220.10 [10:39:38]line НДС 12% НСП 1% [10:39:38]line > о реализуемом товаре [10:39:38]line ОКРУГЛЕНИЕ: -0.10 [10:39:38]line ИТОГО: 220.00 [10:39:38]line Внесено: 220.00 [10:39:38]line СДАЧА: 0.00 [10:39:38]line НСП 1% : 1.95 [10:39:38]line НДС 12% : 23.37 [10:39:38]line Наличными: 220.00 [10:39:38]line Безнал.: 0.00 [10:39:38]line Место: АЗС № 114 "Партнер Нефть" [10:39:38]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:39:38]line СНО: Общий режим [10:39:38]line Чек 46 18.10.2024 10:39 [10:39:38]line Смена: 526 ФФД: 1.0 [10:39:38]line ЗНМ: 0300000086 [10:39:38]line РНМ: 0000000000091680 [10:39:38]line Версия ККМ: 001 [10:39:38]line ФМ: 0000000000871843 [10:39:38]line ФД: 82337 [10:39:38]line ФПД: 12857519076716 [10:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T103939&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82337&fm=12857519076716&tin=02508201610067®Number=0000000000091680&sum=22000 [10:39:38]OFD Sender: Processing packet 82337 [packets to send 254, broken 253] [10:39:38]ProducePacketName [10:39:38]name=ofd_packets/00082337 [10:39:38]OFD Sender: To server: pG, [10:39:38]CommunicateWithHost lk.salyk.kg:30040 [10:39:38]ConnectInit lk.salyk.kg [10:39:38]written 0, free lines is 4095 [10:39:38]Connected sock=9 [10:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DC FA 07 01 CB 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 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EB 3A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A1 41 01 00 35 04 06 00 0B B1 9F DB 75 6C 94 5C 2F C3 A0 38 D0 1D [10:39:38]Write to MH i2c: 01 00 00 06 0F 15 [10:39:38]Write i2c OK [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: 01 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: 01 07 00 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: 01 07 00 06 0F 00 00 00 00 00 D9 0C 01 [10:39:38]RasterBufferAndPrint [10:39:38]line [10:39:38]line [10:39:38]line [10:39:38]line [10:39:38]line [10:39:38]written 0, free lines is 3296 [10:39:38]MH_Cut [10:39:38]Write to MH i2c: D1 01 00 0D 0F 01 EE [10:39:38]Write i2c OK [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: D1 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: D1 01 00 [10:39:38]MH_I2C_Read... [10:39:38]Read from MH i2c: D1 01 00 0D 0F 00 ED [10:39:38]Write to MH i2c: 01 00 00 0E 0F 1D [10:39:38]Write i2c OK [10:39:38]MH_I2C_Read... [10:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6B C9 47 00 21 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A1 41 01 00 F4 03 04 00 26 E0 11 67 B6 04 01 00 00 A9 98 65 7A D1 88 7D 40 [10:39:39]CommunicateWithHost err = 0 [10:39:39]CheckOFDResponse [10:39:39]1017 (14) - 77093643461234 [10:39:39]1041 (16) - 0000000000871843 [10:39:39]1040 (4) - 82337 [10:39:39]1012 (4) - 18.10.2024 04:12 [10:39:39]1206 (1) - 0 [10:39:39]OFD Sender: Remove packet 82337 [10:39:39]ProducePacketName [10:39:39]name=ofd_packets/00082337 [10:39:39]NVStorageDeleteData [10:39:39]*** Cut start [10:39:39]*** Partial cut [10:39:39]*** CUTSNS_PIN = 1 [10:39:39]*** CUTSNS_PIN = 0 [10:39:39]OFD Sender: No OFD packet to send [10:39:39]*** Brake cut motor [10:39:40]Read from MH i2c: 01 [10:39:40]MH_I2C_Read... [10:39:40]*** Stop cut motor [10:39:40]*** Cut end [10:39:40]Read from MH i2c: 01 07 00 [10:39:40]MH_I2C_Read... [10:39:40]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 FF 0F 32 [10:39:40]process_action close_receipt done [10:39:40]requested_data is exist [10:39:40]produce_requested_data [10:39:40]requested_item fm.sn is exist - process it [10:39:40]wFMCommunicate request_size=4 [10:39:40]MH_SAM_APDU [10:39:40]CAPDU: 80 11 00 00 [10:39:40]Write to MH i2c: E2 08 00 0F 0F 80 11 00 00 00 00 00 00 98 [10:39:40]Write i2c OK [10:39:40]MH_I2C_Read... [10:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:40]Read from MH i2c: E2 [10:39:40]MH_I2C_Read... [10:39:40]Read from MH i2c: E2 17 00 [10:39:40]MH_I2C_Read... [10:39:40]Read from MH i2c: E2 17 00 0F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EA [10:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:39:40]wFMCommunicate OK [10:39:40]requested_item fd.num is exist - process it [10:39:40]SAM_PROTO_GetFieldsCounters [10:39:40]wFMCommunicate request_size=4 [10:39:40]MH_SAM_APDU [10:39:40]CAPDU: 80 13 00 00 [10:39:40]Write to MH i2c: E2 08 00 10 0F 80 13 00 00 00 00 00 00 9B [10:39:40]Write i2c OK [10:39:40]MH_I2C_Read... [10:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:40]Read from MH i2c: E2 [10:39:40]MH_I2C_Read... [10:39:40]Read from MH i2c: E2 62 00 [10:39:40]MH_I2C_Read... [10:39:40]Read from MH i2c: E2 62 00 10 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:40]wFMCommunicate OK [10:39:40]SAM_PROTO_GetFieldsCounters done [10:39:40]requested_item shift.num is exist - process it [10:39:40]requested_item shift.opened is exist - process it [10:39:40]req_shift_opened [10:39:40]FM_GetShiftState [10:39:40]SAM_PROTO_GetShiftState [10:39:40]wFMCommunicate request_size=4 [10:39:40]MH_SAM_APDU [10:39:40]CAPDU: 80 13 01 00 [10:39:40]Write to MH i2c: E2 08 00 11 0F 80 13 01 00 00 00 00 00 9D [10:39:40]Write i2c OK [10:39:40]MH_I2C_Read... [10:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:40]Read from MH i2c: E2 [10:39:40]MH_I2C_Read... [10:39:40]Read from MH i2c: E2 0E 00 [10:39:40]MH_I2C_Read... [10:39:40]Read from MH i2c: E2 0E 00 11 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6F [10:39:40]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:39:40]wFMCommunicate OK [10:39:40]SAM_PROTO_GetShiftState done [10:39:40]FM_GetShiftState done [10:39:40]req_shift_opened done [10:39:40]requested_item shift.open_date is exist - process it [10:39:40]req_shift_open_date [10:39:40]req_shift_open_date done [10:39:40]produce_requested_data done [10:39:40]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82337,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:39:40]process_action_free close_receipt [10:39:40]json_value_free [10:39:40]json_value_free done [10:39:40]process_json_proto returns [10:39:40]Send response to host [10:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82337,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:39:40]free response buf [10:39:40]execute_script done [10:39:40]execute_script returns [10:39:40]free content buf [10:39:40]Sock 8.Close socket [10:39:40]Sock 8.Thread stoped [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41: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:38]recv_with_timeout no data received [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:02]accept exits with 10 [10:43:02]New connection [10:43:02]New thread 3067297124 created [10:43:02]Thread 3067440484 joined [10:43:02]Waiting for new connection... [10:43:02] Sock 10.Parse request [10:43:02]Sock 10.Check first char [10:43:02]Sock 10.First char is OK [10:43:02]request: POST /json_proto HTTP/1.0 [10:43:02]Method: POST [10:43:02]URL: /json_proto [10:43:02]Method is POST - this is cgi request [10:43:02]url: /json_proto [10:43:02]query_string will be loaded in cgi processing [10:43:02]execute_cgi json_proto POST (null) [10:43:02]execute_cgi path=json_proto method=POST [10:43:02]POST find Content-Length [10:43:02]Host: 172.17.44.67:8080 [10:43:02]Content-Length: 803 [10:43:02]Content-Type: application/json [10:43:02] [10:43:02]POST finish read [10:43:02]Found Content-Length = 803 [10:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918835", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:02]execute_script... [10:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918835", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:02]POST & json_proto [10:43:02]process_json_proto [10:43:02]json parsed OK: [10:43:02]protocol is kg_v1.0 [10:43:02]action value=close_receipt [10:43:02]process_action close_receipt [10:43:02]cmd_close_receipt [10:43:02]MH_GetDate [10:43:02]Write to MH i2c: F0 00 00 12 0F 10 [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: F0 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: F0 09 00 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: F0 09 00 12 0F 00 BA 3B 12 67 F1 C7 6B 64 0E [10:43:02]GetLastDocTimeStamp 1729247979 [10:43:02]current date 1729248186 [10:43:02]FM_GetShiftState [10:43:02]SAM_PROTO_GetShiftState [10:43:02]wFMCommunicate request_size=4 [10:43:02]MH_SAM_APDU [10:43:02]CAPDU: 80 13 01 00 [10:43:02]Write to MH i2c: E2 08 00 13 0F 80 13 01 00 00 00 00 00 9F [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:02]Read from MH i2c: E2 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: E2 0E 00 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: E2 0E 00 13 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 71 [10:43:02]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:43:02]wFMCommunicate OK [10:43:02]SAM_PROTO_GetShiftState done [10:43:02]FM_GetShiftState done [10:43:02]opened in 1729212319 [10:43:02]opened+sec_in_day 1729298719 [10:43:02]quantity*price = 200043 [10:43:02]sum+1 = 200044 [10:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 47 18.10.2024 10:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82338 ФПД: 113946243332340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T104306&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82338&fm=113946243332340&tin=02508201610067®Number=0000000000091680&sum=200043 [10:43:04]StoreToDocumentArchive [10:43:04]shift 526 fd 82338 [10:43:04]save to /storage/0526/doc_00082338 [10:43:04]save last doc name /storage/0526/doc_00082338 to /storage/kkm_last_doc_name [10:43:04]save OK [10:43:04]Clear old archive folders... [10:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:04]tlvbuf is 00B24690 [10:43:04]SAM_PROTO_ClearQueue [10:43:04]wFMCommunicate request_size=4 [10:43:04]MH_SAM_APDU [10:43:04]CAPDU: 80 09 00 00 [10:43:04]Write to MH i2c: E2 08 00 20 0F 80 09 00 00 00 00 00 00 A1 [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:04]Read from MH i2c: E2 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [10:43:04]RAPDU: 90 00 [10:43:04]wFMCommunicate OK [10:43:04]SAM_PROTO_ClearQueue done [10:43:04]KKMCreateOFDPacket [10:43:04]OFDProtocolAddRootSTLVToBuf [10:43:04]FM_MakeSignedData [10:43:04]FM_MakeSignedData [10:43:04]SAM_PROTO_SignData [10:43:04]wFMCommunicate request_size=4 [10:43:04]MH_SAM_APDU [10:43:04]CAPDU: 80 0D 01 02 [10:43:04]Write to MH i2c: E2 08 00 21 0F 80 0D 01 02 00 00 00 00 A9 [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:04]Read from MH i2c: E2 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 21 0F 00 90 00 A4 [10:43:04]RAPDU: 90 00 [10:43:04]wFMCommunicate OK [10:43:04]wFMCommunicate request_size=255 [10:43:04]MH_SAM_APDU [10:43: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 3B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 41 01 00 35 04 06 00 67 [10:43:04]Write to MH i2c: E2 02 01 22 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 3B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 41 01 00 35 04 06 00 67 00 00 2C [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:04]Read from MH i2c: E2 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [10:43:04]RAPDU: 90 00 [10:43:04]wFMCommunicate OK [10:43:04]wFMCommunicate request_size=10 [10:43:04]MH_SAM_APDU [10:43:04]CAPDU: 80 0D 02 02 05 A2 2D 5B 78 F4 [10:43:04]Write to MH i2c: E2 0D 00 23 0F 80 0D 02 02 05 00 A2 2D 5B 78 F4 00 00 4C [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:04]Read from MH i2c: E2 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 03 00 23 0F 00 90 00 A6 [10:43:04]RAPDU: 90 00 [10:43:04]wFMCommunicate OK [10:43:04]wFMCommunicate request_size=4 [10:43:04]MH_SAM_APDU [10:43:04]CAPDU: 80 0D 03 02 [10:43:04]Write to MH i2c: E2 08 00 24 0F 80 0D 03 02 00 00 00 00 AE [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:04]Read from MH i2c: E2 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 0B 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 0B 00 24 0F 00 4C A5 8C 0A 8B EC A7 61 90 00 B5 [10:43:04]RAPDU: 4C A5 8C 0A 8B EC A7 61 90 00 [10:43:04]wFMCommunicate OK [10:43:04]SAM_PROTO_SignData done [10:43:04]FM_MakeSignedData done [10:43:04]CreateOFDProtocolMessage [10:43:04]wFMCommunicate request_size=4 [10:43:04]MH_SAM_APDU [10:43:04]CAPDU: 80 11 00 00 [10:43:04]Write to MH i2c: E2 08 00 25 0F 80 11 00 00 00 00 00 00 AE [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:04]Read from MH i2c: E2 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 17 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: E2 17 00 25 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 00 [10:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:43:04]wFMCommunicate OK [10:43:04]CreateOFDProtocolMessage done [10:43:04]OFDSenderStorePacket 82338 [10:43:04]StoreOFDPacket docnum=82338 [10:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 FA EA 07 01 1E 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 3B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 41 01 00 35 04 06 00 67 A2 2D 5B 78 F4 4C A5 8C 0A 8B EC A7 61 [10:43:04]CheckFolder [10:43:04]dirname=/storage/ofd_packets [10:43:04]CheckFolder done [10:43:04]ProducePacketName [10:43:04]name=ofd_packets/00082338 [10:43:04]NVStorageSaveData ofd_packets/00082338 [10:43:04]File name is /storage/ofd_packets/00082338 [10:43:04]Write 301 bytes [10:43:04]NVStorageSaveData done [10:43:04]OFDSenderStorePacket done [10:43:04]KKMCreateOFDPacket done [10:43:04]NVStorageSaveData kkm_last_timestamp [10:43:04]File name is /storage/kkm_last_timestamp [10:43:04]Write 4 bytes [10:43:04]NVStorageSaveData done [10:43:04]ExternCall_PrintAddStr [10:43:04]wPrintStart [10:43:04]Write to MH i2c: 01 00 00 26 0F 35 [10:43:04]Write i2c OK [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: 01 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: 01 07 00 [10:43:04]MH_I2C_Read... [10:43:04]Read from MH i2c: 01 07 00 26 0F 00 00 00 00 00 FF 0F 4A [10:43:04]RasterBufferAndPrint [10:43:04]line Счет N : (1)918835 [10:43:04]line ИНН: 02508201610067 [10:43:04]line Контрольно-Кассовый Чек [10:43:04]line ПРОДАЖА [10:43:04]line ТРК (МРК, ГНК) : 12 [10:43:04]line Товар: 2710124500 [10:43:04]line Аи-95-К-5 [10:43:04]line 26.960 * 74.20 [10:43:04]line = 2000.43 [10:43:04]line НДС 12% НСП 1% [10:43:04]line > о реализуемом товаре [10:43:04]line ИТОГО: 2000.43 [10:43:04]line НСП 1% : 17.70 [10:43:04]line НДС 12% : 212.43 [10:43:04]line Наличными: 0.00 [10:43:04]line Безнал.: 2000.43 [10:43:04]line Место: АЗС № 114 "Партнер Нефть" [10:43:04]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:43:04]line СНО: Общий режим [10:43:04]line Чек 47 18.10.2024 10:43 [10:43:04]line Смена: 526 ФФД: 1.0 [10:43:04]line ЗНМ: 0300000086 [10:43:04]line РНМ: 0000000000091680 [10:43:04]line Версия ККМ: 001 [10:43:04]line Платежная система: O! деньги [10:43:04]line ФМ: 0000000000871843 [10:43:04]line ФД: 82338 [10:43:04]line ФПД: 113946243332340 [10:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T104306&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82338&fm=113946243332340&tin=02508201610067®Number=0000000000091680&sum=200043 [10:43:04]OFD Sender: Processing packet 82338 [packets to send 254, broken 253] [10:43:04]ProducePacketName [10:43:04]name=ofd_packets/00082338 [10:43:04]OFD Sender: To server: pG, [10:43:04]CommunicateWithHost lk.salyk.kg:30040 [10:43:04]ConnectInit lk.salyk.kg [10:43:04]written 0, free lines is 4095 [10:43:05]Write to MH i2c: 01 00 00 50 0F 5F [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 50 0F 00 00 00 00 00 EA 0C 5C [10:43:05]RasterBufferAndPrint [10:43:05]line [10:43:05]line [10:43:05]line [10:43:05]line [10:43:05]line [10:43:05]written 0, free lines is 3312 [10:43:05]MH_Cut [10:43:05]Write to MH i2c: D1 01 00 57 0F 01 38 [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: D1 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: D1 01 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: D1 01 00 57 0F 00 37 [10:43:05]Write to MH i2c: 01 00 00 58 0F 67 [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]*** Cut start [10:43:05]*** Partial cut [10:43:05]*** CUTSNS_PIN = 1 [10:43:05]*** CUTSNS_PIN = 0 [10:43:06]*** Brake cut motor [10:43:06]Read from MH i2c: 01 [10:43:06]MH_I2C_Read... [10:43:06]*** Stop cut motor [10:43:06]*** Cut end [10:43:06]Read from MH i2c: 01 07 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: 01 07 00 58 0F 00 00 00 00 00 FF 0F 7C [10:43:06]process_action close_receipt done [10:43:06]requested_data is exist [10:43:06]produce_requested_data [10:43:06]requested_item fm.sn is exist - process it [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 11 00 00 [10:43:06]Write to MH i2c: E2 08 00 59 0F 80 11 00 00 00 00 00 00 E2 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 17 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 17 00 59 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 34 [10:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:43:06]wFMCommunicate OK [10:43:06]requested_item fd.num is exist - process it [10:43:06]SAM_PROTO_GetFieldsCounters [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 13 00 00 [10:43:06]Write to MH i2c: E2 08 00 5A 0F 80 13 00 00 00 00 00 00 E5 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 62 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 62 00 5A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:06]wFMCommunicate OK [10:43:06]SAM_PROTO_GetFieldsCounters done [10:43:06]requested_item shift.num is exist - process it [10:43:06]requested_item shift.opened is exist - process it [10:43:06]req_shift_opened [10:43:06]FM_GetShiftState [10:43:06]SAM_PROTO_GetShiftState [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 13 01 00 [10:43:06]Write to MH i2c: E2 08 00 5B 0F 80 13 01 00 00 00 00 00 E7 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 5B 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B9 [10:43:06]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:43:06]wFMCommunicate OK [10:43:06]SAM_PROTO_GetShiftState done [10:43:06]FM_GetShiftState done [10:43:06]req_shift_opened done [10:43:06]requested_item shift.open_date is exist - process it [10:43:06]req_shift_open_date [10:43:06]req_shift_open_date done [10:43:06]produce_requested_data done [10:43:06]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82338,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:43:06]process_action_free close_receipt [10:43:06]json_value_free [10:43:06]json_value_free done [10:43:06]process_json_proto returns [10:43:06]Send response to host [10:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82338,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:43:06]free response buf [10:43:06]execute_script done [10:43:06]execute_script returns [10:43:06]free content buf [10:43:06]Sock 10.Close socket [10:43:06]Sock 10.Thread stoped [10:43:07]Connected sock=11 [10: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 31 38 34 33 0F 01 00 00 FA EA 07 01 1E 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 3B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 41 01 00 35 04 06 00 67 A2 2D 5B 78 F4 4C A5 8C 0A 8B EC A7 61 [10:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3E 06 47 00 37 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A2 41 01 00 F4 03 04 00 F7 E0 11 67 B6 04 01 00 00 05 36 CE F9 BD B8 00 FF [10:43:09]CommunicateWithHost err = 0 [10:43:09]CheckOFDResponse [10:43:09]1017 (14) - 77093643461234 [10:43:09]1041 (16) - 0000000000871843 [10:43:09]1040 (4) - 82338 [10:43:09]1012 (4) - 18.10.2024 04:15 [10:43:09]1206 (1) - 0 [10:43:09]OFD Sender: Remove packet 82338 [10:43:09]ProducePacketName [10:43:09]name=ofd_packets/00082338 [10:43:09]NVStorageDeleteData [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:16]recv_with_timeout no data received [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:31]recv_with_timeout no data received [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]recv_with_timeout no data received [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:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:24]recv_with_timeout no data received [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:47]recv_with_timeout no data received [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]recv_with_timeout no data received [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:14]recv_with_timeout no data received [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [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]accept exits with 9 [10:56:00]New connection [10:56:00]New thread 3067440484 created [10:56:00]Thread 3067297124 joined [10:56:00]Waiting for new connection... [10:56:00] Sock 9.Parse request [10:56:00]Sock 9.Check first char [10:56:00]Sock 9.First char is OK [10:56:00]request: POST /json_proto HTTP/1.0 [10:56:00]Method: POST [10:56:00]URL: /json_proto [10:56:00]Method is POST - this is cgi request [10:56:00]url: /json_proto [10:56:00]query_string will be loaded in cgi processing [10:56:00]execute_cgi json_proto POST (null) [10:56:00]execute_cgi path=json_proto method=POST [10:56:00]POST find Content-Length [10:56:00]Host: 172.17.44.67:8080 [10:56:00]Content-Length: 677 [10:56:00]Content-Type: application/json [10:56:00] [10:56:00]POST finish read [10:56:00]Found Content-Length = 677 [10:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:00]execute_script... [10:56: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)918836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:00]POST & json_proto [10:56:00]process_json_proto [10:56:00]json parsed OK: [10:56:00]protocol is kg_v1.0 [10:56:00]action value=close_receipt [10:56:00]process_action close_receipt [10:56:00]cmd_close_receipt [10:56:00]MH_GetDate [10:56:00]Write to MH i2c: F0 00 00 5C 0F 5A [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: F0 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: F0 09 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: F0 09 00 5C 0F 00 C3 3E 12 67 F1 C7 6B 64 64 [10:56:00]GetLastDocTimeStamp 1729248186 [10:56:00]current date 1729248963 [10:56:00]FM_GetShiftState [10:56:00]SAM_PROTO_GetShiftState [10:56:00]wFMCommunicate request_size=4 [10:56:00]MH_SAM_APDU [10:56:00]CAPDU: 80 13 01 00 [10:56:00]Write to MH i2c: E2 08 00 5D 0F 80 13 01 00 00 00 00 00 E9 [10:56:00]Write i2c OK [10:56:00]MH_I2C_Read... [10:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:00]Read from MH i2c: E2 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 0E 00 [10:56:00]MH_I2C_Read... [10:56:00]Read from MH i2c: E2 0E 00 5D 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 BB [10:56:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:56:00]wFMCommunicate OK [10:56:00]SAM_PROTO_GetShiftState done [10:56:00]FM_GetShiftState done [10:56:00]opened in 1729212319 [10:56:00]opened+sec_in_day 1729298719 [10:56:00]quantity*price = 50041 [10:56:00]sum+1 = 50042 [10:56:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 48 18.10.2024 10:56 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82339 ФПД: 172492288664002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T105603&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82339&fm=172492288664002&tin=02508201610067®Number=0000000000091680&sum=50000 [10:56:01]StoreToDocumentArchive [10:56:01]shift 526 fd 82339 [10:56:01]save to /storage/0526/doc_00082339 [10:56:01]save last doc name /storage/0526/doc_00082339 to /storage/kkm_last_doc_name [10:56:01]save OK [10:56:01]Clear old archive folders... [10:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:01]tlvbuf is 00B2CBD0 [10:56:01]SAM_PROTO_ClearQueue [10:56:01]wFMCommunicate request_size=4 [10:56:01]MH_SAM_APDU [10:56:01]CAPDU: 80 09 00 00 [10:56:01]Write to MH i2c: E2 08 00 6A 0F 80 09 00 00 00 00 00 00 EB [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:01]Read from MH i2c: E2 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 6A 0F 00 90 00 ED [10:56:01]RAPDU: 90 00 [10:56:01]wFMCommunicate OK [10:56:01]SAM_PROTO_ClearQueue done [10:56:01]KKMCreateOFDPacket [10:56:01]OFDProtocolAddRootSTLVToBuf [10:56:01]FM_MakeSignedData [10:56:01]FM_MakeSignedData [10:56:01]SAM_PROTO_SignData [10:56:01]wFMCommunicate request_size=4 [10:56:01]MH_SAM_APDU [10:56:01]CAPDU: 80 0D 01 02 [10:56:01]Write to MH i2c: E2 08 00 6B 0F 80 0D 01 02 00 00 00 00 F3 [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:01]Read from MH i2c: E2 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 6B 0F 00 90 00 EE [10:56:01]RAPDU: 90 00 [10:56:01]wFMCommunicate OK [10:56:01]wFMCommunicate request_size=255 [10:56:01]MH_SAM_APDU [10:56: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C3 3E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 41 01 00 35 04 06 00 9C [10:56:01]Write to MH i2c: E2 02 01 6C 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C3 3E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 41 01 00 35 04 06 00 9C 00 00 BA [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:01]Read from MH i2c: E2 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 6C 0F 00 90 00 EF [10:56:01]RAPDU: 90 00 [10:56:01]wFMCommunicate OK [10:56:01]wFMCommunicate request_size=10 [10:56:01]MH_SAM_APDU [10:56:01]CAPDU: 80 0D 02 02 05 E1 7D 97 A1 C2 [10:56:01]Write to MH i2c: E2 0D 00 6D 0F 80 0D 02 02 05 00 E1 7D 97 A1 C2 00 00 58 [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:01]Read from MH i2c: E2 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 03 00 6D 0F 00 90 00 F0 [10:56:01]RAPDU: 90 00 [10:56:01]wFMCommunicate OK [10:56:01]wFMCommunicate request_size=4 [10:56:01]MH_SAM_APDU [10:56:01]CAPDU: 80 0D 03 02 [10:56:01]Write to MH i2c: E2 08 00 6E 0F 80 0D 03 02 00 00 00 00 F8 [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:01]Read from MH i2c: E2 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 0B 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 0B 00 6E 0F 00 D6 2E 84 05 0D 00 FE 9E 90 00 2F [10:56:01]RAPDU: D6 2E 84 05 0D 00 FE 9E 90 00 [10:56:01]wFMCommunicate OK [10:56:01]SAM_PROTO_SignData done [10:56:01]FM_MakeSignedData done [10:56:01]CreateOFDProtocolMessage [10:56:01]wFMCommunicate request_size=4 [10:56:01]MH_SAM_APDU [10:56:01]CAPDU: 80 11 00 00 [10:56:01]Write to MH i2c: E2 08 00 6F 0F 80 11 00 00 00 00 00 00 F8 [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:01]Read from MH i2c: E2 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 17 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: E2 17 00 6F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4A [10:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:56:01]wFMCommunicate OK [10:56:01]CreateOFDProtocolMessage done [10:56:01]OFDSenderStorePacket 82339 [10:56:01]StoreOFDPacket docnum=82339 [10:56:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 21 83 07 01 7C 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C3 3E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 41 01 00 35 04 06 00 9C E1 7D 97 A1 C2 D6 2E 84 05 0D 00 FE 9E [10:56:01]CheckFolder [10:56:01]dirname=/storage/ofd_packets [10:56:01]CheckFolder done [10:56:01]ProducePacketName [10:56:01]name=ofd_packets/00082339 [10:56:01]NVStorageSaveData ofd_packets/00082339 [10:56:01]File name is /storage/ofd_packets/00082339 [10:56:01]Write 301 bytes [10:56:01]NVStorageSaveData done [10:56:01]OFDSenderStorePacket done [10:56:01]KKMCreateOFDPacket done [10:56:01]NVStorageSaveData kkm_last_timestamp [10:56:01]File name is /storage/kkm_last_timestamp [10:56:01]Write 4 bytes [10:56:01]NVStorageSaveData done [10:56:01]ExternCall_PrintAddStr [10:56:01]wPrintStart [10:56:01]Write to MH i2c: 01 00 00 70 0F 7F [10:56:01]Write i2c OK [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: 01 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: 01 07 00 [10:56:01]MH_I2C_Read... [10:56:01]Read from MH i2c: 01 07 00 70 0F 00 00 00 00 00 FF 0F 94 [10:56:01]RasterBufferAndPrint [10:56:01]line Счет N : (1)918836 [10:56:01]line ИНН: 02508201610067 [10:56:01]line Контрольно-Кассовый Чек [10:56:01]line ПРОДАЖА [10:56:01]line ТРК (МРК, ГНК) : 22 [10:56:01]line Товар: 2710124130 [10:56:01]line Аи-92-К-4 [10:56:01]line 7.480 * 66.90 [10:56:01]line = 500.41 [10:56:01]line НДС 12% НСП 1% [10:56:01]line > о реализуемом товаре [10:56:01]line ОКРУГЛЕНИЕ: -0.41 [10:56:01]line ИТОГО: 500.00 [10:56:01]line Внесено: 500.00 [10:56:01]line СДАЧА: 0.00 [10:56:01]line НСП 1% : 4.43 [10:56:01]line НДС 12% : 53.14 [10:56:01]line Наличными: 500.00 [10:56:01]line Безнал.: 0.00 [10:56:01]line Место: АЗС № 114 "Партнер Нефть" [10:56:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:56:01]line СНО: Общий режим [10:56:01]line Чек 48 18.10.2024 10:56 [10:56:01]line Смена: 526 ФФД: 1.0 [10:56:01]line ЗНМ: 0300000086 [10:56:01]line РНМ: 0000000000091680 [10:56:01]line Версия ККМ: 001 [10:56:01]line ФМ: 0000000000871843 [10:56:01]line ФД: 82339 [10:56:01]line ФПД: 172492288664002 [10:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T105603&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82339&fm=172492288664002&tin=02508201610067®Number=0000000000091680&sum=50000 [10:56:02]OFD Sender: Processing packet 82339 [packets to send 254, broken 253] [10:56:02]ProducePacketName [10:56:02]name=ofd_packets/00082339 [10:56:02]OFD Sender: To server: pG, [10:56:02]CommunicateWithHost lk.salyk.kg:30040 [10:56:02]ConnectInit lk.salyk.kg [10:56:02]written 0, free lines is 4095 [10:56:02]Write to MH i2c: 01 00 00 9B 0F AA [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: 01 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: 01 07 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: 01 07 00 9B 0F 00 00 00 00 00 D9 0C 96 [10:56:02]RasterBufferAndPrint [10:56:02]line [10:56:02]line [10:56:02]line [10:56:02]line [10:56:02]line [10:56:02]written 0, free lines is 3296 [10:56:02]MH_Cut [10:56:02]Write to MH i2c: D1 01 00 A2 0F 01 83 [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: D1 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: D1 01 00 [10:56:02]MH_I2C_Read... [10:56:02]Read from MH i2c: D1 01 00 A2 0F 00 82 [10:56:02]Write to MH i2c: 01 00 00 A3 0F B2 [10:56:02]Write i2c OK [10:56:02]MH_I2C_Read... [10:56:03]Connected sock=11 [10:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 21 83 07 01 7C 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 C3 3E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 41 01 00 35 04 06 00 9C E1 7D 97 A1 C2 D6 2E 84 05 0D 00 FE 9E [10:56:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 89 D4 47 00 7B A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A3 41 01 00 F4 03 04 00 FE E3 11 67 B6 04 01 00 00 64 0E F4 93 21 F7 3F D7 [10:56:03]CommunicateWithHost err = 0 [10:56:03]CheckOFDResponse [10:56:03]1017 (14) - 77093643461234 [10:56:03]1041 (16) - 0000000000871843 [10:56:03]1040 (4) - 82339 [10:56:03]1012 (4) - 18.10.2024 04:28 [10:56:03]1206 (1) - 0 [10:56:03]OFD Sender: Remove packet 82339 [10:56:03]ProducePacketName [10:56:03]name=ofd_packets/00082339 [10:56:03]NVStorageDeleteData [10:56:03]*** Cut start [10:56:03]*** Partial cut [10:56:03]*** CUTSNS_PIN = 1 [10:56:03]*** CUTSNS_PIN = 0 [10:56:03]*** Brake cut motor [10:56:03]OFD Sender: No OFD packet to send [10:56:04]Read from MH i2c: 01 [10:56:04]MH_I2C_Read... [10:56:04]*** Stop cut motor [10:56:04]*** Cut end [10:56:04]Read from MH i2c: 01 07 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 FF 0F C7 [10:56:04]process_action close_receipt done [10:56:04]requested_data is exist [10:56:04]produce_requested_data [10:56:04]requested_item fm.sn is exist - process it [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 11 00 00 [10:56:04]Write to MH i2c: E2 08 00 A4 0F 80 11 00 00 00 00 00 00 2D [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 17 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 17 00 A4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7F [10:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:56:04]wFMCommunicate OK [10:56:04]requested_item fd.num is exist - process it [10:56:04]SAM_PROTO_GetFieldsCounters [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 13 00 00 [10:56:04]Write to MH i2c: E2 08 00 A5 0F 80 13 00 00 00 00 00 00 30 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 62 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 62 00 A5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:04]wFMCommunicate OK [10:56:04]SAM_PROTO_GetFieldsCounters done [10:56:04]requested_item shift.num is exist - process it [10:56:04]requested_item shift.opened is exist - process it [10:56:04]req_shift_opened [10:56:04]FM_GetShiftState [10:56:04]SAM_PROTO_GetShiftState [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 13 01 00 [10:56:04]Write to MH i2c: E2 08 00 A6 0F 80 13 01 00 00 00 00 00 32 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 0E 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 0E 00 A6 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 04 [10:56:04]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:56:04]wFMCommunicate OK [10:56:04]SAM_PROTO_GetShiftState done [10:56:04]FM_GetShiftState done [10:56:04]req_shift_opened done [10:56:04]requested_item shift.open_date is exist - process it [10:56:04]req_shift_open_date [10:56:04]req_shift_open_date done [10:56:04]produce_requested_data done [10:56:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82339,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:56:04]process_action_free close_receipt [10:56:04]json_value_free [10:56:04]json_value_free done [10:56:04]process_json_proto returns [10:56:04]Send response to host [10:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82339,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:56:04]free response buf [10:56:04]execute_script done [10:56:04]execute_script returns [10:56:04]free content buf [10:56:04]Sock 9.Close socket [10:56:04]Sock 9.Thread stoped [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:31]recv_with_timeout no data received [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:20]accept exits with 8 [10:57:20]New connection [10:57:20]New thread 3067297124 created [10:57:20]Thread 3067440484 joined [10:57:20]Waiting for new connection... [10:57:20] Sock 8.Parse request [10:57:20]Sock 8.Check first char [10:57:20]Sock 8.First char is OK [10:57:20]request: POST /json_proto HTTP/1.0 [10:57:20]Method: POST [10:57:20]URL: /json_proto [10:57:20]Method is POST - this is cgi request [10:57:20]url: /json_proto [10:57:20]query_string will be loaded in cgi processing [10:57:20]execute_cgi json_proto POST (null) [10:57:20]execute_cgi path=json_proto method=POST [10:57:20]POST find Content-Length [10:57:20]Host: 172.17.44.67:8080 [10:57:20]Content-Length: 678 [10:57:20]Content-Type: application/json [10:57:20] [10:57:20]POST finish read [10:57:20]Found Content-Length = 678 [10:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:20]execute_script... [10:57: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)918837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:20]POST & json_proto [10:57:20]process_json_proto [10:57:20]json parsed OK: [10:57:20]protocol is kg_v1.0 [10:57:20]action value=close_receipt [10:57:20]process_action close_receipt [10:57:20]cmd_close_receipt [10:57:20]MH_GetDate [10:57:20]Write to MH i2c: F0 00 00 A7 0F A5 [10:57:20]Write i2c OK [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: F0 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: F0 09 00 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: F0 09 00 A7 0F 00 13 3F 12 67 F1 C7 6B 64 00 [10:57:20]GetLastDocTimeStamp 1729248963 [10:57:20]current date 1729249043 [10:57:20]FM_GetShiftState [10:57:20]SAM_PROTO_GetShiftState [10:57:20]wFMCommunicate request_size=4 [10:57:20]MH_SAM_APDU [10:57:20]CAPDU: 80 13 01 00 [10:57:20]Write to MH i2c: E2 08 00 A8 0F 80 13 01 00 00 00 00 00 34 [10:57:20]Write i2c OK [10:57:20]MH_I2C_Read... [10:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:20]Read from MH i2c: E2 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: E2 0E 00 [10:57:20]MH_I2C_Read... [10:57:20]Read from MH i2c: E2 0E 00 A8 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 06 [10:57:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:57:20]wFMCommunicate OK [10:57:20]SAM_PROTO_GetShiftState done [10:57:20]FM_GetShiftState done [10:57:20]opened in 1729212319 [10:57:20]opened+sec_in_day 1729298719 [10:57:20]quantity*price = 75061 [10:57:20]sum+1 = 75063 [10:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 49 18.10.2024 10:57 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82340 ФПД: 249833746212259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T105723&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82340&fm=249833746212259&tin=02508201610067®Number=0000000000091680&sum=75000 [10:57:21]StoreToDocumentArchive [10:57:21]shift 526 fd 82340 [10:57:21]save to /storage/0526/doc_00082340 [10:57:21]save last doc name /storage/0526/doc_00082340 to /storage/kkm_last_doc_name [10:57:21]save OK [10:57:21]Clear old archive folders... [10:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:21]tlvbuf is 00B257B0 [10:57:21]SAM_PROTO_ClearQueue [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 09 00 00 [10:57:21]Write to MH i2c: E2 08 00 B5 0F 80 09 00 00 00 00 00 00 36 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 B5 0F 00 90 00 38 [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]SAM_PROTO_ClearQueue done [10:57:21]KKMCreateOFDPacket [10:57:21]OFDProtocolAddRootSTLVToBuf [10:57:21]FM_MakeSignedData [10:57:21]FM_MakeSignedData [10:57:21]SAM_PROTO_SignData [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 01 02 [10:57:21]Write to MH i2c: E2 08 00 B6 0F 80 0D 01 02 00 00 00 00 3E [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 B6 0F 00 90 00 39 [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=255 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 3F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 41 01 00 35 04 06 00 E3 [10:57:21]Write to MH i2c: E2 02 01 B7 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 34 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 3F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 41 01 00 35 04 06 00 E3 00 00 C7 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=10 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 02 02 05 38 F3 B2 25 A3 [10:57:21]Write to MH i2c: E2 0D 00 B8 0F 80 0D 02 02 05 00 38 F3 B2 25 A3 00 00 F0 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 03 00 B8 0F 00 90 00 3B [10:57:21]RAPDU: 90 00 [10:57:21]wFMCommunicate OK [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 0D 03 02 [10:57:21]Write to MH i2c: E2 08 00 B9 0F 80 0D 03 02 00 00 00 00 43 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 0B 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 0B 00 B9 0F 00 78 1A 51 11 43 2E 1B C1 90 00 85 [10:57:21]RAPDU: 78 1A 51 11 43 2E 1B C1 90 00 [10:57:21]wFMCommunicate OK [10:57:21]SAM_PROTO_SignData done [10:57:21]FM_MakeSignedData done [10:57:21]CreateOFDProtocolMessage [10:57:21]wFMCommunicate request_size=4 [10:57:21]MH_SAM_APDU [10:57:21]CAPDU: 80 11 00 00 [10:57:21]Write to MH i2c: E2 08 00 BA 0F 80 11 00 00 00 00 00 00 43 [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:21]Read from MH i2c: E2 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 17 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: E2 17 00 BA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 95 [10:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:57:21]wFMCommunicate OK [10:57:21]CreateOFDProtocolMessage done [10:57:21]OFDSenderStorePacket 82340 [10:57:21]StoreOFDPacket docnum=82340 [10:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EB 4C 07 01 D0 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 34 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 3F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 41 01 00 35 04 06 00 E3 38 F3 B2 25 A3 78 1A 51 11 43 2E 1B C1 [10:57:21]CheckFolder [10:57:21]dirname=/storage/ofd_packets [10:57:21]CheckFolder done [10:57:21]ProducePacketName [10:57:21]name=ofd_packets/00082340 [10:57:21]NVStorageSaveData ofd_packets/00082340 [10:57:21]File name is /storage/ofd_packets/00082340 [10:57:21]Write 301 bytes [10:57:21]NVStorageSaveData done [10:57:21]OFDSenderStorePacket done [10:57:21]KKMCreateOFDPacket done [10:57:21]NVStorageSaveData kkm_last_timestamp [10:57:21]File name is /storage/kkm_last_timestamp [10:57:21]Write 4 bytes [10:57:21]NVStorageSaveData done [10:57:21]ExternCall_PrintAddStr [10:57:21]wPrintStart [10:57:21]Write to MH i2c: 01 00 00 BB 0F CA [10:57:21]Write i2c OK [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 07 00 [10:57:21]MH_I2C_Read... [10:57:21]Read from MH i2c: 01 07 00 BB 0F 00 00 00 00 00 FF 0F DF [10:57:21]RasterBufferAndPrint [10:57:21]line Счет N : (1)918837 [10:57:21]line ИНН: 02508201610067 [10:57:21]line Контрольно-Кассовый Чек [10:57:21]line ПРОДАЖА [10:57:21]line ТРК (МРК, ГНК) : 22 [10:57:21]line Товар: 2710124130 [10:57:21]line Аи-92-К-4 [10:57:21]line 11.220 * 66.90 [10:57:21]line = 750.62 [10:57:21]line НДС 12% НСП 1% [10:57:21]line > о реализуемом товаре [10:57:21]line ОКРУГЛЕНИЕ: -0.62 [10:57:21]line ИТОГО: 750.00 [10:57:21]line Внесено: 750.00 [10:57:21]line СДАЧА: 0.00 [10:57:21]line НСП 1% : 6.64 [10:57:21]line НДС 12% : 79.71 [10:57:21]line Наличными: 750.00 [10:57:21]line Безнал.: 0.00 [10:57:21]line Место: АЗС № 114 "Партнер Нефть" [10:57:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [10:57:21]line СНО: Общий режим [10:57:21]line Чек 49 18.10.2024 10:57 [10:57:21]line Смена: 526 ФФД: 1.0 [10:57:21]line ЗНМ: 0300000086 [10:57:21]line РНМ: 0000000000091680 [10:57:21]line Версия ККМ: 001 [10:57:21]line ФМ: 0000000000871843 [10:57:21]line ФД: 82340 [10:57:21]line ФПД: 249833746212259 [10:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T105723&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82340&fm=249833746212259&tin=02508201610067®Number=0000000000091680&sum=75000 [10:57:22]OFD Sender: Processing packet 82340 [packets to send 254, broken 253] [10:57:22]ProducePacketName [10:57:22]name=ofd_packets/00082340 [10:57:22]OFD Sender: To server: pG, [10:57:22]CommunicateWithHost lk.salyk.kg:30040 [10:57:22]ConnectInit lk.salyk.kg [10:57:22]written 0, free lines is 4095 [10:57:22]Connected sock=9 [10:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EB 4C 07 01 D0 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 34 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 3F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 41 01 00 35 04 06 00 E3 38 F3 B2 25 A3 78 1A 51 11 43 2E 1B C1 [10:57:22]Write to MH i2c: 01 00 00 E6 0F F5 [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 07 00 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 E0 0C E8 [10:57:22]RasterBufferAndPrint [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]line [10:57:22]written 0, free lines is 3302 [10:57:22]MH_Cut [10:57:22]Write to MH i2c: D1 01 00 ED 0F 01 CE [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 01 00 [10:57:22]MH_I2C_Read... [10:57:22]Read from MH i2c: D1 01 00 ED 0F 00 CD [10:57:22]Write to MH i2c: 01 00 00 EE 0F FD [10:57:22]Write i2c OK [10:57:22]MH_I2C_Read... [10:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B6 55 47 00 63 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A4 41 01 00 F4 03 04 00 4E E4 11 67 B6 04 01 00 00 3E 2C B9 DD F8 93 B4 19 [10:57:23]CommunicateWithHost err = 0 [10:57:23]CheckOFDResponse [10:57:23]1017 (14) - 77093643461234 [10:57:23]1041 (16) - 0000000000871843 [10:57:23]1040 (4) - 82340 [10:57:23]1012 (4) - 18.10.2024 04:30 [10:57:23]1206 (1) - 0 [10:57:23]OFD Sender: Remove packet 82340 [10:57:23]ProducePacketName [10:57:23]name=ofd_packets/00082340 [10:57:23]NVStorageDeleteData [10:57:23]*** Cut start [10:57:23]*** Partial cut [10:57:23]*** CUTSNS_PIN = 1 [10:57:23]*** CUTSNS_PIN = 0 [10:57:23]OFD Sender: No OFD packet to send [10:57:23]*** Brake cut motor [10:57:24]Read from MH i2c: 01 [10:57:24]MH_I2C_Read... [10:57:24]*** Stop cut motor [10:57:24]*** Cut end [10:57:24]Read from MH i2c: 01 07 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: 01 07 00 EE 0F 00 00 00 00 00 FF 0F 12 [10:57:24]process_action close_receipt done [10:57:24]requested_data is exist [10:57:24]produce_requested_data [10:57:24]requested_item fm.sn is exist - process it [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 11 00 00 [10:57:24]Write to MH i2c: E2 08 00 EF 0F 80 11 00 00 00 00 00 00 78 [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 17 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 17 00 EF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CA [10:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [10:57:24]wFMCommunicate OK [10:57:24]requested_item fd.num is exist - process it [10:57:24]SAM_PROTO_GetFieldsCounters [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 13 00 00 [10:57:24]Write to MH i2c: E2 08 00 F0 0F 80 13 00 00 00 00 00 00 7B [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 62 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 62 00 F0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [10:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_GetFieldsCounters done [10:57:24]requested_item shift.num is exist - process it [10:57:24]requested_item shift.opened is exist - process it [10:57:24]req_shift_opened [10:57:24]FM_GetShiftState [10:57:24]SAM_PROTO_GetShiftState [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 13 01 00 [10:57:24]Write to MH i2c: E2 08 00 F1 0F 80 13 01 00 00 00 00 00 7D [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:24]Read from MH i2c: E2 0E 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0E 00 F1 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4F [10:57:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_GetShiftState done [10:57:24]FM_GetShiftState done [10:57:24]req_shift_opened done [10:57:24]requested_item shift.open_date is exist - process it [10:57:24]req_shift_open_date [10:57:24]req_shift_open_date done [10:57:24]produce_requested_data done [10:57:24]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82340,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [10:57:24]process_action_free close_receipt [10:57:24]json_value_free [10:57:24]json_value_free done [10:57:24]process_json_proto returns [10:57:24]Send response to host [10:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82340,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [10:57:24]free response buf [10:57:24]execute_script done [10:57:24]execute_script returns [10:57:24]free content buf [10:57:24]Sock 8.Close socket [10:57:24]Sock 8.Thread stoped [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:47]recv_with_timeout no data received [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:20]recv_with_timeout no data received [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00: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:19]recv_with_timeout no data received [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]recv_with_timeout no data received [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:44]accept exits with 10 [11:16:44]New connection [11:16:44]New thread 3067440484 created [11:16:44]Thread 3067297124 joined [11:16:44]Waiting for new connection... [11:16:44] Sock 10.Parse request [11:16:44]Sock 10.Check first char [11:16:44]Sock 10.First char is OK [11:16:44]request: POST /json_proto HTTP/1.0 [11:16:44]Method: POST [11:16:44]URL: /json_proto [11:16:44]Method is POST - this is cgi request [11:16:44]url: /json_proto [11:16:44]query_string will be loaded in cgi processing [11:16:44]execute_cgi json_proto POST (null) [11:16:44]execute_cgi path=json_proto method=POST [11:16:44]POST find Content-Length [11:16:44]Host: 172.17.44.67:8080 [11:16:44]Content-Length: 806 [11:16:44]Content-Type: application/json [11:16:44] [11:16:44]POST finish read [11:16:44]Found Content-Length = 806 [11:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202674", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:44]execute_script... [11:16: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)918838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202674", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:44]POST & json_proto [11:16:44]process_json_proto [11:16:44]json parsed OK: [11:16:44]protocol is kg_v1.0 [11:16:44]action value=close_receipt [11:16:44]process_action close_receipt [11:16:44]cmd_close_receipt [11:16:44]MH_GetDate [11:16:44]Write to MH i2c: F0 00 00 F2 0F F0 [11:16:44]Write i2c OK [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 09 00 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 09 00 F2 0F 00 9F 43 12 67 F1 C7 6B 64 DB [11:16:44]GetLastDocTimeStamp 1729249043 [11:16:44]current date 1729250207 [11:16:44]FM_GetShiftState [11:16:44]SAM_PROTO_GetShiftState [11:16:44]wFMCommunicate request_size=4 [11:16:44]MH_SAM_APDU [11:16:44]CAPDU: 80 13 01 00 [11:16:44]Write to MH i2c: E2 08 00 F3 0F 80 13 01 00 00 00 00 00 7F [11:16:44]Write i2c OK [11:16:44]MH_I2C_Read... [11:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:44]Read from MH i2c: E2 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: E2 0E 00 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: E2 0E 00 F3 0F 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 51 [11:16:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:16:44]wFMCommunicate OK [11:16:44]SAM_PROTO_GetShiftState done [11:16:44]FM_GetShiftState done [11:16:44]opened in 1729212319 [11:16:44]opened+sec_in_day 1729298719 [11:16:44]quantity*price = 0 [11:16:44]sum+1 = 1 [11:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 50 18.10.2024 11:16 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202674 ФМ: 0000000000871843 ФД: 82341 ФПД: 63187075614939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111647&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82341&fm=63187075614939&tin=02508201610067®Number=0000000000091680&sum=0 [11:16:45]StoreToDocumentArchive [11:16:45]shift 526 fd 82341 [11:16:45]save to /storage/0526/doc_00082341 [11:16:45]save last doc name /storage/0526/doc_00082341 to /storage/kkm_last_doc_name [11:16:45]save OK [11:16:45]Clear old archive folders... [11:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:16:45]tlvbuf is 00B34AD0 [11:16:45]SAM_PROTO_ClearQueue [11:16:45]wFMCommunicate request_size=4 [11:16:45]MH_SAM_APDU [11:16:45]CAPDU: 80 09 00 00 [11:16:45]Write to MH i2c: E2 08 00 00 10 80 09 00 00 00 00 00 00 82 [11:16:45]Write i2c OK [11:16:45]MH_I2C_Read... [11:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:45]Read from MH i2c: E2 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 03 00 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [11:16:45]RAPDU: 90 00 [11:16:45]wFMCommunicate OK [11:16:45]SAM_PROTO_ClearQueue done [11:16:45]KKMCreateOFDPacket [11:16:45]OFDProtocolAddRootSTLVToBuf [11:16:45]FM_MakeSignedData [11:16:45]FM_MakeSignedData [11:16:45]SAM_PROTO_SignData [11:16:45]wFMCommunicate request_size=4 [11:16:45]MH_SAM_APDU [11:16:45]CAPDU: 80 0D 01 02 [11:16:45]Write to MH i2c: E2 08 00 01 10 80 0D 01 02 00 00 00 00 8A [11:16:45]Write i2c OK [11:16:45]MH_I2C_Read... [11:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:45]Read from MH i2c: E2 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 03 00 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 03 00 01 10 00 90 00 85 [11:16:45]RAPDU: 90 00 [11:16:45]wFMCommunicate OK [11:16:45]wFMCommunicate request_size=255 [11:16:45]MH_SAM_APDU [11:16:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9F 43 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 41 01 [11:16:45]Write to MH i2c: E2 02 01 02 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9F 43 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 41 01 00 00 B1 [11:16:45]Write i2c OK [11:16:45]MH_I2C_Read... [11:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:45]Read from MH i2c: E2 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 03 00 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [11:16:45]RAPDU: 90 00 [11:16:45]wFMCommunicate OK [11:16:45]wFMCommunicate request_size=16 [11:16:45]MH_SAM_APDU [11:16:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 39 77 E3 32 48 DB [11:16:45]Write to MH i2c: E2 13 00 03 10 80 0D 02 02 0B 00 00 35 04 06 00 39 77 E3 32 48 DB 00 00 CA [11:16:45]Write i2c OK [11:16:45]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 03 02 [11:16:46]Write to MH i2c: E2 08 00 04 10 80 0D 03 02 00 00 00 00 8F [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0B 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0B 00 04 10 00 C7 61 37 56 8A 37 4B EA 90 00 3B [11:16:46]RAPDU: C7 61 37 56 8A 37 4B EA 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_SignData done [11:16:46]FM_MakeSignedData done [11:16:46]CreateOFDProtocolMessage [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 11 00 00 [11:16:46]Write to MH i2c: E2 08 00 05 10 80 11 00 00 00 00 00 00 8F [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 17 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 17 00 05 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E1 [11:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:16:46]wFMCommunicate OK [11:16:46]CreateOFDProtocolMessage done [11:16:46]OFDSenderStorePacket 82341 [11:16:46]StoreOFDPacket docnum=82341 [11:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 AF 93 0D 01 94 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9F 43 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 41 01 00 35 04 06 00 39 77 E3 32 48 DB C7 61 37 56 8A 37 4B EA [11:16:46]CheckFolder [11:16:46]dirname=/storage/ofd_packets [11:16:46]CheckFolder done [11:16:46]ProducePacketName [11:16:46]name=ofd_packets/00082341 [11:16:46]NVStorageSaveData ofd_packets/00082341 [11:16:46]File name is /storage/ofd_packets/00082341 [11:16:46]Write 307 bytes [11:16:46]NVStorageSaveData done [11:16:46]OFDSenderStorePacket done [11:16:46]KKMCreateOFDPacket done [11:16:46]NVStorageSaveData kkm_last_timestamp [11:16:46]File name is /storage/kkm_last_timestamp [11:16:46]Write 4 bytes [11:16:46]NVStorageSaveData done [11:16:46]ExternCall_PrintAddStr [11:16:46]wPrintStart [11:16:46]Write to MH i2c: 01 00 00 06 10 16 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 06 10 00 00 00 00 00 FF 0F 2B [11:16:46]RasterBufferAndPrint [11:16:46]line Счет N : (1)918838 [11:16:46]line ИНН: 02508201610067 [11:16:46]line Контрольно-Кассовый Чек [11:16:46]line ПРОДАЖА [11:16:46]line ТРК (МРК, ГНК) : 21 [11:16:46]line Товар: 2710194800 [11:16:46]line D-Energy ДТ-К-2 [11:16:46]line 20.000 * 0.00 [11:16:46]line = 0.00 [11:16:46]line НДС 12% НСП 1% [11:16:46]line > о реализуемом товаре [11:16:46]line ИТОГО: 0.00 [11:16:46]line НСП 1% : 0.00 [11:16:46]line НДС 12% : 0.00 [11:16:46]line Наличными: 0.00 [11:16:46]line Безнал.: 0.00 [11:16:46]line Место: АЗС № 114 "Партнер Нефть" [11:16:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:16:46]line СНО: Общий режим [11:16:46]line Чек 50 18.10.2024 11:16 [11:16:46]line Смена: 526 ФФД: 1.0 [11:16:46]line ЗНМ: 0300000086 [11:16:46]line РНМ: 0000000000091680 [11:16:46]line Версия ККМ: 001 [11:16:46]line Талоны: Топливные Талоны [11:16:46]line 2202674 [11:16:46]line ФМ: 0000000000871843 [11:16:46]line ФД: 82341 [11:16:46]line ФПД: 63187075614939 [11:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111647&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82341&fm=63187075614939&tin=02508201610067®Number=0000000000091680&sum=0 [11:16:46]OFD Sender: Processing packet 82341 [packets to send 254, broken 253] [11:16:46]ProducePacketName [11:16:46]name=ofd_packets/00082341 [11:16:46]OFD Sender: To server: pG, [11:16:46]CommunicateWithHost lk.salyk.kg:30040 [11:16:46]ConnectInit lk.salyk.kg [11:16:46]written 0, free lines is 4095 [11:16:46]Write to MH i2c: 01 00 00 30 10 40 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 F8 0C 4B [11:16:46]RasterBufferAndPrint [11:16:46]line [11:16:46]line [11:16:46]line [11:16:46]line [11:16:46]line [11:16:46]written 0, free lines is 3326 [11:16:46]MH_Cut [11:16:46]Write to MH i2c: D1 01 00 37 10 01 19 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D1 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D1 01 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: D1 01 00 37 10 00 18 [11:16:46]Write to MH i2c: 01 00 00 38 10 48 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:47]*** Cut start [11:16:47]*** Partial cut [11:16:47]*** CUTSNS_PIN = 1 [11:16:47]*** CUTSNS_PIN = 0 [11:16:47]*** Brake cut motor [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]*** Stop cut motor [11:16:48]*** Cut end [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 38 10 00 00 00 00 00 FF 0F 5D [11:16:48]process_action close_receipt done [11:16:48]requested_data is exist [11:16:48]produce_requested_data [11:16:48]requested_item fm.sn is exist - process it [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 11 00 00 [11:16:48]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 15 [11:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:16:48]wFMCommunicate OK [11:16:48]requested_item fd.num is exist - process it [11:16:48]SAM_PROTO_GetFieldsCounters [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 13 00 00 [11:16:48]Write to MH i2c: E2 08 00 3A 10 80 13 00 00 00 00 00 00 C6 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 62 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 62 00 3A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [11:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_GetFieldsCounters done [11:16:48]requested_item shift.num is exist - process it [11:16:48]requested_item shift.opened is exist - process it [11:16:48]req_shift_opened [11:16:48]FM_GetShiftState [11:16:48]SAM_PROTO_GetShiftState [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 13 01 00 [11:16:48]Write to MH i2c: E2 08 00 3B 10 80 13 01 00 00 00 00 00 C8 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0E 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0E 00 3B 10 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 9A [11:16:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_GetShiftState done [11:16:48]FM_GetShiftState done [11:16:48]req_shift_opened done [11:16:48]requested_item shift.open_date is exist - process it [11:16:48]req_shift_open_date [11:16:48]req_shift_open_date done [11:16:48]produce_requested_data done [11:16:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82341,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:16:48]process_action_free close_receipt [11:16:48]json_value_free [11:16:48]json_value_free done [11:16:48]process_json_proto returns [11:16:48]Send response to host [11:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82341,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:16:48]free response buf [11:16:48]execute_script done [11:16:48]execute_script returns [11:16:48]free content buf [11:16:48]Sock 10.Close socket [11:16:48]Sock 10.Thread stoped [11:16:50]Connected sock=11 [11:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 AF 93 0D 01 94 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9F 43 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 41 01 00 35 04 06 00 39 77 E3 32 48 DB C7 61 37 56 8A 37 4B EA [11:16:51]recv_with_timeout no data received [11:16:55]recv_with_timeout no data received [11:16:55]CommunicateWithHost answer receiving error [11:16:55]CommunicateWithHost err = -3 [11:16:55]OFD Sender: Server communicate error [11:17:00]OFD Sender: Processing packet 82341 [packets to send 254, broken 253] [11:17:00]ProducePacketName [11:17:00]name=ofd_packets/00082341 [11:17:00]OFD Sender: To server: pG, [11:17:00]CommunicateWithHost lk.salyk.kg:30040 [11:17:00]ConnectInit lk.salyk.kg [11:17:02]recv_with_timeout no data received [11:17:03]Connected sock=10 [11:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 AF 93 0D 01 94 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9F 43 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 41 01 00 35 04 06 00 39 77 E3 32 48 DB C7 61 37 56 8A 37 4B EA [11:17:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 30 3D 47 00 AD B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A5 41 01 00 F4 03 04 00 EC E8 11 67 B6 04 01 00 00 E8 59 B3 4F 92 1E 0C 0E [11:17:04]CommunicateWithHost err = 0 [11:17:04]CheckOFDResponse [11:17:04]1017 (14) - 77093643461234 [11:17:04]1041 (16) - 0000000000871843 [11:17:04]1040 (4) - 82341 [11:17:04]1012 (4) - 18.10.2024 04:49 [11:17:04]1206 (1) - 0 [11:17:04]OFD Sender: Remove packet 82341 [11:17:04]ProducePacketName [11:17:04]name=ofd_packets/00082341 [11:17:04]NVStorageDeleteData [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:13]recv_with_timeout no data received [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:49]recv_with_timeout no data received [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:40]OFD Sender: No OFD packet to send [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:49]accept exits with 8 [11:19:49]New connection [11:19:49]New thread 3067297124 created [11:19:49]Thread 3067440484 joined [11:19:49]Waiting for new connection... [11:19:49] Sock 8.Parse request [11:19:49]Sock 8.Check first char [11:19:49]Sock 8.First char is OK [11:19:49]request: POST /json_proto HTTP/1.0 [11:19:49]Method: POST [11:19:49]URL: /json_proto [11:19:49]Method is POST - this is cgi request [11:19:49]url: /json_proto [11:19:49]query_string will be loaded in cgi processing [11:19:49]execute_cgi json_proto POST (null) [11:19:49]execute_cgi path=json_proto method=POST [11:19:49]POST find Content-Length [11:19:49]Host: 172.17.44.67:8080 [11:19:49]Content-Length: 797 [11:19:49]Content-Type: application/json [11:19:49] [11:19:49]POST finish read [11:19:49]Found Content-Length = 797 [11:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:49]execute_script... [11:19: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)918839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.810, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:49]POST & json_proto [11:19:49]process_json_proto [11:19:49]json parsed OK: [11:19:49]protocol is kg_v1.0 [11:19:49]action value=close_receipt [11:19:49]process_action close_receipt [11:19:49]cmd_close_receipt [11:19:49]MH_GetDate [11:19:49]Write to MH i2c: F0 00 00 3C 10 3B [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 09 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 09 00 3C 10 00 59 44 12 67 F1 C7 6B 64 E1 [11:19:49]GetLastDocTimeStamp 1729250207 [11:19:49]current date 1729250393 [11:19:49]FM_GetShiftState [11:19:49]SAM_PROTO_GetShiftState [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 13 01 00 [11:19:49]Write to MH i2c: E2 08 00 3D 10 80 13 01 00 00 00 00 00 CA [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 3D 10 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 9C [11:19:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_GetShiftState done [11:19:49]FM_GetShiftState done [11:19:49]opened in 1729212319 [11:19:49]opened+sec_in_day 1729298719 [11:19:49]quantity*price = 0 [11:19:49]sum+1 = 1 [11:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 51 18.10.2024 11:19 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливная Карта 43256 ФМ: 0000000000871843 ФД: 82342 ФПД: 87105404440619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111953&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82342&fm=87105404440619&tin=02508201610067®Number=0000000000091680&sum=0 [11:19:50]StoreToDocumentArchive [11:19:50]shift 526 fd 82342 [11:19:50]save to /storage/0526/doc_00082342 [11:19:50]save last doc name /storage/0526/doc_00082342 to /storage/kkm_last_doc_name [11:19:50]save OK [11:19:50]Clear old archive folders... [11:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:19:50]tlvbuf is 00B0D930 [11:19:50]SAM_PROTO_ClearQueue [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 09 00 00 [11:19:50]Write to MH i2c: E2 08 00 4A 10 80 09 00 00 00 00 00 00 CC [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [11:19:51]RAPDU: 90 00 [11:19:51]wFMCommunicate OK [11:19:51]SAM_PROTO_ClearQueue done [11:19:51]KKMCreateOFDPacket [11:19:51]OFDProtocolAddRootSTLVToBuf [11:19:51]FM_MakeSignedData [11:19:51]FM_MakeSignedData [11:19:51]SAM_PROTO_SignData [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 0D 01 02 [11:19:51]Write to MH i2c: E2 08 00 4B 10 80 0D 01 02 00 00 00 00 D4 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [11:19:51]RAPDU: 90 00 [11:19:51]wFMCommunicate OK [11:19:51]wFMCommunicate request_size=255 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 44 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 41 01 00 35 04 06 00 [11:19:51]Write to MH i2c: E2 02 01 4C 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 44 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 41 01 00 35 04 06 00 00 00 A8 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [11:19:51]RAPDU: 90 00 [11:19:51]wFMCommunicate OK [11:19:51]wFMCommunicate request_size=11 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 0D 02 02 06 4F 38 CE B0 90 2B [11:19:51]Write to MH i2c: E2 0E 00 4D 10 80 0D 02 02 06 00 4F 38 CE B0 90 2B 00 00 A3 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [11:19:51]RAPDU: 90 00 [11:19:51]wFMCommunicate OK [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 0D 03 02 [11:19:51]Write to MH i2c: E2 08 00 4E 10 80 0D 03 02 00 00 00 00 D9 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 0B 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 0B 00 4E 10 00 E8 54 EE 02 9D DF 7D 0B 90 00 0A [11:19:51]RAPDU: E8 54 EE 02 9D DF 7D 0B 90 00 [11:19:51]wFMCommunicate OK [11:19:51]SAM_PROTO_SignData done [11:19:51]FM_MakeSignedData done [11:19:51]CreateOFDProtocolMessage [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 11 00 00 [11:19:51]Write to MH i2c: E2 08 00 4F 10 80 11 00 00 00 00 00 00 D9 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 4F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2B [11:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:19:51]wFMCommunicate OK [11:19:51]CreateOFDProtocolMessage done [11:19:51]OFDSenderStorePacket 82342 [11:19:51]StoreOFDPacket docnum=82342 [11:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F1 6B 08 01 20 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 44 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 41 01 00 35 04 06 00 4F 38 CE B0 90 2B E8 54 EE 02 9D DF 7D 0B [11:19:51]CheckFolder [11:19:51]dirname=/storage/ofd_packets [11:19:51]CheckFolder done [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00082342 [11:19:51]NVStorageSaveData ofd_packets/00082342 [11:19:51]File name is /storage/ofd_packets/00082342 [11:19:51]Write 302 bytes [11:19:51]NVStorageSaveData done [11:19:51]OFDSenderStorePacket done [11:19:51]KKMCreateOFDPacket done [11:19:51]NVStorageSaveData kkm_last_timestamp [11:19:51]File name is /storage/kkm_last_timestamp [11:19:51]Write 4 bytes [11:19:51]NVStorageSaveData done [11:19:51]ExternCall_PrintAddStr [11:19:51]wPrintStart [11:19:51]Write to MH i2c: 01 00 00 50 10 60 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 50 10 00 00 00 00 00 FF 0F 75 [11:19:51]RasterBufferAndPrint [11:19:51]line Счет N : (1)918839 [11:19:51]line ИНН: 02508201610067 [11:19:51]line Контрольно-Кассовый Чек [11:19:51]line ПРОДАЖА [11:19:51]line ТРК (МРК, ГНК) : 31 [11:19:51]line Товар: 2710194210 [11:19:51]line ДТ(л)-К-5 [11:19:51]line 11.810 * 0.00 [11:19:51]line = 0.00 [11:19:51]line НДС 12% НСП 1% [11:19:51]line > о реализуемом товаре [11:19:51]line ИТОГО: 0.00 [11:19:51]line НСП 1% : 0.00 [11:19:51]line НДС 12% : 0.00 [11:19:51]line Наличными: 0.00 [11:19:51]line Безнал.: 0.00 [11:19:51]line Место: АЗС № 114 "Партнер Нефть" [11:19:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:19:51]line СНО: Общий режим [11:19:51]line Чек 51 18.10.2024 11:19 [11:19:51]line Смена: 526 ФФД: 1.0 [11:19:51]line ЗНМ: 0300000086 [11:19:51]line РНМ: 0000000000091680 [11:19:51]line Версия ККМ: 001 [11:19:51]line Талоны: Топливная Карта [11:19:51]line 43256 [11:19:51]line ФМ: 0000000000871843 [11:19:51]line ФД: 82342 [11:19:51]line ФПД: 87105404440619 [11:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111953&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82342&fm=87105404440619&tin=02508201610067®Number=0000000000091680&sum=0 [11:19:51]written 0, free lines is 4095 [11:19:51]OFD Sender: Processing packet 82342 [packets to send 254, broken 253] [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00082342 [11:19:51]OFD Sender: To server: pG, [11:19:51]CommunicateWithHost lk.salyk.kg:30040 [11:19:51]ConnectInit lk.salyk.kg [11:19:52]Write to MH i2c: 01 00 00 7A 10 8A [11:19:52]Write i2c OK [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: 01 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: 01 07 00 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: 01 07 00 7A 10 00 00 00 00 00 EE 0C 8B [11:19:52]RasterBufferAndPrint [11:19:52]line [11:19:52]line [11:19:52]line [11:19:52]line [11:19:52]line [11:19:52]written 0, free lines is 3315 [11:19:52]MH_Cut [11:19:52]Write to MH i2c: D1 01 00 81 10 01 63 [11:19:52]Write i2c OK [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: D1 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: D1 01 00 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: D1 01 00 81 10 00 62 [11:19:52]Write to MH i2c: 01 00 00 82 10 92 [11:19:52]Write i2c OK [11:19:52]MH_I2C_Read... [11:19:52]Connected sock=10 [11: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 31 38 34 33 10 01 00 00 F1 6B 08 01 20 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 44 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 41 01 00 35 04 06 00 4F 38 CE B0 90 2B E8 54 EE 02 9D DF 7D 0B [11:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C3 7C 47 00 EF 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A6 41 01 00 F4 03 04 00 94 E9 11 67 B6 04 01 00 00 27 6E 09 CA BE 73 FB 00 [11:19:53]CommunicateWithHost err = 0 [11:19:53]CheckOFDResponse [11:19:53]1017 (14) - 77093643461234 [11:19:53]1041 (16) - 0000000000871843 [11:19:53]1040 (4) - 82342 [11:19:53]1012 (4) - 18.10.2024 04:52 [11:19:53]1206 (1) - 0 [11:19:53]OFD Sender: Remove packet 82342 [11:19:53]ProducePacketName [11:19:53]name=ofd_packets/00082342 [11:19:53]NVStorageDeleteData [11:19:53]*** Cut start [11:19:53]*** Partial cut [11:19:53]*** CUTSNS_PIN = 1 [11:19:53]*** CUTSNS_PIN = 0 [11:19:53]*** Brake cut motor [11:19:53]OFD Sender: No OFD packet to send [11:19:53]Read from MH i2c: 01 [11:19:53]MH_I2C_Read... [11:19:53]*** Stop cut motor [11:19:53]*** Cut end [11:19:53]Read from MH i2c: 01 07 00 [11:19:53]MH_I2C_Read... [11:19:53]Read from MH i2c: 01 07 00 82 10 00 00 00 00 00 FF 0F A7 [11:19:53]process_action close_receipt done [11:19:53]requested_data is exist [11:19:53]produce_requested_data [11:19:53]requested_item fm.sn is exist - process it [11:19:53]wFMCommunicate request_size=4 [11:19:53]MH_SAM_APDU [11:19:53]CAPDU: 80 11 00 00 [11:19:53]Write to MH i2c: E2 08 00 83 10 80 11 00 00 00 00 00 00 0D [11:19:53]Write i2c OK [11:19:53]MH_I2C_Read... [11:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:53]Read from MH i2c: E2 [11:19:53]MH_I2C_Read... [11:19:53]Read from MH i2c: E2 17 00 [11:19:53]MH_I2C_Read... [11:19:53]Read from MH i2c: E2 17 00 83 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5F [11:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:19:53]wFMCommunicate OK [11:19:53]requested_item fd.num is exist - process it [11:19:53]SAM_PROTO_GetFieldsCounters [11:19:53]wFMCommunicate request_size=4 [11:19:53]MH_SAM_APDU [11:19:53]CAPDU: 80 13 00 00 [11:19:53]Write to MH i2c: E2 08 00 84 10 80 13 00 00 00 00 00 00 10 [11:19:53]Write i2c OK [11:19:53]MH_I2C_Read... [11:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:53]Read from MH i2c: E2 [11:19:53]MH_I2C_Read... [11:19:53]Read from MH i2c: E2 62 00 [11:19:53]MH_I2C_Read... [11:19:53]Read from MH i2c: E2 62 00 84 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [11:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:53]wFMCommunicate OK [11:19:53]SAM_PROTO_GetFieldsCounters done [11:19:53]requested_item shift.num is exist - process it [11:19:53]requested_item shift.opened is exist - process it [11:19:53]req_shift_opened [11:19:53]FM_GetShiftState [11:19:53]SAM_PROTO_GetShiftState [11:19:53]wFMCommunicate request_size=4 [11:19:53]MH_SAM_APDU [11:19:53]CAPDU: 80 13 01 00 [11:19:53]Write to MH i2c: E2 08 00 85 10 80 13 01 00 00 00 00 00 12 [11:19:53]Write i2c OK [11:19:53]MH_I2C_Read... [11:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:53]Read from MH i2c: E2 [11:19:53]MH_I2C_Read... [11:19:53]Read from MH i2c: E2 0E 00 [11:19:53]MH_I2C_Read... [11:19:53]Read from MH i2c: E2 0E 00 85 10 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E4 [11:19:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:19:53]wFMCommunicate OK [11:19:53]SAM_PROTO_GetShiftState done [11:19:53]FM_GetShiftState done [11:19:53]req_shift_opened done [11:19:53]requested_item shift.open_date is exist - process it [11:19:53]req_shift_open_date [11:19:53]req_shift_open_date done [11:19:53]produce_requested_data done [11:19:53]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82342,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:19:53]process_action_free close_receipt [11:19:53]json_value_free [11:19:53]json_value_free done [11:19:53]process_json_proto returns [11:19:53]Send response to host [11:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82342,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:19:53]free response buf [11:19:53]execute_script done [11:19:53]execute_script returns [11:19:53]free content buf [11:19:53]Sock 8.Close socket [11:19:53]Sock 8.Thread stoped [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:07]recv_with_timeout no data received [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]recv_with_timeout no data received [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:41]recv_with_timeout no data received [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:01]recv_with_timeout no data received [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:31]recv_with_timeout no data received [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:46]recv_with_timeout no data received [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:04]recv_with_timeout no data received [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:20]recv_with_timeout no data received [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:54]recv_with_timeout no data received [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:50]recv_with_timeout no data received [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:17]recv_with_timeout no data received [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:22]accept exits with 9 [11:27:22]New connection [11:27:22]New thread 3067440484 created [11:27:22]Thread 3067297124 joined [11:27:22]Waiting for new connection... [11:27:22] Sock 9.Parse request [11:27:22]Sock 9.Check first char [11:27:22]Sock 9.First char is OK [11:27:22]request: POST /json_proto HTTP/1.0 [11:27:22]Method: POST [11:27:22]URL: /json_proto [11:27:22]Method is POST - this is cgi request [11:27:22]url: /json_proto [11:27:22]query_string will be loaded in cgi processing [11:27:22]execute_cgi json_proto POST (null) [11:27:22]execute_cgi path=json_proto method=POST [11:27:22]POST find Content-Length [11:27:22]Host: 172.17.44.67:8080 [11:27:22]Content-Length: 754 [11:27:22]Content-Type: application/json [11:27:22] [11:27:22]POST finish read [11:27:22]Found Content-Length = 754 [11:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:22]execute_script... [11:27: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)918840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30036521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:22]POST & json_proto [11:27:22]process_json_proto [11:27:22]json parsed OK: [11:27:22]protocol is kg_v1.0 [11:27:22]action value=close_receipt [11:27:22]process_action close_receipt [11:27:22]cmd_close_receipt [11:27:22]MH_GetDate [11:27:22]Write to MH i2c: F0 00 00 86 10 85 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: F0 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: F0 09 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: F0 09 00 86 10 00 1E 46 12 67 F1 C7 6B 64 F2 [11:27:22]GetLastDocTimeStamp 1729250393 [11:27:22]current date 1729250846 [11:27:22]FM_GetShiftState [11:27:22]SAM_PROTO_GetShiftState [11:27:22]wFMCommunicate request_size=4 [11:27:22]MH_SAM_APDU [11:27:22]CAPDU: 80 13 01 00 [11:27:22]Write to MH i2c: E2 08 00 87 10 80 13 01 00 00 00 00 00 14 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:22]Read from MH i2c: E2 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 0E 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 0E 00 87 10 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E6 [11:27:22]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:27:22]wFMCommunicate OK [11:27:22]SAM_PROTO_GetShiftState done [11:27:22]FM_GetShiftState done [11:27:22]opened in 1729212319 [11:27:22]opened+sec_in_day 1729298719 [11:27:22]quantity*price = 0 [11:27:22]sum+1 = 1 [11:27:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 52 18.10.2024 11:27 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30036521 ФМ: 0000000000871843 ФД: 82343 ФПД: 95577303382682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112726&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82343&fm=95577303382682&tin=02508201610067®Number=0000000000091680&sum=0 [11:27:23]StoreToDocumentArchive [11:27:23]shift 526 fd 82343 [11:27:23]save to /storage/0526/doc_00082343 [11:27:23]save last doc name /storage/0526/doc_00082343 to /storage/kkm_last_doc_name [11:27:23]save OK [11:27:23]Clear old archive folders... [11:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:23]tlvbuf is 00C53F00 [11:27:23]SAM_PROTO_ClearQueue [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 09 00 00 [11:27:23]Write to MH i2c: E2 08 00 94 10 80 09 00 00 00 00 00 00 16 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [11:27:23]RAPDU: 90 00 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_ClearQueue done [11:27:23]KKMCreateOFDPacket [11:27:23]OFDProtocolAddRootSTLVToBuf [11:27:23]FM_MakeSignedData [11:27:23]FM_MakeSignedData [11:27:23]SAM_PROTO_SignData [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 0D 01 02 [11:27:23]Write to MH i2c: E2 08 00 95 10 80 0D 01 02 00 00 00 00 1E [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [11:27:24]RAPDU: 90 00 [11:27:24]wFMCommunicate OK [11:27:24]wFMCommunicate request_size=255 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 41 01 00 35 04 06 00 56 [11:27:24]Write to MH i2c: E2 02 01 96 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 41 01 00 35 04 06 00 56 00 00 BC [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]OFD Sender: No OFD packet to send [11:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 96 10 00 90 00 1A [11:27:24]RAPDU: 90 00 [11:27:24]wFMCommunicate OK [11:27:24]wFMCommunicate request_size=10 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 0D 02 02 05 ED 53 37 7A 9A [11:27:24]Write to MH i2c: E2 0D 00 97 10 80 0D 02 02 05 00 ED 53 37 7A 9A 00 00 B6 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 03 00 97 10 00 90 00 1B [11:27:24]RAPDU: 90 00 [11:27:24]wFMCommunicate OK [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 0D 03 02 [11:27:24]Write to MH i2c: E2 08 00 98 10 80 0D 03 02 00 00 00 00 23 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 0B 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 0B 00 98 10 00 A7 DB 4B 16 8A 70 AD 26 90 00 D4 [11:27:24]RAPDU: A7 DB 4B 16 8A 70 AD 26 90 00 [11:27:24]wFMCommunicate OK [11:27:24]SAM_PROTO_SignData done [11:27:24]FM_MakeSignedData done [11:27:24]CreateOFDProtocolMessage [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 11 00 00 [11:27:24]Write to MH i2c: E2 08 00 99 10 80 11 00 00 00 00 00 00 23 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 17 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 17 00 99 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 75 [11:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:27:24]wFMCommunicate OK [11:27:24]CreateOFDProtocolMessage done [11:27:24]OFDSenderStorePacket 82343 [11:27:24]StoreOFDPacket docnum=82343 [11:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EF 65 07 01 B4 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 41 01 00 35 04 06 00 56 ED 53 37 7A 9A A7 DB 4B 16 8A 70 AD 26 [11:27:24]CheckFolder [11:27:24]dirname=/storage/ofd_packets [11:27:24]CheckFolder done [11:27:24]ProducePacketName [11:27:24]name=ofd_packets/00082343 [11:27:24]NVStorageSaveData ofd_packets/00082343 [11:27:24]File name is /storage/ofd_packets/00082343 [11:27:24]Write 301 bytes [11:27:24]NVStorageSaveData done [11:27:24]OFDSenderStorePacket done [11:27:24]KKMCreateOFDPacket done [11:27:24]NVStorageSaveData kkm_last_timestamp [11:27:24]File name is /storage/kkm_last_timestamp [11:27:24]Write 4 bytes [11:27:24]NVStorageSaveData done [11:27:24]ExternCall_PrintAddStr [11:27:24]wPrintStart [11:27:24]Write to MH i2c: 01 00 00 9A 10 AA [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: 01 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: 01 07 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: 01 07 00 9A 10 00 00 00 00 00 FF 0F BF [11:27:24]RasterBufferAndPrint [11:27:24]line Счет N : (1)918840 [11:27:24]line ИНН: 02508201610067 [11:27:24]line Контрольно-Кассовый Чек [11:27:24]line ПРОДАЖА [11:27:24]line ТРК (МРК, ГНК) : 11 [11:27:24]line Товар: 2710124130 [11:27:24]line Аи-92-К-4 [11:27:24]line 10.000 * 0.00 [11:27:24]line = 0.00 [11:27:24]line НДС 12% НСП 1% [11:27:24]line > о реализуемом товаре [11:27:24]line ИТОГО: 0.00 [11:27:24]line НСП 1% : 0.00 [11:27:24]line НДС 12% : 0.00 [11:27:24]line Наличными: 0.00 [11:27:24]line Безнал.: 0.00 [11:27:24]line Место: АЗС № 114 "Партнер Нефть" [11:27:24]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:27:24]line СНО: Общий режим [11:27:24]line Чек 52 18.10.2024 11:27 [11:27:24]line Смена: 526 ФФД: 1.0 [11:27:24]line ЗНМ: 0300000086 [11:27:24]line РНМ: 0000000000091680 [11:27:24]line Версия ККМ: 001 [11:27:24]line Талоны: ТК ГПНА Online [11:27:24]line 30036521 [11:27:24]line ФМ: 0000000000871843 [11:27:24]line ФД: 82343 [11:27:24]line ФПД: 95577303382682 [11:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112726&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82343&fm=95577303382682&tin=02508201610067®Number=0000000000091680&sum=0 [11:27:24]OFD Sender: Processing packet 82343 [packets to send 254, broken 253] [11:27:24]ProducePacketName [11:27:24]name=ofd_packets/00082343 [11:27:24]OFD Sender: To server: pG, [11:27:24]CommunicateWithHost lk.salyk.kg:30040 [11:27:24]ConnectInit lk.salyk.kg [11:27:24]written 0, free lines is 4095 [11:27:25]Write to MH i2c: 01 00 00 C4 10 D4 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 C4 10 00 00 00 00 00 E6 0C CD [11:27:25]RasterBufferAndPrint [11:27:25]line [11:27:25]line [11:27:25]line [11:27:25]line [11:27:25]line [11:27:25]written 0, free lines is 3305 [11:27:25]MH_Cut [11:27:25]Write to MH i2c: D1 01 00 CB 10 01 AD [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: D1 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: D1 01 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: D1 01 00 CB 10 00 AC [11:27:25]Write to MH i2c: 01 00 00 CC 10 DC [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:26]*** Cut start [11:27:26]*** Partial cut [11:27:26]*** CUTSNS_PIN = 1 [11:27:26]*** CUTSNS_PIN = 0 [11:27:26]*** Brake cut motor [11:27:26]Read from MH i2c: 01 [11:27:26]MH_I2C_Read... [11:27:26]*** Stop cut motor [11:27:26]*** Cut end [11:27:26]Read from MH i2c: 01 07 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: 01 07 00 CC 10 00 00 00 00 00 FF 0F F1 [11:27:26]process_action close_receipt done [11:27:26]requested_data is exist [11:27:26]produce_requested_data [11:27:26]requested_item fm.sn is exist - process it [11:27:26]wFMCommunicate request_size=4 [11:27:26]MH_SAM_APDU [11:27:26]CAPDU: 80 11 00 00 [11:27:26]Write to MH i2c: E2 08 00 CD 10 80 11 00 00 00 00 00 00 57 [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:26]Read from MH i2c: E2 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 17 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 17 00 CD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A9 [11:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:27:26]wFMCommunicate OK [11:27:26]requested_item fd.num is exist - process it [11:27:26]SAM_PROTO_GetFieldsCounters [11:27:26]wFMCommunicate request_size=4 [11:27:26]MH_SAM_APDU [11:27:26]CAPDU: 80 13 00 00 [11:27:26]Write to MH i2c: E2 08 00 CE 10 80 13 00 00 00 00 00 00 5A [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:26]Read from MH i2c: E2 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 62 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 62 00 CE 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [11:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:26]wFMCommunicate OK [11:27:26]SAM_PROTO_GetFieldsCounters done [11:27:26]requested_item shift.num is exist - process it [11:27:26]requested_item shift.opened is exist - process it [11:27:26]req_shift_opened [11:27:26]FM_GetShiftState [11:27:26]SAM_PROTO_GetShiftState [11:27:26]wFMCommunicate request_size=4 [11:27:26]MH_SAM_APDU [11:27:26]CAPDU: 80 13 01 00 [11:27:26]Write to MH i2c: E2 08 00 CF 10 80 13 01 00 00 00 00 00 5C [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:26]Read from MH i2c: E2 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 0E 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 0E 00 CF 10 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2E [11:27:26]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:27:26]wFMCommunicate OK [11:27:26]SAM_PROTO_GetShiftState done [11:27:26]FM_GetShiftState done [11:27:26]req_shift_opened done [11:27:26]requested_item shift.open_date is exist - process it [11:27:26]req_shift_open_date [11:27:26]req_shift_open_date done [11:27:26]produce_requested_data done [11:27:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82343,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:27:26]process_action_free close_receipt [11:27:26]json_value_free [11:27:26]json_value_free done [11:27:26]process_json_proto returns [11:27:26]Send response to host [11:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82343,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:27:26]free response buf [11:27:26]execute_script done [11:27:26]execute_script returns [11:27:26]free content buf [11:27:26]Sock 9.Close socket [11:27:26]Sock 9.Thread stoped [11:27:27]Connected sock=11 [11:27:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EF 65 07 01 B4 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 41 01 00 35 04 06 00 56 ED 53 37 7A 9A A7 DB 4B 16 8A 70 AD 26 [11:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8B E6 47 00 12 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A7 41 01 00 F4 03 04 00 5C EB 11 67 B6 04 01 00 00 21 BB E4 D8 B0 28 D7 31 [11:27:28]CommunicateWithHost err = 0 [11:27:28]CheckOFDResponse [11:27:28]1017 (14) - 77093643461234 [11:27:28]1041 (16) - 0000000000871843 [11:27:28]1040 (4) - 82343 [11:27:28]1012 (4) - 18.10.2024 05:00 [11:27:28]1206 (1) - 0 [11:27:28]OFD Sender: Remove packet 82343 [11:27:28]ProducePacketName [11:27:28]name=ofd_packets/00082343 [11:27:28]NVStorageDeleteData [11:27:29]OFD Sender: No OFD packet to send [11:27:29]accept exits with 8 [11:27:29]New connection [11:27:29]New thread 3067297124 created [11:27:29]Thread 3067440484 joined [11:27:29]Waiting for new connection... [11:27:29] Sock 8.Parse request [11:27:29]Sock 8.Check first char [11:27:29]Sock 8.First char is OK [11:27:29]request: POST /json_proto HTTP/1.0 [11:27:29]Method: POST [11:27:29]URL: /json_proto [11:27:29]Method is POST - this is cgi request [11:27:29]url: /json_proto [11:27:29]query_string will be loaded in cgi processing [11:27:29]execute_cgi json_proto POST (null) [11:27:29]execute_cgi path=json_proto method=POST [11:27:29]POST find Content-Length [11:27:29]Host: 172.17.44.67:8080 [11:27:29]Content-Length: 677 [11:27:29]Content-Type: application/json [11:27:29] [11:27:29]POST finish read [11:27:29]Found Content-Length = 677 [11:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:29]execute_script... [11:27: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)918841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:29]POST & json_proto [11:27:29]process_json_proto [11:27:29]json parsed OK: [11:27:29]protocol is kg_v1.0 [11:27:29]action value=close_receipt [11:27:29]process_action close_receipt [11:27:29]cmd_close_receipt [11:27:29]MH_GetDate [11:27:29]Write to MH i2c: F0 00 00 D0 10 CF [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: F0 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: F0 09 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: F0 09 00 D0 10 00 25 46 12 67 F1 C7 6B 64 43 [11:27:29]GetLastDocTimeStamp 1729250846 [11:27:29]current date 1729250853 [11:27:29]FM_GetShiftState [11:27:29]SAM_PROTO_GetShiftState [11:27:29]wFMCommunicate request_size=4 [11:27:29]MH_SAM_APDU [11:27:29]CAPDU: 80 13 01 00 [11:27:29]Write to MH i2c: E2 08 00 D1 10 80 13 01 00 00 00 00 00 5E [11:27:29]Write i2c OK [11:27:29]MH_I2C_Read... [11:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:29]Read from MH i2c: E2 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 0E 00 [11:27:29]MH_I2C_Read... [11:27:29]Read from MH i2c: E2 0E 00 D1 10 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 30 [11:27:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:27:29]wFMCommunicate OK [11:27:29]SAM_PROTO_GetShiftState done [11:27:29]FM_GetShiftState done [11:27:29]opened in 1729212319 [11:27:29]opened+sec_in_day 1729298719 [11:27:29]quantity*price = 20003 [11:27:29]sum+1 = 20004 [11:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 53 18.10.2024 11:27 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82344 ФПД: 255947050964516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112733&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82344&fm=255947050964516&tin=02508201610067®Number=0000000000091680&sum=20000 [11:27:31]StoreToDocumentArchive [11:27:31]shift 526 fd 82344 [11:27:31]save to /storage/0526/doc_00082344 [11:27:31]save last doc name /storage/0526/doc_00082344 to /storage/kkm_last_doc_name [11:27:31]save OK [11:27:31]Clear old archive folders... [11:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:31]tlvbuf is 00C31FF0 [11:27:31]SAM_PROTO_ClearQueue [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 09 00 00 [11:27:31]Write to MH i2c: E2 08 00 DE 10 80 09 00 00 00 00 00 00 60 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [11:27:31]RAPDU: 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_ClearQueue done [11:27:31]KKMCreateOFDPacket [11:27:31]OFDProtocolAddRootSTLVToBuf [11:27:31]FM_MakeSignedData [11:27:31]FM_MakeSignedData [11:27:31]SAM_PROTO_SignData [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 0D 01 02 [11:27:31]Write to MH i2c: E2 08 00 DF 10 80 0D 01 02 00 00 00 00 68 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [11:27:31]RAPDU: 90 00 [11:27:31]wFMCommunicate OK [11:27:31]wFMCommunicate request_size=255 [11:27:31]MH_SAM_APDU [11:27: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 25 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 41 01 00 35 04 06 00 E8 [11:27:31]Write to MH i2c: E2 02 01 E0 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 25 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 41 01 00 35 04 06 00 E8 00 00 B1 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 E0 10 00 90 00 64 [11:27:31]RAPDU: 90 00 [11:27:31]wFMCommunicate OK [11:27:31]wFMCommunicate request_size=10 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 0D 02 02 05 C8 51 0D D6 24 [11:27:31]Write to MH i2c: E2 0D 00 E1 10 80 0D 02 02 05 00 C8 51 0D D6 24 00 00 95 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 03 00 E1 10 00 90 00 65 [11:27:31]RAPDU: 90 00 [11:27:31]wFMCommunicate OK [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 0D 03 02 [11:27:31]Write to MH i2c: E2 08 00 E2 10 80 0D 03 02 00 00 00 00 6D [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0B 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 0B 00 E2 10 00 3B 5B FA 09 FC 9E 9C 62 90 00 9F [11:27:31]RAPDU: 3B 5B FA 09 FC 9E 9C 62 90 00 [11:27:31]wFMCommunicate OK [11:27:31]SAM_PROTO_SignData done [11:27:31]FM_MakeSignedData done [11:27:31]CreateOFDProtocolMessage [11:27:31]wFMCommunicate request_size=4 [11:27:31]MH_SAM_APDU [11:27:31]CAPDU: 80 11 00 00 [11:27:31]Write to MH i2c: E2 08 00 E3 10 80 11 00 00 00 00 00 00 6D [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:31]Read from MH i2c: E2 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 17 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: E2 17 00 E3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BF [11:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:27:31]wFMCommunicate OK [11:27:31]CreateOFDProtocolMessage done [11:27:31]OFDSenderStorePacket 82344 [11:27:31]StoreOFDPacket docnum=82344 [11:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 04 12 07 01 84 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 25 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 41 01 00 35 04 06 00 E8 C8 51 0D D6 24 3B 5B FA 09 FC 9E 9C 62 [11:27:31]CheckFolder [11:27:31]dirname=/storage/ofd_packets [11:27:31]CheckFolder done [11:27:31]ProducePacketName [11:27:31]name=ofd_packets/00082344 [11:27:31]NVStorageSaveData ofd_packets/00082344 [11:27:31]File name is /storage/ofd_packets/00082344 [11:27:31]Write 301 bytes [11:27:31]NVStorageSaveData done [11:27:31]OFDSenderStorePacket done [11:27:31]KKMCreateOFDPacket done [11:27:31]NVStorageSaveData kkm_last_timestamp [11:27:31]File name is /storage/kkm_last_timestamp [11:27:31]Write 4 bytes [11:27:31]NVStorageSaveData done [11:27:31]ExternCall_PrintAddStr [11:27:31]wPrintStart [11:27:31]Write to MH i2c: 01 00 00 E4 10 F4 [11:27:31]Write i2c OK [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 07 00 [11:27:31]MH_I2C_Read... [11:27:31]Read from MH i2c: 01 07 00 E4 10 00 00 00 00 00 FF 0F 09 [11:27:31]RasterBufferAndPrint [11:27:31]line Счет N : (1)918841 [11:27:31]line ИНН: 02508201610067 [11:27:31]line Контрольно-Кассовый Чек [11:27:31]line ПРОДАЖА [11:27:31]line ТРК (МРК, ГНК) : 22 [11:27:31]line Товар: 2710124130 [11:27:31]line Аи-92-К-4 [11:27:31]line 2.990 * 66.90 [11:27:31]line = 200.03 [11:27:31]line НДС 12% НСП 1% [11:27:31]line > о реализуемом товаре [11:27:31]line ОКРУГЛЕНИЕ: -0.03 [11:27:31]line ИТОГО: 200.00 [11:27:31]line Внесено: 200.00 [11:27:31]line СДАЧА: 0.00 [11:27:31]line НСП 1% : 1.77 [11:27:31]line НДС 12% : 21.24 [11:27:31]line Наличными: 200.00 [11:27:31]line Безнал.: 0.00 [11:27:31]line Место: АЗС № 114 "Партнер Нефть" [11:27:31]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:27:31]line СНО: Общий режим [11:27:31]line Чек 53 18.10.2024 11:27 [11:27:31]line Смена: 526 ФФД: 1.0 [11:27:31]line ЗНМ: 0300000086 [11:27:31]line РНМ: 0000000000091680 [11:27:31]line Версия ККМ: 001 [11:27:31]line ФМ: 0000000000871843 [11:27:31]line ФД: 82344 [11:27:31]line ФПД: 255947050964516 [11:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112733&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82344&fm=255947050964516&tin=02508201610067®Number=0000000000091680&sum=20000 [11:27:31]written 0, free lines is 4095 [11:27:31]OFD Sender: Processing packet 82344 [packets to send 254, broken 253] [11:27:31]ProducePacketName [11:27:31]name=ofd_packets/00082344 [11:27:31]OFD Sender: To server: pG, [11:27:31]CommunicateWithHost lk.salyk.kg:30040 [11:27:31]ConnectInit lk.salyk.kg [11:27:32]Write to MH i2c: 01 00 00 0F 11 20 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: 01 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: 01 07 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: 01 07 00 0F 11 00 00 00 00 00 E4 0C 17 [11:27:32]RasterBufferAndPrint [11:27:32]line [11:27:32]line [11:27:32]line [11:27:32]line [11:27:32]line [11:27:32]written 0, free lines is 3312 [11:27:32]MH_Cut [11:27:32]Write to MH i2c: D1 01 00 16 11 01 F9 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: D1 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: D1 01 00 [11:27:32]MH_I2C_Read... [11:27:32]Read from MH i2c: D1 01 00 16 11 00 F8 [11:27:32]Write to MH i2c: 01 00 00 17 11 28 [11:27:32]Write i2c OK [11:27:32]MH_I2C_Read... [11:27:32]Connected sock=10 [11:27:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 04 12 07 01 84 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 25 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 41 01 00 35 04 06 00 E8 C8 51 0D D6 24 3B 5B FA 09 FC 9E 9C 62 [11:27:32]*** Cut start [11:27:32]*** Partial cut [11:27:32]*** CUTSNS_PIN = 1 [11:27:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 51 9F 47 00 D9 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A8 41 01 00 F4 03 04 00 60 EB 11 67 B6 04 01 00 00 27 F4 CD E7 06 3F 6B AF [11:27:32]CommunicateWithHost err = 0 [11:27:32]CheckOFDResponse [11:27:32]1017 (14) - 77093643461234 [11:27:32]1041 (16) - 0000000000871843 [11:27:32]*** CUTSNS_PIN = 0 [11:27:32]1040 (4) - 82344 [11:27:32]1012 (4) - 18.10.2024 05:00 [11:27:32]1206 (1) - 0 [11:27:33]OFD Sender: Remove packet 82344 [11:27:33]ProducePacketName [11:27:33]name=ofd_packets/00082344 [11:27:33]NVStorageDeleteData [11:27:33]*** Brake cut motor [11:27:33]OFD Sender: No OFD packet to send [11:27:33]Read from MH i2c: 01 [11:27:33]MH_I2C_Read... [11:27:33]*** Stop cut motor [11:27:33]*** Cut end [11:27:33]Read from MH i2c: 01 07 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [11:27:33]process_action close_receipt done [11:27:33]requested_data is exist [11:27:33]produce_requested_data [11:27:33]requested_item fm.sn is exist - process it [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 11 00 00 [11:27:33]Write to MH i2c: E2 08 00 18 11 80 11 00 00 00 00 00 00 A3 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 17 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 17 00 18 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F5 [11:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:27:33]wFMCommunicate OK [11:27:33]requested_item fd.num is exist - process it [11:27:33]SAM_PROTO_GetFieldsCounters [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 13 00 00 [11:27:33]Write to MH i2c: E2 08 00 19 11 80 13 00 00 00 00 00 00 A6 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 62 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 62 00 19 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [11:27:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_GetFieldsCounters done [11:27:33]requested_item shift.num is exist - process it [11:27:33]requested_item shift.opened is exist - process it [11:27:33]req_shift_opened [11:27:33]FM_GetShiftState [11:27:33]SAM_PROTO_GetShiftState [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 13 01 00 [11:27:33]Write to MH i2c: E2 08 00 1A 11 80 13 01 00 00 00 00 00 A8 [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 1A 11 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 7A [11:27:33]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_GetShiftState done [11:27:33]FM_GetShiftState done [11:27:33]req_shift_opened done [11:27:33]requested_item shift.open_date is exist - process it [11:27:33]req_shift_open_date [11:27:33]req_shift_open_date done [11:27:33]produce_requested_data done [11:27:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82344,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:27:33]process_action_free close_receipt [11:27:33]json_value_free [11:27:33]json_value_free done [11:27:33]process_json_proto returns [11:27:33]Send response to host [11:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82344,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:27:33]free response buf [11:27:33]execute_script done [11:27:33]execute_script returns [11:27:33]free content buf [11:27:33]Sock 8.Close socket [11:27:33]Sock 8.Thread stoped [11:27:38]OFD Sender: No OFD packet to send [11:27:41]recv_with_timeout no data received [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:01]recv_with_timeout no data received [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:12]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:21]recv_with_timeout no data received [11:30:22]accept exits with 9 [11:30:22]New connection [11:30:22]New thread 3067440484 created [11:30:22]Thread 3067297124 joined [11:30:22]Waiting for new connection... [11:30:22] Sock 9.Parse request [11:30:22]Sock 9.Check first char [11:30:22]Sock 9.First char is OK [11:30:22]request: POST /json_proto HTTP/1.0 [11:30:22]Method: POST [11:30:22]URL: /json_proto [11:30:22]Method is POST - this is cgi request [11:30:22]url: /json_proto [11:30:22]query_string will be loaded in cgi processing [11:30:22]execute_cgi json_proto POST (null) [11:30:22]execute_cgi path=json_proto method=POST [11:30:22]POST find Content-Length [11:30:22]Host: 172.17.44.67:8080 [11:30:22]Content-Length: 683 [11:30:22]Content-Type: application/json [11:30:22] [11:30:22]POST finish read [11:30:22]Found Content-Length = 683 [11:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:22]execute_script... [11:30: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)918842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:22]POST & json_proto [11:30:22]process_json_proto [11:30:22]json parsed OK: [11:30:22]protocol is kg_v1.0 [11:30:22]action value=close_receipt [11:30:22]process_action close_receipt [11:30:22]cmd_close_receipt [11:30:22]MH_GetDate [11:30:22]Write to MH i2c: F0 00 00 1B 11 1B [11:30:22]Write i2c OK [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: F0 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: F0 09 00 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: F0 09 00 1B 11 00 D1 46 12 67 F1 C7 6B 64 3B [11:30:22]GetLastDocTimeStamp 1729250853 [11:30:22]current date 1729251025 [11:30:22]FM_GetShiftState [11:30:22]SAM_PROTO_GetShiftState [11:30:22]wFMCommunicate request_size=4 [11:30:22]MH_SAM_APDU [11:30:22]CAPDU: 80 13 01 00 [11:30:22]Write to MH i2c: E2 08 00 1C 11 80 13 01 00 00 00 00 00 AA [11:30:22]Write i2c OK [11:30:22]MH_I2C_Read... [11:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:22]Read from MH i2c: E2 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 0E 00 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 0E 00 1C 11 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 7C [11:30:22]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:30:22]wFMCommunicate OK [11:30:22]SAM_PROTO_GetShiftState done [11:30:22]FM_GetShiftState done [11:30:22]opened in 1729212319 [11:30:22]opened+sec_in_day 1729298719 [11:30:22]quantity*price = 80010 [11:30:22]sum+1 = 80011 [11:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 54 18.10.2024 11:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82345 ФПД: 239402546840231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113025&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82345&fm=239402546840231&tin=02508201610067®Number=0000000000091680&sum=80000 [11:30:23]StoreToDocumentArchive [11:30:23]shift 526 fd 82345 [11:30:23]save to /storage/0526/doc_00082345 [11:30:23]save last doc name /storage/0526/doc_00082345 to /storage/kkm_last_doc_name [11:30:23]save OK [11:30:23]Clear old archive folders... [11:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:30:23]tlvbuf is 00C543C0 [11:30:23]SAM_PROTO_ClearQueue [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 09 00 00 [11:30:23]Write to MH i2c: E2 08 00 29 11 80 09 00 00 00 00 00 00 AC [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]SAM_PROTO_ClearQueue done [11:30:23]KKMCreateOFDPacket [11:30:23]OFDProtocolAddRootSTLVToBuf [11:30:23]FM_MakeSignedData [11:30:23]FM_MakeSignedData [11:30:23]SAM_PROTO_SignData [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 01 02 [11:30:23]Write to MH i2c: E2 08 00 2A 11 80 0D 01 02 00 00 00 00 B4 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]wFMCommunicate request_size=255 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 41 01 00 35 04 06 00 [11:30:23]Write to MH i2c: E2 02 01 2B 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 41 01 00 35 04 06 00 00 00 13 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]OFD Sender: No OFD packet to send [11:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]wFMCommunicate request_size=11 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 02 02 06 D9 BC 3F C3 42 A7 [11:30:23]Write to MH i2c: E2 0E 00 2C 11 80 0D 02 02 06 00 D9 BC 3F C3 42 A7 00 00 43 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [11:30:23]RAPDU: 90 00 [11:30:23]wFMCommunicate OK [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 0D 03 02 [11:30:23]Write to MH i2c: E2 08 00 2D 11 80 0D 03 02 00 00 00 00 B9 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 0B 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 0B 00 2D 11 00 49 E6 7B B6 75 50 E3 00 90 00 C2 [11:30:23]RAPDU: 49 E6 7B B6 75 50 E3 00 90 00 [11:30:23]wFMCommunicate OK [11:30:23]SAM_PROTO_SignData done [11:30:23]FM_MakeSignedData done [11:30:23]CreateOFDProtocolMessage [11:30:23]wFMCommunicate request_size=4 [11:30:23]MH_SAM_APDU [11:30:23]CAPDU: 80 11 00 00 [11:30:23]Write to MH i2c: E2 08 00 2E 11 80 11 00 00 00 00 00 00 B9 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:23]Read from MH i2c: E2 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 17 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: E2 17 00 2E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0B [11:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:23]wFMCommunicate OK [11:30:23]CreateOFDProtocolMessage done [11:30:23]OFDSenderStorePacket 82345 [11:30:23]StoreOFDPacket docnum=82345 [11:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 DD 81 08 01 49 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 41 01 00 35 04 06 00 D9 BC 3F C3 42 A7 49 E6 7B B6 75 50 E3 00 [11:30:23]CheckFolder [11:30:23]dirname=/storage/ofd_packets [11:30:23]CheckFolder done [11:30:23]ProducePacketName [11:30:23]name=ofd_packets/00082345 [11:30:23]NVStorageSaveData ofd_packets/00082345 [11:30:23]File name is /storage/ofd_packets/00082345 [11:30:23]Write 302 bytes [11:30:23]NVStorageSaveData done [11:30:23]OFDSenderStorePacket done [11:30:23]KKMCreateOFDPacket done [11:30:23]NVStorageSaveData kkm_last_timestamp [11:30:23]File name is /storage/kkm_last_timestamp [11:30:23]Write 4 bytes [11:30:23]NVStorageSaveData done [11:30:23]ExternCall_PrintAddStr [11:30:23]wPrintStart [11:30:23]Write to MH i2c: 01 00 00 2F 11 40 [11:30:23]Write i2c OK [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: 01 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: 01 07 00 [11:30:23]MH_I2C_Read... [11:30:23]Read from MH i2c: 01 07 00 2F 11 00 00 00 00 00 FF 0F 55 [11:30:23]RasterBufferAndPrint [11:30:23]line Счет N : (1)918842 [11:30:23]line ИНН: 02508201610067 [11:30:23]line Контрольно-Кассовый Чек [11:30:23]line ПРОДАЖА [11:30:23]line ТРК (МРК, ГНК) : 31 [11:30:23]line Товар: 2710194210 [11:30:23]line ДТ(л)-К-5 [11:30:23]line 10.500 * 76.20 [11:30:23]line = 800.10 [11:30:23]line НДС 12% НСП 1% [11:30:23]line > о реализуемом товаре [11:30:23]line ОКРУГЛЕНИЕ: -0.10 [11:30:23]line ИТОГО: 800.00 [11:30:23]line Внесено: 800.00 [11:30:23]line СДАЧА: 0.00 [11:30:23]line НСП 1% : 7.08 [11:30:23]line НДС 12% : 84.97 [11:30:23]line Наличными: 800.00 [11:30:23]line Безнал.: 0.00 [11:30:23]line Место: АЗС № 114 "Партнер Нефть" [11:30:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:30:23]line СНО: Общий режим [11:30:23]line Чек 54 18.10.2024 11:30 [11:30:23]line Смена: 526 ФФД: 1.0 [11:30:23]line ЗНМ: 0300000086 [11:30:23]line РНМ: 0000000000091680 [11:30:23]line Версия ККМ: 001 [11:30:23]line ФМ: 0000000000871843 [11:30:23]line ФД: 82345 [11:30:23]line ФПД: 239402546840231 [11:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113025&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82345&fm=239402546840231&tin=02508201610067®Number=0000000000091680&sum=80000 [11:30:24]OFD Sender: Processing packet 82345 [packets to send 254, broken 253] [11:30:24]ProducePacketName [11:30:24]name=ofd_packets/00082345 [11:30:24]OFD Sender: To server: pG, [11:30:24]CommunicateWithHost lk.salyk.kg:30040 [11:30:24]ConnectInit lk.salyk.kg [11:30:24]written 0, free lines is 4095 [11:30:24]Write to MH i2c: 01 00 00 5A 11 6B [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: 01 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: 01 07 00 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: 01 07 00 5A 11 00 00 00 00 00 DC 0C 5A [11:30:24]RasterBufferAndPrint [11:30:24]line [11:30:24]line [11:30:24]line [11:30:24]line [11:30:24]line [11:30:24]written 0, free lines is 3298 [11:30:24]MH_Cut [11:30:24]Write to MH i2c: D1 01 00 61 11 01 44 [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: D1 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: D1 01 00 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: D1 01 00 61 11 00 43 [11:30:24]Write to MH i2c: 01 00 00 62 11 73 [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:25]Connected sock=10 [11:30:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 DD 81 08 01 49 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 D1 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 41 01 00 35 04 06 00 D9 BC 3F C3 42 A7 49 E6 7B B6 75 50 E3 00 [11:30:25]*** Cut start [11:30:25]*** Partial cut [11:30:25]*** CUTSNS_PIN = 1 [11:30:25]*** CUTSNS_PIN = 0 [11:30:25]*** Brake cut motor [11:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 60 F4 47 00 BF 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 A9 41 01 00 F4 03 04 00 0D EC 11 67 B6 04 01 00 00 7B E2 42 C7 AA 06 51 00 [11:30:25]CommunicateWithHost err = 0 [11:30:25]CheckOFDResponse [11:30:25]1017 (14) - 77093643461234 [11:30:25]1041 (16) - 0000000000871843 [11:30:25]1040 (4) - 82345 [11:30:25]1012 (4) - 18.10.2024 05:03 [11:30:25]1206 (1) - 0 [11:30:25]OFD Sender: Remove packet 82345 [11:30:25]ProducePacketName [11:30:25]name=ofd_packets/00082345 [11:30:25]NVStorageDeleteData [11:30:26]Read from MH i2c: 01 [11:30:26]MH_I2C_Read... [11:30:26]*** Stop cut motor [11:30:26]*** Cut end [11:30:26]Read from MH i2c: 01 07 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 FF 0F 88 [11:30:26]process_action close_receipt done [11:30:26]requested_data is exist [11:30:26]produce_requested_data [11:30:26]requested_item fm.sn is exist - process it [11:30:26]wFMCommunicate request_size=4 [11:30:26]MH_SAM_APDU [11:30:26]CAPDU: 80 11 00 00 [11:30:26]Write to MH i2c: E2 08 00 63 11 80 11 00 00 00 00 00 00 EE [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:26]Read from MH i2c: E2 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 17 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 17 00 63 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 40 [11:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:26]wFMCommunicate OK [11:30:26]requested_item fd.num is exist - process it [11:30:26]SAM_PROTO_GetFieldsCounters [11:30:26]wFMCommunicate request_size=4 [11:30:26]MH_SAM_APDU [11:30:26]CAPDU: 80 13 00 00 [11:30:26]Write to MH i2c: E2 08 00 64 11 80 13 00 00 00 00 00 00 F1 [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:26]Read from MH i2c: E2 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 62 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 62 00 64 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [11:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 A9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:26]wFMCommunicate OK [11:30:26]SAM_PROTO_GetFieldsCounters done [11:30:26]requested_item shift.num is exist - process it [11:30:26]requested_item shift.opened is exist - process it [11:30:26]req_shift_opened [11:30:26]FM_GetShiftState [11:30:26]SAM_PROTO_GetShiftState [11:30:26]wFMCommunicate request_size=4 [11:30:26]MH_SAM_APDU [11:30:26]CAPDU: 80 13 01 00 [11:30:26]Write to MH i2c: E2 08 00 65 11 80 13 01 00 00 00 00 00 F3 [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:26]OFD Sender: No OFD packet to send [11:30:26]Read from MH i2c: E2 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 0E 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: E2 0E 00 65 11 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C5 [11:30:26]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:30:26]wFMCommunicate OK [11:30:26]SAM_PROTO_GetShiftState done [11:30:26]FM_GetShiftState done [11:30:26]req_shift_opened done [11:30:26]requested_item shift.open_date is exist - process it [11:30:26]req_shift_open_date [11:30:26]req_shift_open_date done [11:30:26]produce_requested_data done [11:30:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82345,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:30:26]process_action_free close_receipt [11:30:26]json_value_free [11:30:26]json_value_free done [11:30:26]process_json_proto returns [11:30:26]Send response to host [11:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82345,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:30:26]free response buf [11:30:26]execute_script done [11:30:26]execute_script returns [11:30:26]free content buf [11:30:26]Sock 9.Close socket [11:30:26]Sock 9.Thread stoped [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:40]recv_with_timeout no data received [11:30:41]accept exits with 8 [11:30:41]New connection [11:30:41]New thread 3067297124 created [11:30:41]Thread 3067440484 joined [11:30:41]Waiting for new connection... [11:30:41] Sock 8.Parse request [11:30:41]Sock 8.Check first char [11:30:41]Sock 8.First char is OK [11:30:41]request: POST /json_proto HTTP/1.0 [11:30:41]Method: POST [11:30:41]URL: /json_proto [11:30:41]Method is POST - this is cgi request [11:30:41]url: /json_proto [11:30:41]query_string will be loaded in cgi processing [11:30:41]execute_cgi json_proto POST (null) [11:30:41]execute_cgi path=json_proto method=POST [11:30:41]POST find Content-Length [11:30:41]Host: 172.17.44.67:8080 [11:30:41]Content-Length: 687 [11:30:41]Content-Type: application/json [11:30:41] [11:30:41]POST finish read [11:30:41]Found Content-Length = 687 [11:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:41]execute_script... [11:30: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)918844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:41]POST & json_proto [11:30:41]process_json_proto [11:30:41]json parsed OK: [11:30:41]protocol is kg_v1.0 [11:30:41]action value=close_receipt [11:30:41]process_action close_receipt [11:30:41]cmd_close_receipt [11:30:41]MH_GetDate [11:30:41]Write to MH i2c: F0 00 00 66 11 66 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: F0 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: F0 09 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: F0 09 00 66 11 00 E4 46 12 67 F1 C7 6B 64 99 [11:30:41]GetLastDocTimeStamp 1729251025 [11:30:41]current date 1729251044 [11:30:41]FM_GetShiftState [11:30:41]SAM_PROTO_GetShiftState [11:30:41]wFMCommunicate request_size=4 [11:30:41]MH_SAM_APDU [11:30:41]CAPDU: 80 13 01 00 [11:30:41]Write to MH i2c: E2 08 00 67 11 80 13 01 00 00 00 00 00 F5 [11:30:41]Write i2c OK [11:30:41]MH_I2C_Read... [11:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:41]Read from MH i2c: E2 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 0E 00 [11:30:41]MH_I2C_Read... [11:30:41]Read from MH i2c: E2 0E 00 67 11 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C7 [11:30:41]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:30:41]wFMCommunicate OK [11:30:41]SAM_PROTO_GetShiftState done [11:30:41]FM_GetShiftState done [11:30:41]opened in 1729212319 [11:30:41]opened+sec_in_day 1729298719 [11:30:41]quantity*price = 100050 [11:30:41]sum+1 = 100052 [11:30:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 55 18.10.2024 11:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82346 ФПД: 37091449491655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113044&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82346&fm=37091449491655&tin=02508201610067®Number=0000000000091680&sum=100000 [11:30:42]StoreToDocumentArchive [11:30:42]shift 526 fd 82346 [11:30:42]save to /storage/0526/doc_00082346 [11:30:42]save last doc name /storage/0526/doc_00082346 to /storage/kkm_last_doc_name [11:30:42]save OK [11:30:42]Clear old archive folders... [11:30:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:30:42]tlvbuf is 00B0E080 [11:30:42]SAM_PROTO_ClearQueue [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 09 00 00 [11:30:42]Write to MH i2c: E2 08 00 74 11 80 09 00 00 00 00 00 00 F7 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 74 11 00 90 00 F9 [11:30:42]RAPDU: 90 00 [11:30:42]wFMCommunicate OK [11:30:42]SAM_PROTO_ClearQueue done [11:30:42]KKMCreateOFDPacket [11:30:42]OFDProtocolAddRootSTLVToBuf [11:30:42]FM_MakeSignedData [11:30:42]FM_MakeSignedData [11:30:42]SAM_PROTO_SignData [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 0D 01 02 [11:30:42]Write to MH i2c: E2 08 00 75 11 80 0D 01 02 00 00 00 00 FF [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 75 11 00 90 00 FA [11:30:42]RAPDU: 90 00 [11:30:42]wFMCommunicate OK [11:30:42]wFMCommunicate request_size=255 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E4 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 41 01 00 35 04 06 00 [11:30:42]Write to MH i2c: E2 02 01 76 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E4 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 41 01 00 35 04 06 00 00 00 40 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 76 11 00 90 00 FB [11:30:42]RAPDU: 90 00 [11:30:42]wFMCommunicate OK [11:30:42]wFMCommunicate request_size=11 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 0D 02 02 06 21 BC 06 AB D0 C7 [11:30:42]Write to MH i2c: E2 0E 00 77 11 80 0D 02 02 06 00 21 BC 06 AB D0 C7 00 00 33 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 03 00 77 11 00 90 00 FC [11:30:42]RAPDU: 90 00 [11:30:42]wFMCommunicate OK [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 0D 03 02 [11:30:42]Write to MH i2c: E2 08 00 78 11 80 0D 03 02 00 00 00 00 04 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 0B 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 0B 00 78 11 00 9C CF 86 DD CB A7 8A 1B 90 00 EA [11:30:42]RAPDU: 9C CF 86 DD CB A7 8A 1B 90 00 [11:30:42]wFMCommunicate OK [11:30:42]SAM_PROTO_SignData done [11:30:42]FM_MakeSignedData done [11:30:42]CreateOFDProtocolMessage [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 11 00 00 [11:30:42]Write to MH i2c: E2 08 00 79 11 80 11 00 00 00 00 00 00 04 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 17 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 17 00 79 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 56 [11:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:42]wFMCommunicate OK [11:30:42]CreateOFDProtocolMessage done [11:30:42]OFDSenderStorePacket 82346 [11:30:42]StoreOFDPacket docnum=82346 [11:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 A9 E1 08 01 D6 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E4 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 41 01 00 35 04 06 00 21 BC 06 AB D0 C7 9C CF 86 DD CB A7 8A 1B [11:30:42]CheckFolder [11:30:42]dirname=/storage/ofd_packets [11:30:42]CheckFolder done [11:30:42]ProducePacketName [11:30:42]name=ofd_packets/00082346 [11:30:42]NVStorageSaveData ofd_packets/00082346 [11:30:42]File name is /storage/ofd_packets/00082346 [11:30:42]Write 302 bytes [11:30:42]NVStorageSaveData done [11:30:42]OFDSenderStorePacket done [11:30:42]KKMCreateOFDPacket done [11:30:42]NVStorageSaveData kkm_last_timestamp [11:30:42]File name is /storage/kkm_last_timestamp [11:30:42]Write 4 bytes [11:30:42]NVStorageSaveData done [11:30:42]ExternCall_PrintAddStr [11:30:42]wPrintStart [11:30:42]Write to MH i2c: 01 00 00 7A 11 8B [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: 01 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: 01 07 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: 01 07 00 7A 11 00 00 00 00 00 FF 0F A0 [11:30:42]RasterBufferAndPrint [11:30:42]line Счет N : (1)918844 [11:30:42]line ИНН: 02508201610067 [11:30:42]line Контрольно-Кассовый Чек [11:30:42]line ПРОДАЖА [11:30:42]line ТРК (МРК, ГНК) : 31 [11:30:42]line Товар: 2710194210 [11:30:42]line ДТ(л)-К-5 [11:30:42]line 13.130 * 76.20 [11:30:42]line = 1000.51 [11:30:42]line НДС 12% НСП 1% [11:30:42]line > о реализуемом товаре [11:30:42]line ОКРУГЛЕНИЕ: -0.51 [11:30:42]line ИТОГО: 1000.00 [11:30:42]line Внесено: 1000.00 [11:30:42]line СДАЧА: 0.00 [11:30:42]line НСП 1% : 8.85 [11:30:42]line НДС 12% : 106.25 [11:30:42]line Наличными: 1000.00 [11:30:42]line Безнал.: 0.00 [11:30:42]line Место: АЗС № 114 "Партнер Нефть" [11:30:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:30:42]line СНО: Общий режим [11:30:42]line Чек 55 18.10.2024 11:30 [11:30:42]line Смена: 526 ФФД: 1.0 [11:30:42]line ЗНМ: 0300000086 [11:30:42]line РНМ: 0000000000091680 [11:30:42]line Версия ККМ: 001 [11:30:42]line ФМ: 0000000000871843 [11:30:42]line ФД: 82346 [11:30:42]line ФПД: 37091449491655 [11:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113044&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82346&fm=37091449491655&tin=02508201610067®Number=0000000000091680&sum=100000 [11:30:42]written 0, free lines is 4095 [11:30:42]OFD Sender: Processing packet 82346 [packets to send 254, broken 253] [11:30:42]ProducePacketName [11:30:42]name=ofd_packets/00082346 [11:30:42]OFD Sender: To server: pG, [11:30:42]CommunicateWithHost lk.salyk.kg:30040 [11:30:42]ConnectInit lk.salyk.kg [11:30:43]Write to MH i2c: 01 00 00 A5 11 B6 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: 01 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: 01 07 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: 01 07 00 A5 11 00 00 00 00 00 EA 0C B3 [11:30:43]RasterBufferAndPrint [11:30:43]line [11:30:43]line [11:30:43]line [11:30:43]line [11:30:43]line [11:30:43]written 0, free lines is 3315 [11:30:43]MH_Cut [11:30:43]Write to MH i2c: D1 01 00 AC 11 01 8F [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: D1 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: D1 01 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: D1 01 00 AC 11 00 8E [11:30:43]Write to MH i2c: 01 00 00 AD 11 BE [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:44]*** Cut start [11:30:44]*** Partial cut [11:30:44]*** CUTSNS_PIN = 1 [11:30:44]*** CUTSNS_PIN = 0 [11:30:44]*** Brake cut motor [11:30:44]Read from MH i2c: 01 [11:30:44]MH_I2C_Read... [11:30:44]*** Stop cut motor [11:30:44]*** Cut end [11:30:44]Read from MH i2c: 01 07 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 FF 0F D3 [11:30:44]process_action close_receipt done [11:30:44]requested_data is exist [11:30:44]produce_requested_data [11:30:44]requested_item fm.sn is exist - process it [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 11 00 00 [11:30:44]Write to MH i2c: E2 08 00 AE 11 80 11 00 00 00 00 00 00 39 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 17 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 17 00 AE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8B [11:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:44]wFMCommunicate OK [11:30:44]requested_item fd.num is exist - process it [11:30:44]SAM_PROTO_GetFieldsCounters [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 13 00 00 [11:30:44]Write to MH i2c: E2 08 00 AF 11 80 13 00 00 00 00 00 00 3C [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 62 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 62 00 AF 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [11:30:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:44]wFMCommunicate OK [11:30:44]SAM_PROTO_GetFieldsCounters done [11:30:44]requested_item shift.num is exist - process it [11:30:44]requested_item shift.opened is exist - process it [11:30:44]req_shift_opened [11:30:44]FM_GetShiftState [11:30:44]SAM_PROTO_GetShiftState [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 13 01 00 [11:30:44]Write to MH i2c: E2 08 00 B0 11 80 13 01 00 00 00 00 00 3E [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 0E 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 0E 00 B0 11 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 10 [11:30:45]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:30:45]wFMCommunicate OK [11:30:45]SAM_PROTO_GetShiftState done [11:30:45]FM_GetShiftState done [11:30:45]req_shift_opened done [11:30:45]requested_item shift.open_date is exist - process it [11:30:45]req_shift_open_date [11:30:45]req_shift_open_date done [11:30:45]produce_requested_data done [11:30:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82346,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:30:45]process_action_free close_receipt [11:30:45]json_value_free [11:30:45]json_value_free done [11:30:45]process_json_proto returns [11:30:45]Send response to host [11:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82346,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:30:45]free response buf [11:30:45]execute_script done [11:30:45]execute_script returns [11:30:45]free content buf [11:30:45]Sock 8.Close socket [11:30:45]Sock 8.Thread stoped [11:30:47]accept exits with 9 [11:30:47]New connection [11:30:47]New thread 3067440484 created [11:30:47]Thread 3067297124 joined [11:30:47]Waiting for new connection... [11:30:47] Sock 9.Parse request [11:30:47]Sock 9.Check first char [11:30:47]Sock 9.First char is OK [11:30:47]request: POST /json_proto HTTP/1.0 [11:30:47]Method: POST [11:30:47]URL: /json_proto [11:30:47]Method is POST - this is cgi request [11:30:47]url: /json_proto [11:30:47]query_string will be loaded in cgi processing [11:30:47]execute_cgi json_proto POST (null) [11:30:47]execute_cgi path=json_proto method=POST [11:30:47]POST find Content-Length [11:30:47]Host: 172.17.44.67:8080 [11:30:47]Content-Length: 743 [11:30:47]Content-Type: application/json [11:30:47] [11:30:47]POST finish read [11:30:47]Found Content-Length = 743 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [11:30:48]Write to MH i2c: E2 1C 00 BC 11 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 AE [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]wFMCommunicate request_size=13 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 15 02 00 08 27 04 04 00 AA 41 01 00 [11:30:48]Write to MH i2c: E2 10 00 BD 11 80 15 02 00 08 00 27 04 04 00 AA 41 01 00 00 00 79 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]wFMCommunicate request_size=25 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 15 02 00 14 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 [11:30:48]Write to MH i2c: E2 1C 00 BE 11 80 15 02 00 14 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 00 00 D2 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 15 03 00 [11:30:48]Write to MH i2c: E2 08 00 BF 11 80 15 03 00 00 00 00 00 51 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 40 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 40 00 BF 11 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 38 00 00 00 35 04 06 00 79 8C 85 AE FB 63 90 00 11 [11:30:48]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 38 00 00 00 35 04 06 00 79 8C 85 AE FB 63 90 00 [11:30:48]wFMCommunicate OK [11:30:48]SAM_PROTO_ProcessDocument answer len = 59 [11:30:48]SAM_PROTO_ProcessDocument done [11:30:48]SetTLVBufToDocument [11:30:48]Processing tag 1209 (04B9) [11:30:48]Malloc new data [11:30:48]Processing tag 1041 (0411) [11:30:48]Processing tag 1040 (0410) [11:30:48]Malloc new data [11:30:48]Processing tag 1038 (040E) [11:30:48]Malloc new data [11:30:48]Processing tag 1042 (0412) [11:30:48]Malloc new data [11:30:48]Processing tag 1077 (0435) [11:30:48]Malloc new data [11:30:48]SetTLVBufToDocument err=0 [11:30:48]KKMLoadAndSignReceiptData store KKM data [11:30:48]KKMLoadAndSignReceiptData err=0 [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 11 00 00 [11:30:48]Write to MH i2c: E2 08 00 C0 11 80 11 00 00 00 00 00 00 4B [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 C0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9D [11:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:49]wFMCommunicate OK [11:30:49]Счет N : (1)918844 ИНН: 02508201610067 Контрольно-Кассовый Чек ВОЗВРАТ ПРОДАЖИ ТРК (МРК, ГНК) : 31 Товар: 2710194210 ДТ(л)-К-5 13.130 * 76.20 = 1000.51 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 56 18.10.2024 11:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФД осн.: 82346 ФМ осн.: 0000000000871843 ФМ: 0000000000871843 ФД: 82347 ФПД: 133644445219683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113051&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82347&fm=133644445219683&tin=02508201610067®Number=0000000000091680&sum=100000 [11:30:49]StoreToDocumentArchive [11:30:49]shift 526 fd 82347 [11:30:49]save to /storage/0526/doc_00082347 [11:30:49]save last doc name /storage/0526/doc_00082347 to /storage/kkm_last_doc_name [11:30:49]save OK [11:30:49]Clear old archive folders... [11:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:30:49]tlvbuf is 00B410C0 [11:30:49]SAM_PROTO_ClearQueue [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 09 00 00 [11:30:49]Write to MH i2c: E2 08 00 C1 11 80 09 00 00 00 00 00 00 44 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_ClearQueue done [11:30:49]KKMCreateOFDPacket [11:30:49]OFDProtocolAddRootSTLVToBuf [11:30:49]FM_MakeSignedData [11:30:49]FM_MakeSignedData [11:30:49]SAM_PROTO_SignData [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 01 02 [11:30:49]Write to MH i2c: E2 08 00 C2 11 80 0D 01 02 00 00 00 00 4C [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=255 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 EB 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 AA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 [11:30:49]Write to MH i2c: E2 02 01 C3 11 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 EB 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 AA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 00 00 C7 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=39 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 41 01 00 35 04 06 00 79 8C 85 AE FB 63 [11:30:49]Write to MH i2c: E2 2A 00 C4 11 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 41 01 00 35 04 06 00 79 8C 85 AE FB 63 00 00 8C [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 C4 11 00 90 00 49 [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 03 02 [11:30:49]Write to MH i2c: E2 08 00 C5 11 80 0D 03 02 00 00 00 00 51 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 C5 11 00 01 56 99 BB CA CF 9E 11 90 00 45 [11:30:49]RAPDU: 01 56 99 BB CA CF 9E 11 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_SignData done [11:30:49]FM_MakeSignedData done [11:30:49]CreateOFDProtocolMessage [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 11 00 00 [11:30:49]Write to MH i2c: E2 08 00 C6 11 80 11 00 00 00 00 00 00 51 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 C6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A3 [11:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:49]wFMCommunicate OK [11:30:49]CreateOFDProtocolMessage done [11:30:49]OFDSenderStorePacket 82347 [11:30:49]StoreOFDPacket docnum=82347 [11:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 9A 2B 24 01 39 40 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 EB 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 AA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AB 41 01 00 35 04 06 00 79 8C 85 AE FB 63 01 56 99 BB CA CF 9E 11 [11:30:49]CheckFolder [11:30:49]dirname=/storage/ofd_packets [11:30:49]CheckFolder done [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00082347 [11:30:49]NVStorageSaveData ofd_packets/00082347 [11:30:49]File name is /storage/ofd_packets/00082347 [11:30:49]Write 330 bytes [11:30:49]NVStorageSaveData done [11:30:49]OFDSenderStorePacket done [11:30:49]KKMCreateOFDPacket done [11:30:49]NVStorageSaveData kkm_last_timestamp [11:30:49]File name is /storage/kkm_last_timestamp [11:30:49]Write 4 bytes [11:30:49]NVStorageSaveData done [11:30:49]ExternCall_PrintAddStr [11:30:49]wPrintStart [11:30:49]Write to MH i2c: 01 00 00 C7 11 D8 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 FF 0F ED [11:30:49]RasterBufferAndPrint [11:30:49]line Счет N : (1)918844 [11:30:49]line ИНН: 02508201610067 [11:30:49]line Контрольно-Кассовый Чек [11:30:49]line ВОЗВРАТ ПРОДАЖИ [11:30:49]line ТРК (МРК, ГНК) : 31 [11:30:49]line Товар: 2710194210 [11:30:49]line ДТ(л)-К-5 [11:30:49]line 13.130 * 76.20 [11:30:49]line = 1000.51 [11:30:49]line НДС 12% НСП 1% [11:30:49]line > о реализуемом товаре [11:30:49]line ОКРУГЛЕНИЕ: -0.51 [11:30:49]line ИТОГО: 1000.00 [11:30:49]line НСП 1% : 8.85 [11:30:49]line НДС 12% : 106.25 [11:30:49]line Наличными: 1000.00 [11:30:49]line Безнал.: 0.00 [11:30:49]line Место: АЗС № 114 "Партнер Нефть" [11:30:49]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:30:49]line СНО: Общий режим [11:30:49]line Чек 56 18.10.2024 11:30 [11:30:49]line Смена: 526 ФФД: 1.0 [11:30:49]line ЗНМ: 0300000086 [11:30:49]line РНМ: 0000000000091680 [11:30:49]line Версия ККМ: 001 [11:30:49]line ФД осн.: 82346 [11:30:49]line ФМ осн.: 0000000000871843 [11:30:49]line ФМ: 0000000000871843 [11:30:49]line ФД: 82347 [11:30:49]line ФПД: 133644445219683 [11:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113051&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82347&fm=133644445219683&tin=02508201610067®Number=0000000000091680&sum=100000 [11:30:49]written 0, free lines is 4095 [11:30:49]OFD Sender: Processing packet 82346 [packets to send 255, broken 253] [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00082346 [11:30:49]OFD Sender: To server: pG, [11:30:49]CommunicateWithHost lk.salyk.kg:30040 [11:30:49]ConnectInit lk.salyk.kg [11:30:50]Write to MH i2c: 01 00 00 F2 11 03 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 F2 11 00 00 00 00 00 F7 0C 0D [11:30:50]RasterBufferAndPrint [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]written 0, free lines is 3335 [11:30:50]MH_Cut [11:30:50]Write to MH i2c: D1 01 00 F9 11 01 DC [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 F9 11 00 DB [11:30:50]Write to MH i2c: 01 00 00 FA 11 0B [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]*** Cut start [11:30:50]*** Partial cut [11:30:50]*** CUTSNS_PIN = 1 [11:30:51]*** CUTSNS_PIN = 0 [11:30:51]*** Brake cut motor [11:30:51]Read from MH i2c: 01 [11:30:51]MH_I2C_Read... [11:30:51]*** Stop cut motor [11:30:51]*** Cut end [11:30:51]Read from MH i2c: 01 07 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: 01 07 00 FA 11 00 00 00 00 00 FF 0F 20 [11:30:51]process_action close_receipt done [11:30:51]requested_data is exist [11:30:51]produce_requested_data [11:30:51]requested_item fm.sn is exist - process it [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 11 00 00 [11:30:51]Write to MH i2c: E2 08 00 FB 11 80 11 00 00 00 00 00 00 86 [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 17 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 17 00 FB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D8 [11:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:30:51]wFMCommunicate OK [11:30:51]requested_item fd.num is exist - process it [11:30:51]SAM_PROTO_GetFieldsCounters [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 13 00 00 [11:30:51]Write to MH i2c: E2 08 00 FC 11 80 13 00 00 00 00 00 00 89 [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 62 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 62 00 FC 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:51]wFMCommunicate OK [11:30:51]SAM_PROTO_GetFieldsCounters done [11:30:51]requested_item shift.num is exist - process it [11:30:51]requested_item shift.opened is exist - process it [11:30:51]req_shift_opened [11:30:51]FM_GetShiftState [11:30:51]SAM_PROTO_GetShiftState [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 13 01 00 [11:30:51]Write to MH i2c: E2 08 00 FD 11 80 13 01 00 00 00 00 00 8B [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 0E 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 0E 00 FD 11 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 5D [11:30:51]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:30:51]wFMCommunicate OK [11:30:51]SAM_PROTO_GetShiftState done [11:30:51]FM_GetShiftState done [11:30:51]req_shift_opened done [11:30:51]requested_item shift.open_date is exist - process it [11:30:51]req_shift_open_date [11:30:51]req_shift_open_date done [11:30:51]produce_requested_data done [11:30:51]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82347,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:30:51]process_action_free close_receipt [11:30:51]json_value_free [11:30:51]json_value_free done [11:30:51]process_json_proto returns [11:30:51]Send response to host [11:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82347,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:30:51]free response buf [11:30:51]execute_script done [11:30:51]execute_script returns [11:30:51]free content buf [11:30:51]Sock 9.Close socket [11:30:51]Sock 9.Thread stoped [11:30:54]ConnectInit Can't take IP for lk.salyk.kg [11:30:54]CommunicateWithHost connect error [11:30:54]CommunicateWithHost err = -1 [11:30:54]OFD Sender: Server communicate error [11:30:59]OFD Sender: Processing packet 82346 [packets to send 255, broken 253] [11:30:59]ProducePacketName [11:30:59]name=ofd_packets/00082346 [11:30:59]OFD Sender: To server: pG, [11:30:59]CommunicateWithHost lk.salyk.kg:30040 [11:30:59]ConnectInit lk.salyk.kg [11:31:04]ConnectInit Can't take IP for lk.salyk.kg [11:31:04]CommunicateWithHost connect error [11:31:04]CommunicateWithHost err = -1 [11:31:04]OFD Sender: Server communicate error [11:31:09]OFD Sender: Processing packet 82346 [packets to send 255, broken 253] [11:31:09]ProducePacketName [11:31:09]name=ofd_packets/00082346 [11:31:09]OFD Sender: To server: pG, [11:31:09]CommunicateWithHost lk.salyk.kg:30040 [11:31:09]ConnectInit lk.salyk.kg [11:31:13]recv_with_timeout no data received [11:31:15]Connected sock=9 [11:31:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 A9 E1 08 01 D6 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E4 46 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AA 41 01 00 35 04 06 00 21 BC 06 AB D0 C7 9C CF 86 DD CB A7 8A 1B [11:31:16]accept exits with 12 [11:31:16]New connection [11:31:16]New thread 3067297124 created [11:31:16]Thread 3067440484 joined [11:31:16]Waiting for new connection... [11:31:16] Sock 12.Parse request [11:31:16]Sock 12.Check first char [11:31:16]Sock 12.First char is OK [11:31:16]request: POST /json_proto HTTP/1.0 [11:31:16]Method: POST [11:31:16]URL: /json_proto [11:31:16]Method is POST - this is cgi request [11:31:16]url: /json_proto [11:31:16]query_string will be loaded in cgi processing [11:31:16]execute_cgi json_proto POST (null) [11:31:16]execute_cgi path=json_proto method=POST [11:31:16]POST find Content-Length [11:31:16]Host: 172.17.44.67:8080 [11:31:16]Content-Length: 800 [11:31:16]Content-Type: application/json [11:31:16] [11:31:16]POST finish read [11:31:16]Found Content-Length = 800 [11:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4563813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:16]execute_script... [11:31: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)918843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4563813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:16]POST & json_proto [11:31:16]process_json_proto [11:31:16]json parsed OK: [11:31:16]protocol is kg_v1.0 [11:31:16]action value=close_receipt [11:31:16]process_action close_receipt [11:31:16]cmd_close_receipt [11:31:16]MH_GetDate [11:31:16]Write to MH i2c: F0 00 00 FE 11 FE [11:31:16]Write i2c OK [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: F0 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: F0 09 00 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: F0 09 00 FE 11 00 08 47 12 67 F1 C7 6B 64 56 [11:31:16]GetLastDocTimeStamp 1729251051 [11:31:16]current date 1729251080 [11:31:16]FM_GetShiftState [11:31:16]SAM_PROTO_GetShiftState [11:31:16]wFMCommunicate request_size=4 [11:31:16]MH_SAM_APDU [11:31:16]CAPDU: 80 13 01 00 [11:31:16]Write to MH i2c: E2 08 00 FF 11 80 13 01 00 00 00 00 00 8D [11:31:16]Write i2c OK [11:31:16]MH_I2C_Read... [11:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:16]Read from MH i2c: E2 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 0E 00 [11:31:16]MH_I2C_Read... [11:31:16]Read from MH i2c: E2 0E 00 FF 11 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 5F [11:31:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:31:16]wFMCommunicate OK [11:31:16]SAM_PROTO_GetShiftState done [11:31:16]FM_GetShiftState done [11:31:16]opened in 1729212319 [11:31:16]opened+sec_in_day 1729298719 [11:31:16]quantity*price = 0 [11:31:16]sum+1 = 1 [11:31:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре [11:46:50]line ОКРУГЛЕНИЕ: -0.41 [11:46:50]line ИТОГО: 500.00 [11:46:50]line Внесено: 500.00 [11:46:50]line СДАЧА: 0.00 [11:46:50]line НСП 1% : 4.43 [11:46:50]line НДС 12% : 53.14 [11:46:50]line Наличными: 500.00 [11:46:50]line Безнал.: 0.00 [11:46:50]line Место: АЗС № 114 "Партнер Нефть" [11:46:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:46:50]line СНО: Общий режим [11:46:50]line Чек 58 18.10.2024 11:32 [11:46:50]line Смена: 526 ФФД: 1.0 [11:46:50]line ЗНМ: 0300000086 [11:46:50]line РНМ: 0000000000091680 [11:46:50]line Версия ККМ: 001 [11:46:50]line ФМ: 0000000000871843 [11:46:50]line ФД: 82349 [11:46:50]line ФПД: 256672222605393 [11:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113237&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82349&fm=256672222605393&tin=02508201610067®Number=0000000000091680&sum=50000 [11:46:50]written 0, free lines is 4095 [11:46:51]Write to MH i2c: 01 00 00 48 00 48 [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: 01 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: 01 07 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E2 0C 3D [11:46:51]RasterBufferAndPrint [11:46:51]line [11:46:51]line [11:46:51]line [11:46:51]line [11:46:51]line [11:46:51]written 0, free lines is 3316 [11:46:51]MH_Cut [11:46:51]Write to MH i2c: D1 01 00 4F 00 01 21 [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: D1 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: D1 01 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: D1 01 00 4F 00 00 20 [11:46:51]Write to MH i2c: 01 00 00 50 00 50 [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** Cut start [11:46:51]*** Partial cut [11:46:51]*** CUTSNS_PIN = 1 [11:46:51]*** CUTSNS_PIN = 0 [11:46:52]*** Brake cut motor [11:46:52]Read from MH i2c: 01 [11:46:52]MH_I2C_Read... [11:46:52]*** Stop cut motor [11:46:52]*** Cut end [11:46:52]Read from MH i2c: 01 07 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [11:46:52]process_action print_doc done [11:46:52]requested_data is exist [11:46:52]produce_requested_data [11:46:52]produce_requested_data return (null) [11:46:52]process_action_free print_doc [11:46:52]json_value_free [11:46:52]json_value_free done [11:46:52]process_json_proto returns [11:46:52]Send response to host [11:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [11:46:52]free response buf [11:46:52]execute_script done [11:46:52]execute_script returns [11:46:52]free content buf [11:46:52]Sock 8.Close socket [11:46:52]Sock 8.Thread stoped [11:46:52]accept exits with 10 [11:46:52]New connection [11:46:52]New thread 3067071844 created [11:46:52]Thread 3067215204 joined [11:46:52]Waiting for new connection... [11:46:52] Sock 10.Parse request [11:46:52]Sock 10.Check first char [11:46:52]Sock 10.First char is OK [11:46:52]request: POST /json_proto HTTP/1.0 [11:46:52]Method: POST [11:46:52]URL: /json_proto [11:46:52]Method is POST - this is cgi request [11:46:52]url: /json_proto [11:46:52]query_string will be loaded in cgi processing [11:46:52]execute_cgi json_proto POST (null) [11:46:52]execute_cgi path=json_proto method=POST [11:46:52]POST find Content-Length [11:46:52]Host: 172.17.44.67:8080 [11:46:52]Content-Length: 677 [11:46:52]Content-Type: application/json [11:46:52] [11:46:52]POST finish read [11:46:52]Found Content-Length = 677 [11:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:52]execute_script... [11:46:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:52]POST & json_proto [11:46:52]process_json_proto [11:46:52]json parsed OK: [11:46:52]protocol is kg_v1.0 [11:46:52]action value=close_receipt [11:46:52]process_action close_receipt [11:46:52]cmd_close_receipt [11:46:52]MH_GetDate [11:46:52]Write to MH i2c: F0 00 00 51 00 40 [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: F0 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: F0 09 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: F0 09 00 51 00 00 AD 4A 12 67 F1 C7 6B 64 40 [11:46:52]GetLastDocTimeStamp 1729251157 [11:46:52]current date 1729252013 [11:46:52]FM_GetShiftState [11:46:52]SAM_PROTO_GetShiftState [11:46:52]wFMCommunicate request_size=4 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 13 01 00 [11:46:52]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 0E 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A1 [11:46:52]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:46:52]wFMCommunicate OK [11:46:52]SAM_PROTO_GetShiftState done [11:46:52]FM_GetShiftState done [11:46:52]opened in 1729212319 [11:46:52]opened+sec_in_day 1729298719 [11:46:52]quantity*price = 50041 [11:46:52]sum+1 = 50042 [11:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 59 18.10.2024 11:46 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82350 ФПД: 70085480186074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82350&fm=70085480186074&tin=02508201610067®Number=0000000000091680&sum=50000 [11:46:53]StoreToDocumentArchive [11:46:53]shift 526 fd 82350 [11:46:53]save to /storage/0526/doc_00082350 [11:46:53]save last doc name /storage/0526/doc_00082350 to /storage/kkm_last_doc_name [11:46:53]save OK [11:46:53]Clear old archive folders... [11:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:53]tlvbuf is 00A83600 [11:46:53]SAM_PROTO_ClearQueue [11:46:53]wFMCommunicate request_size=4 [11:46:53]MH_SAM_APDU [11:46:53]CAPDU: 80 09 00 00 [11:46:53]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:53]Read from MH i2c: E2 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 03 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [11:46:53]RAPDU: 90 00 [11:46:53]wFMCommunicate OK [11:46:53]SAM_PROTO_ClearQueue done [11:46:53]KKMCreateOFDPacket [11:46:53]OFDProtocolAddRootSTLVToBuf [11:46:53]FM_MakeSignedData [11:46:53]FM_MakeSignedData [11:46:53]SAM_PROTO_SignData [11:46:53]wFMCommunicate request_size=4 [11:46:53]MH_SAM_APDU [11:46:53]CAPDU: 80 0D 01 02 [11:46:53]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [11:46:54]RAPDU: 90 00 [11:46:54]wFMCommunicate OK [11:46:54]wFMCommunicate request_size=255 [11:46:54]MH_SAM_APDU [11:46: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AD 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 41 01 00 35 04 06 00 3F [11:46:54]Write to MH i2c: E2 02 01 61 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AD 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 41 01 00 35 04 06 00 3F 00 00 4F [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [11:46:54]RAPDU: 90 00 [11:46:54]wFMCommunicate OK [11:46:54]wFMCommunicate request_size=10 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 0D 02 02 05 BE 0C 26 80 DA [11:46:54]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 BE 0C 26 80 DA 00 00 30 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [11:46:54]RAPDU: 90 00 [11:46:54]wFMCommunicate OK [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 0D 03 02 [11:46:54]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0B 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0B 00 63 00 00 6E 63 44 1F 17 AA 3C 2C 90 00 3C [11:46:54]RAPDU: 6E 63 44 1F 17 AA 3C 2C 90 00 [11:46:54]wFMCommunicate OK [11:46:54]SAM_PROTO_SignData done [11:46:54]FM_MakeSignedData done [11:46:54]CreateOFDProtocolMessage [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 11 00 00 [11:46:54]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 17 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [11:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:46:54]wFMCommunicate OK [11:46:54]CreateOFDProtocolMessage done [11:46:54]OFDSenderStorePacket 82350 [11:46:54]StoreOFDPacket docnum=82350 [11:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 47 AE 07 01 55 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AD 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 41 01 00 35 04 06 00 3F BE 0C 26 80 DA 6E 63 44 1F 17 AA 3C 2C [11:46:54]CheckFolder [11:46:54]dirname=/storage/ofd_packets [11:46:54]CheckFolder done [11:46:54]ProducePacketName [11:46:54]name=ofd_packets/00082350 [11:46:54]NVStorageSaveData ofd_packets/00082350 [11:46:54]File name is /storage/ofd_packets/00082350 [11:46:54]Write 301 bytes [11:46:54]NVStorageSaveData done [11:46:54]OFDSenderStorePacket done [11:46:54]KKMCreateOFDPacket done [11:46:54]NVStorageSaveData kkm_last_timestamp [11:46:54]File name is /storage/kkm_last_timestamp [11:46:54]Write 4 bytes [11:46:54]NVStorageSaveData done [11:46:54]ExternCall_PrintAddStr [11:46:54]wPrintStart [11:46:54]Write to MH i2c: 01 00 00 65 00 65 [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: 01 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: 01 07 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [11:46:54]RasterBufferAndPrint [11:46:54]line Счет N : (1)918846 [11:46:54]line ИНН: 02508201610067 [11:46:54]line Контрольно-Кассовый Чек [11:46:54]line ПРОДАЖА [11:46:54]line ТРК (МРК, ГНК) : 22 [11:46:54]line Товар: 2710124130 [11:46:54]line Аи-92-К-4 [11:46:54]line 7.480 * 66.90 [11:46:54]line = 500.41 [11:46:54]line НДС 12% НСП 1% [11:46:54]line > о реализуемом товаре [11:46:54]line ОКРУГЛЕНИЕ: -0.41 [11:46:54]line ИТОГО: 500.00 [11:46:54]line Внесено: 500.00 [11:46:54]line СДАЧА: 0.00 [11:46:54]line НСП 1% : 4.43 [11:46:54]line НДС 12% : 53.14 [11:46:54]line Наличными: 500.00 [11:46:54]line Безнал.: 0.00 [11:46:54]line Место: АЗС № 114 "Партнер Нефть" [11:46:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:46:54]line СНО: Общий режим [11:46:54]line Чек 59 18.10.2024 11:46 [11:46:54]line Смена: 526 ФФД: 1.0 [11:46:54]line ЗНМ: 0300000086 [11:46:54]line РНМ: 0000000000091680 [11:46:54]line Версия ККМ: 001 [11:46:54]line ФМ: 0000000000871843 [11:46:54]line ФД: 82350 [11:46:54]line ФПД: 70085480186074 [11:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82350&fm=70085480186074&tin=02508201610067®Number=0000000000091680&sum=50000 [11:46:55]written 0, free lines is 4095 [11:46:55]OFD Sender: Processing packet 82350 [packets to send 254, broken 253] [11:46:55]ProducePacketName [11:46:55]name=ofd_packets/00082350 [11:46:55]OFD Sender: To server: pG, [11:46:55]CommunicateWithHost lk.salyk.kg:30040 [11:46:55]ConnectInit lk.salyk.kg [11:46:55]Connected sock=9 [11:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 47 AE 07 01 55 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 AD 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 Write to MH i2c: 30 01 30 00 30 00 30 90 30 00 30 90 30 [11:46:55]30 30 30 38 37 31 38 34 33 10 04 04 00 AE 41 01 00 35 04 06 00 3F BE 0C 26 80 DA 6E 63 44 1F 17 AA 3C 2C [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 07 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 87 0D 2B [11:46:55]RasterBufferAndPrint [11:46:55]line [11:46:55]line [11:46:55]line [11:46:55]line [11:46:55]line [11:46:55]written 0, free lines is 3503 [11:46:55]MH_Cut [11:46:55]Write to MH i2c: D1 01 00 97 00 01 69 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: D1 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: D1 01 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: D1 01 00 97 00 00 68 [11:46:55]Write to MH i2c: 01 00 00 98 00 98 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 93 38 47 00 B6 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AE 41 01 00 F4 03 04 00 E8 EF 11 67 B6 04 01 00 00 DD 17 86 6A 9B D0 65 43 [11:46:56]CommunicateWithHost err = 0 [11:46:56]CheckOFDResponse [11:46:56]1017 (14) - 77093643461234 [11:46:56]1041 (16) - 0000000000871843 [11:46:56]1040 (4) - 82350 [11:46:56]1012 (4) - 18.10.2024 05:19 [11:46:56]1206 (1) - 0 [11:46:56]OFD Sender: Remove packet 82350 [11:46:56]ProducePacketName [11:46:56]name=ofd_packets/00082350 [11:46:56]NVStorageDeleteData [11:46:56]*** Cut start [11:46:56]*** Partial cut [11:46:56]*** CUTSNS_PIN = 1 [11:46:56]*** CUTSNS_PIN = 0 [11:46:56]*** Brake cut motor [11:46:56]OFD Sender: No OFD packet to send [11:46:56]Read from MH i2c: 01 [11:46:56]MH_I2C_Read... [11:46:56]*** Stop cut motor [11:46:56]*** Cut end [11:46:56]Read from MH i2c: 01 07 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [11:46:56]process_action close_receipt done [11:46:56]requested_data is exist [11:46:56]produce_requested_data [11:46:56]requested_item fm.sn is exist - process it [11:46:56]wFMCommunicate request_size=4 [11:46:56]MH_SAM_APDU [11:46:56]CAPDU: 80 11 00 00 [11:46:56]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 [11:46:56]MH_I2C_Read... [11:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:56]Read from MH i2c: E2 17 00 [11:46:56]MH_I2C_Read... [11:46:56]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [11:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:46:56]wFMCommunicate OK [11:46:56]requested_item fd.num is exist - process it [11:46:56]SAM_PROTO_GetFieldsCounters [11:46:56]wFMCommunicate request_size=4 [11:46:56]MH_SAM_APDU [11:46:56]CAPDU: 80 13 00 00 [11:46:56]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [11:46:56]Write i2c OK [11:46:56]MH_I2C_Read... [11:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:57]Read from MH i2c: E2 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 62 00 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [11:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:57]wFMCommunicate OK [11:46:57]SAM_PROTO_GetFieldsCounters done [11:46:57]requested_item shift.num is exist - process it [11:46:57]requested_item shift.opened is exist - process it [11:46:57]req_shift_opened [11:46:57]FM_GetShiftState [11:46:57]SAM_PROTO_GetShiftState [11:46:57]wFMCommunicate request_size=4 [11:46:57]MH_SAM_APDU [11:46:57]CAPDU: 80 13 01 00 [11:46:57]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [11:46:57]Write i2c OK [11:46:57]MH_I2C_Read... [11:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:57]Read from MH i2c: E2 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 0E 00 [11:46:57]MH_I2C_Read... [11:46:57]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EA [11:46:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:46:57]wFMCommunicate OK [11:46:57]SAM_PROTO_GetShiftState done [11:46:57]FM_GetShiftState done [11:46:57]req_shift_opened done [11:46:57]requested_item shift.open_date is exist - process it [11:46:57]req_shift_open_date [11:46:57]req_shift_open_date done [11:46:57]produce_requested_data done [11:46:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82350,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:46:57]process_action_free close_receipt [11:46:57]json_value_free [11:46:57]json_value_free done [11:46:57]process_json_proto returns [11:46:57]Send response to host [11:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82350,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:46:57]free response buf [11:46:57]execute_script done [11:46:57]execute_script returns [11:46:57]free content buf [11:46:57]Sock 10.Close socket [11:46:57]Sock 10.Thread stoped [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:20]recv_with_timeout no data received [11:47:20]accept exits with 8 [11:47:20]New connection [11:47:20]New thread 3067215204 created [11:47:20]Thread 3067071844 joined [11:47:20]Waiting for new connection... [11:47:20] Sock 8.Parse request [11:47:20]Sock 8.Check first char [11:47:20]Sock 8.First char is OK [11:47:20]request: POST /json_proto HTTP/1.0 [11:47:20]Method: POST [11:47:20]URL: /json_proto [11:47:20]Method is POST - this is cgi request [11:47:20]url: /json_proto [11:47:20]query_string will be loaded in cgi processing [11:47:20]execute_cgi json_proto POST (null) [11:47:20]execute_cgi path=json_proto method=POST [11:47:20]POST find Content-Length [11:47:20]Host: 172.17.44.67:8080 [11:47:20]Content-Length: 677 [11:47:20]Content-Type: application/json [11:47:20] [11:47:20]POST finish read [11:47:20]Found Content-Length = 677 [11:47:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:20]execute_script... [11:47:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:20]POST & json_proto [11:47:20]process_json_proto [11:47:20]json parsed OK: [11:47:20]protocol is kg_v1.0 [11:47:20]action value=close_receipt [11:47:20]process_action close_receipt [11:47:20]cmd_close_receipt [11:47:20]MH_GetDate [11:47:20]Write to MH i2c: F0 00 00 9C 00 8B [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: F0 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: F0 09 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: F0 09 00 9C 00 00 C8 4A 12 67 F1 C7 6B 64 A6 [11:47:20]GetLastDocTimeStamp 1729252013 [11:47:20]current date 1729252040 [11:47:20]FM_GetShiftState [11:47:20]SAM_PROTO_GetShiftState [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 13 01 00 [11:47:20]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EC [11:47:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:47:20]wFMCommunicate OK [11:47:20]SAM_PROTO_GetShiftState done [11:47:20]FM_GetShiftState done [11:47:20]opened in 1729212319 [11:47:20]opened+sec_in_day 1729298719 [11:47:20]quantity*price = 50041 [11:47:20]sum+1 = 50042 [11:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 60 18.10.2024 11:47 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82351 ФПД: 89269453067720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114721&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82351&fm=89269453067720&tin=02508201610067®Number=0000000000091680&sum=50000 [11:47:21]StoreToDocumentArchive [11:47:21]shift 526 fd 82351 [11:47:21]save to /storage/0526/doc_00082351 [11:47:21]save last doc name /storage/0526/doc_00082351 to /storage/kkm_last_doc_name [11:47:21]save OK [11:47:21]Clear old archive folders... [11:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:21]tlvbuf is 00A30BA0 [11:47:21]SAM_PROTO_ClearQueue [11:47:21]wFMCommunicate request_size=4 [11:47:21]MH_SAM_APDU [11:47:21]CAPDU: 80 09 00 00 [11:47:21]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [11:47:21]RAPDU: 90 00 [11:47:21]wFMCommunicate OK [11:47:21]SAM_PROTO_ClearQueue done [11:47:21]KKMCreateOFDPacket [11:47:21]OFDProtocolAddRootSTLVToBuf [11:47:21]FM_MakeSignedData [11:47:21]FM_MakeSignedData [11:47:21]SAM_PROTO_SignData [11:47:21]wFMCommunicate request_size=4 [11:47:21]MH_SAM_APDU [11:47:21]CAPDU: 80 0D 01 02 [11:47:21]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]OFD Sender: No OFD packet to send [11:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [11:47:21]RAPDU: 90 00 [11:47:21]wFMCommunicate OK [11:47:21]wFMCommunicate request_size=255 [11:47:21]MH_SAM_APDU [11:47: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 41 01 00 35 04 06 00 51 [11:47:21]Write to MH i2c: E2 02 01 AC 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 41 01 00 35 04 06 00 51 00 00 CA [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 03 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [11:47:22]RAPDU: 90 00 [11:47:22]wFMCommunicate OK [11:47:22]wFMCommunicate request_size=10 [11:47:22]MH_SAM_APDU [11:47:22]CAPDU: 80 0D 02 02 05 30 AA 0A 15 C8 [11:47:22]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 30 AA 0A 15 C8 00 00 F2 [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 03 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [11:47:22]RAPDU: 90 00 [11:47:22]wFMCommunicate OK [11:47:22]wFMCommunicate request_size=4 [11:47:22]MH_SAM_APDU [11:47:22]CAPDU: 80 0D 03 02 [11:47:22]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 0B 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 0B 00 AE 00 00 4B A7 54 4B 3E 2F 34 E9 90 00 45 [11:47:22]RAPDU: 4B A7 54 4B 3E 2F 34 E9 90 00 [11:47:22]wFMCommunicate OK [11:47:22]SAM_PROTO_SignData done [11:47:22]FM_MakeSignedData done [11:47:22]CreateOFDProtocolMessage [11:47:22]wFMCommunicate request_size=4 [11:47:22]MH_SAM_APDU [11:47:22]CAPDU: 80 11 00 00 [11:47:22]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:22]Read from MH i2c: E2 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 17 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [11:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:47:22]wFMCommunicate OK [11:47:22]CreateOFDProtocolMessage done [11:47:22]OFDSenderStorePacket 82351 [11:47:22]StoreOFDPacket docnum=82351 [11:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 8A 07 01 34 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 41 01 00 35 04 06 00 51 30 AA 0A 15 C8 4B A7 54 4B 3E 2F 34 E9 [11:47:22]CheckFolder [11:47:22]dirname=/storage/ofd_packets [11:47:22]CheckFolder done [11:47:22]ProducePacketName [11:47:22]name=ofd_packets/00082351 [11:47:22]NVStorageSaveData ofd_packets/00082351 [11:47:22]File name is /storage/ofd_packets/00082351 [11:47:22]Write 301 bytes [11:47:22]NVStorageSaveData done [11:47:22]OFDSenderStorePacket done [11:47:22]KKMCreateOFDPacket done [11:47:22]NVStorageSaveData kkm_last_timestamp [11:47:22]File name is /storage/kkm_last_timestamp [11:47:22]Write 4 bytes [11:47:22]NVStorageSaveData done [11:47:22]ExternCall_PrintAddStr [11:47:22]wPrintStart [11:47:22]Write to MH i2c: 01 00 00 B0 00 B0 [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 07 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [11:47:22]RasterBufferAndPrint [11:47:22]line Счет N : (1)918847 [11:47:22]line ИНН: 02508201610067 [11:47:22]line Контрольно-Кассовый Чек [11:47:22]line ПРОДАЖА [11:47:22]line ТРК (МРК, ГНК) : 11 [11:47:22]line Товар: 2710124130 [11:47:22]line Аи-92-К-4 [11:47:22]line 7.480 * 66.90 [11:47:22]line = 500.41 [11:47:22]line НДС 12% НСП 1% [11:47:22]line > о реализуемом товаре [11:47:22]line ОКРУГЛЕНИЕ: -0.41 [11:47:22]line ИТОГО: 500.00 [11:47:22]line Внесено: 500.00 [11:47:22]line СДАЧА: 0.00 [11:47:22]line НСП 1% : 4.43 [11:47:22]line НДС 12% : 53.14 [11:47:22]line Наличными: 500.00 [11:47:22]line Безнал.: 0.00 [11:47:22]line Место: АЗС № 114 "Партнер Нефть" [11:47:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:47:22]line СНО: Общий режим [11:47:22]line Чек 60 18.10.2024 11:47 [11:47:22]line Смена: 526 ФФД: 1.0 [11:47:22]line ЗНМ: 0300000086 [11:47:22]line РНМ: 0000000000091680 [11:47:22]line Версия ККМ: 001 [11:47:22]line ФМ: 0000000000871843 [11:47:22]line ФД: 82351 [11:47:22]line ФПД: 89269453067720 [11:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114721&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82351&fm=89269453067720&tin=02508201610067®Number=0000000000091680&sum=50000 [11:47:22]written 0, free lines is 4095 [11:47:22]OFD Sender: Processing packet 82351 [packets to send 254, broken 253] [11:47:22]ProducePacketName [11:47:22]name=ofd_packets/00082351 [11:47:22]OFD Sender: To server: pG, [11:47:22]CommunicateWithHost lk.salyk.kg:30040 [11:47:22]ConnectInit lk.salyk.kg [11:47:22]Connected sock=10 [11:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 8A 07 01 34 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 C9 4A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 41 01 00 35 04 06 00 51 30 AA 0A 15 C8 4B A7 54 4B 3E 2F 34 E9 [11:47:22]Write to MH i2c: 01 00 00 DB 00 DB [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 07 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 6E 0D 5D [11:47:22]RasterBufferAndPrint [11:47:22]line [11:47:22]line [11:47:22]line [11:47:22]line [11:47:22]line [11:47:22]written 0, free lines is 3456 [11:47:22]MH_Cut [11:47:22]Write to MH i2c: D1 01 00 E2 00 01 B4 [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: D1 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: D1 01 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: D1 01 00 E2 00 00 B3 [11:47:22]Write to MH i2c: 01 00 00 E3 00 E3 [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 63 B3 47 00 13 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 AF 41 01 00 F4 03 04 00 03 F0 11 67 B6 04 01 00 00 4B 76 9D BA 99 61 95 90 [11:47:23]CommunicateWithHost err = 0 [11:47:23]CheckOFDResponse [11:47:23]1017 (14) - 77093643461234 [11:47:23]1041 (16) - 0000000000871843 [11:47:23]1040 (4) - 82351 [11:47:23]1012 (4) - 18.10.2024 05:20 [11:47:23]1206 (1) - 0 [11:47:23]OFD Sender: Remove packet 82351 [11:47:23]ProducePacketName [11:47:23]name=ofd_packets/00082351 [11:47:23]NVStorageDeleteData [11:47:23]*** Cut start [11:47:23]*** Partial cut [11:47:23]*** CUTSNS_PIN = 1 [11:47:23]*** CUTSNS_PIN = 0 [11:47:23]OFD Sender: No OFD packet to send [11:47:23]*** Brake cut motor [11:47:24]Read from MH i2c: 01 [11:47:24]MH_I2C_Read... [11:47:24]*** Stop cut motor [11:47:24]*** Cut end [11:47:24]Read from MH i2c: 01 07 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [11:47:24]process_action close_receipt done [11:47:24]requested_data is exist [11:47:24]produce_requested_data [11:47:24]requested_item fm.sn is exist - process it [11:47:24]wFMCommunicate request_size=4 [11:47:24]MH_SAM_APDU [11:47:24]CAPDU: 80 11 00 00 [11:47:24]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 17 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B0 [11:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:47:24]wFMCommunicate OK [11:47:24]requested_item fd.num is exist - process it [11:47:24]SAM_PROTO_GetFieldsCounters [11:47:24]wFMCommunicate request_size=4 [11:47:24]MH_SAM_APDU [11:47:24]CAPDU: 80 13 00 00 [11:47:24]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 62 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [11:47:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 AF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:24]wFMCommunicate OK [11:47:24]SAM_PROTO_GetFieldsCounters done [11:47:24]requested_item shift.num is exist - process it [11:47:24]requested_item shift.opened is exist - process it [11:47:24]req_shift_opened [11:47:24]FM_GetShiftState [11:47:24]SAM_PROTO_GetShiftState [11:47:24]wFMCommunicate request_size=4 [11:47:24]MH_SAM_APDU [11:47:24]CAPDU: 80 13 01 00 [11:47:24]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0E 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 35 [11:47:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:47:24]wFMCommunicate OK [11:47:24]SAM_PROTO_GetShiftState done [11:47:24]FM_GetShiftState done [11:47:24]req_shift_opened done [11:47:24]requested_item shift.open_date is exist - process it [11:47:24]req_shift_open_date [11:47:24]req_shift_open_date done [11:47:24]produce_requested_data done [11:47:24]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82351,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:47:24]process_action_free close_receipt [11:47:24]json_value_free [11:47:24]json_value_free done [11:47:24]process_json_proto returns [11:47:24]Send response to host [11:47:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82351,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:47:24]free response buf [11:47:24]execute_script done [11:47:24]execute_script returns [11:47:24]free content buf [11:47:24]Sock 8.Close socket [11:47:24]Sock 8.Thread stoped [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:55]recv_with_timeout no data received [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:05]recv_with_timeout no data received [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:21]recv_with_timeout no data received [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:35]recv_with_timeout no data received [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:49]recv_with_timeout no data received [11:48:53]accept exits with 9 [11:48:53]New connection [11:48:53]New thread 3067071844 created [11:48:53]Thread 3067215204 joined [11:48:53]Waiting for new connection... [11:48:53] Sock 9.Parse request [11:48:53]Sock 9.Check first char [11:48:53]Sock 9.First char is OK [11:48:53]request: POST /json_proto HTTP/1.0 [11:48:53]Method: POST [11:48:53]URL: /json_proto [11:48:53]Method is POST - this is cgi request [11:48:53]url: /json_proto [11:48:53]query_string will be loaded in cgi processing [11:48:53]execute_cgi json_proto POST (null) [11:48:53]execute_cgi path=json_proto method=POST [11:48:53]POST find Content-Length [11:48:53]Host: 172.17.44.67:8080 [11:48:53]Content-Length: 677 [11:48:53]Content-Type: application/json [11:48:53] [11:48:53]POST finish read [11:48:53]Found Content-Length = 677 [11:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:53]execute_script... [11:48: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)918848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:53]POST & json_proto [11:48:53]process_json_proto [11:48:53]json parsed OK: [11:48:53]protocol is kg_v1.0 [11:48:53]action value=close_receipt [11:48:53]process_action close_receipt [11:48:53]cmd_close_receipt [11:48:53]MH_GetDate [11:48:53]Write to MH i2c: F0 00 00 E7 00 D6 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: F0 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: F0 09 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: F0 09 00 E7 00 00 26 4B 12 67 F1 C7 6B 64 50 [11:48:53]GetLastDocTimeStamp 1729252041 [11:48:53]current date 1729252134 [11:48:53]FM_GetShiftState [11:48:53]SAM_PROTO_GetShiftState [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 13 01 00 [11:48:53]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 0E 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 37 [11:48:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:48:53]wFMCommunicate OK [11:48:53]SAM_PROTO_GetShiftState done [11:48:53]FM_GetShiftState done [11:48:53]opened in 1729212319 [11:48:53]opened+sec_in_day 1729298719 [11:48:53]quantity*price = 50041 [11:48:53]sum+1 = 50042 [11:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 61 18.10.2024 11:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82352 ФПД: 199629092934248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114854&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82352&fm=199629092934248&tin=02508201610067®Number=0000000000091680&sum=50000 [11:48:54]StoreToDocumentArchive [11:48:54]shift 526 fd 82352 [11:48:54]save to /storage/0526/doc_00082352 [11:48:54]save last doc name /storage/0526/doc_00082352 to /storage/kkm_last_doc_name [11:48:54]save OK [11:48:54]Clear old archive folders... [11:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:54]tlvbuf is 00A3A4F0 [11:48:54]SAM_PROTO_ClearQueue [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 09 00 00 [11:48:54]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_ClearQueue done [11:48:55]KKMCreateOFDPacket [11:48:55]OFDProtocolAddRootSTLVToBuf [11:48:55]FM_MakeSignedData [11:48:55]FM_MakeSignedData [11:48:55]SAM_PROTO_SignData [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 01 02 [11:48:55]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=255 [11:48:55]MH_SAM_APDU [11:48: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 26 4B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 41 01 00 35 04 06 00 B5 [11:48:55]Write to MH i2c: E2 02 01 F7 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 26 4B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 41 01 00 35 04 06 00 B5 00 00 D9 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=10 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 02 02 05 8F C5 2B D2 68 [11:48:55]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 8F C5 2B D2 68 00 00 35 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 03 02 [11:48:55]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 F9 00 00 9E B0 7A F2 01 EB 25 4A 90 00 8A [11:48:55]RAPDU: 9E B0 7A F2 01 EB 25 4A 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_SignData done [11:48:55]FM_MakeSignedData done [11:48:55]CreateOFDProtocolMessage [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 11 00 00 [11:48:55]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C6 [11:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:48:55]wFMCommunicate OK [11:48:55]CreateOFDProtocolMessage done [11:48:55]OFDSenderStorePacket 82352 [11:48:55]StoreOFDPacket docnum=82352 [11:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1D 19 07 01 24 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 26 4B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 41 01 00 35 04 06 00 B5 8F C5 2B D2 68 9E B0 7A F2 01 EB 25 4A [11:48:55]CheckFolder [11:48:55]dirname=/storage/ofd_packets [11:48:55]CheckFolder done [11:48:55]ProducePacketName [11:48:55]name=ofd_packets/00082352 [11:48:55]NVStorageSaveData ofd_packets/00082352 [11:48:55]File name is /storage/ofd_packets/00082352 [11:48:55]Write 301 bytes [11:48:55]NVStorageSaveData done [11:48:55]OFDSenderStorePacket done [11:48:55]KKMCreateOFDPacket done [11:48:55]NVStorageSaveData kkm_last_timestamp [11:48:55]File name is /storage/kkm_last_timestamp [11:48:55]Write 4 bytes [11:48:55]NVStorageSaveData done [11:48:55]ExternCall_PrintAddStr [11:48:55]wPrintStart [11:48:55]Write to MH i2c: 01 00 00 FB 00 FB [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 07 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [11:48:55]RasterBufferAndPrint [11:48:55]line Счет N : (1)918848 [11:48:55]line ИНН: 02508201610067 [11:48:55]line Контрольно-Кассовый Чек [11:48:55]line ПРОДАЖА [11:48:55]line ТРК (МРК, ГНК) : 22 [11:48:55]line Товар: 2710124130 [11:48:55]line Аи-92-К-4 [11:48:55]line 7.480 * 66.90 [11:48:55]line = 500.41 [11:48:55]line НДС 12% НСП 1% [11:48:55]line > о реализуемом товаре [11:48:55]line ОКРУГЛЕНИЕ: -0.41 [11:48:55]line ИТОГО: 500.00 [11:48:55]line Внесено: 500.00 [11:48:55]line СДАЧА: 0.00 [11:48:55]line НСП 1% : 4.43 [11:48:55]line НДС 12% : 53.14 [11:48:55]line Наличными: 500.00 [11:48:55]line Безнал.: 0.00 [11:48:55]line Место: АЗС № 114 "Партнер Нефть" [11:48:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [11:48:55]line СНО: Общий режим [11:48:55]line Чек 61 18.10.2024 11:48 [11:48:55]line Смена: 526 ФФД: 1.0 [11:48:55]line ЗНМ: 0300000086 [11:48:55]line РНМ: 0000000000091680 [11:48:55]line Версия ККМ: 001 [11:48:55]line ФМ: 0000000000871843 [11:48:55]line ФД: 82352 [11:48:55]line ФПД: 199629092934248 [11:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114854&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82352&fm=199629092934248&tin=02508201610067®Number=0000000000091680&sum=50000 [11:48:55]OFD Sender: Processing packet 82352 [packets to send 254, broken 253] [11:48:55]ProducePacketName [11:48:55]name=ofd_packets/00082352 [11:48:55]OFD Sender: To server: pG, [11:48:55]CommunicateWithHost lk.salyk.kg:30040 [11:48:55]ConnectInit lk.salyk.kg [11:48:55]written 0, free lines is 4095 [11:48:56]Write to MH i2c: 01 00 00 26 01 27 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 DC 0C 16 [11:48:56]RasterBufferAndPrint [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]written 0, free lines is 3299 [11:48:56]MH_Cut [11:48:56]Write to MH i2c: D1 01 00 2D 01 01 00 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 2D 01 00 FF [11:48:56]Write to MH i2c: 01 00 00 2E 01 2F [11:48:56]Connected sock=11 [11:48:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1D 19 07 01 24 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 26 4B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 41 01 00 35 04 06 00 B5 8F C5 2B D2 68 9E B0 7A F2 01 EB 25 4A [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7A 44 47 00 FE 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B0 41 01 00 F4 03 04 00 61 F0 11 67 B6 04 01 00 00 FC E2 A4 DD CB 68 EE F4 [11:48:57]CommunicateWithHost err = 0 [11:48:57]CheckOFDResponse [11:48:57]1017 (14) - 77093643461234 [11:48:57]1041 (16) - 0000000000871843 [11:48:57]1040 (4) - 82352 [11:48:57]1012 (4) - 18.10.2024 05:21 [11:48:57]1206 (1) - 0 [11:48:57]OFD Sender: Remove packet 82352 [11:48:57]ProducePacketName [11:48:57]name=ofd_packets/00082352 [11:48:57]NVStorageDeleteData [11:48:57]*** Cut start [11:48:57]*** Partial cut [11:48:57]*** CUTSNS_PIN = 1 [11:48:57]*** CUTSNS_PIN = 0 [11:48:57]*** Brake cut motor [11:48:57]OFD Sender: No OFD packet to send [11:48:57]Read from MH i2c: 01 [11:48:57]MH_I2C_Read... [11:48:57]*** Stop cut motor [11:48:57]*** Cut end [11:48:57]Read from MH i2c: 01 07 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [11:48:57]process_action close_receipt done [11:48:57]requested_data is exist [11:48:57]produce_requested_data [11:48:57]requested_item fm.sn is exist - process it [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 11 00 00 [11:48:57]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 17 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [11:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [11:48:57]wFMCommunicate OK [11:48:57]requested_item fd.num is exist - process it [11:48:57]SAM_PROTO_GetFieldsCounters [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 13 00 00 [11:48:57]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 62 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:57]wFMCommunicate OK [11:48:57]SAM_PROTO_GetFieldsCounters done [11:48:57]requested_item shift.num is exist - process it [11:48:57]requested_item shift.opened is exist - process it [11:48:57]req_shift_opened [11:48:57]FM_GetShiftState [11:48:57]SAM_PROTO_GetShiftState [11:48:57]wFMCommunicate request_size=4 [11:48:57]MH_SAM_APDU [11:48:57]CAPDU: 80 13 01 00 [11:48:57]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:57]Read from MH i2c: E2 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 81 [11:48:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [11:48:57]wFMCommunicate OK [11:48:57]SAM_PROTO_GetShiftState done [11:48:57]FM_GetShiftState done [11:48:57]req_shift_opened done [11:48:57]requested_item shift.open_date is exist - process it [11:48:57]req_shift_open_date [11:48:57]req_shift_open_date done [11:48:57]produce_requested_data done [11:48:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82352,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [11:48:57]process_action_free close_receipt [11:48:57]json_value_free [11:48:57]json_value_free done [11:48:57]process_json_proto returns [11:48:57]Send response to host [11:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82352,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [11:48:57]free response buf [11:48:57]execute_script done [11:48:57]execute_script returns [11:48:57]free content buf [11:48:57]Sock 9.Close socket [11:48:57]Sock 9.Thread stoped [11:48:59]recv_with_timeout no data received [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:52]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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]recv_with_timeout no data received [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:50]accept exits with 8 [12:07:50]New connection [12:07:50]New thread 3067215204 created [12:07:50]Thread 3067071844 joined [12:07:50]Waiting for new connection... [12:07:50] Sock 8.Parse request [12:07:50]Sock 8.Check first char [12:07:50]Sock 8.First char is OK [12:07:50]request: POST /json_proto HTTP/1.0 [12:07:50]Method: POST [12:07:50]URL: /json_proto [12:07:50]Method is POST - this is cgi request [12:07:50]url: /json_proto [12:07:50]query_string will be loaded in cgi processing [12:07:50]execute_cgi json_proto POST (null) [12:07:50]execute_cgi path=json_proto method=POST [12:07:50]POST find Content-Length [12:07:50]Host: 172.17.44.67:8080 [12:07:50]Content-Length: 677 [12:07:50]Content-Type: application/json [12:07:50] [12:07:50]POST finish read [12:07:50]Found Content-Length = 677 [12:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:50]execute_script... [12:07: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)918849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:50]POST & json_proto [12:07:50]process_json_proto [12:07:50]json parsed OK: [12:07:50]protocol is kg_v1.0 [12:07:50]action value=close_receipt [12:07:50]process_action close_receipt [12:07:50]cmd_close_receipt [12:07:50]MH_GetDate [12:07:50]Write to MH i2c: F0 00 00 32 01 22 [12:07:50]Write i2c OK [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: F0 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: F0 09 00 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: F0 09 00 32 01 00 97 4F 12 67 F1 C7 6B 64 11 [12:07:50]GetLastDocTimeStamp 1729252134 [12:07:50]current date 1729253271 [12:07:50]FM_GetShiftState [12:07:50]SAM_PROTO_GetShiftState [12:07:50]wFMCommunicate request_size=4 [12:07:50]MH_SAM_APDU [12:07:50]CAPDU: 80 13 01 00 [12:07:50]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [12:07:50]Write i2c OK [12:07:50]MH_I2C_Read... [12:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:50]Read from MH i2c: E2 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 0E 00 [12:07:50]MH_I2C_Read... [12:07:50]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 83 [12:07:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:07:50]wFMCommunicate OK [12:07:50]SAM_PROTO_GetShiftState done [12:07:50]FM_GetShiftState done [12:07:50]opened in 1729212319 [12:07:50]opened+sec_in_day 1729298719 [12:07:50]quantity*price = 60009 [12:07:50]sum+1 = 60010 [12:07:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 62 18.10.2024 12:07 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82353 ФПД: 69077039529580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T120751&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82353&fm=69077039529580&tin=02508201610067®Number=0000000000091680&sum=60000 [12:07:52]StoreToDocumentArchive [12:07:52]shift 526 fd 82353 [12:07:52]save to /storage/0526/doc_00082353 [12:07:52]save last doc name /storage/0526/doc_00082353 to /storage/kkm_last_doc_name [12:07:52]save OK [12:07:52]Clear old archive folders... [12:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:52]tlvbuf is 00A22CB0 [12:07:52]SAM_PROTO_ClearQueue [12:07:52]wFMCommunicate request_size=4 [12:07:52]MH_SAM_APDU [12:07:52]CAPDU: 80 09 00 00 [12:07:52]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [12:07:52]RAPDU: 90 00 [12:07:52]wFMCommunicate OK [12:07:52]SAM_PROTO_ClearQueue done [12:07:52]KKMCreateOFDPacket [12:07:52]OFDProtocolAddRootSTLVToBuf [12:07:52]FM_MakeSignedData [12:07:52]FM_MakeSignedData [12:07:52]SAM_PROTO_SignData [12:07:52]wFMCommunicate request_size=4 [12:07:52]MH_SAM_APDU [12:07:52]CAPDU: 80 0D 01 02 [12:07:52]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [12:07:52]RAPDU: 90 00 [12:07:52]wFMCommunicate OK [12:07:52]wFMCommunicate request_size=255 [12:07:52]MH_SAM_APDU [12:07:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 4F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 41 01 00 35 04 06 00 3E [12:07:52]Write to MH i2c: E2 02 01 42 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 4F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 41 01 00 35 04 06 00 3E 00 00 02 [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [12:07:52]RAPDU: 90 00 [12:07:52]wFMCommunicate OK [12:07:52]wFMCommunicate request_size=10 [12:07:52]MH_SAM_APDU [12:07:52]CAPDU: 80 0D 02 02 05 D3 40 67 3E 6C [12:07:52]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 D3 40 67 3E 6C 00 00 EC [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [12:07:52]RAPDU: 90 00 [12:07:52]wFMCommunicate OK [12:07:52]wFMCommunicate request_size=4 [12:07:52]MH_SAM_APDU [12:07:52]CAPDU: 80 0D 03 02 [12:07:52]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 0B 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 0B 00 44 01 00 E1 82 E8 A0 A8 1F 92 D4 90 00 D9 [12:07:52]RAPDU: E1 82 E8 A0 A8 1F 92 D4 90 00 [12:07:52]wFMCommunicate OK [12:07:52]SAM_PROTO_SignData done [12:07:52]FM_MakeSignedData done [12:07:52]CreateOFDProtocolMessage [12:07:52]wFMCommunicate request_size=4 [12:07:52]MH_SAM_APDU [12:07:52]CAPDU: 80 11 00 00 [12:07:52]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 17 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [12:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:07:52]wFMCommunicate OK [12:07:52]CreateOFDProtocolMessage done [12:07:52]OFDSenderStorePacket 82353 [12:07:52]StoreOFDPacket docnum=82353 [12:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 06 16 07 01 67 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 4F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 41 01 00 35 04 06 00 3E D3 40 67 3E 6C E1 82 E8 A0 A8 1F 92 D4 [12:07:52]CheckFolder [12:07:52]dirname=/storage/ofd_packets [12:07:52]CheckFolder done [12:07:52]ProducePacketName [12:07:52]name=ofd_packets/00082353 [12:07:52]NVStorageSaveData ofd_packets/00082353 [12:07:52]File name is /storage/ofd_packets/00082353 [12:07:52]Write 301 bytes [12:07:52]NVStorageSaveData done [12:07:52]OFDSenderStorePacket done [12:07:52]KKMCreateOFDPacket done [12:07:52]NVStorageSaveData kkm_last_timestamp [12:07:52]File name is /storage/kkm_last_timestamp [12:07:52]Write 4 bytes [12:07:52]NVStorageSaveData done [12:07:52]ExternCall_PrintAddStr [12:07:52]wPrintStart [12:07:52]Write to MH i2c: 01 00 00 46 01 47 [12:07:52]Write i2c OK [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: 01 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: 01 07 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [12:07:52]RasterBufferAndPrint [12:07:52]line Счет N : (1)918849 [12:07:52]line ИНН: 02508201610067 [12:07:52]line Контрольно-Кассовый Чек [12:07:52]line ПРОДАЖА [12:07:52]line ТРК (МРК, ГНК) : 22 [12:07:52]line Товар: 2710124130 [12:07:52]line Аи-92-К-4 [12:07:52]line 8.970 * 66.90 [12:07:52]line = 600.09 [12:07:52]line НДС 12% НСП 1% [12:07:52]line > о реализуемом товаре [12:07:52]line ОКРУГЛЕНИЕ: -0.09 [12:07:52]line ИТОГО: 600.00 [12:07:52]line Внесено: 600.00 [12:07:52]line СДАЧА: 0.00 [12:07:52]line НСП 1% : 5.31 [12:07:52]line НДС 12% : 63.73 [12:07:52]line Наличными: 600.00 [12:07:52]line Безнал.: 0.00 [12:07:52]line Место: АЗС № 114 "Партнер Нефть" [12:07:52]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:07:52]line СНО: Общий режим [12:07:52]line Чек 62 18.10.2024 12:07 [12:07:52]line Смена: 526 ФФД: 1.0 [12:07:52]line ЗНМ: 0300000086 [12:07:52]line РНМ: 0000000000091680 [12:07:52]line Версия ККМ: 001 [12:07:52]line ФМ: 0000000000871843 [12:07:52]line ФД: 82353 [12:07:52]line ФПД: 69077039529580 [12:07:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T120751&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82353&fm=69077039529580&tin=02508201610067®Number=0000000000091680&sum=60000 [12:07:52]OFD Sender: Processing packet 82353 [packets to send 254, broken 253] [12:07:52]ProducePacketName [12:07:52]name=ofd_packets/00082353 [12:07:52]OFD Sender: To server: pG, [12:07:52]CommunicateWithHost lk.salyk.kg:30040 [12:07:52]ConnectInit lk.salyk.kg [12:07:52]written 0, free lines is 4095 [12:07:53]Write to MH i2c: 01 00 00 71 01 72 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: 01 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: 01 07 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 E0 0C 65 [12:07:53]RasterBufferAndPrint [12:07:53]line [12:07:53]line [12:07:53]line [12:07:53]line [12:07:53]line [12:07:53]written 0, free lines is 3302 [12:07:53]MH_Cut [12:07:53]Write to MH i2c: D1 01 00 78 01 01 4B [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: D1 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: D1 01 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: D1 01 00 78 01 00 4A [12:07:53]Write to MH i2c: 01 00 00 79 01 7A [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:54]*** Cut start [12:07:54]*** Partial cut [12:07:54]*** CUTSNS_PIN = 1 [12:07:54]*** CUTSNS_PIN = 0 [12:07:54]*** Brake cut motor [12:07:54]Connected sock=11 [12:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 06 16 07 01 67 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 97 4F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 41 01 00 35 04 06 00 3E D3 40 67 3E 6C E1 82 E8 A0 A8 1F 92 D4 [12:07:54]Read from MH i2c: 01 [12:07:54]MH_I2C_Read... [12:07:54]*** Stop cut motor [12:07:54]*** Cut end [12:07:54]Read from MH i2c: 01 07 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [12:07:54]process_action close_receipt done [12:07:54]requested_data is exist [12:07:54]produce_requested_data [12:07:54]requested_item fm.sn is exist - process it [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 11 00 00 [12:07:54]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 17 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 47 [12:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:07:54]wFMCommunicate OK [12:07:54]requested_item fd.num is exist - process it [12:07:54]SAM_PROTO_GetFieldsCounters [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 13 00 00 [12:07:54]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 62 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:07:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:54]wFMCommunicate OK [12:07:54]SAM_PROTO_GetFieldsCounters done [12:07:54]requested_item shift.num is exist - process it [12:07:54]requested_item shift.opened is exist - process it [12:07:54]req_shift_opened [12:07:54]FM_GetShiftState [12:07:54]SAM_PROTO_GetShiftState [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 13 01 00 [12:07:54]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:55]Read from MH i2c: E2 0E 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CC [12:07:55]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:07:55]wFMCommunicate OK [12:07:55]SAM_PROTO_GetShiftState done [12:07:55]FM_GetShiftState done [12:07:55]req_shift_opened done [12:07:55]requested_item shift.open_date is exist - process it [12:07:55]req_shift_open_date [12:07:55]req_shift_open_date done [12:07:55]produce_requested_data done [12:07:55]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82353,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:07:55]process_action_free close_receipt [12:07:55]json_value_free [12:07:55]json_value_free done [12:07:55]process_json_proto returns [12:07:55]Send response to host [12:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82353,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:07:55]free response buf [12:07:55]execute_script done [12:07:55]execute_script returns [12:07:55]free content buf [12:07:55]Sock 8.Close socket [12:07:55]Sock 8.Thread stoped [12:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 14 A4 47 00 ED 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B1 41 01 00 F4 03 04 00 D3 F4 11 67 B6 04 01 00 00 63 F0 0E 82 93 4E B1 BB [12:07:55]CommunicateWithHost err = 0 [12:07:55]CheckOFDResponse [12:07:55]1017 (14) - 77093643461234 [12:07:55]1041 (16) - 0000000000871843 [12:07:55]1040 (4) - 82353 [12:07:55]1012 (4) - 18.10.2024 05:40 [12:07:55]1206 (1) - 0 [12:07:55]OFD Sender: Remove packet 82353 [12:07:55]ProducePacketName [12:07:55]name=ofd_packets/00082353 [12:07:55]NVStorageDeleteData [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]recv_with_timeout no data received [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:16]recv_with_timeout no data received [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:28]recv_with_timeout no data received [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:37]recv_with_timeout no data received [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:09:58]accept exits with 10 [12:09:58]New connection [12:09:58]New thread 3067071844 created [12:09:58]Thread 3067215204 joined [12:09:58]Waiting for new connection... [12:09:58] Sock 10.Parse request [12:09:58]Sock 10.Check first char [12:09:58]Sock 10.First char is OK [12:09:58]request: POST /json_proto HTTP/1.0 [12:09:58]Method: POST [12:09:58]URL: /json_proto [12:09:58]Method is POST - this is cgi request [12:09:58]url: /json_proto [12:09:58]query_string will be loaded in cgi processing [12:09:58]execute_cgi json_proto POST (null) [12:09:58]execute_cgi path=json_proto method=POST [12:09:58]POST find Content-Length [12:09:58]Host: 172.17.44.67:8080 [12:09:58]Content-Length: 754 [12:09:58]Content-Type: application/json [12:09:58] [12:09:58]POST finish read [12:09:58]Found Content-Length = 754 [12:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:58]execute_script... [12:09: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)918850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:58]POST & json_proto [12:09:58]process_json_proto [12:09:58]json parsed OK: [12:09:58]protocol is kg_v1.0 [12:09:58]action value=close_receipt [12:09:58]process_action close_receipt [12:09:58]cmd_close_receipt [12:09:58]MH_GetDate [12:09:58]Write to MH i2c: F0 00 00 7D 01 6D [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: F0 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: F0 09 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: F0 09 00 7D 01 00 16 50 12 67 F1 C7 6B 64 DC [12:09:58]GetLastDocTimeStamp 1729253271 [12:09:58]current date 1729253398 [12:09:58]FM_GetShiftState [12:09:58]SAM_PROTO_GetShiftState [12:09:58]wFMCommunicate request_size=4 [12:09:58]MH_SAM_APDU [12:09:58]CAPDU: 80 13 01 00 [12:09:58]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [12:09:58]Write i2c OK [12:09:58]MH_I2C_Read... [12:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:58]Read from MH i2c: E2 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 [12:09:58]MH_I2C_Read... [12:09:58]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CE [12:09:58]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:09:58]wFMCommunicate OK [12:09:58]SAM_PROTO_GetShiftState done [12:09:58]FM_GetShiftState done [12:09:58]opened in 1729212319 [12:09:58]opened+sec_in_day 1729298719 [12:09:58]quantity*price = 0 [12:09:58]sum+1 = 1 [12:09:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 63 18.10.2024 12:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100657 ФМ: 0000000000871843 ФД: 82354 ФПД: 84617271272637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T120959&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82354&fm=84617271272637&tin=02508201610067®Number=0000000000091680&sum=0 [12:09:59]StoreToDocumentArchive [12:09:59]shift 526 fd 82354 [12:09:59]save to /storage/0526/doc_00082354 [12:09:59]save last doc name /storage/0526/doc_00082354 to /storage/kkm_last_doc_name [12:09:59]save OK [12:09:59]Clear old archive folders... [12:09:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:59]tlvbuf is 00A2CA50 [12:09:59]SAM_PROTO_ClearQueue [12:09:59]wFMCommunicate request_size=4 [12:09:59]MH_SAM_APDU [12:09:59]CAPDU: 80 09 00 00 [12:09:59]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [12:09:59]Write i2c OK [12:09:59]MH_I2C_Read... [12:09:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:59]Read from MH i2c: E2 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [12:09:59]RAPDU: 90 00 [12:09:59]wFMCommunicate OK [12:09:59]SAM_PROTO_ClearQueue done [12:09:59]KKMCreateOFDPacket [12:09:59]OFDProtocolAddRootSTLVToBuf [12:09:59]FM_MakeSignedData [12:09:59]FM_MakeSignedData [12:09:59]SAM_PROTO_SignData [12:09:59]wFMCommunicate request_size=4 [12:09:59]MH_SAM_APDU [12:09:59]CAPDU: 80 0D 01 02 [12:09:59]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [12:09:59]Write i2c OK [12:09:59]MH_I2C_Read... [12:09:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:59]Read from MH i2c: E2 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 [12:09:59]MH_I2C_Read... [12:09:59]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [12:09:59]RAPDU: 90 00 [12:09:59]wFMCommunicate OK [12:09:59]wFMCommunicate request_size=255 [12:09:59]MH_SAM_APDU [12:09: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 41 01 00 35 04 06 00 4C [12:09:59]Write to MH i2c: E2 02 01 8D 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 41 01 00 35 04 06 00 4C 00 00 B3 [12:09:59]Write i2c OK [12:09:59]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 03 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [12:10:00]RAPDU: 90 00 [12:10:00]wFMCommunicate OK [12:10:00]wFMCommunicate request_size=10 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 0D 02 02 05 F5 7E 65 64 BD [12:10:00]Write to MH i2c: E2 0D 00 8E 01 80 0D 02 02 05 00 F5 7E 65 64 BD 00 00 0C [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 03 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [12:10:00]RAPDU: 90 00 [12:10:00]wFMCommunicate OK [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 0D 03 02 [12:10:00]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0B 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 0B 00 8F 01 00 8A 3D DA C5 8F 15 A7 92 90 00 4F [12:10:00]RAPDU: 8A 3D DA C5 8F 15 A7 92 90 00 [12:10:00]wFMCommunicate OK [12:10:00]SAM_PROTO_SignData done [12:10:00]FM_MakeSignedData done [12:10:00]CreateOFDProtocolMessage [12:10:00]wFMCommunicate request_size=4 [12:10:00]MH_SAM_APDU [12:10:00]CAPDU: 80 11 00 00 [12:10:00]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:00]Read from MH i2c: E2 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 17 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5D [12:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:10:00]wFMCommunicate OK [12:10:00]CreateOFDProtocolMessage done [12:10:00]OFDSenderStorePacket 82354 [12:10:00]StoreOFDPacket docnum=82354 [12:10:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9A 37 07 01 0F 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 41 01 00 35 04 06 00 4C F5 7E 65 64 BD 8A 3D DA C5 8F 15 A7 92 [12:10:00]CheckFolder [12:10:00]dirname=/storage/ofd_packets [12:10:00]CheckFolder done [12:10:00]ProducePacketName [12:10:00]name=ofd_packets/00082354 [12:10:00]NVStorageSaveData ofd_packets/00082354 [12:10:00]File name is /storage/ofd_packets/00082354 [12:10:00]Write 301 bytes [12:10:00]NVStorageSaveData done [12:10:00]OFDSenderStorePacket done [12:10:00]KKMCreateOFDPacket done [12:10:00]NVStorageSaveData kkm_last_timestamp [12:10:00]File name is /storage/kkm_last_timestamp [12:10:00]Write 4 bytes [12:10:00]NVStorageSaveData done [12:10:00]ExternCall_PrintAddStr [12:10:00]wPrintStart [12:10:00]Write to MH i2c: 01 00 00 91 01 92 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: 01 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: 01 07 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [12:10:00]RasterBufferAndPrint [12:10:00]line Счет N : (1)918850 [12:10:00]line ИНН: 02508201610067 [12:10:00]line Контрольно-Кассовый Чек [12:10:00]line ПРОДАЖА [12:10:00]line ТРК (МРК, ГНК) : 11 [12:10:00]line Товар: 2710124130 [12:10:00]line Аи-92-К-4 [12:10:00]line 10.000 * 0.00 [12:10:00]line = 0.00 [12:10:00]line НДС 12% НСП 1% [12:10:00]line > о реализуемом товаре [12:10:00]line ИТОГО: 0.00 [12:10:00]line НСП 1% : 0.00 [12:10:00]line НДС 12% : 0.00 [12:10:00]line Наличными: 0.00 [12:10:00]line Безнал.: 0.00 [12:10:00]line Место: АЗС № 114 "Партнер Нефть" [12:10:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:10:00]line СНО: Общий режим [12:10:00]line Чек 63 18.10.2024 12:09 [12:10:00]line Смена: 526 ФФД: 1.0 [12:10:00]line ЗНМ: 0300000086 [12:10:00]line РНМ: 0000000000091680 [12:10:00]line Версия ККМ: 001 [12:10:00]line Талоны: ТК ГПНА Online [12:10:00]line 30100657 [12:10:00]line ФМ: 0000000000871843 [12:10:00]line ФД: 82354 [12:10:00]line ФПД: 84617271272637 [12:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T120959&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82354&fm=84617271272637&tin=02508201610067®Number=0000000000091680&sum=0 [12:10:00]written 0, free lines is 4095 [12:10:00]OFD Sender: Processing packet 82354 [packets to send 254, broken 253] [12:10:00]ProducePacketName [12:10:00]name=ofd_packets/00082354 [12:10:00]OFD Sender: To server: pG, [12:10:00]CommunicateWithHost lk.salyk.kg:30040 [12:10:00]ConnectInit lk.salyk.kg [12:10:00]Write to MH i2c: 01 00 00 BB 01 BC [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: 01 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: 01 07 00 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 EA 0C B9 [12:10:00]RasterBufferAndPrint [12:10:00]line [12:10:00]line [12:10:00]line [12:10:00]line [12:10:00]line [12:10:00]written 0, free lines is 3314 [12:10:00]MH_Cut [12:10:00]Write to MH i2c: D1 01 00 C2 01 01 95 [12:10:00]Write i2c OK [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: D1 [12:10:00]MH_I2C_Read... [12:10:00]Read from MH i2c: D1 01 00 [12:10:01]MH_I2C_Read... [12:10:01]Read from MH i2c: D1 01 00 C2 01 00 94 [12:10:01]Write to MH i2c: 01 00 00 C3 01 C4 [12:10:01]Write i2c OK [12:10:01]MH_I2C_Read... [12:10:01]Connected sock=6 [12:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9A 37 07 01 0F 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 17 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 41 01 00 35 04 06 00 4C F5 7E 65 64 BD 8A 3D DA C5 8F 15 A7 92 [12:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3D CC 47 00 D0 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B2 41 01 00 F4 03 04 00 52 F5 11 67 B6 04 01 00 00 0E B5 0E A8 A0 9A DC AF [12:10:01]CommunicateWithHost err = 0 [12:10:01]CheckOFDResponse [12:10:01]1017 (14) - 77093643461234 [12:10:01]1041 (16) - 0000000000871843 [12:10:01]1040 (4) - 82354 [12:10:01]1012 (4) - 18.10.2024 05:42 [12:10:01]1206 (1) - 0 [12:10:01]OFD Sender: Remove packet 82354 [12:10:01]ProducePacketName [12:10:01]name=ofd_packets/00082354 [12:10:01]NVStorageDeleteData [12:10:01]*** Cut start [12:10:01]*** Partial cut [12:10:01]*** CUTSNS_PIN = 1 [12:10:01]*** CUTSNS_PIN = 0 [12:10:02]*** Brake cut motor [12:10:02]OFD Sender: No OFD packet to send [12:10:02]Read from MH i2c: 01 [12:10:02]MH_I2C_Read... [12:10:02]*** Stop cut motor [12:10:02]*** Cut end [12:10:02]Read from MH i2c: 01 07 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [12:10:02]process_action close_receipt done [12:10:02]requested_data is exist [12:10:02]produce_requested_data [12:10:02]requested_item fm.sn is exist - process it [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 11 00 00 [12:10:02]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [12:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:10:02]wFMCommunicate OK [12:10:02]requested_item fd.num is exist - process it [12:10:02]SAM_PROTO_GetFieldsCounters [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 13 00 00 [12:10:02]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 62 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [12:10:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_GetFieldsCounters done [12:10:02]requested_item shift.num is exist - process it [12:10:02]requested_item shift.opened is exist - process it [12:10:02]req_shift_opened [12:10:02]FM_GetShiftState [12:10:02]SAM_PROTO_GetShiftState [12:10:02]wFMCommunicate request_size=4 [12:10:02]MH_SAM_APDU [12:10:02]CAPDU: 80 13 01 00 [12:10:02]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [12:10:02]Write i2c OK [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 [12:10:02]MH_I2C_Read... [12:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:02]Read from MH i2c: E2 0E 00 [12:10:02]MH_I2C_Read... [12:10:02]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 16 [12:10:02]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:10:02]wFMCommunicate OK [12:10:02]SAM_PROTO_GetShiftState done [12:10:02]FM_GetShiftState done [12:10:02]req_shift_opened done [12:10:02]requested_item shift.open_date is exist - process it [12:10:02]req_shift_open_date [12:10:02]req_shift_open_date done [12:10:02]produce_requested_data done [12:10:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82354,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:10:02]process_action_free close_receipt [12:10:02]json_value_free [12:10:02]json_value_free done [12:10:02]process_json_proto returns [12:10:02]Send response to host [12:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82354,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:10:02]free response buf [12:10:02]execute_script done [12:10:02]execute_script returns [12:10:02]free content buf [12:10:02]Sock 10.Close socket [12:10:02]Sock 10.Thread stoped [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:21]recv_with_timeout no data received [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:32]recv_with_timeout no data received [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:18]accept exits with 9 [12:11:18]New connection [12:11:18]New thread 3067215204 created [12:11:18]Thread 3067071844 joined [12:11:18]Waiting for new connection... [12:11:18] Sock 9.Parse request [12:11:18]Sock 9.Check first char [12:11:18]Sock 9.First char is OK [12:11:18]request: POST /json_proto HTTP/1.0 [12:11:18]Method: POST [12:11:18]URL: /json_proto [12:11:18]Method is POST - this is cgi request [12:11:18]url: /json_proto [12:11:18]query_string will be loaded in cgi processing [12:11:18]execute_cgi json_proto POST (null) [12:11:18]execute_cgi path=json_proto method=POST [12:11:18]POST find Content-Length [12:11:18]Host: 172.17.44.67:8080 [12:11:18]Content-Length: 677 [12:11:18]Content-Type: application/json [12:11:18] [12:11:18]POST finish read [12:11:18]Found Content-Length = 677 [12:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.870, "sum" : 125.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 125.00, "total" : 125.00, "payments": [ { "type": 0, "sum" : 125.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:18]execute_script... [12:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.870, "sum" : 125.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 125.00, "total" : 125.00, "payments": [ { "type": 0, "sum" : 125.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:18]POST & json_proto [12:11:18]process_json_proto [12:11:18]json parsed OK: [12:11:18]protocol is kg_v1.0 [12:11:18]action value=close_receipt [12:11:18]process_action close_receipt [12:11:18]cmd_close_receipt [12:11:18]MH_GetDate [12:11:18]Write to MH i2c: F0 00 00 C7 01 B7 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: F0 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: F0 09 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: F0 09 00 C7 01 00 67 50 12 67 F1 C7 6B 64 77 [12:11:18]GetLastDocTimeStamp 1729253399 [12:11:18]current date 1729253479 [12:11:18]FM_GetShiftState [12:11:18]SAM_PROTO_GetShiftState [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 13 01 00 [12:11:18]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 0E 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 18 [12:11:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:11:18]wFMCommunicate OK [12:11:18]SAM_PROTO_GetShiftState done [12:11:18]FM_GetShiftState done [12:11:18]opened in 1729212319 [12:11:18]opened+sec_in_day 1729298719 [12:11:18]quantity*price = 12510 [12:11:18]sum+1 = 12511 [12:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 125.00 Внесено: 125.00 СДАЧА: 0.00 НСП 1% : 1.11 НДС 12% : 13.28 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 64 18.10.2024 12:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82355 ФПД: 150696689270166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121119&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82355&fm=150696689270166&tin=02508201610067®Number=0000000000091680&sum=12500 [12:11:20]StoreToDocumentArchive [12:11:20]shift 526 fd 82355 [12:11:20]save to /storage/0526/doc_00082355 [12:11:20]save last doc name /storage/0526/doc_00082355 to /storage/kkm_last_doc_name [12:11:20]save OK [12:11:20]Clear old archive folders... [12:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:20]tlvbuf is 00A1F7B0 [12:11:20]SAM_PROTO_ClearQueue [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 09 00 00 [12:11:20]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [12:11:20]RAPDU: 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_ClearQueue done [12:11:20]KKMCreateOFDPacket [12:11:20]OFDProtocolAddRootSTLVToBuf [12:11:20]FM_MakeSignedData [12:11:20]FM_MakeSignedData [12:11:20]SAM_PROTO_SignData [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 0D 01 02 [12:11:20]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [12:11:20]RAPDU: 90 00 [12:11:20]wFMCommunicate OK [12:11:20]wFMCommunicate request_size=255 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 41 01 00 35 04 06 00 89 [12:11:20]Write to MH i2c: E2 02 01 D7 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 34 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 41 01 00 35 04 06 00 89 00 00 A0 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [12:11:20]RAPDU: 90 00 [12:11:20]wFMCommunicate OK [12:11:20]wFMCommunicate request_size=10 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 0D 02 02 05 0E CE A1 FD 96 [12:11:20]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 0E CE A1 FD 96 00 00 6D [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [12:11:20]RAPDU: 90 00 [12:11:20]wFMCommunicate OK [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 0D 03 02 [12:11:20]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0B 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0B 00 D9 01 00 0C C0 21 18 82 A8 9B 11 90 00 31 [12:11:20]RAPDU: 0C C0 21 18 82 A8 9B 11 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_SignData done [12:11:20]FM_MakeSignedData done [12:11:20]CreateOFDProtocolMessage [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 DA 01 80 11 00 00 00 00 00 00 55 [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 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A7 [12:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:11:20]wFMCommunicate OK [12:11:20]CreateOFDProtocolMessage done [12:11:20]OFDSenderStorePacket 82355 [12:11:20]StoreOFDPacket docnum=82355 [12:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A8 FC 07 01 55 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 34 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 41 01 00 35 04 06 00 89 0E CE A1 FD 96 0C C0 21 18 82 A8 9B 11 [12:11:20]CheckFolder [12:11:20]dirname=/storage/ofd_packets [12:11:20]CheckFolder done [12:11:20]ProducePacketName [12:11:20]name=ofd_packets/00082355 [12:11:20]NVStorageSaveData ofd_packets/00082355 [12:11:20]File name is /storage/ofd_packets/00082355 [12:11:20]Write 301 bytes [12:11:20]NVStorageSaveData done [12:11:20]OFDSenderStorePacket done [12:11:20]KKMCreateOFDPacket done [12:11:20]NVStorageSaveData kkm_last_timestamp [12:11:20]File name is /storage/kkm_last_timestamp [12:11:20]Write 4 bytes [12:11:20]NVStorageSaveData done [12:11:20]ExternCall_PrintAddStr [12:11:20]wPrintStart [12:11:20]Write to MH i2c: 01 00 00 DB 01 DC [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: 01 [12:11:20]MH_I2C_Read... [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 DB 01 00 00 00 00 00 FF 0F F1 [12:11:20]RasterBufferAndPrint [12:11:20]line Счет N : (1)918852 [12:11:20]line ИНН: 02508201610067 [12:11:20]line Контрольно-Кассовый Чек [12:11:20]line ПРОДАЖА [12:11:20]line ТРК (МРК, ГНК) : 22 [12:11:20]line Товар: 2710124130 [12:11:20]line Аи-92-К-4 [12:11:20]line 1.870 * 66.90 [12:11:20]line = 125.10 [12:11:20]line НДС 12% НСП 1% [12:11:20]line > о реализуемом товаре [12:11:20]line ОКРУГЛЕНИЕ: -0.10 [12:11:20]line ИТОГО: 125.00 [12:11:20]line Внесено: 125.00 [12:11:20]line СДАЧА: 0.00 [12:11:20]line НСП 1% : 1.11 [12:11:20]line НДС 12% : 13.28 [12:11:20]line Наличными: 125.00 [12:11:20]line Безнал.: 0.00 [12:11:20]line Место: АЗС № 114 "Партнер Нефть" [12:11:20]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:11:20]line СНО: Общий режим [12:11:20]line Чек 64 18.10.2024 12:11 [12:11:20]line Смена: 526 ФФД: 1.0 [12:11:20]line ЗНМ: 0300000086 [12:11:20]line РНМ: 0000000000091680 [12:11:20]line Версия ККМ: 001 [12:11:20]line ФМ: 0000000000871843 [12:11:20]line ФД: 82355 [12:11:20]line ФПД: 150696689270166 [12:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121119&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82355&fm=150696689270166&tin=02508201610067®Number=0000000000091680&sum=12500 [12:11:20]OFD Sender: Processing packet 82355 [packets to send 254, broken 253] [12:11:20]ProducePacketName [12:11:20]name=ofd_packets/00082355 [12:11:20]OFD Sender: To server: pG, [12:11:20]CommunicateWithHost lk.salyk.kg:30040 [12:11:20]ConnectInit lk.salyk.kg [12:11:20]written 0, free lines is 4095 [12:11:21]Write to MH i2c: 01 00 00 06 02 08 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 D9 0C F4 [12:11:21]RasterBufferAndPrint [12:11:21]line [12:11:21]line [12:11:21]line [12:11:21]line [12:11:21]line [12:11:21]written 0, free lines is 3293 [12:11:21]MH_Cut [12:11:21]Write to MH i2c: D1 01 00 0D 02 01 E1 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: D1 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: D1 01 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: D1 01 00 0D 02 00 E0 [12:11:21]Write to MH i2c: 01 00 00 0E 02 10 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:22]*** Cut start [12:11:22]*** Partial cut [12:11:22]*** CUTSNS_PIN = 1 [12:11:22]*** CUTSNS_PIN = 0 [12:11:22]*** Brake cut motor [12:11:22]Read from MH i2c: 01 [12:11:22]MH_I2C_Read... [12:11:22]*** Stop cut motor [12:11:22]*** Cut end [12:11:22]Read from MH i2c: 01 07 00 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [12:11:22]process_action close_receipt done [12:11:22]requested_data is exist [12:11:22]produce_requested_data [12:11:22]requested_item fm.sn is exist - process it [12:11:22]wFMCommunicate request_size=4 [12:11:22]MH_SAM_APDU [12:11:22]CAPDU: 80 11 00 00 [12:11:22]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [12:11:22]Write i2c OK [12:11:22]MH_I2C_Read... [12:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:22]Read from MH i2c: E2 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: E2 17 00 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DD [12:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:11:22]wFMCommunicate OK [12:11:22]requested_item fd.num is exist - process it [12:11:22]SAM_PROTO_GetFieldsCounters [12:11:22]wFMCommunicate request_size=4 [12:11:22]MH_SAM_APDU [12:11:22]CAPDU: 80 13 00 00 [12:11:22]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [12:11:22]Write i2c OK [12:11:22]MH_I2C_Read... [12:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:23]Read from MH i2c: E2 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 62 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 62 00 10 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:23]wFMCommunicate OK [12:11:23]SAM_PROTO_GetFieldsCounters done [12:11:23]requested_item shift.num is exist - process it [12:11:23]requested_item shift.opened is exist - process it [12:11:23]req_shift_opened [12:11:23]FM_GetShiftState [12:11:23]SAM_PROTO_GetShiftState [12:11:23]wFMCommunicate request_size=4 [12:11:23]MH_SAM_APDU [12:11:23]CAPDU: 80 13 01 00 [12:11:23]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [12:11:23]Write i2c OK [12:11:23]MH_I2C_Read... [12:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:23]Read from MH i2c: E2 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 0E 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 62 [12:11:23]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:11:23]wFMCommunicate OK [12:11:23]SAM_PROTO_GetShiftState done [12:11:23]FM_GetShiftState done [12:11:23]req_shift_opened done [12:11:23]requested_item shift.open_date is exist - process it [12:11:23]req_shift_open_date [12:11:23]req_shift_open_date done [12:11:23]produce_requested_data done [12:11:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82355,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:11:23]process_action_free close_receipt [12:11:23]json_value_free [12:11:23]json_value_free done [12:11:23]process_json_proto returns [12:11:23]Send response to host [12:11:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82355,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:11:23]free response buf [12:11:23]execute_script done [12:11:23]execute_script returns [12:11:23]free content buf [12:11:23]Sock 9.Close socket [12:11:23]Sock 9.Thread stoped [12:11:23]Connected sock=11 [12:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A8 FC 07 01 55 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 34 FF 03 08 00 03 4E 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DE 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 67 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 41 01 00 35 04 06 00 89 0E CE A1 FD 96 0C C0 21 18 82 A8 9B 11 [12:11:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5A 37 47 00 3A 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B3 41 01 00 F4 03 04 00 A4 F5 11 67 B6 04 01 00 00 3E 0F 45 18 5D 2D 4A F4 [12:11:24]CommunicateWithHost err = 0 [12:11:24]CheckOFDResponse [12:11:24]1017 (14) - 77093643461234 [12:11:24]1041 (16) - 0000000000871843 [12:11:24]1040 (4) - 82355 [12:11:24]1012 (4) - 18.10.2024 05:44 [12:11:24]1206 (1) - 0 [12:11:24]OFD Sender: Remove packet 82355 [12:11:24]ProducePacketName [12:11:24]name=ofd_packets/00082355 [12:11:24]NVStorageDeleteData [12:11:25]OFD Sender: No OFD packet to send [12:11:27]recv_with_timeout no data received [12:11:30]OFD Sender: No OFD packet to send [12:11:31]accept exits with 8 [12:11:31]New connection [12:11:31]New thread 3067071844 created [12:11:31]Thread 3067215204 joined [12:11:31]Waiting for new connection... [12:11:31] Sock 8.Parse request [12:11:31]Sock 8.Check first char [12:11:31]Sock 8.First char is OK [12:11:31]request: POST /json_proto HTTP/1.0 [12:11:31]Method: POST [12:11:31]URL: /json_proto [12:11:31]Method is POST - this is cgi request [12:11:31]url: /json_proto [12:11:31]query_string will be loaded in cgi processing [12:11:31]execute_cgi json_proto POST (null) [12:11:31]execute_cgi path=json_proto method=POST [12:11:31]POST find Content-Length [12:11:31]Host: 172.17.44.67:8080 [12:11:31]Content-Length: 803 [12:11:31]Content-Type: application/json [12:11:31] [12:11:31]POST finish read [12:11:31]Found Content-Length = 803 [12:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918851", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:31]execute_script... [12:11: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)918851", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:31]POST & json_proto [12:11:31]process_json_proto [12:11:31]json parsed OK: [12:11:31]protocol is kg_v1.0 [12:11:31]action value=close_receipt [12:11:31]process_action close_receipt [12:11:31]cmd_close_receipt [12:11:31]MH_GetDate [12:11:31]Write to MH i2c: F0 00 00 12 02 03 [12:11:31]Write i2c OK [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: F0 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: F0 09 00 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: F0 09 00 12 02 00 73 50 12 67 F1 C7 6B 64 CF [12:11:31]GetLastDocTimeStamp 1729253479 [12:11:31]current date 1729253491 [12:11:31]FM_GetShiftState [12:11:31]SAM_PROTO_GetShiftState [12:11:31]wFMCommunicate request_size=4 [12:11:31]MH_SAM_APDU [12:11:31]CAPDU: 80 13 01 00 [12:11:31]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [12:11:31]Write i2c OK [12:11:31]MH_I2C_Read... [12:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:31]Read from MH i2c: E2 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: E2 0E 00 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 64 [12:11:31]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:11:31]wFMCommunicate OK [12:11:31]SAM_PROTO_GetShiftState done [12:11:31]FM_GetShiftState done [12:11:31]opened in 1729212319 [12:11:31]opened+sec_in_day 1729298719 [12:11:31]quantity*price = 200043 [12:11:31]sum+1 = 200044 [12:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 65 18.10.2024 12:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82356 ФПД: 74313806044652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121131&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82356&fm=74313806044652&tin=02508201610067®Number=0000000000091680&sum=200043 [12:11:32]StoreToDocumentArchive [12:11:32]shift 526 fd 82356 [12:11:32]save to /storage/0526/doc_00082356 [12:11:32]save last doc name /storage/0526/doc_00082356 to /storage/kkm_last_doc_name [12:11:32]save OK [12:11:32]Clear old archive folders... [12:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:32]tlvbuf is 00A1FB60 [12:11:32]SAM_PROTO_ClearQueue [12:11:32]wFMCommunicate request_size=4 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 09 00 00 [12:11:32]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [12:11:32]RAPDU: 90 00 [12:11:32]wFMCommunicate OK [12:11:32]SAM_PROTO_ClearQueue done [12:11:32]KKMCreateOFDPacket [12:11:32]OFDProtocolAddRootSTLVToBuf [12:11:32]FM_MakeSignedData [12:11:32]FM_MakeSignedData [12:11:32]SAM_PROTO_SignData [12:11:32]wFMCommunicate request_size=4 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 0D 01 02 [12:11:32]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [12:11:32]RAPDU: 90 00 [12:11:32]wFMCommunicate OK [12:11:32]wFMCommunicate request_size=255 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 73 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 41 01 00 35 04 06 00 43 [12:11:32]Write to MH i2c: E2 02 01 22 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 73 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 41 01 00 35 04 06 00 43 00 00 ED [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [12:11:32]RAPDU: 90 00 [12:11:32]wFMCommunicate OK [12:11:32]wFMCommunicate request_size=10 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 0D 02 02 05 96 88 02 DD EC [12:11:32]Write to MH i2c: E2 0D 00 23 02 80 0D 02 02 05 00 96 88 02 DD EC 00 00 92 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [12:11:32]RAPDU: 90 00 [12:11:32]wFMCommunicate OK [12:11:32]wFMCommunicate request_size=4 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 0D 03 02 [12:11:32]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 0B 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 0B 00 24 02 00 7D F0 A4 6F 4C 10 32 9D 90 00 4D [12:11:32]RAPDU: 7D F0 A4 6F 4C 10 32 9D 90 00 [12:11:32]wFMCommunicate OK [12:11:32]SAM_PROTO_SignData done [12:11:32]FM_MakeSignedData done [12:11:32]CreateOFDProtocolMessage [12:11:32]wFMCommunicate request_size=4 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 11 00 00 [12:11:32]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 17 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F3 [12:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:11:32]wFMCommunicate OK [12:11:32]CreateOFDProtocolMessage done [12:11:32]OFDSenderStorePacket 82356 [12:11:32]StoreOFDPacket docnum=82356 [12:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 88 2C 07 01 4D 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 73 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 41 01 00 35 04 06 00 43 96 88 02 DD EC 7D F0 A4 6F 4C 10 32 9D [12:11:32]CheckFolder [12:11:32]dirname=/storage/ofd_packets [12:11:32]CheckFolder done [12:11:32]ProducePacketName [12:11:32]name=ofd_packets/00082356 [12:11:32]NVStorageSaveData ofd_packets/00082356 [12:11:32]File name is /storage/ofd_packets/00082356 [12:11:32]Write 301 bytes [12:11:32]NVStorageSaveData done [12:11:32]OFDSenderStorePacket done [12:11:32]KKMCreateOFDPacket done [12:11:32]NVStorageSaveData kkm_last_timestamp [12:11:32]File name is /storage/kkm_last_timestamp [12:11:32]Write 4 bytes [12:11:32]NVStorageSaveData done [12:11:32]ExternCall_PrintAddStr [12:11:32]wPrintStart [12:11:32]Write to MH i2c: 01 00 00 26 02 28 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: 01 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: 01 07 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [12:11:32]RasterBufferAndPrint [12:11:32]line Счет N : (1)918851 [12:11:32]line ИНН: 02508201610067 [12:11:32]line Контрольно-Кассовый Чек [12:11:32]line ПРОДАЖА [12:11:32]line ТРК (МРК, ГНК) : 12 [12:11:32]line Товар: 2710124500 [12:11:32]line Аи-95-К-5 [12:11:32]line 26.960 * 74.20 [12:11:32]line = 2000.43 [12:11:32]line НДС 12% НСП 1% [12:11:32]line > о реализуемом товаре [12:11:32]line ИТОГО: 2000.43 [12:11:32]line НСП 1% : 17.70 [12:11:32]line НДС 12% : 212.43 [12:11:32]line Наличными: 0.00 [12:11:32]line Безнал.: 2000.43 [12:11:32]line Место: АЗС № 114 "Партнер Нефть" [12:11:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:11:32]line СНО: Общий режим [12:11:32]line Чек 65 18.10.2024 12:11 [12:11:32]line Смена: 526 ФФД: 1.0 [12:11:32]line ЗНМ: 0300000086 [12:11:32]line РНМ: 0000000000091680 [12:11:32]line Версия ККМ: 001 [12:11:32]line Платежная система: O! деньги [12:11:32]line ФМ: 0000000000871843 [12:11:32]line ФД: 82356 [12:11:32]line ФПД: 74313806044652 [12:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121131&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82356&fm=74313806044652&tin=02508201610067®Number=0000000000091680&sum=200043 [12:11:32]written 0, free lines is 4095 [12:11:32]OFD Sender: Processing packet 82356 [packets to send 254, broken 253] [12:11:32]ProducePacketName [12:11:32]name=ofd_packets/00082356 [12:11:32]OFD Sender: To server: pG, [12:11:32]CommunicateWithHost lk.salyk.kg:30040 [12:11:32]ConnectInit lk.salyk.kg [12:11:33]Write to MH i2c: 01 00 00 50 02 52 [12:11:33]Write i2c OK [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: 01 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: 01 07 00 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 FB 0C 60 [12:11:33]RasterBufferAndPrint [12:11:33]line [12:11:33]line [12:11:33]line [12:11:33]line [12:11:33]line [12:11:33]written 0, free lines is 3332 [12:11:33]MH_Cut [12:11:33]Write to MH i2c: D1 01 00 57 02 01 2B [12:11:33]Write i2c OK [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: D1 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: D1 01 00 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: D1 01 00 57 02 00 2A [12:11:33]Write to MH i2c: 01 00 00 58 02 5A [12:11:33]Write i2c OK [12:11:33]MH_I2C_Read... [12:11:33]Connected sock=11 [12:11:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 88 2C 07 01 4D 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 73 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 41 01 00 35 04 06 00 43 96 88 02 DD EC 7D F0 A4 6F 4C 10 32 9D [12:11:34]*** Cut start [12:11:34]*** Partial cut [12:11:34]*** CUTSNS_PIN = 1 [12:11:34]*** CUTSNS_PIN = 0 [12:11:34]*** Brake cut motor [12:11:34]Read from MH i2c: 01 [12:11:34]MH_I2C_Read... [12:11:34]*** Stop cut motor [12:11:34]*** Cut end [12:11:34]Read from MH i2c: 01 07 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [12:11:34]process_action close_receipt done [12:11:34]requested_data is exist [12:11:34]produce_requested_data [12:11:34]requested_item fm.sn is exist - process it [12:11:34]wFMCommunicate request_size=4 [12:11:34]MH_SAM_APDU [12:11:34]CAPDU: 80 11 00 00 [12:11:34]Write to MH i2c: E2 08 00 59 02 80 11 00 00 00 00 00 00 D5 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:34]Read from MH i2c: E2 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 17 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 17 00 59 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 27 [12:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:11:34]wFMCommunicate OK [12:11:34]requested_item fd.num is exist - process it [12:11:34]SAM_PROTO_GetFieldsCounters [12:11:34]wFMCommunicate request_size=4 [12:11:34]MH_SAM_APDU [12:11:34]CAPDU: 80 13 00 00 [12:11:34]Write to MH i2c: E2 08 00 5A 02 80 13 00 00 00 00 00 00 D8 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:34]Read from MH i2c: E2 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 62 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 62 00 5A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [12:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:34]wFMCommunicate OK [12:11:34]SAM_PROTO_GetFieldsCounters done [12:11:34]requested_item shift.num is exist - process it [12:11:34]requested_item shift.opened is exist - process it [12:11:34]req_shift_opened [12:11:34]FM_GetShiftState [12:11:34]SAM_PROTO_GetShiftState [12:11:34]wFMCommunicate request_size=4 [12:11:34]MH_SAM_APDU [12:11:34]CAPDU: 80 13 01 00 [12:11:34]Write to MH i2c: E2 08 00 5B 02 80 13 01 00 00 00 00 00 DA [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:34]Read from MH i2c: E2 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 0E 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 0E 00 5B 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AC [12:11:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:11:34]wFMCommunicate OK [12:11:34]SAM_PROTO_GetShiftState done [12:11:34]FM_GetShiftState done [12:11:34]req_shift_opened done [12:11:34]requested_item shift.open_date is exist - process it [12:11:34]req_shift_open_date [12:11:34]req_shift_open_date done [12:11:34]produce_requested_data done [12:11:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82356,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:11:34]process_action_free close_receipt [12:11:34]json_value_free [12:11:34]json_value_free done [12:11:34]process_json_proto returns [12:11:34]Send response to host [12:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82356,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:11:34]free response buf [12:11:35]execute_script done [12:11:35]execute_script returns [12:11:35]free content buf [12:11:35]Sock 8.Close socket [12:11:35]Sock 8.Thread stoped [12:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2B BF 47 00 02 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B4 41 01 00 F4 03 04 00 AF F5 11 67 B6 04 01 00 00 A3 25 56 9C 3F 26 4E E2 [12:11:35]CommunicateWithHost err = 0 [12:11:35]CheckOFDResponse [12:11:35]1017 (14) - 77093643461234 [12:11:35]1041 (16) - 0000000000871843 [12:11:35]1040 (4) - 82356 [12:11:35]1012 (4) - 18.10.2024 05:44 [12:11:35]1206 (1) - 0 [12:11:35]OFD Sender: Remove packet 82356 [12:11:35]ProducePacketName [12:11:35]name=ofd_packets/00082356 [12:11:35]NVStorageDeleteData [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:47]recv_with_timeout no data received [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:07]recv_with_timeout no data received [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:18]recv_with_timeout no data received [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:29]recv_with_timeout no data received [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:49]recv_with_timeout no data received [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]accept exits with 9 [12:13:05]New connection [12:13:05]New thread 3067215204 created [12:13:05]Thread 3067071844 joined [12:13:05]Waiting for new connection... [12:13:05] Sock 9.Parse request [12:13:05]Sock 9.Check first char [12:13:05]Sock 9.First char is OK [12:13:05]request: POST /json_proto HTTP/1.0 [12:13:05]Method: POST [12:13:05]URL: /json_proto [12:13:05]Method is POST - this is cgi request [12:13:05]url: /json_proto [12:13:05]query_string will be loaded in cgi processing [12:13:05]execute_cgi json_proto POST (null) [12:13:05]execute_cgi path=json_proto method=POST [12:13:05]POST find Content-Length [12:13:05]Host: 172.17.44.67:8080 [12:13:05]Content-Length: 803 [12:13:05]Content-Type: application/json [12:13:05] [12:13:05]POST finish read [12:13:05]Found Content-Length = 803 [12:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918853", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:05]execute_script... [12:13: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)918853", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:05]POST & json_proto [12:13:05]process_json_proto [12:13:05]json parsed OK: [12:13:05]protocol is kg_v1.0 [12:13:05]action value=close_receipt [12:13:05]process_action close_receipt [12:13:05]cmd_close_receipt [12:13:05]MH_GetDate [12:13:05]Write to MH i2c: F0 00 00 5C 02 4D [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: F0 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: F0 09 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: F0 09 00 5C 02 00 D2 50 12 67 F1 C7 6B 64 78 [12:13:05]GetLastDocTimeStamp 1729253491 [12:13:05]current date 1729253586 [12:13:05]FM_GetShiftState [12:13:05]SAM_PROTO_GetShiftState [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 13 01 00 [12:13:05]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]OFD Sender: No OFD packet to send [12:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 0E 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AE [12:13:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:13:05]wFMCommunicate OK [12:13:05]SAM_PROTO_GetShiftState done [12:13:05]FM_GetShiftState done [12:13:05]opened in 1729212319 [12:13:05]opened+sec_in_day 1729298719 [12:13:05]quantity*price = 100021 [12:13:05]sum+1 = 100023 [12:13:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 66 18.10.2024 12:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82357 ФПД: 91920423381805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121306&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82357&fm=91920423381805&tin=02508201610067®Number=0000000000091680&sum=100022 [12:13:06]StoreToDocumentArchive [12:13:06]shift 526 fd 82357 [12:13:06]save to /storage/0526/doc_00082357 [12:13:06]save last doc name /storage/0526/doc_00082357 to /storage/kkm_last_doc_name [12:13:06]save OK [12:13:06]Clear old archive folders... [12:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:07]tlvbuf is B6F01430 [12:13:07]SAM_PROTO_ClearQueue [12:13:07]wFMCommunicate request_size=4 [12:13:07]MH_SAM_APDU [12:13:07]CAPDU: 80 09 00 00 [12:13:07]Write to MH i2c: E2 08 00 6A 02 80 09 00 00 00 00 00 00 DE [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [12:13:07]RAPDU: 90 00 [12:13:07]wFMCommunicate OK [12:13:07]SAM_PROTO_ClearQueue done [12:13:07]KKMCreateOFDPacket [12:13:07]OFDProtocolAddRootSTLVToBuf [12:13:07]FM_MakeSignedData [12:13:07]FM_MakeSignedData [12:13:07]SAM_PROTO_SignData [12:13:07]wFMCommunicate request_size=4 [12:13:07]MH_SAM_APDU [12:13:07]CAPDU: 80 0D 01 02 [12:13:07]Write to MH i2c: E2 08 00 6B 02 80 0D 01 02 00 00 00 00 E6 [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [12:13:07]RAPDU: 90 00 [12:13:07]wFMCommunicate OK [12:13:07]wFMCommunicate request_size=255 [12:13:07]MH_SAM_APDU [12:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D2 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 41 01 00 35 04 06 00 53 [12:13:07]Write to MH i2c: E2 02 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D2 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 41 01 00 35 04 06 00 53 00 00 F3 [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [12:13:07]RAPDU: 90 00 [12:13:07]wFMCommunicate OK [12:13:07]wFMCommunicate request_size=10 [12:13:07]MH_SAM_APDU [12:13:07]CAPDU: 80 0D 02 02 05 99 E4 2E EB 2D [12:13:07]Write to MH i2c: E2 0D 00 6D 02 80 0D 02 02 05 00 99 E4 2E EB 2D 00 00 B6 [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [12:13:07]RAPDU: 90 00 [12:13:07]wFMCommunicate OK [12:13:07]wFMCommunicate request_size=4 [12:13:07]MH_SAM_APDU [12:13:07]CAPDU: 80 0D 03 02 [12:13:07]Write to MH i2c: E2 08 00 6E 02 80 0D 03 02 00 00 00 00 EB [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 0B 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 0B 00 6E 02 00 81 FD 3D D4 E1 73 F0 E5 90 00 A4 [12:13:07]RAPDU: 81 FD 3D D4 E1 73 F0 E5 90 00 [12:13:07]wFMCommunicate OK [12:13:07]SAM_PROTO_SignData done [12:13:07]FM_MakeSignedData done [12:13:07]CreateOFDProtocolMessage [12:13:07]wFMCommunicate request_size=4 [12:13:07]MH_SAM_APDU [12:13:07]CAPDU: 80 11 00 00 [12:13:07]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:07]Read from MH i2c: E2 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: E2 17 00 [12:13:07]MH_I2C_Read... [12:13:07]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 31 38 34 33 90 00 3D [12:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:13:07]wFMCommunicate OK [12:13:07]CreateOFDProtocolMessage done [12:13:07]OFDSenderStorePacket 82357 [12:13:07]StoreOFDPacket docnum=82357 [12:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BD 8A 07 01 49 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D2 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 41 01 00 35 04 06 00 53 99 E4 2E EB 2D 81 FD 3D D4 E1 73 F0 E5 [12:13:07]CheckFolder [12:13:07]dirname=/storage/ofd_packets [12:13:07]CheckFolder done [12:13:07]ProducePacketName [12:13:07]name=ofd_packets/00082357 [12:13:07]NVStorageSaveData ofd_packets/00082357 [12:13:07]File name is /storage/ofd_packets/00082357 [12:13:07]Write 301 bytes [12:13:07]NVStorageSaveData done [12:13:07]OFDSenderStorePacket done [12:13:07]KKMCreateOFDPacket done [12:13:07]NVStorageSaveData kkm_last_timestamp [12:13:07]File name is /storage/kkm_last_timestamp [12:13:07]Write 4 bytes [12:13:07]NVStorageSaveData done [12:13:07]ExternCall_PrintAddStr [12:13:07]wPrintStart [12:13:07]Write to MH i2c: 01 00 00 70 02 72 [12:13:07]Write i2c OK [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: 01 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: 01 07 00 [12:13:07]MH_I2C_Read... [12:13:07]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [12:13:07]RasterBufferAndPrint [12:13:07]line Счет N : (1)918853 [12:13:07]line ИНН: 02508201610067 [12:13:07]line Контрольно-Кассовый Чек [12:13:07]line ПРОДАЖА [12:13:07]line ТРК (МРК, ГНК) : 12 [12:13:07]line Товар: 2710124500 [12:13:07]line Аи-95-К-5 [12:13:07]line 13.480 * 74.20 [12:13:07]line = 1000.22 [12:13:07]line НДС 12% НСП 1% [12:13:07]line > о реализуемом товаре [12:13:07]line ИТОГО: 1000.22 [12:13:07]line НСП 1% : 8.85 [12:13:07]line НДС 12% : 106.22 [12:13:07]line Наличными: 0.00 [12:13:07]line Безнал.: 1000.22 [12:13:07]line Место: АЗС № 114 "Партнер Нефть" [12:13:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:13:07]line СНО: Общий режим [12:13:07]line Чек 66 18.10.2024 12:13 [12:13:07]line Смена: 526 ФФД: 1.0 [12:13:07]line ЗНМ: 0300000086 [12:13:07]line РНМ: 0000000000091680 [12:13:07]line Версия ККМ: 001 [12:13:07]line Платежная система: O! деньги [12:13:07]line ФМ: 0000000000871843 [12:13:07]line ФД: 82357 [12:13:07]line ФПД: 91920423381805 [12:13:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121306&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82357&fm=91920423381805&tin=02508201610067®Number=0000000000091680&sum=100022 [12:13:07]OFD Sender: Processing packet 82357 [packets to send 254, broken 253] [12:13:07]ProducePacketName [12:13:07]name=ofd_packets/00082357 [12:13:07]OFD Sender: To server: pG, [12:13:07]CommunicateWithHost lk.salyk.kg:30040 [12:13:07]ConnectInit lk.salyk.kg [12:13:07]written 0, free lines is 4095 [12:13:08]Write to MH i2c: 01 00 00 9A 02 9C [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: 01 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: 01 07 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 F2 0C A1 [12:13:08]RasterBufferAndPrint [12:13:08]line [12:13:08]line [12:13:08]line [12:13:08]line [12:13:08]line [12:13:08]written 0, free lines is 3320 [12:13:08]MH_Cut [12:13:08]Write to MH i2c: D1 01 00 A1 02 01 75 [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: D1 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: D1 01 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: D1 01 00 A1 02 00 74 [12:13:08]Write to MH i2c: 01 00 00 A2 02 A4 [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:09]*** Cut start [12:13:09]*** Partial cut [12:13:09]*** CUTSNS_PIN = 1 [12:13:09]*** CUTSNS_PIN = 0 [12:13:09]*** Brake cut motor [12:13:09]Read from MH i2c: 01 [12:13:09]MH_I2C_Read... [12:13:09]*** Stop cut motor [12:13:09]*** Cut end [12:13:09]Read from MH i2c: 01 07 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [12:13:09]process_action close_receipt done [12:13:09]requested_data is exist [12:13:09]produce_requested_data [12:13:09]requested_item fm.sn is exist - process it [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 11 00 00 [12:13:09]Write to MH i2c: E2 08 00 A3 02 80 11 00 00 00 00 00 00 1F [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 17 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 17 00 A3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 71 [12:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:13:09]wFMCommunicate OK [12:13:09]requested_item fd.num is exist - process it [12:13:09]SAM_PROTO_GetFieldsCounters [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 13 00 00 [12:13:09]Write to MH i2c: E2 08 00 A4 02 80 13 00 00 00 00 00 00 22 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 62 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 62 00 A4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [12:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:09]wFMCommunicate OK [12:13:09]SAM_PROTO_GetFieldsCounters done [12:13:09]requested_item shift.num is exist - process it [12:13:09]requested_item shift.opened is exist - process it [12:13:09]req_shift_opened [12:13:09]FM_GetShiftState [12:13:09]SAM_PROTO_GetShiftState [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 13 01 00 [12:13:09]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 0E 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F6 [12:13:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:13:09]wFMCommunicate OK [12:13:09]SAM_PROTO_GetShiftState done [12:13:09]FM_GetShiftState done [12:13:09]req_shift_opened done [12:13:09]requested_item shift.open_date is exist - process it [12:13:09]req_shift_open_date [12:13:09]req_shift_open_date done [12:13:09]produce_requested_data done [12:13:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82357,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:13:09]process_action_free close_receipt [12:13:09]json_value_free [12:13:09]json_value_free done [12:13:09]process_json_proto returns [12:13:09]Send response to host [12:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82357,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:13:09]free response buf [12:13:09]execute_script done [12:13:09]execute_script returns [12:13:09]free content buf [12:13:09]Sock 9.Close socket [12:13:09]Sock 9.Thread stoped [12:13:12]recv_with_timeout no data received [12:13:12]Connected sock=11 [12:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BD 8A 07 01 49 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D2 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 41 01 00 35 04 06 00 53 99 E4 2E EB 2D 81 FD 3D D4 E1 73 F0 E5 [12:13:17]recv_with_timeout no data received [12:13:17]CommunicateWithHost answer receiving error [12:13:17]CommunicateWithHost err = -3 [12:13:17]OFD Sender: Server communicate error [12:13:22]OFD Sender: Processing packet 82357 [packets to send 254, broken 253] [12:13:22]ProducePacketName [12:13:22]name=ofd_packets/00082357 [12:13:22]OFD Sender: To server: pG, [12:13:22]CommunicateWithHost lk.salyk.kg:30040 [12:13:22]ConnectInit lk.salyk.kg [12:13:24]recv_with_timeout no data received [12:13:27]ConnectInit Can't take IP for lk.salyk.kg [12:13:27]CommunicateWithHost connect error [12:13:27]CommunicateWithHost err = -1 [12:13:27]OFD Sender: Server communicate error [12:13:32]OFD Sender: Processing packet 82357 [packets to send 254, broken 253] [12:13:32]ProducePacketName [12:13:32]name=ofd_packets/00082357 [12:13:32]OFD Sender: To server: pG, [12:13:32]CommunicateWithHost lk.salyk.kg:30040 [12:13:32]ConnectInit lk.salyk.kg [12:13:34]Connected sock=10 [12:13:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BD 8A 07 01 49 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D2 50 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 41 01 00 35 04 06 00 53 99 E4 2E EB 2D 81 FD 3D D4 E1 73 F0 E5 [12:13:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 83 1E 47 00 C2 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B5 41 01 00 F4 03 04 00 27 F6 11 67 B6 04 01 00 00 0D 1B C9 11 D1 83 01 FC [12:13:35]CommunicateWithHost err = 0 [12:13:35]CheckOFDResponse [12:13:35]1017 (14) - 77093643461234 [12:13:35]1041 (16) - 0000000000871843 [12:13:35]1040 (4) - 82357 [12:13:35]1012 (4) - 18.10.2024 05:46 [12:13:35]1206 (1) - 0 [12:13:35]OFD Sender: Remove packet 82357 [12:13:35]ProducePacketName [12:13:35]name=ofd_packets/00082357 [12:13:35]NVStorageDeleteData [12:13:36]OFD Sender: No OFD packet to send [12:13:36]recv_with_timeout no data received [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:53]recv_with_timeout no data received [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:30]accept exits with 8 [12:15:30]New connection [12:15:30]New thread 3067071844 created [12:15:30]Thread 3067215204 joined [12:15:30]Waiting for new connection... [12:15:30] Sock 8.Parse request [12:15:30]Sock 8.Check first char [12:15:30]Sock 8.First char is OK [12:15:30]request: POST /json_proto HTTP/1.0 [12:15:30]Method: POST [12:15:30]URL: /json_proto [12:15:30]Method is POST - this is cgi request [12:15:30]url: /json_proto [12:15:30]query_string will be loaded in cgi processing [12:15:30]execute_cgi json_proto POST (null) [12:15:30]execute_cgi path=json_proto method=POST [12:15:30]POST find Content-Length [12:15:30]Host: 172.17.44.67:8080 [12:15:30]Content-Length: 687 [12:15:30]Content-Type: application/json [12:15:30] [12:15:30]POST finish read [12:15:30]Found Content-Length = 687 [12:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:30]execute_script... [12:15: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)918854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:30]POST & json_proto [12:15:30]process_json_proto [12:15:30]json parsed OK: [12:15:30]protocol is kg_v1.0 [12:15:30]action value=close_receipt [12:15:30]process_action close_receipt [12:15:30]cmd_close_receipt [12:15:30]MH_GetDate [12:15:30]Write to MH i2c: F0 00 00 A6 02 97 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: F0 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: F0 09 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: F0 09 00 A6 02 00 62 51 12 67 F1 C7 6B 64 53 [12:15:30]GetLastDocTimeStamp 1729253586 [12:15:30]current date 1729253730 [12:15:30]FM_GetShiftState [12:15:30]SAM_PROTO_GetShiftState [12:15:30]wFMCommunicate request_size=4 [12:15:30]MH_SAM_APDU [12:15:30]CAPDU: 80 13 01 00 [12:15:30]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:30]Read from MH i2c: E2 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F8 [12:15:30]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:15:30]wFMCommunicate OK [12:15:30]SAM_PROTO_GetShiftState done [12:15:30]FM_GetShiftState done [12:15:30]opened in 1729212319 [12:15:30]opened+sec_in_day 1729298719 [12:15:30]quantity*price = 100050 [12:15:30]sum+1 = 100052 [12:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре [12:15:31]line ОКРУГЛЕНИЕ: -0.51 [12:15:31]line ИТОГО: 1000.00 [12:15:31]line Внесено: 1000.00 [12:15:31]line СДАЧА: 0.00 [12:15:31]line НСП 1% : 8.85 [12:15:31]line НДС 12% : 106.25 [12:15:31]line Наличными: 1000.00 [12:15:31]line Безнал.: 0.00 [12:15:31]line Место: АЗС № 114 "Партнер Нефть" [12:15:31]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:15:31]line СНО: Общий режим [12:15:31]line Чек 67 18.10.2024 12:15 [12:15:31]line Смена: 526 ФФД: 1.0 [12:15:31]line ЗНМ: 0300000086 [12:15:31]line РНМ: 0000000000091680 [12:15:31]line Версия ККМ: 001 [12:15:31]line ФМ: 0000000000871843 [12:15:31]line ФД: 82358 [12:15:31]line ФПД: 258363787791832 [12:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121530&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82358&fm=258363787791832&tin=02508201610067®Number=0000000000091680&sum=100000 [12:15:31]written 0, free lines is 4095 [12:15:32]OFD Sender: Processing packet 82358 [packets to send 254, broken 253] [12:15:32]ProducePacketName [12:15:32]name=ofd_packets/00082358 [12:15:32]OFD Sender: To server: pG, [12:15:32]CommunicateWithHost lk.salyk.kg:30040 [12:15:32]ConnectInit lk.salyk.kg [12:15:32]Write to MH i2c: 01 00 00 E5 02 E7 [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 07 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 DD 0C D7 [12:15:32]RasterBufferAndPrint [12:15:32]line [12:15:32]line [12:15:32]line [12:15:32]line [12:15:32]line [12:15:32]written 0, free lines is 3299 [12:15:32]MH_Cut [12:15:32]Write to MH i2c: D1 01 00 EC 02 01 C0 [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: D1 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: D1 01 00 [12:15:32]MH_I2C_Read... [12:15:32]Read from MH i2c: D1 01 00 EC 02 00 BF [12:15:32]Write to MH i2c: 01 00 00 ED 02 EF [12:15:32]Write i2c OK [12:15:32]MH_I2C_Read... [12:15:32]Connected sock=9 [12:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 0E 75 08 01 17 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 62 51 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 41 01 00 35 04 06 00 EA FB 01 CB 4D D8 F2 57 4F 3B 5B DF 04 ED [12:15:33]*** Cut start [12:15:33]*** Partial cut [12:15:33]*** CUTSNS_PIN = 1 [12:15:33]*** CUTSNS_PIN = 0 [12:15:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A8 00 47 00 0F 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 31 38 34 33 10 04 04 00 B6 41 01 00 F4 03 04 00 9D F6 11 67 B6 04 01 00 00 D0 37 E1 9D 43 5A 56 6C [12:15:33]CommunicateWithHost err = 0 [12:15:33]CheckOFDResponse [12:15:33]1017 (14) - 77093643461234 [12:15:33]1041 (16) - 0000000000871843 [12:15:33]1040 (4) - 82358 [12:15:33]1012 (4) - 18.10.2024 05:48 [12:15:33]1206 (1) - 0 [12:15:33]OFD Sender: Remove packet 82358 [12:15:33]ProducePacketName [12:15:33]name=ofd_packets/00082358 [12:15:33]NVStorageDeleteData [12:15:33]*** Brake cut motor [12:15:33]Read from MH i2c: 01 [12:15:33]MH_I2C_Read... [12:15:33]*** Stop cut motor [12:15:33]*** Cut end [12:15:33]Read from MH i2c: 01 07 00 [12:15:33]MH_I2C_Read... [12:15:33]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 FF 0F 04 [12:15:33]process_action close_receipt done [12:15:33]requested_data is exist [12:15:33]produce_requested_data [12:15:33]requested_item fm.sn is exist - process it [12:15:33]wFMCommunicate request_size=4 [12:15:33]MH_SAM_APDU [12:15:33]CAPDU: 80 11 00 00 [12:15:33]Write to MH i2c: E2 08 00 EE 02 80 11 00 00 00 00 00 00 6A [12:15:33]Write i2c OK [12:15:33]MH_I2C_Read... [12:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:33]OFD Sender: No OFD packet to send [12:15:33]Read from MH i2c: E2 [12:15:33]MH_I2C_Read... [12:15:33]Read from MH i2c: E2 17 00 [12:15:33]MH_I2C_Read... [12:15:33]Read from MH i2c: E2 17 00 EE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BC [12:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:15:33]wFMCommunicate OK [12:15:33]requested_item fd.num is exist - process it [12:15:33]SAM_PROTO_GetFieldsCounters [12:15:33]wFMCommunicate request_size=4 [12:15:33]MH_SAM_APDU [12:15:33]CAPDU: 80 13 00 00 [12:15:33]Write to MH i2c: E2 08 00 EF 02 80 13 00 00 00 00 00 00 6D [12:15:33]Write i2c OK [12:15:33]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 62 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 62 00 EF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [12:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:34]wFMCommunicate OK [12:15:34]SAM_PROTO_GetFieldsCounters done [12:15:34]requested_item shift.num is exist - process it [12:15:34]requested_item shift.opened is exist - process it [12:15:34]req_shift_opened [12:15:34]FM_GetShiftState [12:15:34]SAM_PROTO_GetShiftState [12:15:34]wFMCommunicate request_size=4 [12:15:34]MH_SAM_APDU [12:15:34]CAPDU: 80 13 01 00 [12:15:34]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [12:15:34]Write i2c OK [12:15:34]MH_I2C_Read... [12:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:34]Read from MH i2c: E2 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 0E 00 [12:15:34]MH_I2C_Read... [12:15:34]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 41 [12:15:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:15:34]wFMCommunicate OK [12:15:34]SAM_PROTO_GetShiftState done [12:15:34]FM_GetShiftState done [12:15:34]req_shift_opened done [12:15:34]requested_item shift.open_date is exist - process it [12:15:34]req_shift_open_date [12:15:34]req_shift_open_date done [12:15:34]produce_requested_data done [12:15:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82358,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:15:34]process_action_free close_receipt [12:15:34]json_value_free [12:15:34]json_value_free done [12:15:34]process_json_proto returns [12:15:34]Send response to host [12:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82358,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:15:34]free response buf [12:15:34]execute_script done [12:15:34]execute_script returns [12:15:34]free content buf [12:15:34]Sock 8.Close socket [12:15:34]Sock 8.Thread stoped [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:51]recv_with_timeout no data received [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:10]recv_with_timeout no data received [12:16:13]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:28]accept exits with 10 [12:17:28]New connection [12:17:28]New thread 3067215204 created [12:17:28]Thread 3067071844 joined [12:17:28]Waiting for new connection... [12:17:28] Sock 10.Parse request [12:17:28]Sock 10.Check first char [12:17:28]Sock 10.First char is OK [12:17:28]request: POST /json_proto HTTP/1.0 [12:17:28]Method: POST [12:17:28]URL: /json_proto [12:17:28]Method is POST - this is cgi request [12:17:28]url: /json_proto [12:17:28]query_string will be loaded in cgi processing [12:17:28]execute_cgi json_proto POST (null) [12:17:28]execute_cgi path=json_proto method=POST [12:17:28]POST find Content-Length [12:17:28]Host: 172.17.44.67:8080 [12:17:28]Content-Length: 677 [12:17:28]Content-Type: application/json [12:17:28] [12:17:28]POST finish read [12:17:28]Found Content-Length = 677 [12:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:28]execute_script... [12:17: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)918855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:28]POST & json_proto [12:17:28]process_json_proto [12:17:28]json parsed OK: [12:17:28]protocol is kg_v1.0 [12:17:28]action value=close_receipt [12:17:28]process_action close_receipt [12:17:28]cmd_close_receipt [12:17:28]MH_GetDate [12:17:28]Write to MH i2c: F0 00 00 F1 02 E2 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: F0 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: F0 09 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: F0 09 00 F1 02 00 D8 51 12 67 F1 C7 6B 64 14 [12:17:28]GetLastDocTimeStamp 1729253730 [12:17:28]current date 1729253848 [12:17:28]FM_GetShiftState [12:17:28]SAM_PROTO_GetShiftState [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 13 01 00 [12:17:28]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0E 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 43 [12:17:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:17:28]wFMCommunicate OK [12:17:28]SAM_PROTO_GetShiftState done [12:17:28]FM_GetShiftState done [12:17:28]opened in 1729212319 [12:17:28]opened+sec_in_day 1729298719 [12:17:28]quantity*price = 15052 [12:17:28]sum+1 = 15054 [12:17:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 68 18.10.2024 12:17 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82359 ФПД: 191912652087598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121728&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82359&fm=191912652087598&tin=02508201610067®Number=0000000000091680&sum=15000 [12:17:29]StoreToDocumentArchive [12:17:29]shift 526 fd 82359 [12:17:29]save to /storage/0526/doc_00082359 [12:17:29]save last doc name /storage/0526/doc_00082359 to /storage/kkm_last_doc_name [12:17:29]save OK [12:17:29]Clear old archive folders... [12:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:29]tlvbuf is 00A21050 [12:17:29]SAM_PROTO_ClearQueue [12:17:29]wFMCommunicate request_size=4 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 09 00 00 [12:17:29]Write to MH i2c: E2 08 00 FF 02 80 09 00 00 00 00 00 00 73 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [12:17:29]RAPDU: 90 00 [12:17:29]wFMCommunicate OK [12:17:29]SAM_PROTO_ClearQueue done [12:17:29]KKMCreateOFDPacket [12:17:29]OFDProtocolAddRootSTLVToBuf [12:17:29]FM_MakeSignedData [12:17:29]FM_MakeSignedData [12:17:29]SAM_PROTO_SignData [12:17:29]wFMCommunicate request_size=4 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 0D 01 02 [12:17:29]Write to MH i2c: E2 08 00 00 03 80 0D 01 02 00 00 00 00 7C [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [12:17:29]RAPDU: 90 00 [12:17:29]wFMCommunicate OK [12:17:29]wFMCommunicate request_size=255 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D8 51 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B7 41 01 00 35 04 06 00 AE [12:17:29]Write to MH i2c: E2 02 01 01 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 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D8 51 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B7 41 01 00 35 04 06 00 AE 00 00 A2 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [12:17:29]RAPDU: 90 00 [12:17:29]wFMCommunicate OK [12:17:29]wFMCommunicate request_size=10 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 0D 02 02 05 8B 25 74 A1 2E [12:17:29]Write to MH i2c: E2 0D 00 02 03 80 0D 02 02 05 00 8B 25 74 A1 2E 00 00 7C [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [12:17:29]RAPDU: 90 00 [12:17:29]wFMCommunicate OK [12:17:29]wFMCommunicate request_size=4 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 0D 03 02 [12:17:29]Write to MH i2c: E2 08 00 03 03 80 0D 03 02 00 00 00 00 81 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 0B 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 0B 00 03 03 00 0A 02 B1 84 03 1B 4F FA 90 00 2A [12:17:29]RAPDU: 0A 02 B1 84 03 1B 4F FA 90 00 [12:17:29]wFMCommunicate OK [12:17:29]SAM_PROTO_SignData done [12:17:29]FM_MakeSignedData done [12:17:29]CreateOFDProtocolMessage [12:17:29]wFMCommunicate request_size=4 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 11 00 00 [12:17:29]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 17 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D3 [12:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:17:29]wFMCommunicate OK [12:17:29]CreateOFDProtocolMessage done [12:17:29]OFDSenderStorePacket 82359 [12:17:29]StoreOFDPacket docnum=82359 [12:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CF EC 07 01 60 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 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D8 51 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B7 41 01 00 35 04 06 00 AE 8B 25 74 A1 2E 0A 02 B1 84 03 1B 4F FA [12:17:29]CheckFolder [12:17:29]dirname=/storage/ofd_packets [12:17:29]CheckFolder done [12:17:29]ProducePacketName [12:17:29]name=ofd_packets/00082359 [12:17:29]NVStorageSaveData ofd_packets/00082359 [12:17:29]File name is /storage/ofd_packets/00082359 [12:17:29]Write 301 bytes [12:17:29]NVStorageSaveData done [12:17:29]OFDSenderStorePacket done [12:17:29]KKMCreateOFDPacket done [12:17:29]NVStorageSaveData kkm_last_timestamp [12:17:29]File name is /storage/kkm_last_timestamp [12:17:29]Write 4 bytes [12:17:29]NVStorageSaveData done [12:17:29]ExternCall_PrintAddStr [12:17:29]wPrintStart [12:17:29]Write to MH i2c: 01 00 00 05 03 08 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: 01 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: 01 07 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [12:17:29]RasterBufferAndPrint [12:17:29]line Счет N : (1)918855 [12:17:29]line ИНН: 02508201610067 [12:17:29]line Контрольно-Кассовый Чек [12:17:29]line ПРОДАЖА [12:17:29]line ТРК (МРК, ГНК) : 11 [12:17:29]line Товар: 2710124130 [12:17:29]line Аи-92-К-4 [12:17:29]line 2.250 * 66.90 [12:17:29]line = 150.53 [12:17:29]line НДС 12% НСП 1% [12:17:29]line > о реализуемом товаре [12:17:29]line ОКРУГЛЕНИЕ: -0.53 [12:17:29]line ИТОГО: 150.00 [12:17:29]line Внесено: 150.00 [12:17:29]line СДАЧА: 0.00 [12:17:29]line НСП 1% : 1.33 [12:17:29]line НДС 12% : 15.98 [12:17:29]line Наличными: 150.00 [12:17:29]line Безнал.: 0.00 [12:17:29]line Место: АЗС № 114 "Партнер Нефть" [12:17:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:17:29]line СНО: Общий режим [12:17:29]line Чек 68 18.10.2024 12:17 [12:17:29]line Смена: 526 ФФД: 1.0 [12:17:29]line ЗНМ: 0300000086 [12:17:29]line РНМ: 0000000000091680 [12:17:29]line Версия ККМ: 001 [12:17:29]line ФМ: 0000000000871843 [12:17:29]line ФД: 82359 [12:17:29]line ФПД: 191912652087598 [12:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121728&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82359&fm=191912652087598&tin=02508201610067®Number=0000000000091680&sum=15000 [12:17:29]written 0, free lines is 4095 [12:17:30]OFD Sender: Processing packet 82359 [packets to send 254, broken 253] [12:17:30]ProducePacketName [12:17:30]name=ofd_packets/00082359 [12:17:30]OFD Sender: To server: pG, [12:17:30]CommunicateWithHost lk.salyk.kg:30040 [12:17:30]ConnectInit lk.salyk.kg [12:17:30]Write to MH i2c: 01 00 00 30 03 33 [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: 01 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: 01 07 00 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 DC 0C 22 [12:17:30]RasterBufferAndPrint [12:17:30]line [12:17:30]line [12:17:30]line [12:17:30]line [12:17:30]line [12:17:30]written 0, free lines is 3298 [12:17:30]MH_Cut [12:17:30]Write to MH i2c: D1 01 00 37 03 01 0C [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: D1 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: D1 01 00 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: D1 01 00 37 03 00 0B [12:17:30]Write to MH i2c: 01 00 00 38 03 3B [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:31]*** Cut start [12:17:31]*** Partial cut [12:17:31]*** CUTSNS_PIN = 1 [12:17:31]*** CUTSNS_PIN = 0 [12:17:31]Connected sock=11 [12:17:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 CF EC 07 01 60 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 34 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 D8 51 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B7 41 01 00 35 04 06 00 AE 8B 25 74 A1 2E 0A 02 B1 84 03 1B 4F FA [12:17:31]*** Brake cut motor [12:17:31]Read from MH i2c: 01 [12:17:31]MH_I2C_Read... [12:17:31]*** Stop cut motor [12:17:31]*** Cut end [12:17:31]Read from MH i2c: 01 07 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 FF 0F 50 [12:17:31]process_action close_receipt done [12:17:31]requested_data is exist [12:17:31]produce_requested_data [12:17:31]requested_item fm.sn is exist - process it [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 11 00 00 [12:17:31]Write to MH i2c: E2 08 00 39 03 80 11 00 00 00 00 00 00 B6 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 08 [12:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:17:31]wFMCommunicate OK [12:17:31]requested_item fd.num is exist - process it [12:17:31]SAM_PROTO_GetFieldsCounters [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 13 00 00 [12:17:31]Write to MH i2c: E2 08 00 3A 03 80 13 00 00 00 00 00 00 B9 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 62 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 62 00 3A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [12:17:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:32]wFMCommunicate OK [12:17:32]SAM_PROTO_GetFieldsCounters done [12:17:32]requested_item shift.num is exist - process it [12:17:32]requested_item shift.opened is exist - process it [12:17:32]req_shift_opened [12:17:32]FM_GetShiftState [12:17:32]SAM_PROTO_GetShiftState [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 13 01 00 [12:17:32]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0E 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8D [12:17:32]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:17:32]wFMCommunicate OK [12:17:32]SAM_PROTO_GetShiftState done [12:17:32]FM_GetShiftState done [12:17:32]req_shift_opened done [12:17:32]requested_item shift.open_date is exist - process it [12:17:32]req_shift_open_date [12:17:32]req_shift_open_date done [12:17:32]produce_requested_data done [12:17:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82359,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:17:32]process_action_free close_receipt [12:17:32]json_value_free [12:17:32]json_value_free done [12:17:32]process_json_proto returns [12:17:32]Send response to host [12:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82359,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:17:32]free response buf [12:17:32]execute_script done [12:17:32]execute_script returns [12:17:32]free content buf [12:17:32]Sock 10.Close socket [12:17:32]Sock 10.Thread stoped [12:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BC 05 47 00 2D 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 31 38 34 33 10 04 04 00 B7 41 01 00 F4 03 04 00 14 F7 11 67 B6 04 01 00 00 10 85 36 92 5E C0 F0 81 [12:17:32]CommunicateWithHost err = 0 [12:17:32]CheckOFDResponse [12:17:32]1017 (14) - 77093643461234 [12:17:32]1041 (16) - 0000000000871843 [12:17:32]1040 (4) - 82359 [12:17:32]1012 (4) - 18.10.2024 05:50 [12:17:32]1206 (1) - 0 [12:17:32]OFD Sender: Remove packet 82359 [12:17:32]ProducePacketName [12:17:32]name=ofd_packets/00082359 [12:17:32]NVStorageDeleteData [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:03]recv_with_timeout no data received [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:15:31]wFMCommunicate OK [12:15:31]wFMCommunicate request_size=13 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 15 02 00 08 F4 03 04 00 62 51 12 67 [12:15:31]Write to MH i2c: E2 10 00 B0 02 80 15 02 00 08 00 F4 03 04 00 62 51 12 67 00 00 69 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]wFMCommunicate request_size=25 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [12:15:31]Write to MH i2c: E2 1C 00 B1 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 94 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 15 03 00 [12:15:31]Write to MH i2c: E2 08 00 B2 02 80 15 03 00 00 00 00 00 35 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]OFD Sender: No OFD packet to send [12:15:31]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 40 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 40 00 B2 02 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 43 00 00 00 35 04 06 00 EA FB 01 CB 4D D8 90 00 4B [12:15:31]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 43 00 00 00 35 04 06 00 EA FB 01 CB 4D D8 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_ProcessDocument answer len = 59 [12:15:31]SAM_PROTO_ProcessDocument done [12:15:31]SetTLVBufToDocument [12:15:31]Processing tag 1209 (04B9) [12:15:31]Malloc new data [12:15:31]Processing tag 1041 (0411) [12:15:31]Processing tag 1040 (0410) [12:15:31]Malloc new data [12:15:31]Processing tag 1038 (040E) [12:15:31]Malloc new data [12:15:31]Processing tag 1042 (0412) [12:15:31]Malloc new data [12:15:31]Processing tag 1077 (0435) [12:15:31]Malloc new data [12:15:31]SetTLVBufToDocument err=0 [12:15:31]KKMLoadAndSignReceiptData store KKM data [12:15:31]KKMLoadAndSignReceiptData err=0 [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 11 00 00 [12:15:31]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 17 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 81 [12:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:15:31]wFMCommunicate OK [12:15:31]Счет N : (1)918854 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 31 Товар: 2710194210 ДТ(л)-К-5 13.130 * 76.20 = 1000.51 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 67 18.10.2024 12:15 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82358 ФПД: 258363787791832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121530&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82358&fm=258363787791832&tin=02508201610067®Number=0000000000091680&sum=100000 [12:15:31]StoreToDocumentArchive [12:15:31]shift 526 fd 82358 [12:15:31]save to /storage/0526/doc_00082358 [12:15:31]save last doc name /storage/0526/doc_00082358 to /storage/kkm_last_doc_name [12:15:31]save OK [12:15:31]Clear old archive folders... [12:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:15:31]tlvbuf is 00A284C0 [12:15:31]SAM_PROTO_ClearQueue [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 09 00 00 [12:15:31]Write to MH i2c: E2 08 00 B4 02 80 09 00 00 00 00 00 00 28 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_ClearQueue done [12:15:31]KKMCreateOFDPacket [12:15:31]OFDProtocolAddRootSTLVToBuf [12:15:31]FM_MakeSignedData [12:15:31]FM_MakeSignedData [12:15:31]SAM_PROTO_SignData [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 0D 01 02 [12:15:31]Write to MH i2c: E2 08 00 B5 02 80 0D 01 02 00 00 00 00 30 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [12:15:31]RAPDU: 90 00 [12:15:31]wFMCommunicate OK [12:15:31]wFMCommunicate request_size=255 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 62 51 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 41 01 00 35 04 06 00 [12:15:31]Write to MH i2c: E2 02 01 B6 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 62 51 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B6 41 01 00 35 04 06 00 00 00 12 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 03 00 [12:15:31]MH_I2C_Read... [12:15:31]Rea[12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:44]recv_with_timeout no data received [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:14]recv_with_timeout no data received [12:25:18]OFD Sender: No OFD packet to send [12:25:21]accept exits with 9 [12:25:21]New connection [12:25:21]New thread 3067071844 created [12:25:21]Thread 3067215204 joined [12:25:21]Waiting for new connection... [12:25:21] Sock 9.Parse request [12:25:21]Sock 9.Check first char [12:25:21]Sock 9.First char is OK [12:25:21]request: POST /json_proto HTTP/1.0 [12:25:21]Method: POST [12:25:21]URL: /json_proto [12:25:21]Method is POST - this is cgi request [12:25:21]url: /json_proto [12:25:21]query_string will be loaded in cgi processing [12:25:21]execute_cgi json_proto POST (null) [12:25:21]execute_cgi path=json_proto method=POST [12:25:21]POST find Content-Length [12:25:21]Host: 172.17.44.67:8080 [12:25:21]Content-Length: 677 [12:25:21]Content-Type: application/json [12:25:21] [12:25:21]POST finish read [12:25:21]Found Content-Length = 677 [12:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:21]execute_script... [12:25: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)918856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:21]POST & json_proto [12:25:21]process_json_proto [12:25:21]json parsed OK: [12:25:21]protocol is kg_v1.0 [12:25:21]action value=close_receipt [12:25:21]process_action close_receipt [12:25:21]cmd_close_receipt [12:25:21]MH_GetDate [12:25:21]Write to MH i2c: F0 00 00 3C 03 2E [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: F0 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: F0 09 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: F0 09 00 3C 03 00 B2 53 12 67 F1 C7 6B 64 3C [12:25:21]GetLastDocTimeStamp 1729253848 [12:25:21]current date 1729254322 [12:25:21]FM_GetShiftState [12:25:21]SAM_PROTO_GetShiftState [12:25:21]wFMCommunicate request_size=4 [12:25:21]MH_SAM_APDU [12:25:21]CAPDU: 80 13 01 00 [12:25:21]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:21]Read from MH i2c: E2 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 0E 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8F [12:25:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:25:21]wFMCommunicate OK [12:25:21]SAM_PROTO_GetShiftState done [12:25:21]FM_GetShiftState done [12:25:21]opened in 1729212319 [12:25:21]opened+sec_in_day 1729298719 [12:25:21]quantity*price = 20003 [12:25:21]sum+1 = 20004 [12:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 69 18.10.2024 12:25 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82360 ФПД: 278637503195701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T122522&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82360&fm=278637503195701&tin=02508201610067®Number=0000000000091680&sum=20000 [12:25:22]StoreToDocumentArchive [12:25:22]shift 526 fd 82360 [12:25:22]save to /storage/0526/doc_00082360 [12:25:22]save last doc name /storage/0526/doc_00082360 to /storage/kkm_last_doc_name [12:25:22]save OK [12:25:22]Clear old archive folders... [12:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:22]tlvbuf is 00A2A450 [12:25:22]SAM_PROTO_ClearQueue [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 09 00 00 [12:25:22]Write to MH i2c: E2 08 00 4A 03 80 09 00 00 00 00 00 00 BF [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [12:25:22]RAPDU: 90 00 [12:25:22]wFMCommunicate OK [12:25:22]SAM_PROTO_ClearQueue done [12:25:22]KKMCreateOFDPacket [12:25:22]OFDProtocolAddRootSTLVToBuf [12:25:22]FM_MakeSignedData [12:25:22]FM_MakeSignedData [12:25:22]SAM_PROTO_SignData [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 0D 01 02 [12:25:22]Write to MH i2c: E2 08 00 4B 03 80 0D 01 02 00 00 00 00 C7 [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [12:25:22]RAPDU: 90 00 [12:25:22]wFMCommunicate OK [12:25:22]wFMCommunicate request_size=255 [12:25:22]MH_SAM_APDU [12:25: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B2 53 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B8 41 01 00 35 04 06 00 FD [12:25:22]Write to MH i2c: E2 02 01 4C 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B2 53 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B8 41 01 00 35 04 06 00 FD 00 00 DF [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [12:25:23]RAPDU: 90 00 [12:25:23]wFMCommunicate OK [12:25:23]wFMCommunicate request_size=10 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 0D 02 02 05 6B 59 66 2A 35 [12:25:23]Write to MH i2c: E2 0D 00 4D 03 80 0D 02 02 05 00 6B 59 66 2A 35 00 00 5D [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [12:25:23]RAPDU: 90 00 [12:25:23]wFMCommunicate OK [12:25:23]wFMCommunicate request_size=4 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 0D 03 02 [12:25:23]Write to MH i2c: E2 08 00 4E 03 80 0D 03 02 00 00 00 00 CC [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 0B 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 0B 00 4E 03 00 73 26 4A D9 54 D5 61 2C 90 00 3F [12:25:23]RAPDU: 73 26 4A D9 54 D5 61 2C 90 00 [12:25:23]wFMCommunicate OK [12:25:23]SAM_PROTO_SignData done [12:25:23]FM_MakeSignedData done [12:25:23]CreateOFDProtocolMessage [12:25:23]wFMCommunicate request_size=4 [12:25:23]MH_SAM_APDU [12:25:23]CAPDU: 80 11 00 00 [12:25:23]Write to MH i2c: E2 08 00 4F 03 80 11 00 00 00 00 00 00 CC [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:23]Read from MH i2c: E2 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: E2 17 00 [12:25:23]MH_I2C_Read... [12:25:23]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 31 38 34 33 90 00 1E [12:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:25:23]wFMCommunicate OK [12:25:23]CreateOFDProtocolMessage done [12:25:23]OFDSenderStorePacket 82360 [12:25:23]StoreOFDPacket docnum=82360 [12:25:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D8 5B 07 01 0F 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B2 53 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B8 41 01 00 35 04 06 00 FD 6B 59 66 2A 35 73 26 4A D9 54 D5 61 2C [12:25:23]CheckFolder [12:25:23]dirname=/storage/ofd_packets [12:25:23]CheckFolder done [12:25:23]ProducePacketName [12:25:23]name=ofd_packets/00082360 [12:25:23]NVStorageSaveData ofd_packets/00082360 [12:25:23]File name is /storage/ofd_packets/00082360 [12:25:23]Write 301 bytes [12:25:23]NVStorageSaveData done [12:25:23]OFDSenderStorePacket done [12:25:23]KKMCreateOFDPacket done [12:25:23]NVStorageSaveData kkm_last_timestamp [12:25:23]File name is /storage/kkm_last_timestamp [12:25:23]Write 4 bytes [12:25:23]NVStorageSaveData done [12:25:23]ExternCall_PrintAddStr [12:25:23]wPrintStart [12:25:23]Write to MH i2c: 01 00 00 50 03 53 [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 07 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [12:25:23]RasterBufferAndPrint [12:25:23]line Счет N : (1)918856 [12:25:23]line ИНН: 02508201610067 [12:25:23]line Контрольно-Кассовый Чек [12:25:23]line ПРОДАЖА [12:25:23]line ТРК (МРК, ГНК) : 22 [12:25:23]line Товар: 2710124130 [12:25:23]line Аи-92-К-4 [12:25:23]line 2.990 * 66.90 [12:25:23]line = 200.03 [12:25:23]line НДС 12% НСП 1% [12:25:23]line > о реализуемом товаре [12:25:23]line ОКРУГЛЕНИЕ: -0.03 [12:25:23]line ИТОГО: 200.00 [12:25:23]line Внесено: 200.00 [12:25:23]line СДАЧА: 0.00 [12:25:23]line НСП 1% : 1.77 [12:25:23]line НДС 12% : 21.24 [12:25:23]line Наличными: 200.00 [12:25:23]line Безнал.: 0.00 [12:25:23]line Место: АЗС № 114 "Партнер Нефть" [12:25:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:25:23]line СНО: Общий режим [12:25:23]line Чек 69 18.10.2024 12:25 [12:25:23]line Смена: 526 ФФД: 1.0 [12:25:23]line ЗНМ: 0300000086 [12:25:23]line РНМ: 0000000000091680 [12:25:23]line Версия ККМ: 001 [12:25:23]line ФМ: 0000000000871843 [12:25:23]line ФД: 82360 [12:25:23]line ФПД: 278637503195701 [12:25:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T122522&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82360&fm=278637503195701&tin=02508201610067®Number=0000000000091680&sum=20000 [12:25:23]written 0, free lines is 4095 [12:25:23]OFD Sender: Processing packet 82360 [packets to send 254, broken 253] [12:25:23]ProducePacketName [12:25:23]name=ofd_packets/00082360 [12:25:23]OFD Sender: To server: pG, [12:25:23]CommunicateWithHost lk.salyk.kg:30040 [12:25:23]ConnectInit lk.salyk.kg [12:25:23]Write to MH i2c: 01 00 00 7B 03 7E [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 07 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 07 00 7B 03 00 00 00 00 00 D6 0C 67 [12:25:23]RasterBufferAndPrint [12:25:23]line [12:25:23]line [12:25:23]line [12:25:23]line [12:25:23]line [12:25:23]written 0, free lines is 3293 [12:25:23]MH_Cut [12:25:23]Write to MH i2c: D1 01 00 82 03 01 57 [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: D1 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: D1 01 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: D1 01 00 82 03 00 56 [12:25:23]Write to MH i2c: 01 00 00 83 03 86 [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Connected sock=8 [12:25:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D8 5B 07 01 0F 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B2 53 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B8 41 01 00 35 04 06 00 FD 6B 59 66 2A 35 73 26 4A D9 54 D5 61 2C [12:25:24]*** Cut start [12:25:24]*** Partial cut [12:25:24]*** CUTSNS_PIN = 1 [12:25:24]*** CUTSNS_PIN = 0 [12:25:24]*** Brake cut motor [12:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C0 DA 47 00 8D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B8 41 01 00 F4 03 04 00 EC F8 11 67 B6 04 01 00 00 94 CB C2 05 2E 26 72 DB [12:25:24]CommunicateWithHost err = 0 [12:25:24]CheckOFDResponse [12:25:24]1017 (14) - 77093643461234 [12:25:24]1041 (16) - 0000000000871843 [12:25:24]1040 (4) - 82360 [12:25:24]1012 (4) - 18.10.2024 05:58 [12:25:24]1206 (1) - 0 [12:25:24]OFD Sender: Remove packet 82360 [12:25:24]ProducePacketName [12:25:24]name=ofd_packets/00082360 [12:25:24]NVStorageDeleteData [12:25:25]Read from MH i2c: 01 [12:25:25]MH_I2C_Read... [12:25:25]*** Stop cut motor [12:25:25]*** Cut end [12:25:25]Read from MH i2c: 01 07 00 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: 01 07 00 83 03 00 00 00 00 00 FF 0F 9B [12:25:25]process_action close_receipt done [12:25:25]requested_data is exist [12:25:25]produce_requested_data [12:25:25]requested_item fm.sn is exist - process it [12:25:25]wFMCommunicate request_size=4 [12:25:25]MH_SAM_APDU [12:25:25]CAPDU: 80 11 00 00 [12:25:25]Write to MH i2c: E2 08 00 84 03 80 11 00 00 00 00 00 00 01 [12:25:25]Write i2c OK [12:25:25]MH_I2C_Read... [12:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:25]Read from MH i2c: E2 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 17 00 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 17 00 84 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 53 [12:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:25:25]wFMCommunicate OK [12:25:25]requested_item fd.num is exist - process it [12:25:25]SAM_PROTO_GetFieldsCounters [12:25:25]wFMCommunicate request_size=4 [12:25:25]MH_SAM_APDU [12:25:25]CAPDU: 80 13 00 00 [12:25:25]Write to MH i2c: E2 08 00 85 03 80 13 00 00 00 00 00 00 04 [12:25:25]Write i2c OK [12:25:25]MH_I2C_Read... [12:25:25]OFD Sender: No OFD packet to send [12:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:25]Read from MH i2c: E2 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 62 00 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 62 00 85 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:25:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:25]wFMCommunicate OK [12:25:25]SAM_PROTO_GetFieldsCounters done [12:25:25]requested_item shift.num is exist - process it [12:25:25]requested_item shift.opened is exist - process it [12:25:25]req_shift_opened [12:25:25]FM_GetShiftState [12:25:25]SAM_PROTO_GetShiftState [12:25:25]wFMCommunicate request_size=4 [12:25:25]MH_SAM_APDU [12:25:25]CAPDU: 80 13 01 00 [12:25:25]Write to MH i2c: E2 08 00 86 03 80 13 01 00 00 00 00 00 06 [12:25:25]Write i2c OK [12:25:25]MH_I2C_Read... [12:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:25]Read from MH i2c: E2 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 0E 00 [12:25:25]MH_I2C_Read... [12:25:25]Read from MH i2c: E2 0E 00 86 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D8 [12:25:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:25:25]wFMCommunicate OK [12:25:25]SAM_PROTO_GetShiftState done [12:25:25]FM_GetShiftState done [12:25:25]req_shift_opened done [12:25:25]requested_item shift.open_date is exist - process it [12:25:25]req_shift_open_date [12:25:25]req_shift_open_date done [12:25:25]produce_requested_data done [12:25:25]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82360,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:25:25]process_action_free close_receipt [12:25:25]json_value_free [12:25:25]json_value_free done [12:25:25]process_json_proto returns [12:25:25]Send response to host [12:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82360,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:25:25]free response buf [12:25:25]execute_script done [12:25:25]execute_script returns [12:25:25]free content buf [12:25:25]Sock 9.Close socket [12:25:25]Sock 9.Thread stoped [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:48]recv_with_timeout no data received [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:34]accept exits with 10 [12:28:34]New connection [12:28:34]New thread 3067215204 created [12:28:34]Thread 3067071844 joined [12:28:34]Waiting for new connection... [12:28:34] Sock 10.Parse request [12:28:34]Sock 10.Check first char [12:28:34]Sock 10.First char is OK [12:28:34]request: POST /json_proto HTTP/1.0 [12:28:34]Method: POST [12:28:34]URL: /json_proto [12:28:34]Method is POST - this is cgi request [12:28:34]url: /json_proto [12:28:34]query_string will be loaded in cgi processing [12:28:34]execute_cgi json_proto POST (null) [12:28:34]execute_cgi path=json_proto method=POST [12:28:34]POST find Content-Length [12:28:34]Host: 172.17.44.67:8080 [12:28:34]Content-Length: 754 [12:28:34]Content-Type: application/json [12:28:34] [12:28:34]POST finish read [12:28:34]Found Content-Length = 754 [12:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:34]execute_script... [12:28: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)918857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100657", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:34]POST & json_proto [12:28:34]process_json_proto [12:28:34]json parsed OK: [12:28:34]protocol is kg_v1.0 [12:28:34]action value=close_receipt [12:28:34]process_action close_receipt [12:28:34]cmd_close_receipt [12:28:34]MH_GetDate [12:28:34]Write to MH i2c: F0 00 00 87 03 79 [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: F0 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: F0 09 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: F0 09 00 87 03 00 72 54 12 67 F1 C7 6B 64 48 [12:28:34]GetLastDocTimeStamp 1729254322 [12:28:34]current date 1729254514 [12:28:34]FM_GetShiftState [12:28:34]SAM_PROTO_GetShiftState [12:28:34]wFMCommunicate request_size=4 [12:28:34]MH_SAM_APDU [12:28:34]CAPDU: 80 13 01 00 [12:28:34]Write to MH i2c: E2 08 00 88 03 80 13 01 00 00 00 00 00 08 [12:28:34]Write i2c OK [12:28:34]MH_I2C_Read... [12:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:34]Read from MH i2c: E2 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 0E 00 [12:28:34]MH_I2C_Read... [12:28:34]Read from MH i2c: E2 0E 00 88 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DA [12:28:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:28:34]wFMCommunicate OK [12:28:34]SAM_PROTO_GetShiftState done [12:28:34]FM_GetShiftState done [12:28:34]opened in 1729212319 [12:28:34]opened+sec_in_day 1729298719 [12:28:34]quantity*price = 0 [12:28:34]sum+1 = 1 [12:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 70 18.10.2024 12:28 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100657 ФМ: 0000000000871843 ФД: 82361 ФПД: 37097457652981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T122834&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82361&fm=37097457652981&tin=02508201610067®Number=0000000000091680&sum=0 [12:28:35]StoreToDocumentArchive [12:28:35]shift 526 fd 82361 [12:28:35]save to /storage/0526/doc_00082361 [12:28:35]save last doc name /storage/0526/doc_00082361 to /storage/kkm_last_doc_name [12:28:35]save OK [12:28:35]Clear old archive folders... [12:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:35]tlvbuf is B6F01A10 [12:28:35]SAM_PROTO_ClearQueue [12:28:35]wFMCommunicate request_size=4 [12:28:35]MH_SAM_APDU [12:28:35]CAPDU: 80 09 00 00 [12:28:35]Write to MH i2c: E2 08 00 95 03 80 09 00 00 00 00 00 00 0A [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:35]Read from MH i2c: E2 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [12:28:35]RAPDU: 90 00 [12:28:35]wFMCommunicate OK [12:28:35]SAM_PROTO_ClearQueue done [12:28:35]KKMCreateOFDPacket [12:28:35]OFDProtocolAddRootSTLVToBuf [12:28:35]FM_MakeSignedData [12:28:35]FM_MakeSignedData [12:28:35]SAM_PROTO_SignData [12:28:35]wFMCommunicate request_size=4 [12:28:35]MH_SAM_APDU [12:28:35]CAPDU: 80 0D 01 02 [12:28:35]Write to MH i2c: E2 08 00 96 03 80 0D 01 02 00 00 00 00 12 [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:35]Read from MH i2c: E2 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [12:28:35]RAPDU: 90 00 [12:28:35]wFMCommunicate OK [12:28:35]wFMCommunicate request_size=255 [12:28:35]MH_SAM_APDU [12:28: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 72 54 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 41 01 00 35 04 06 00 21 [12:28:35]Write to MH i2c: E2 02 01 97 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 72 54 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 41 01 00 35 04 06 00 21 00 00 01 [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:35]Read from MH i2c: E2 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [12:28:35]RAPDU: 90 00 [12:28:35]wFMCommunicate OK [12:28:35]wFMCommunicate request_size=10 [12:28:35]MH_SAM_APDU [12:28:35]CAPDU: 80 0D 02 02 05 BD 6C C9 14 F5 [12:28:35]Write to MH i2c: E2 0D 00 98 03 80 0D 02 02 05 00 BD 6C C9 14 F5 00 00 1A [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]OFD Sender: No OFD packet to send [12:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:35]Read from MH i2c: E2 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [12:28:35]RAPDU: 90 00 [12:28:35]wFMCommunicate OK [12:28:35]wFMCommunicate request_size=4 [12:28:35]MH_SAM_APDU [12:28:35]CAPDU: 80 0D 03 02 [12:28:35]Write to MH i2c: E2 08 00 99 03 80 0D 03 02 00 00 00 00 17 [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:35]Read from MH i2c: E2 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 0B 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 0B 00 99 03 00 B9 32 63 1A 53 CD 70 22 90 00 32 [12:28:35]RAPDU: B9 32 63 1A 53 CD 70 22 90 00 [12:28:35]wFMCommunicate OK [12:28:35]SAM_PROTO_SignData done [12:28:35]FM_MakeSignedData done [12:28:35]CreateOFDProtocolMessage [12:28:35]wFMCommunicate request_size=4 [12:28:35]MH_SAM_APDU [12:28:35]CAPDU: 80 11 00 00 [12:28:35]Write to MH i2c: E2 08 00 9A 03 80 11 00 00 00 00 00 00 17 [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:35]Read from MH i2c: E2 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: E2 17 00 [12:28:35]MH_I2C_Read... [12:28:35]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 31 38 34 33 90 00 69 [12:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:28:35]wFMCommunicate OK [12:28:35]CreateOFDProtocolMessage done [12:28:35]OFDSenderStorePacket 82361 [12:28:35]StoreOFDPacket docnum=82361 [12:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 47 34 07 01 B2 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 72 54 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 41 01 00 35 04 06 00 21 BD 6C C9 14 F5 B9 32 63 1A 53 CD 70 22 [12:28:35]CheckFolder [12:28:35]dirname=/storage/ofd_packets [12:28:35]CheckFolder done [12:28:35]ProducePacketName [12:28:35]name=ofd_packets/00082361 [12:28:35]NVStorageSaveData ofd_packets/00082361 [12:28:35]File name is /storage/ofd_packets/00082361 [12:28:35]Write 301 bytes [12:28:35]NVStorageSaveData done [12:28:35]OFDSenderStorePacket done [12:28:35]KKMCreateOFDPacket done [12:28:35]NVStorageSaveData kkm_last_timestamp [12:28:35]File name is /storage/kkm_last_timestamp [12:28:35]Write 4 bytes [12:28:35]NVStorageSaveData done [12:28:35]ExternCall_PrintAddStr [12:28:35]wPrintStart [12:28:35]Write to MH i2c: 01 00 00 9B 03 9E [12:28:35]Write i2c OK [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: 01 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: 01 07 00 [12:28:35]MH_I2C_Read... [12:28:35]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [12:28:35]RasterBufferAndPrint [12:28:35]line Счет N : (1)918857 [12:28:35]line ИНН: 02508201610067 [12:28:35]line Контрольно-Кассовый Чек [12:28:35]line ПРОДАЖА [12:28:35]line ТРК (МРК, ГНК) : 11 [12:28:35]line Товар: 2710124130 [12:28:35]line Аи-92-К-4 [12:28:35]line 10.000 * 0.00 [12:28:35]line = 0.00 [12:28:35]line НДС 12% НСП 1% [12:28:35]line > о реализуемом товаре [12:28:35]line ИТОГО: 0.00 [12:28:35]line НСП 1% : 0.00 [12:28:35]line НДС 12% : 0.00 [12:28:35]line Наличными: 0.00 [12:28:35]line Безнал.: 0.00 [12:28:35]line Место: АЗС № 114 "Партнер Нефть" [12:28:35]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:28:35]line СНО: Общий режим [12:28:35]line Чек 70 18.10.2024 12:28 [12:28:35]line Смена: 526 ФФД: 1.0 [12:28:35]line ЗНМ: 0300000086 [12:28:35]line РНМ: 0000000000091680 [12:28:35]line Версия ККМ: 001 [12:28:35]line Талоны: ТК ГПНА Online [12:28:35]line 30100657 [12:28:35]line ФМ: 0000000000871843 [12:28:35]line ФД: 82361 [12:28:35]line ФПД: 37097457652981 [12:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T122834&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82361&fm=37097457652981&tin=02508201610067®Number=0000000000091680&sum=0 [12:28:36]OFD Sender: Processing packet 82361 [packets to send 254, broken 253] [12:28:36]ProducePacketName [12:28:36]name=ofd_packets/00082361 [12:28:36]OFD Sender: To server: pG, [12:28:36]CommunicateWithHost lk.salyk.kg:30040 [12:28:36]ConnectInit lk.salyk.kg [12:28:36]written 0, free lines is 4095 [12:28:36]Write to MH i2c: 01 00 00 C5 03 C8 [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: 01 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: 01 07 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: 01 07 00 C5 03 00 00 00 00 00 E9 0C C4 [12:28:36]RasterBufferAndPrint [12:28:36]line [12:28:36]line [12:28:36]line [12:28:36]line [12:28:36]line [12:28:36]written 0, free lines is 3309 [12:28:36]MH_Cut [12:28:36]Write to MH i2c: D1 01 00 CC 03 01 A1 [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: D1 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: D1 01 00 [12:28:36]MH_I2C_Read... [12:28:36]Read from MH i2c: D1 01 00 CC 03 00 A0 [12:28:36]Write to MH i2c: 01 00 00 CD 03 D0 [12:28:36]Write i2c OK [12:28:36]MH_I2C_Read... [12:28:37]Connected sock=11 [12:28:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 47 34 07 01 B2 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 72 54 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 41 01 00 35 04 06 00 21 BD 6C C9 14 F5 B9 32 63 1A 53 CD 70 22 [12:28:37]*** Cut start [12:28:37]*** Partial cut [12:28:37]*** CUTSNS_PIN = 1 [12:28:37]*** CUTSNS_PIN = 0 [12:28:37]*** Brake cut motor [12:28:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FD E8 47 00 AC D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 B9 41 01 00 F4 03 04 00 AE F9 11 67 B6 04 01 00 00 07 03 1F AE 28 65 F5 91 [12:28:37]CommunicateWithHost err = 0 [12:28:37]CheckOFDResponse [12:28:37]1017 (14) - 77093643461234 [12:28:37]1041 (16) - 0000000000871843 [12:28:37]1040 (4) - 82361 [12:28:37]1012 (4) - 18.10.2024 06:01 [12:28:37]1206 (1) - 0 [12:28:37]OFD Sender: Remove packet 82361 [12:28:37]ProducePacketName [12:28:37]name=ofd_packets/00082361 [12:28:37]NVStorageDeleteData [12:28:37]Read from MH i2c: 01 [12:28:37]MH_I2C_Read... [12:28:37]*** Stop cut motor [12:28:37]*** Cut end [12:28:37]Read from MH i2c: 01 07 00 [12:28:37]MH_I2C_Read... [12:28:37]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 FF 0F E5 [12:28:37]process_action close_receipt done [12:28:37]requested_data is exist [12:28:37]produce_requested_data [12:28:37]requested_item fm.sn is exist - process it [12:28:37]wFMCommunicate request_size=4 [12:28:37]MH_SAM_APDU [12:28:37]CAPDU: 80 11 00 00 [12:28:37]Write to MH i2c: E2 08 00 CE 03 80 11 00 00 00 00 00 00 4B [12:28:37]Write i2c OK [12:28:37]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 CE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9D [12:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 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 CF 03 80 13 00 00 00 00 00 00 4E [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 CF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 B9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 D0 03 80 13 01 00 00 00 00 00 50 [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 D0 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 22 [12:28:38]RAPDU: 09 00 01 9F AF 11 67 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 {"fm.sn":"0000000000871843","fd.num":82361,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:28:38]process_action_free close_receipt [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":{"fm.sn":"0000000000871843","fd.num":82361,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [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 10.Close socket [12:28:38]Sock 10.Thread stoped [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:56]recv_with_timeout no data received [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:19]recv_with_timeout no data received [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:14]recv_with_timeout no data received [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:29]recv_with_timeout no data received [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:49]accept exits with 8 [12:41:49]New connection [12:41:49]New thread 3067071844 created [12:41:49]Thread 3067215204 joined [12:41:49]Waiting for new connection... [12:41:49] Sock 8.Parse request [12:41:49]Sock 8.Check first char [12:41:49]Sock 8.First char is OK [12:41:49]request: POST /json_proto HTTP/1.0 [12:41:49]Method: POST [12:41:49]URL: /json_proto [12:41:49]Method is POST - this is cgi request [12:41:49]url: /json_proto [12:41:49]query_string will be loaded in cgi processing [12:41:49]execute_cgi json_proto POST (null) [12:41:49]execute_cgi path=json_proto method=POST [12:41:49]POST find Content-Length [12:41:49]Host: 172.17.44.67:8080 [12:41:49]Content-Length: 687 [12:41:49]Content-Type: application/json [12:41:49] [12:41:49]POST finish read [12:41:49]Found Content-Length = 687 [12:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:49]execute_script... [12:41: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)918859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:49]POST & json_proto [12:41:49]process_json_proto [12:41:49]json parsed OK: [12:41:49]protocol is kg_v1.0 [12:41:49]action value=close_receipt [12:41:49]process_action close_receipt [12:41:49]cmd_close_receipt [12:41:49]MH_GetDate [12:41:49]Write to MH i2c: F0 00 00 D1 03 C3 [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: F0 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: F0 09 00 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: F0 09 00 D1 03 00 8E 57 12 67 F1 C7 6B 64 B1 [12:41:49]GetLastDocTimeStamp 1729254514 [12:41:49]current date 1729255310 [12:41:49]FM_GetShiftState [12:41:49]SAM_PROTO_GetShiftState [12:41:49]wFMCommunicate request_size=4 [12:41:49]MH_SAM_APDU [12:41:49]CAPDU: 80 13 01 00 [12:41:49]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [12:41:49]Write i2c OK [12:41:49]MH_I2C_Read... [12:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:49]Read from MH i2c: E2 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: E2 0E 00 [12:41:49]MH_I2C_Read... [12:41:49]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 24 [12:41:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:41:49]wFMCommunicate OK [12:41:49]SAM_PROTO_GetShiftState done [12:41:49]FM_GetShiftState done [12:41:49]opened in 1729212319 [12:41:49]opened+sec_in_day 1729298719 [12:41:49]quantity*price = 200025 [12:41:49]sum+1 = 200026 [12:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 71 18.10.2024 12:41 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82362 ФПД: 268444346536061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124150&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82362&fm=268444346536061&tin=02508201610067®Number=0000000000091680&sum=200000 [12:41:51]StoreToDocumentArchive [12:41:51]shift 526 fd 82362 [12:41:51]save to /storage/0526/doc_00082362 [12:41:51]save last doc name /storage/0526/doc_00082362 to /storage/kkm_last_doc_name [12:41:51]save OK [12:41:51]Clear old archive folders... [12:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:41:51]tlvbuf is 00A215E0 [12:41:51]SAM_PROTO_ClearQueue [12:41:51]wFMCommunicate request_size=4 [12:41:51]MH_SAM_APDU [12:41:51]CAPDU: 80 09 00 00 [12:41:51]Write to MH i2c: E2 08 00 DF 03 80 09 00 00 00 00 00 00 54 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:51]Read from MH i2c: E2 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [12:41:51]RAPDU: 90 00 [12:41:51]wFMCommunicate OK [12:41:51]SAM_PROTO_ClearQueue done [12:41:51]KKMCreateOFDPacket [12:41:51]OFDProtocolAddRootSTLVToBuf [12:41:51]FM_MakeSignedData [12:41:51]FM_MakeSignedData [12:41:51]SAM_PROTO_SignData [12:41:51]wFMCommunicate request_size=4 [12:41:51]MH_SAM_APDU [12:41:51]CAPDU: 80 0D 01 02 [12:41:51]Write to MH i2c: E2 08 00 E0 03 80 0D 01 02 00 00 00 00 5C [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:51]Read from MH i2c: E2 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [12:41:51]RAPDU: 90 00 [12:41:51]wFMCommunicate OK [12:41:51]wFMCommunicate request_size=255 [12:41:51]MH_SAM_APDU [12:41:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 8E 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 41 01 00 35 04 06 00 [12:41:51]Write to MH i2c: E2 02 01 E1 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 8E 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 41 01 00 35 04 06 00 00 00 66 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:51]Read from MH i2c: E2 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [12:41:51]RAPDU: 90 00 [12:41:51]wFMCommunicate OK [12:41:51]wFMCommunicate request_size=11 [12:41:51]MH_SAM_APDU [12:41:51]CAPDU: 80 0D 02 02 06 F4 26 11 EA D0 7D [12:41:51]Write to MH i2c: E2 0E 00 E2 03 80 0D 02 02 06 00 F4 26 11 EA D0 7D 00 00 CD [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:51]Read from MH i2c: E2 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [12:41:51]RAPDU: 90 00 [12:41:51]wFMCommunicate OK [12:41:51]wFMCommunicate request_size=4 [12:41:51]MH_SAM_APDU [12:41:51]CAPDU: 80 0D 03 02 [12:41:51]Write to MH i2c: E2 08 00 E3 03 80 0D 03 02 00 00 00 00 61 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:51]Read from MH i2c: E2 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 0B 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 0B 00 E3 03 00 ED F3 8B 8A 91 1C 7D 0F 90 00 90 [12:41:51]RAPDU: ED F3 8B 8A 91 1C 7D 0F 90 00 [12:41:51]wFMCommunicate OK [12:41:51]SAM_PROTO_SignData done [12:41:51]FM_MakeSignedData done [12:41:51]CreateOFDProtocolMessage [12:41:51]wFMCommunicate request_size=4 [12:41:51]MH_SAM_APDU [12:41:51]CAPDU: 80 11 00 00 [12:41:51]Write to MH i2c: E2 08 00 E4 03 80 11 00 00 00 00 00 00 61 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:51]Read from MH i2c: E2 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: E2 17 00 [12:41:51]MH_I2C_Read... [12:41:51]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 31 38 34 33 90 00 B3 [12:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:41:51]wFMCommunicate OK [12:41:51]CreateOFDProtocolMessage done [12:41:51]OFDSenderStorePacket 82362 [12:41:51]StoreOFDPacket docnum=82362 [12:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 51 0D 08 01 1D D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 8E 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 41 01 00 35 04 06 00 F4 26 11 EA D0 7D ED F3 8B 8A 91 1C 7D 0F [12:41:51]CheckFolder [12:41:51]dirname=/storage/ofd_packets [12:41:51]CheckFolder done [12:41:51]ProducePacketName [12:41:51]name=ofd_packets/00082362 [12:41:51]NVStorageSaveData ofd_packets/00082362 [12:41:51]File name is /storage/ofd_packets/00082362 [12:41:51]Write 302 bytes [12:41:51]NVStorageSaveData done [12:41:51]OFDSenderStorePacket done [12:41:51]KKMCreateOFDPacket done [12:41:51]NVStorageSaveData kkm_last_timestamp [12:41:51]File name is /storage/kkm_last_timestamp [12:41:51]Write 4 bytes [12:41:51]NVStorageSaveData done [12:41:51]ExternCall_PrintAddStr [12:41:51]wPrintStart [12:41:51]Write to MH i2c: 01 00 00 E5 03 E8 [12:41:51]Write i2c OK [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: 01 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: 01 07 00 [12:41:51]MH_I2C_Read... [12:41:51]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 FF 0F FD [12:41:51]RasterBufferAndPrint [12:41:51]line Счет N : (1)918859 [12:41:51]line ИНН: 02508201610067 [12:41:51]line Контрольно-Кассовый Чек [12:41:51]line ПРОДАЖА [12:41:51]line ТРК (МРК, ГНК) : 31 [12:41:51]line Товар: 2710194210 [12:41:51]line ДТ(л)-К-5 [12:41:51]line 26.250 * 76.20 [12:41:51]line = 2000.25 [12:41:51]line НДС 12% НСП 1% [12:41:51]line > о реализуемом товаре [12:41:51]line ОКРУГЛЕНИЕ: -0.25 [12:41:51]line ИТОГО: 2000.00 [12:41:51]line Внесено: 2000.00 [12:41:51]line СДАЧА: 0.00 [12:41:51]line НСП 1% : 17.70 [12:41:51]line НДС 12% : 212.42 [12:41:51]line Наличными: 2000.00 [12:41:51]line Безнал.: 0.00 [12:41:51]line Место: АЗС № 114 "Партнер Нефть" [12:41:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:41:51]line СНО: Общий режим [12:41:51]line Чек 71 18.10.2024 12:41 [12:41:51]line Смена: 526 ФФД: 1.0 [12:41:51]line ЗНМ: 0300000086 [12:41:51]line РНМ: 0000000000091680 [12:41:51]line Версия ККМ: 001 [12:41:51]line ФМ: 0000000000871843 [12:41:51]line ФД: 82362 [12:41:51]line ФПД: 268444346536061 [12:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124150&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82362&fm=268444346536061&tin=02508201610067®Number=0000000000091680&sum=200000 [12:41:51]OFD Sender: Processing packet 82362 [packets to send 254, broken 253] [12:41:51]ProducePacketName [12:41:51]name=ofd_packets/00082362 [12:41:51]OFD Sender: To server: pG, [12:41:51]CommunicateWithHost lk.salyk.kg:30040 [12:41:51]ConnectInit lk.salyk.kg [12:41:51]written 0, free lines is 4095 [12:41:52]Write to MH i2c: 01 00 00 10 04 14 [12:41:52]Write i2c OK [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: 01 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: 01 07 00 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 D4 0C FB [12:41:52]RasterBufferAndPrint [12:41:52]line [12:41:52]line [12:41:52]line [12:41:52]line [12:41:52]line [12:41:52]written 0, free lines is 3292 [12:41:52]MH_Cut [12:41:52]Write to MH i2c: D1 01 00 17 04 01 ED [12:41:52]Write i2c OK [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: D1 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: D1 01 00 [12:41:52]MH_I2C_Read... [12:41:52]Read from MH i2c: D1 01 00 17 04 00 EC [12:41:52]Write to MH i2c: 01 00 00 18 04 1C [12:41:52]Write i2c OK [12:41:52]MH_I2C_Read... [12:41:53]Connected sock=9 [12:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 51 0D 08 01 1D D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 8E 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 41 01 00 35 04 06 00 F4 26 11 EA D0 7D ED F3 8B 8A 91 1C 7D 0F [12:41:53]*** Cut start [12:41:53]*** Partial cut [12:41:53]*** CUTSNS_PIN = 1 [12:41:53]*** CUTSNS_PIN = 0 [12:41:53]*** Brake cut motor [12:41:53]Read from MH i2c: 01 [12:41:53]MH_I2C_Read... [12:41:53]*** Stop cut motor [12:41:53]*** Cut end [12:41:53]Read from MH i2c: 01 07 00 [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 FF 0F 31 [12:41:53]process_action close_receipt done [12:41:53]requested_data is exist [12:41:53]produce_requested_data [12:41:53]requested_item fm.sn is exist - process it [12:41:53]wFMCommunicate request_size=4 [12:41:53]MH_SAM_APDU [12:41:53]CAPDU: 80 11 00 00 [12:41:53]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [12:41:53]Write i2c OK [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: E2 [12:41:53]MH_I2C_Read... [12:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:53]Read from MH i2c: E2 17 00 [12:41:53]MH_I2C_Read... [12:41:53]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E9 [12:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:41:53]wFMCommunicate OK [12:41:53]requested_item fd.num is exist - process it [12:41:53]SAM_PROTO_GetFieldsCounters [12:41:53]wFMCommunicate request_size=4 [12:41:53]MH_SAM_APDU [12:41:53]CAPDU: 80 13 00 00 [12:41:53]Write to MH i2c: E2 08 00 1A 04 80 13 00 00 00 00 00 00 9A [12:41:53]Write i2c OK [12:41:53]MH_I2C_Read... [12:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:54]Read from MH i2c: E2 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 62 00 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 62 00 1A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:54]wFMCommunicate OK [12:41:54]SAM_PROTO_GetFieldsCounters done [12:41:54]requested_item shift.num is exist - process it [12:41:54]requested_item shift.opened is exist - process it [12:41:54]req_shift_opened [12:41:54]FM_GetShiftState [12:41:54]SAM_PROTO_GetShiftState [12:41:54]wFMCommunicate request_size=4 [12:41:54]MH_SAM_APDU [12:41:54]CAPDU: 80 13 01 00 [12:41:54]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [12:41:54]Write i2c OK [12:41:54]MH_I2C_Read... [12:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:54]Read from MH i2c: E2 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 0E 00 [12:41:54]MH_I2C_Read... [12:41:54]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6E [12:41:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:41:54]wFMCommunicate OK [12:41:54]SAM_PROTO_GetShiftState done [12:41:54]FM_GetShiftState done [12:41:54]req_shift_opened done [12:41:54]requested_item shift.open_date is exist - process it [12:41:54]req_shift_open_date [12:41:54]req_shift_open_date done [12:41:54]produce_requested_data done [12:41:54]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82362,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:41:54]process_action_free close_receipt [12:41:54]json_value_free [12:41:54]json_value_free done [12:41:54]process_json_proto returns [12:41:54]Send response to host [12:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82362,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:41:54]free response buf [12:41:54]execute_script done [12:41:54]execute_script returns [12:41:54]free content buf [12:41:54]Sock 8.Close socket [12:41:54]Sock 8.Thread stoped [12:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5A 04 47 00 A2 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BA 41 01 00 F4 03 04 00 CA FC 11 67 B6 04 01 00 00 62 A5 22 23 0E F8 19 7C [12:41:55]CommunicateWithHost err = 0 [12:41:55]CheckOFDResponse [12:41:55]1017 (14) - 77093643461234 [12:41:55]1041 (16) - 0000000000871843 [12:41:55]1040 (4) - 82362 [12:41:55]1012 (4) - 18.10.2024 06:14 [12:41:55]1206 (1) - 0 [12:41:55]OFD Sender: Remove packet 82362 [12:41:55]ProducePacketName [12:41:55]name=ofd_packets/00082362 [12:41:55]NVStorageDeleteData [12:41:55]OFD Sender: No OFD packet to send [12:42:00]accept exits with 10 [12:42:00]New connection [12:42:00]New thread 3067215204 created [12:42:00]Thread 3067071844 joined [12:42:00]Waiting for new connection... [12:42:00] Sock 10.Parse request [12:42:00]Sock 10.Check first char [12:42:00]Sock 10.First char is OK [12:42:00]request: POST /json_proto HTTP/1.0 [12:42:00]Method: POST [12:42:00]URL: /json_proto [12:42:00]Method is POST - this is cgi request [12:42:00]url: /json_proto [12:42:00]query_string will be loaded in cgi processing [12:42:00]execute_cgi json_proto POST (null) [12:42:00]execute_cgi path=json_proto method=POST [12:42:00]POST find Content-Length [12:42:00]Host: 172.17.44.67:8080 [12:42:00]Content-Length: 743 [12:42:00]Content-Type: application/json [12:42:00] [12:42:00]POST finish read [12:42:00]Found Content-Length = 743 [12:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82362, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:00]execute_script... [12:42:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 82362, "base_FM": "0000000000871843", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:00]POST & json_proto [12:42:00]process_json_proto [12:42:00]json parsed OK: [12:42:00]protocol is kg_v1.0 [12:42:00]action value=close_receipt [12:42:00]process_action close_receipt [12:42:00]cmd_close_receipt [12:42:00]MH_GetDate [12:42:00]Write to MH i2c: F0 00 00 1C 04 0F [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: F0 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: F0 09 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: F0 09 00 1C 04 00 99 57 12 67 F1 C7 6B 64 08 [12:42:00]GetLastDocTimeStamp 1729255310 [12:42:00]current date 1729255321 [12:42:00]FM_GetShiftState [12:42:00]SAM_PROTO_GetShiftState [12:42:00]wFMCommunicate request_size=4 [12:42:00]MH_SAM_APDU [12:42:00]CAPDU: 80 13 01 00 [12:42:00]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [12:42:00]Write i2c OK [12:42:00]MH_I2C_Read... [12:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:00]Read from MH i2c: E2 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0E 00 [12:42:00]MH_I2C_Read... [12:42:00]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 70 [12:42:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:42:00]wFMCommunicate OK [12:42:00]SAM_PROTO_GetShiftState done [12:42:00]FM_GetShiftState done [12:42:00]opened in 1729212319 [12:42:00]opened+sec_in_day 1729298719 [12:42:00]quantity*price = 200025 [12:42:00]sum+1 = 200026 [12:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 72 18.10.2024 12:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФД осн.: 82362 ФМ осн.: 0000000000871843 ФМ: 0000000000871843 ФД: 82363 ФПД: 99056034547375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124201&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82363&fm=99056034547375&tin=02508201610067®Number=0000000000091680&sum=200000 [12:42:01]StoreToDocumentArchive [12:42:01]shift 526 fd 82363 [12:42:01]save to /storage/0526/doc_00082363 [12:42:01]save last doc name /storage/0526/doc_00082363 to /storage/kkm_last_doc_name [12:42:01]save OK [12:42:01]Clear old archive folders... [12:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:42:01]tlvbuf is 00A23210 [12:42:01]SAM_PROTO_ClearQueue [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 09 00 00 [12:42:01]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [12:42:01]RAPDU: 90 00 [12:42:01]wFMCommunicate OK [12:42:01]SAM_PROTO_ClearQueue done [12:42:01]KKMCreateOFDPacket [12:42:01]OFDProtocolAddRootSTLVToBuf [12:42:01]FM_MakeSignedData [12:42:01]FM_MakeSignedData [12:42:01]SAM_PROTO_SignData [12:42:01]wFMCommunicate request_size=4 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 0D 01 02 [12:42:01]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:01]Read from MH i2c: E2 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 [12:42:01]MH_I2C_Read... [12:42:01]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [12:42:01]RAPDU: 90 00 [12:42:01]wFMCommunicate OK [12:42:01]wFMCommunicate request_size=255 [12:42:01]MH_SAM_APDU [12:42:01]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 99 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 BA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 [12:42:01]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 99 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 BA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 00 00 F2 [12:42:01]Write i2c OK [12:42:01]MH_I2C_Read... [12:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:02]Read from MH i2c: E2 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 03 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [12:42:02]RAPDU: 90 00 [12:42:02]wFMCommunicate OK [12:42:02]wFMCommunicate request_size=39 [12:42:02]MH_SAM_APDU [12:42:02]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 41 01 00 35 04 06 00 5A 17 47 C0 86 AF [12:42:02]Write to MH i2c: E2 2A 00 2F 04 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 41 01 00 35 04 06 00 5A 17 47 C0 86 AF 00 00 11 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:02]Read from MH i2c: E2 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 03 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [12:42:02]RAPDU: 90 00 [12:42:02]wFMCommunicate OK [12:42:02]wFMCommunicate request_size=4 [12:42:02]MH_SAM_APDU [12:42:02]CAPDU: 80 0D 03 02 [12:42:02]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:02]Read from MH i2c: E2 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 0B 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 0B 00 30 04 00 2F A0 E5 57 86 6D 38 56 90 00 3C [12:42:02]RAPDU: 2F A0 E5 57 86 6D 38 56 90 00 [12:42:02]wFMCommunicate OK [12:42:02]SAM_PROTO_SignData done [12:42:02]FM_MakeSignedData done [12:42:02]CreateOFDProtocolMessage [12:42:02]wFMCommunicate request_size=4 [12:42:02]MH_SAM_APDU [12:42:02]CAPDU: 80 11 00 00 [12:42:02]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:02]Read from MH i2c: E2 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 17 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 01 [12:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:42:02]wFMCommunicate OK [12:42:02]CreateOFDProtocolMessage done [12:42:02]OFDSenderStorePacket 82363 [12:42:02]StoreOFDPacket docnum=82363 [12:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 1A 92 24 01 20 62 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 99 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 BA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 41 01 00 35 04 06 00 5A 17 47 C0 86 AF 2F A0 E5 57 86 6D 38 56 [12:42:02]CheckFolder [12:42:02]dirname=/storage/ofd_packets [12:42:02]CheckFolder done [12:42:02]ProducePacketName [12:42:02]name=ofd_packets/00082363 [12:42:02]NVStorageSaveData ofd_packets/00082363 [12:42:02]File name is /storage/ofd_packets/00082363 [12:42:02]Write 330 bytes [12:42:02]NVStorageSaveData done [12:42:02]OFDSenderStorePacket done [12:42:02]KKMCreateOFDPacket done [12:42:02]NVStorageSaveData kkm_last_timestamp [12:42:02]File name is /storage/kkm_last_timestamp [12:42:02]Write 4 bytes [12:42:02]NVStorageSaveData done [12:42:02]ExternCall_PrintAddStr [12:42:02]wPrintStart [12:42:02]Write to MH i2c: 01 00 00 32 04 36 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 07 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [12:42:02]RasterBufferAndPrint [12:42:02]line Счет N : (1)918859 [12:42:02]line ИНН: 02508201610067 [12:42:02]line Контрольно-Кассовый Чек [12:42:02]line ВОЗВРАТ ПРОДАЖИ [12:42:02]line ТРК (МРК, ГНК) : 31 [12:42:02]line Товар: 2710194210 [12:42:02]line ДТ(л)-К-5 [12:42:02]line 26.250 * 76.20 [12:42:02]line = 2000.25 [12:42:02]line НДС 12% НСП 1% [12:42:02]line > о реализуемом товаре [12:42:02]line ОКРУГЛЕНИЕ: -0.25 [12:42:02]line ИТОГО: 2000.00 [12:42:02]line НСП 1% : 17.70 [12:42:02]line НДС 12% : 212.42 [12:42:02]line Наличными: 2000.00 [12:42:02]line Безнал.: 0.00 [12:42:02]line Место: АЗС № 114 "Партнер Нефть" [12:42:02]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:42:02]line СНО: Общий режим [12:42:02]line Чек 72 18.10.2024 12:42 [12:42:02]line Смена: 526 ФФД: 1.0 [12:42:02]line ЗНМ: 0300000086 [12:42:02]line РНМ: 0000000000091680 [12:42:02]line Версия ККМ: 001 [12:42:02]line ФД осн.: 82362 [12:42:02]line ФМ осн.: 0000000000871843 [12:42:02]line ФМ: 0000000000871843 [12:42:02]line ФД: 82363 [12:42:02]line ФПД: 99056034547375 [12:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124201&type=2&operation_type=1&fn_number=0000000000871843&fd_number=82363&fm=99056034547375&tin=02508201610067®Number=0000000000091680&sum=200000 [12:42:02]written 0, free lines is 4095 [12:42:02]OFD Sender: Processing packet 82363 [packets to send 254, broken 253] [12:42:02]ProducePacketName [12:42:02]name=ofd_packets/00082363 [12:42:02]OFD Sender: To server: pG, [12:42:02]CommunicateWithHost lk.salyk.kg:30040 [12:42:02]ConnectInit lk.salyk.kg [12:42:02]Write to MH i2c: 01 00 00 5D 04 61 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 07 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 E7 0C 5B [12:42:02]RasterBufferAndPrint [12:42:02]line [12:42:02]line [12:42:02]line [12:42:02]line [12:42:02]line [12:42:02]written 0, free lines is 3316 [12:42:02]MH_Cut [12:42:02]Write to MH i2c: D1 01 00 64 04 01 3A [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: D1 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: D1 01 00 [12:42:02]MH_I2C_Read... [12:42:02]Read from MH i2c: D1 01 00 64 04 00 39 [12:42:02]Write to MH i2c: 01 00 00 65 04 69 [12:42:02]Write i2c OK [12:42:02]MH_I2C_Read... [12:42:03]*** Cut start [12:42:03]*** Partial cut [12:42:03]*** CUTSNS_PIN = 1 [12:42:03]*** CUTSNS_PIN = 0 [12:42:03]*** Brake cut motor [12:42:04]Read from MH i2c: 01 [12:42:04]MH_I2C_Read... [12:42:04]*** Stop cut motor [12:42:04]*** Cut end [12:42:04]Read from MH i2c: 01 07 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [12:42:04]process_action close_receipt done [12:42:04]requested_data is exist [12:42:04]produce_requested_data [12:42:04]requested_item fm.sn is exist - process it [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 11 00 00 [12:42:04]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 17 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 36 [12:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:42:04]wFMCommunicate OK [12:42:04]requested_item fd.num is exist - process it [12:42:04]SAM_PROTO_GetFieldsCounters [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 13 00 00 [12:42:04]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 62 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [12:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:04]wFMCommunicate OK [12:42:04]SAM_PROTO_GetFieldsCounters done [12:42:04]requested_item shift.num is exist - process it [12:42:04]requested_item shift.opened is exist - process it [12:42:04]req_shift_opened [12:42:04]FM_GetShiftState [12:42:04]SAM_PROTO_GetShiftState [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 13 01 00 [12:42:04]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 0E 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 BB [12:42:04]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:42:04]wFMCommunicate OK [12:42:04]SAM_PROTO_GetShiftState done [12:42:04]FM_GetShiftState done [12:42:04]req_shift_opened done [12:42:04]requested_item shift.open_date is exist - process it [12:42:04]req_shift_open_date [12:42:04]req_shift_open_date done [12:42:04]produce_requested_data done [12:42:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82363,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:42:04]process_action_free close_receipt [12:42:04]json_value_free [12:42:04]json_value_free done [12:42:04]process_json_proto returns [12:42:04]Send response to host [12:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82363,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:42:04]free response buf [12:42:04]execute_script done [12:42:04]execute_script returns [12:42:04]free content buf [12:42:04]Sock 10.Close socket [12:42:04]Sock 10.Thread stoped [12:42:10]accept exits with 9 [12:42:10]New connection [12:42:10]New thread 3067071844 created [12:42:10]Thread 3067215204 joined [12:42:10]Waiting for new connection... [12:42:10] Sock 9.Parse request [12:42:10]Sock 9.Check first char [12:42:10]Sock 9.First char is OK [12:42:10]request: POST /json_proto HTTP/1.0 [12:42:10]Method: POST [12:42:10]URL: /json_proto [12:42:10]Method is POST - this is cgi request [12:42:10]url: /json_proto [12:42:10]query_string will be loaded in cgi processing [12:42:10]execute_cgi json_proto POST (null) [12:42:10]execute_cgi path=json_proto method=POST [12:42:10]POST find Content-Length [12:42:10]Host: 172.17.44.67:8080 [12:42:10]Content-Length: 803 [12:42:10]Content-Type: application/json [12:42:10] [12:42:10]POST finish read [12:42:10]Found Content-Length = 803 [12:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:10]execute_script... [12:42:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:10]POST & json_proto [12:42:10]process_json_proto [12:42:10]json parsed OK: [12:42:10]protocol is kg_v1.0 [12:42:10]action value=close_receipt [12:42:10]process_action close_receipt [12:42:10]cmd_close_receipt [12:42:10]MH_GetDate [12:42:10]Write to MH i2c: F0 00 00 69 04 5C [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: F0 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: F0 09 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: F0 09 00 69 04 00 A2 57 12 67 F1 C7 6B 64 5E [12:42:10]GetLastDocTimeStamp 1729255321 [12:42:10]current date 1729255330 [12:42:10]FM_GetShiftState [12:42:10]SAM_PROTO_GetShiftState [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 13 01 00 [12:42:10]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0E 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 BD [12:42:10]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:42:10]wFMCommunicate OK [12:42:10]SAM_PROTO_GetShiftState done [12:42:10]FM_GetShiftState done [12:42:10]opened in 1729212319 [12:42:10]opened+sec_in_day 1729298719 [12:42:10]quantity*price = 200031 [12:42:10]sum+1 = 200032 [12:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 73 18.10.2024 12:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82364 ФПД: 144097340098857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124210&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82364&fm=144097340098857&tin=02508201610067®Number=0000000000091680&sum=200031 [12:42:11]StoreToDocumentArchive [12:42:11]shift 526 fd 82364 [12:42:11]save to /storage/0526/doc_00082364 [12:42:11]save last doc name /storage/0526/doc_00082364 to /storage/kkm_last_doc_name [12:42:11]save OK [12:42:11]Clear old archive folders... [12:42:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:11]tlvbuf is 00A8D970 [12:42:11]SAM_PROTO_ClearQueue [12:42:11]wFMCommunicate request_size=4 [12:42:11]MH_SAM_APDU [12:42:11]CAPDU: 80 09 00 00 [12:42:11]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]Connected sock=8 [12:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 1A 92 24 01 20 62 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 99 57 12 67 0E 04 04 00 0E 02 *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:11]00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 BA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 41 01 00 35 04 06 00 5A 17 47 C0 86 AF 2F A0 E5 57 86 6D 38 56 [12:42:11]Read from MH i2c: E2 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 03 00 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [12:42:11]RAPDU: 90 00 [12:42:11]wFMCommunicate OK [12:42:11]SAM_PROTO_ClearQueue done [12:42:11]KKMCreateOFDPacket [12:42:11]OFDProtocolAddRootSTLVToBuf [12:42:11]FM_MakeSignedData [12:42:11]FM_MakeSignedData [12:42:11]SAM_PROTO_SignData [12:42:11]wFMCommunicate request_size=4 [12:42:11]MH_SAM_APDU [12:42:11]CAPDU: 80 0D 01 02 [12:42:11]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:11]Read from MH i2c: E2 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 03 00 [12:42:11]MH_I2C_Read... [12:42:11]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [12:42:11]RAPDU: 90 00 [12:42:11]wFMCommunicate OK [12:42:11]wFMCommunicate request_size=255 [12:42:11]MH_SAM_APDU [12:42: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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A2 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 41 01 00 35 04 06 00 83 [12:42:11]Write to MH i2c: E2 02 01 79 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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A2 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 41 01 00 35 04 06 00 83 00 00 4D [12:42:11]Write i2c OK [12:42:11]MH_I2C_Read... [12:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:11]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [12:42:12]RAPDU: 90 00 [12:42:12]wFMCommunicate OK [12:42:12]wFMCommunicate request_size=10 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 0D 02 02 05 0E 46 C5 09 29 [12:42:12]Write to MH i2c: E2 0D 00 7A 04 80 0D 02 02 05 00 0E 46 C5 09 29 00 00 4D [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [12:42:12]RAPDU: 90 00 [12:42:12]wFMCommunicate OK [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 0D 03 02 [12:42:12]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 0B 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 0B 00 7B 04 00 09 27 98 A5 81 6D 39 75 90 00 04 [12:42:12]RAPDU: 09 27 98 A5 81 6D 39 75 90 00 [12:42:12]wFMCommunicate OK [12:42:12]SAM_PROTO_SignData done [12:42:12]FM_MakeSignedData done [12:42:12]CreateOFDProtocolMessage [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 11 00 00 [12:42:12]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 17 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4C [12:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:42:12]wFMCommunicate OK [12:42:12]CreateOFDProtocolMessage done [12:42:12]OFDSenderStorePacket 82364 [12:42:12]StoreOFDPacket docnum=82364 [12:42:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0A 0D 07 01 2F 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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A2 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 41 01 00 35 04 06 00 83 0E 46 C5 09 29 09 27 98 A5 81 6D 39 75 [12:42:12]CheckFolder [12:42:12]dirname=/storage/ofd_packets [12:42:12]CheckFolder done [12:42:12]ProducePacketName [12:42:12]name=ofd_packets/00082364 [12:42:12]NVStorageSaveData ofd_packets/00082364 [12:42:12]File name is /storage/ofd_packets/00082364 [12:42:12]Write 301 bytes [12:42:12]NVStorageSaveData done [12:42:12]OFDSenderStorePacket done [12:42:12]KKMCreateOFDPacket done [12:42:12]NVStorageSaveData kkm_last_timestamp [12:42:12]File name is /storage/kkm_last_timestamp [12:42:12]Write 4 bytes [12:42:12]NVStorageSaveData done [12:42:12]ExternCall_PrintAddStr [12:42:12]wPrintStart [12:42:12]Write to MH i2c: 01 00 00 7D 04 81 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 07 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [12:42:12]RasterBufferAndPrint [12:42:12]line Счет N : (1)918858 [12:42:12]line ИНН: 02508201610067 [12:42:12]line Контрольно-Кассовый Чек [12:42:12]line ПРОДАЖА [12:42:12]line ТРК (МРК, ГНК) : 11 [12:42:12]line Товар: 2710124130 [12:42:12]line Аи-92-К-4 [12:42:12]line 29.900 * 66.90 [12:42:12]line = 2000.31 [12:42:12]line НДС 12% НСП 1% [12:42:12]line > о реализуемом товаре [12:42:12]line ИТОГО: 2000.31 [12:42:12]line НСП 1% : 17.70 [12:42:12]line НДС 12% : 212.42 [12:42:12]line Наличными: 0.00 [12:42:12]line Безнал.: 2000.31 [12:42:12]line Место: АЗС № 114 "Партнер Нефть" [12:42:12]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:42:12]line СНО: Общий режим [12:42:12]line Чек 73 18.10.2024 12:42 [12:42:12]line Смена: 526 ФФД: 1.0 [12:42:12]line ЗНМ: 0300000086 [12:42:12]line РНМ: 0000000000091680 [12:42:12]line Версия ККМ: 001 [12:42:12]line Платежная система: O! деньги [12:42:12]line ФМ: 0000000000871843 [12:42:12]line ФД: 82364 [12:42:12]line ФПД: 144097340098857 [12:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124210&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82364&fm=144097340098857&tin=02508201610067®Number=0000000000091680&sum=200031 [12:42:12]written 0, free lines is 4095 [12:42:12]Write to MH i2c: 01 00 00 A7 04 AB [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 07 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 E3 0C A1 [12:42:12]RasterBufferAndPrint [12:42:12]line [12:42:12]line [12:42:12]line [12:42:12]line [12:42:12]line [12:42:12]written 0, free lines is 3318 [12:42:12]MH_Cut [12:42:12]Write to MH i2c: D1 01 00 AE 04 01 84 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: D1 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: D1 01 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: D1 01 00 AE 04 00 83 [12:42:12]Write to MH i2c: 01 00 00 AF 04 B3 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:13]*** Cut start [12:42:13]*** Partial cut [12:42:13]*** CUTSNS_PIN = 1 [12:42:13]*** CUTSNS_PIN = 0 [12:42:13]*** Brake cut motor [12:42:14]Read from MH i2c: 01 [12:42:14]MH_I2C_Read... [12:42:14]*** Stop cut motor [12:42:14]*** Cut end [12:42:14]Read from MH i2c: 01 07 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [12:42:14]process_action close_receipt done [12:42:14]requested_data is exist [12:42:14]produce_requested_data [12:42:14]requested_item fm.sn is exist - process it [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 11 00 00 [12:42:14]Write to MH i2c: E2 08 00 B0 04 80 11 00 00 00 00 00 00 2E [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 17 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 17 00 B0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 80 [12:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:42:14]wFMCommunicate OK [12:42:14]requested_item fd.num is exist - process it [12:42:14]SAM_PROTO_GetFieldsCounters [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 13 00 00 [12:42:14]Write to MH i2c: E2 08 00 B1 04 80 13 00 00 00 00 00 00 31 [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 62 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 62 00 B1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:42:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:14]wFMCommunicate OK [12:42:14]SAM_PROTO_GetFieldsCounters done [12:42:14]requested_item shift.num is exist - process it [12:42:14]requested_item shift.opened is exist - process it [12:42:14]req_shift_opened [12:42:14]FM_GetShiftState [12:42:14]SAM_PROTO_GetShiftState [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 13 01 00 [12:42:14]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 0E 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 05 [12:42:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:42:14]wFMCommunicate OK [12:42:14]SAM_PROTO_GetShiftState done [12:42:14]FM_GetShiftState done [12:42:14]req_shift_opened done [12:42:14]requested_item shift.open_date is exist - process it [12:42:14]req_shift_open_date [12:42:14]req_shift_open_date done [12:42:14]produce_requested_data done [12:42:14]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82364,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:42:14]process_action_free close_receipt [12:42:14]json_value_free [12:42:14]json_value_free done [12:42:14]process_json_proto returns [12:42:14]Send response to host [12:42:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82364,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:42:14]free response buf [12:42:14]execute_script done [12:42:14]execute_script returns [12:42:14]free content buf [12:42:14]Sock 9.Close socket [12:42:14]Sock 9.Thread stoped [12:42:16]recv_with_timeout no data received [12:42:16]recv_with_timeout no data received [12:42:16]CommunicateWithHost answer receiving error [12:42:16]CommunicateWithHost err = -3 [12:42:16]OFD Sender: Server communicate error [12:42:16]OFD Sender: Processing packet 82363 [packets to send 255, broken 253] [12:42:16]ProducePacketName [12:42:16]name=ofd_packets/00082363 [12:42:16]OFD Sender: To server: pG, [12:42:16]CommunicateWithHost lk.salyk.kg:30040 [12:42:16]ConnectInit lk.salyk.kg [12:42:21]ConnectInit Can't take IP for lk.salyk.kg [12:42:21]CommunicateWithHost connect error [12:42:21]CommunicateWithHost err = -1 [12:42:21]OFD Sender: Server communicate error [12:42:26]OFD Sender: Processing packet 82363 [packets to send 255, broken 253] [12:42:26]ProducePacketName [12:42:26]name=ofd_packets/00082363 [12:42:26]OFD Sender: To server: pG, [12:42:26]CommunicateWithHost lk.salyk.kg:30040 [12:42:26]ConnectInit lk.salyk.kg [12:42:27]recv_with_timeout no data received [12:42:31]ConnectInit Can't take IP for lk.salyk.kg [12:42:31]CommunicateWithHost connect error [12:42:31]CommunicateWithHost err = -1 [12:42:31]OFD Sender: Server communicate error [12:42:36]OFD Sender: Processing packet 82363 [packets to send 255, broken 253] [12:42:36]ProducePacketName [12:42:36]name=ofd_packets/00082363 [12:42:36]OFD Sender: To server: pG, [12:42:36]CommunicateWithHost lk.salyk.kg:30040 [12:42:36]ConnectInit lk.salyk.kg [12:42:41]recv_with_timeout no data received [12:42:41]ConnectInit Can't take IP for lk.salyk.kg [12:42:41]CommunicateWithHost connect error [12:42:41]CommunicateWithHost err = -1 [12:42:41]OFD Sender: Server communicate error [12:42:46]OFD Sender: Processing packet 82363 [packets to send 255, broken 253] [12:42:46]ProducePacketName [12:42:46]name=ofd_packets/00082363 [12:42:46]OFD Sender: To server: pG, [12:42:46]CommunicateWithHost lk.salyk.kg:30040 [12:42:46]ConnectInit lk.salyk.kg [12:42:53]recv_with_timeout no data received [12:42:53]Connected sock=9 [12:42:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 1A 92 24 01 20 62 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 99 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 BA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 41 01 00 35 04 06 00 5A 17 47 C0 86 AF 2F A0 E5 57 86 6D 38 56 [12:42:58]recv_with_timeout no data received [12:42:58]CommunicateWithHost answer receiving error [12:42:58]CommunicateWithHost err = -3 [12:42:58]OFD Sender: Server communicate error [12:43:03]OFD Sender: Processing packet 82363 [packets to send 255, broken 253] [12:43:03]ProducePacketName [12:43:03]name=ofd_packets/00082363 [12:43:03]OFD Sender: To server: pG, [12:43:03]CommunicateWithHost lk.salyk.kg:30040 [12:43:03]ConnectInit lk.salyk.kg [12:43:09]recv_with_timeout no data received [12:43:15]Connected sock=9 [12:43:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 1A 92 24 01 20 62 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 99 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 27 04 04 00 BA 41 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 41 01 00 35 04 06 00 5A 17 47 C0 86 AF 2F A0 E5 57 86 6D 38 56 [12:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FA A4 47 00 0C 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BB 41 01 00 F4 03 04 00 1F FD 11 67 B6 04 01 00 00 C2 BD 8B 5F 1C F6 EF DE [12:43:19]CommunicateWithHost err = 0 [12:43:19]CheckOFDResponse [12:43:19]1017 (14) - 77093643461234 [12:43:19]1041 (16) - 0000000000871843 [12:43:19]1040 (4) - 82363 [12:43:19]1012 (4) - 18.10.2024 06:15 [12:43:19]1206 (1) - 0 [12:43:19]OFD Sender: Remove packet 82363 [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00082363 [12:43:19]NVStorageDeleteData [12:43:20]OFD Sender: Processing packet 82364 [packets to send 254, broken 253] [12:43:20]ProducePacketName [12:43:20]name=ofd_packets/00082364 [12:43:20]OFD Sender: To server: pG, [12:43:20]CommunicateWithHost lk.salyk.kg:30040 [12:43:20]ConnectInit lk.salyk.kg [12:43:22]recv_with_timeout no data received [12:43:25]ConnectInit Can't take IP for lk.salyk.kg [12:43:25]CommunicateWithHost connect error [12:43:25]CommunicateWithHost err = -1 [12:43:25]OFD Sender: Server communicate error [12:43:25]accept exits with 11 [12:43:25]New connection [12:43:25]New thread 3067215204 created [12:43:25]Thread 3067071844 joined [12:43:25]Waiting for new connection... [12:43:25] Sock 11.Parse request [12:43:25]Sock 11.Check first char [12:43:25]Sock 11.First char is OK [12:43:25]request: POST /json_proto HTTP/1.0 [12:43:25]Method: POST [12:43:25]URL: /json_proto [12:43:25]Method is POST - this is cgi request [12:43:25]url: /json_proto [12:43:25]query_string will be loaded in cgi processing [12:43:25]execute_cgi json_proto POST (null) [12:43:25]execute_cgi path=json_proto method=POST [12:43:25]POST find Content-Length [12:43:25]Host: 172.17.44.67:8080 [12:43:25]Content-Length: 805 [12:43:25]Content-Type: application/json [12:43:25] [12:43:25]POST finish read [12:43:25]Found Content-Length = 805 [12:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4348823", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:25]execute_script... [12:43: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)918860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4348823", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:25]POST & json_proto [12:43:25]process_json_proto [12:43:25]json parsed OK: [12:43:25]protocol is kg_v1.0 [12:43:25]action value=close_receipt [12:43:25]process_action close_receipt [12:43:25]cmd_close_receipt [12:43:25]MH_GetDate [12:43:25]Write to MH i2c: F0 00 00 B3 04 A6 [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: F0 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: F0 09 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: F0 09 00 B3 04 00 EE 57 12 67 F1 C7 6B 64 F4 [12:43:25]GetLastDocTimeStamp 1729255330 [12:43:25]current date 1729255406 [12:43:25]FM_GetShiftState [12:43:25]SAM_PROTO_GetShiftState [12:43:25]wFMCommunicate request_size=4 [12:43:25]MH_SAM_APDU [12:43:25]CAPDU: 80 13 01 00 [12:43:25]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [12:43:25]Write i2c OK [12:43:25]MH_I2C_Read... [12:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:25]Read from MH i2c: E2 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 0E 00 [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 07 [12:43:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:43:25]wFMCommunicate OK [12:43:25]SAM_PROTO_GetShiftState done [12:43:25]FM_GetShiftState done [12:43:25]opened in 1729212319 [12:43:25]opened+sec_in_day 1729298719 [12:43:25]quantity*price = 0 [12:43:25]sum+1 = 1 [12:43:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 176.00 Внесено: 176.00 СДАЧА: 0.00 НСП 1% : 1.56 НДС 12% : 18.69 Наличными: 176.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 75 18.10.2024 12:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82366 ФПД: 275823170066191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124358&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82366&fm=275823170066191&tin=02508201610067®Number=0000000000091680&sum=17600 [12:43:58]StoreToDocumentArchive [12:43:58]shift 526 fd 82366 [12:43:58]save to /storage/0526/doc_00082366 [12:43:58]save last doc name /storage/0526/doc_00082366 to /storage/kkm_last_doc_name [12:43:58]save OK [12:43:58]Clear old archive folders... [12:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:43:58]tlvbuf is 00AC0710 [12:43:58]SAM_PROTO_ClearQueue [12:43:58]wFMCommunicate request_size=4 [12:43:58]MH_SAM_APDU [12:43:58]CAPDU: 80 09 00 00 [12:43:58]Write to MH i2c: E2 08 00 0B 05 80 09 00 00 00 00 00 00 82 [12:43:58]Write i2c OK [12:43:58]MH_I2C_Read... [12:43:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:58]Read from MH i2c: E2 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [12:43:58]RAPDU: 90 00 [12:43:58]wFMCommunicate OK [12:43:58]SAM_PROTO_ClearQueue done [12:43:58]KKMCreateOFDPacket [12:43:58]OFDProtocolAddRootSTLVToBuf [12:43:58]FM_MakeSignedData [12:43:58]FM_MakeSignedData [12:43:58]SAM_PROTO_SignData [12:43:58]wFMCommunicate request_size=4 [12:43:58]MH_SAM_APDU [12:43:58]CAPDU: 80 0D 01 02 [12:43:58]Write to MH i2c: E2 08 00 0C 05 80 0D 01 02 00 00 00 00 8A [12:43:58]Write i2c OK [12:43:58]MH_I2C_Read... [12:43:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:58]Read from MH i2c: E2 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [12:43:58]RAPDU: 90 00 [12:43:58]wFMCommunicate OK [12:43:58]wFMCommunicate request_size=255 [12:43:58]MH_SAM_APDU [12:43:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 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 4B 00 00 00 F4 03 04 00 0E 58 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 41 01 00 35 04 06 00 [12:43:58]Write to MH i2c: E2 02 01 0D 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 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 4B 00 00 00 F4 03 04 00 0E 58 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 41 01 00 35 04 06 00 00 00 F5 [12:43:58]Write i2c OK [12:43:58]MH_I2C_Read... [12:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:58]Read from MH i2c: E2 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [12:43:58]RAPDU: 90 00 [12:43:58]wFMCommunicate OK [12:43:58]wFMCommunicate request_size=11 [12:43:58]MH_SAM_APDU [12:43:58]CAPDU: 80 0D 02 02 06 FA DC 16 12 97 0F [12:43:58]Write to MH i2c: E2 0E 00 0E 05 80 0D 02 02 06 00 FA DC 16 12 97 0F 00 00 3D [12:43:58]Write i2c OK [12:43:58]MH_I2C_Read... [12:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:58]Read from MH i2c: E2 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [12:43:58]RAPDU: 90 00 [12:43:58]wFMCommunicate OK [12:43:58]wFMCommunicate request_size=4 [12:43:58]MH_SAM_APDU [12:43:58]CAPDU: 80 0D 03 02 [12:43:58]Write to MH i2c: E2 08 00 0F 05 80 0D 03 02 00 00 00 00 8F [12:43:58]Write i2c OK [12:43:58]MH_I2C_Read... [12:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:58]Read from MH i2c: E2 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 0B 00 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 0B 00 0F 05 00 19 57 E2 51 49 F4 4C 1A 90 00 D6 [12:43:58]RAPDU: 19 57 E2 51 49 F4 4C 1A 90 00 [12:43:58]wFMCommunicate OK [12:43:58]SAM_PROTO_SignData done [12:43:58]FM_MakeSignedData done [12:43:58]CreateOFDProtocolMessage [12:43:58]wFMCommunicate request_size=4 [12:43:58]MH_SAM_APDU [12:43:58]CAPDU: 80 11 00 00 [12:43:58]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [12:43:58]Write i2c OK [12:43:58]MH_I2C_Read... [12:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:58]Read from MH i2c: E2 [12:43:58]MH_I2C_Read... [12:43:58]Read from MH i2c: E2 17 00 [12:43:58]MH_I2C_Read... [12:43:58]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 31 38 34 33 90 00 E1 [12:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:43:58]wFMCommunicate OK [12:43:58]CreateOFDProtocolMessage done [12:43:58]OFDSenderStorePacket 82366 [12:43:58]StoreOFDPacket docnum=82366 [12:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 45 45 08 01 71 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 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 4B 00 00 00 F4 03 04 00 0E 58 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 41 01 00 35 04 06 00 FA DC 16 12 97 0F 19 57 E2 51 49 F4 4C 1A [12:43:58]CheckFolder [12:43:58]dirname=/storage/ofd_packets [12:43:58]CheckFolder done [12:43:58]ProducePacketName [12:43:58]name=ofd_packets/00082366 [12:43:58]NVStorageSaveData ofd_packets/00082366 [12:43:58]File name is /storage/ofd_packets/00082366 [12:43:58]Write 302 bytes [12:43:58]NVStorageSaveData done [12:43:58]OFDSenderStorePacket done [12:43:58]KKMCreateOFDPacket done [12:43:58]NVStorageSaveData kkm_last_timestamp [12:43:58]File name is /storage/kkm_last_timestamp [12:43:58]Write 4 bytes [12:43:58]NVStorageSaveData done [12:43:58]ExternCall_PrintAddStr [12:43:58]wPrintStart [12:43:58]Write to MH i2c: 01 00 00 11 05 16 [12:43:58]Write i2c OK [12:43:58]MH_I2C_Read... [12:43:59]Read from MH i2c: 01 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: 01 07 00 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [12:43:59]RasterBufferAndPrint [12:43:59]line Счет N : (1)918861 [12:43:59]line ИНН: 02508201610067 [12:43:59]line Контрольно-Кассовый Чек [12:43:59]line ПРОДАЖА [12:43:59]line ТРК (МРК, ГНК) : 31 [12:43:59]line Товар: 2710194210 [12:43:59]line ДТ(л)-К-5 [12:43:59]line 2.310 * 76.20 [12:43:59]line = 176.02 [12:43:59]line НДС 12% НСП 1% [12:43:59]line > о реализуемом товаре [12:43:59]line ОКРУГЛЕНИЕ: -0.02 [12:43:59]line ИТОГО: 176.00 [12:43:59]line Внесено: 176.00 [12:43:59]line СДАЧА: 0.00 [12:43:59]line НСП 1% : 1.56 [12:43:59]line НДС 12% : 18.69 [12:43:59]line Наличными: 176.00 [12:43:59]line Безнал.: 0.00 [12:43:59]line Место: АЗС № 114 "Партнер Нефть" [12:43:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:43:59]line СНО: Общий режим [12:43:59]line Чек 75 18.10.2024 12:43 [12:43:59]line Смена: 526 ФФД: 1.0 [12:43:59]line ЗНМ: 0300000086 [12:43:59]line РНМ: 0000000000091680 [12:43:59]line Версия ККМ: 001 [12:43:59]line ФМ: 0000000000871843 [12:43:59]line ФД: 82366 [12:43:59]line ФПД: 275823170066191 [12:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124358&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82366&fm=275823170066191&tin=02508201610067®Number=0000000000091680&sum=17600 [12:43:59]written 0, free lines is 4095 [12:43:59]Write to MH i2c: 01 00 00 3C 05 41 [12:43:59]Write i2c OK [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: 01 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: 01 07 00 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 D3 0C 27 [12:43:59]RasterBufferAndPrint [12:43:59]line [12:43:59]line [12:43:59]line [12:43:59]line [12:43:59]line [12:43:59]written 0, free lines is 3300 [12:43:59]MH_Cut [12:43:59]Write to MH i2c: D1 01 00 43 05 01 1A [12:43:59]Write i2c OK [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: D1 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: D1 01 00 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: D1 01 00 43 05 00 19 [12:43:59]Write to MH i2c: 01 00 00 44 05 49 [12:43:59]Write i2c OK [12:43:59]MH_I2C_Read... [12:44:00]recv_with_timeout no data received [12:44:00]CommunicateWithHost answer receiving error [12:44:00]CommunicateWithHost err = -3 [12:44:00]OFD Sender: Server communicate error [12:44:00]OFD Sender: Processing packet 82364 [packets to send 256, broken 253] [12:44:00]ProducePacketName [12:44:00]name=ofd_packets/00082364 [12:44:00]OFD Sender: To server: pG, [12:44:00]CommunicateWithHost lk.salyk.kg:30040 [12:44:00]ConnectInit lk.salyk.kg [12:44:00]*** Cut start [12:44:00]*** Partial cut [12:44:00]*** CUTSNS_PIN = 1 [12:44:00]*** CUTSNS_PIN = 0 [12:44:00]*** Brake cut motor [12:44:01]Read from MH i2c: 01 [12:44:01]MH_I2C_Read... [12:44:01]*** Stop cut motor [12:44:01]*** Cut end [12:44:01]Read from MH i2c: 01 07 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 07 00 44 05 00 00 00 00 00 FF 0F 5E [12:44:01]process_action close_receipt done [12:44:01]requested_data is exist [12:44:01]produce_requested_data [12:44:01]requested_item fm.sn is exist - process it [12:44:01]wFMCommunicate request_size=4 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 11 00 00 [12:44:01]Write to MH i2c: E2 08 00 45 05 80 11 00 00 00 00 00 00 C4 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 17 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 17 00 45 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 16 [12:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:44:01]wFMCommunicate OK [12:44:01]requested_item fd.num is exist - process it [12:44:01]SAM_PROTO_GetFieldsCounters [12:44:01]wFMCommunicate request_size=4 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 13 00 00 [12:44:01]Write to MH i2c: E2 08 00 46 05 80 13 00 00 00 00 00 00 C7 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 62 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 62 00 46 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:44:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:01]wFMCommunicate OK [12:44:01]SAM_PROTO_GetFieldsCounters done [12:44:01]requested_item shift.num is exist - process it [12:44:01]requested_item shift.opened is exist - process it [12:44:01]req_shift_opened [12:44:01]FM_GetShiftState [12:44:01]SAM_PROTO_GetShiftState [12:44:01]wFMCommunicate request_size=4 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 13 01 00 [12:44:01]Write to MH i2c: E2 08 00 47 05 80 13 01 00 00 00 00 00 C9 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 0E 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 0E 00 47 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 9B [12:44:01]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:44:01]wFMCommunicate OK [12:44:01]SAM_PROTO_GetShiftState done [12:44:01]FM_GetShiftState done [12:44:01]req_shift_opened done [12:44:01]requested_item shift.open_date is exist - process it [12:44:01]req_shift_open_date [12:44:01]req_shift_open_date done [12:44:01]produce_requested_data done [12:44:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82366,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:44:01]process_action_free close_receipt [12:44:01]json_value_free [12:44:01]json_value_free done [12:44:01]process_json_proto returns [12:44:01]Send response to host [12:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82366,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:44:01]free response buf [12:44:01]execute_script done [12:44:01]execute_script returns [12:44:01]free content buf [12:44:01]Sock 8.Close socket [12:44:01]Sock 8.Thread stoped [12:44:09]recv_with_timeout no data received [12:44:12]Connected sock=10 [12:44:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0A 0D 07 01 2F 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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A2 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 41 01 00 35 04 06 00 83 0E 46 C5 09 29 09 27 98 A5 81 6D 39 75 [12:44:17]recv_with_timeout no data received [12:44:17]CommunicateWithHost answer receiving error [12:44:17]CommunicateWithHost err = -3 [12:44:17]OFD Sender: Server communicate error [12:44:22]OFD Sender: Processing packet 82364 [packets to send 256, broken 253] [12:44:22]ProducePacketName [12:44:22]name=ofd_packets/00082364 [12:44:22]OFD Sender: To server: pG, [12:44:22]CommunicateWithHost lk.salyk.kg:30040 [12:44:22]ConnectInit lk.salyk.kg [12:44:22]recv_with_timeout no data received [12:44:27]ConnectInit Can't take IP for lk.salyk.kg [12:44:27]CommunicateWithHost connect error [12:44:27]CommunicateWithHost err = -1 [12:44:27]OFD Sender: Server communicate error [12:44:32]OFD Sender: Processing packet 82364 [packets to send 256, broken 253] [12:44:32]ProducePacketName [12:44:32]name=ofd_packets/00082364 [12:44:32]OFD Sender: To server: pG, [12:44:32]CommunicateWithHost lk.salyk.kg:30040 [12:44:32]ConnectInit lk.salyk.kg [12:44:33]Connected sock=10 [12:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0A 0D 07 01 2F 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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A2 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 41 01 00 35 04 06 00 83 0E 46 C5 09 29 09 27 98 A5 81 6D 39 75 [12:44:34]recv_with_timeout no data received [12:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A2 C9 47 00 04 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BC 41 01 00 F4 03 04 00 6B FD 11 67 B6 04 01 00 00 D0 D3 2E 6B CF B3 21 AB [12:44:35]CommunicateWithHost err = 0 [12:44:35]CheckOFDResponse [12:44:35]1017 (14) - 77093643461234 [12:44:35]1041 (16) - 0000000000871843 [12:44:35]1040 (4) - 82364 [12:44:35]1012 (4) - 18.10.2024 06:17 [12:44:35]1206 (1) - 0 [12:44:35]OFD Sender: Remove packet 82364 [12:44:35]ProducePacketName [12:44:35]name=ofd_packets/00082364 [12:44:35]NVStorageDeleteData [12:44:35]OFD Sender: Processing packet 82365 [packets to send 255, broken 253] [12:44:35]ProducePacketName [12:44:35]name=ofd_packets/00082365 [12:44:35]OFD Sender: To server: pG, [12:44:35]CommunicateWithHost lk.salyk.kg:30040 [12:44:35]ConnectInit lk.salyk.kg [12:44:36]Connected sock=8 [12:44:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 42 87 08 01 23 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EE 57 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 41 01 00 35 04 06 00 CB 26 06 EB 2C 89 64 F1 E0 E5 2D C5 1A CD [12:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 56 E3 47 00 53 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BD 41 01 00 F4 03 04 00 6E FD 11 67 B6 04 01 00 00 AB 12 7C AC 41 F4 7B C0 [12:44:38]CommunicateWithHost err = 0 [12:44:38]CheckOFDResponse [12:44:38]1017 (14) - 77093643461234 [12:44:38]1041 (16) - 0000000000871843 [12:44:38]1040 (4) - 82365 [12:44:38]1012 (4) - 18.10.2024 06:17 [12:44:38]1206 (1) - 0 [12:44:38]OFD Sender: Remove packet 82365 [12:44:38]ProducePacketName [12:44:38]name=ofd_packets/00082365 [12:44:38]NVStorageDeleteData [12:44:39]OFD Sender: Processing packet 82366 [packets to send 254, broken 253] [12:44:39]ProducePacketName [12:44:39]name=ofd_packets/00082366 [12:44:39]OFD Sender: To server: pG, [12:44:39]CommunicateWithHost lk.salyk.kg:30040 [12:44:39]ConnectInit lk.salyk.kg [12:44:45]recv_with_timeout no data received [12:45:00]recv_with_timeout no data received [12:45:16]recv_with_timeout no data received [12:45:28]recv_with_timeout no data received [12:45:43]recv_with_timeout no data received [12:46:53]ConnectInit Can't connect to host [12:46:53]CommunicateWithHost connect error [12:46:53]CommunicateWithHost err = -1 [12:46:53]OFD Sender: Server communicate error [12:46:58]OFD Sender: Processing packet 82366 [packets to send 254, broken 253] [12:46:58]ProducePacketName [12:46:58]name=ofd_packets/00082366 [12:46:58]OFD Sender: To server: pG, [12:46:58]CommunicateWithHost lk.salyk.kg:30040 [12:46:58]ConnectInit lk.salyk.kg [12:46:59]Connected sock=10 [12:46:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 45 45 08 01 71 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 07 00 00 00 00 07 04 06 00 C0 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 4B 00 00 00 F4 03 04 00 0E 58 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 41 01 00 35 04 06 00 FA DC 16 12 97 0F 19 57 E2 51 49 F4 4C 1A [12:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C7 C9 47 00 13 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BE 41 01 00 F4 03 04 00 FC FD 11 67 B6 04 01 00 00 1A 9C 5C 78 6D FE 8C 41 [12:47:00]CommunicateWithHost err = 0 [12:47:00]CheckOFDResponse [12:47:00]1017 (14) - 77093643461234 [12:47:00]1041 (16) - 0000000000871843 [12:47:00]1040 (4) - 82366 [12:47:00]1012 (4) - 18.10.2024 06:19 [12:47:00]1206 (1) - 0 [12:47:00]OFD Sender: Remove packet 82366 [12:47:00]ProducePacketName [12:47:00]name=ofd_packets/00082366 [12:47:00]NVStorageDeleteData [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:43:25]MH_I2C_Read... [12:43:25]Read from MH i2c: F0 09 00 B5 04 00 EE 57 12 67 F1 C7 6B 64 F6 [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]KKMCreateReceiptDocument OK [12:43:25]receipt_add_items: price(Amount)=0 [12:43:25]receipt_add_items: sum=0 [12:43:25]receipt_add_items: quantity [12:43:25]03 20 4E 00 00 00 00 00 KKMCreateReceiptItemDocument [12:43:25]Load OK [12:43:25]KKMSetReceiptItemData [12:43:25]KKMSetReceiptItemData [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]KKMSetReceiptItemData err=0 [12:43:25]KKMAddReceiptItem [12:43:25]LoadAmountFromDocumentTag total=0 [12:43:25]LoadAmountFromDocumentTag cost=0 [12:43:25]SetAmountToDocument total=0 [12:43:25]Malloc new data [12:43:25]cost*persent_nds=0 [12:43:25]+500=500 [12:43:25]tax_nds_amount=0 [12:43:25]cost*persent_nds=0 [12:43:25]+500=500 [12:43:25]tax_nsp_amount=0 [12:43:25]Load OK [12:43:25]Load OK [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]Load OK [12:43:25]Load OK [12:43:25]Malloc new data [12:43:25]Malloc new data [12:43:25]free (recei[12:49:21]OFD Sender: No OFD packet to send [12:49:22]accept exits with 9 [12:49:22]New connection [12:49:22]New thread 3067215204 created [12:49:22]Thread 3067071844 joined [12:49:22]Waiting for new connection... [12:49:22] Sock 9.Parse request [12:49:22]Sock 9.Check first char [12:49:22]Sock 9.First char is OK [12:49:22]request: POST /json_proto HTTP/1.0 [12:49:22]Method: POST [12:49:22]URL: /json_proto [12:49:22]Method is POST - this is cgi request [12:49:22]url: /json_proto [12:49:22]query_string will be loaded in cgi processing [12:49:22]execute_cgi json_proto POST (null) [12:49:22]execute_cgi path=json_proto method=POST [12:49:22]POST find Content-Length [12:49:22]Host: 172.17.44.67:8080 [12:49:22]Content-Length: 677 [12:49:22]Content-Type: application/json [12:49:22] [12:49:22]POST finish read [12:49:22]Found Content-Length = 677 [12:49:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:22]execute_script... [12:49: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)918862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:22]POST & json_proto [12:49:22]process_json_proto [12:49:22]json parsed OK: [12:49:22]protocol is kg_v1.0 [12:49:22]action value=close_receipt [12:49:22]process_action close_receipt [12:49:22]cmd_close_receipt [12:49:22]MH_GetDate [12:49:22]Write to MH i2c: F0 00 00 48 05 3C [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: F0 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: F0 09 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: F0 09 00 48 05 00 52 59 12 67 F1 C7 6B 64 F0 [12:49:22]GetLastDocTimeStamp 1729255438 [12:49:22]current date 1729255762 [12:49:22]FM_GetShiftState [12:49:22]SAM_PROTO_GetShiftState [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 13 01 00 [12:49:22]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 0E 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 9D [12:49:22]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:49:22]wFMCommunicate OK [12:49:22]SAM_PROTO_GetShiftState done [12:49:22]FM_GetShiftState done [12:49:22]opened in 1729212319 [12:49:22]opened+sec_in_day 1729298719 [12:49:22]quantity*price = 50041 [12:49:22]sum+1 = 50042 [12:49:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 74 18.10.2024 12:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4348823 ФМ: 0000000000871843 ФД: 82365 ФПД: 223364185271433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124326&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82365&fm=223364185271433&tin=02508201610067®Number=0000000000091680&sum=0 [12:43:26]StoreToDocumentArchive [12:43:26]shift 526 fd 82365 [12:43:26]save to /storage/0526/doc_00082365 [12:43:26]save last doc name /storage/0526/doc_00082365 to /storage/kkm_last_doc_name [12:43:26]save OK [12:43:26]Clear old archive folders... [12:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:43:26]tlvbuf is 00A29030 [12:43:26]SAM_PROTO_ClearQueue [12:43:26]wFMCommunicate request_size=4 [12:43:26]MH_SAM_APDU [12:43:26]CAPDU: 80 09 00 00 [12:43:26]Write to MH i2c: E2 08 00 C1 04 80 09 00 00 00 00 00 00 37 [12:43:26]Write i2c OK [12:43:26]MH_I2C_Read... [12:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:27]Read from MH i2c: E2 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [12:43:27]RAPDU: 90 00 [12:43:27]wFMCommunicate OK [12:43:27]SAM_PROTO_ClearQueue done [12:43:27]KKMCreateOFDPacket [12:43:27]OFDProtocolAddRootSTLVToBuf [12:43:27]FM_MakeSignedData [12:43:27]FM_MakeSignedData [12:43:27]SAM_PROTO_SignData [12:43:27]wFMCommunicate request_size=4 [12:43:27]MH_SAM_APDU [12:43:27]CAPDU: 80 0D 01 02 [12:43:27]Write to MH i2c: E2 08 00 C2 04 80 0D 01 02 00 00 00 00 3F [12:43:27]Write i2c OK [12:43:27]MH_I2C_Read... [12:43:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:27]Read from MH i2c: E2 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 [12:43:27]MH_I2C_Read... [12:43:27]Read from MH i2c: E2 03 00 C2 04 [12:49:22]CAPDU: 80 15 02 00 08 F4 03 04 00 52 59 12 67 [12:49:22]Write to MH i2c: E2 10 00 52 05 80 15 02 00 08 00 F4 03 04 00 52 59 12 67 00 00 06 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 03 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [12:49:22]RAPDU: 90 00 [12:49:22]wFMCommunicate OK [12:49:22]wFMCommunicate request_size=25 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [12:49:22]Write to MH i2c: E2 1C 00 53 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 39 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 03 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [12:49:22]RAPDU: 90 00 [12:49:22]wFMCommunicate OK [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 15 03 00 [12:49:22]Write to MH i2c: E2 08 00 54 05 80 15 03 00 00 00 00 00 DA [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 40 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 40 00 54 05 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4C 00 00 00 35 04 06 00 38 55 7C 26 BD D6 90 00 EE [12:49:23]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4C 00 00 00 35 04 06 00 38 55 7C 26 BD D6 90 00 [12:49:23]wFMCommunicate OK [12:49:23]SAM_PROTO_ProcessDocument answer len = 59 [12:49:23]SAM_PROTO_ProcessDocument done [12:49:23]SetTLVBufToDocument [12:49:23]Processing tag 1209 (04B9) [12:49:23]Malloc new data [12:49:23]Processing tag 1041 (0411) [12:49:23]Processing tag 1040 (0410) [12:49:23]Malloc new data [12:49:23]Processing tag 1038 (040E) [12:49:23]Malloc new data [12:49:23]Processing tag 1042 (0412) [12:49:23]Malloc new data [12:49:23]Processing tag 1077 (0435) [12:49:23]Malloc new data [12:49:23]SetTLVBufToDocument err=0 [12:49:23]KKMLoadAndSignReceiptData store KKM data [12:49:23]KKMLoadAndSignReceiptData err=0 [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 11 00 00 [12:49:23]Write to MH i2c: E2 08 00 55 05 80 11 00 00 00 00 00 00 D4 [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 17 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 17 00 55 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 26 [12:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:49:23]wFMCommunicate OK [12:49:23]Счет N : (1)918862 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 2710124130 Аи-92-К-4 7.480 * 66.90 = 500.41 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 76 18.10.2024 12:49 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82367 ФПД: 61939806289366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124922&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82367&fm=61939806289366&tin=02508201610067®Number=0000000000091680&sum=50000 [12:49:23]StoreToDocumentArchive [12:49:23]shift 526 fd 82367 [12:49:23]save to /storage/0526/doc_00082367 [12:49:23]save last doc name /storage/0526/doc_00082367 to /storage/kkm_last_doc_name [12:49:23]save OK [12:49:23]Clear old archive folders... [12:49:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:23]tlvbuf is B6F984B0 [12:49:23]SAM_PROTO_ClearQueue [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 09 00 00 [12:49:23]Write to MH i2c: E2 08 00 56 05 80 09 00 00 00 00 00 00 CD [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [12:49:23]RAPDU: 90 00 [12:49:23]wFMCommunicate OK [12:49:23]SAM_PROTO_ClearQueue done [12:49:23]KKMCreateOFDPacket [12:49:23]OFDProtocolAddRootSTLVToBuf [12:49:23]FM_MakeSignedData [12:49:23]FM_MakeSignedData [12:49:23]SAM_PROTO_SignData [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 0D 01 02 [12:49:23]Write to MH i2c: E2 08 00 57 05 80 0D 01 02 00 00 00 00 D5 [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [12:49:23]RAPDU: 90 00 [12:49:23]wFMCommunicate OK [12:49:23]wFMCommunicate request_size=255 [12:49:23]MH_SAM_APDU [12:49: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 52 59 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 41 01 00 35 04 06 00 38 [12:49:23]Write to MH i2c: E2 02 01 58 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 52 59 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 41 01 00 35 04 06 00 38 00 00 1A [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [12:49:23]RAPDU: 90 00 [12:49:23]wFMCommunicate OK [12:49:23]wFMCommunicate request_size=10 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 0D 02 02 05 55 7C 26 BD D6 [12:49:23]Write to MH i2c: E2 0D 00 59 05 80 0D 02 02 05 00 55 7C 26 BD D6 00 00 6C [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [12:49:23]RAPDU: 90 00 [12:49:23]wFMCommunicate OK [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 0D 03 02 [12:49:23]Write to MH i2c: E2 08 00 5A 05 80 0D 03 02 00 00 00 00 DA [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 0B 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 0B 00 5A 05 00 94 97 0C 53 C5 ED 64 7B 90 00 F6 [12:49:23]RAPDU: 94 97 0C 53 C5 ED 64 7B 90 00 [12:49:23]wFMCommunicate OK [12:49:23]SAM_PROTO_SignData done [12:49:23]FM_MakeSignedData done [12:49:23]CreateOFDProtocolMessage [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 11 00 00 [12:49:23]Write to MH i2c: E2 08 00 5B 05 80 11 00 00 00 00 00 00 DA [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 17 00 [12:49:23]MH_I2C_Read... [12:49:23]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 31 38 34 33 90 00 2C [12:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:49:23]wFMCommunicate OK [12:49:23]CreateOFDProtocolMessage done [12:49:23]OFDSenderStorePacket 82367 [12:49:23]StoreOFDPacket docnum=82367 [12:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F4 C9 07 01 93 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 52 59 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 41 01 00 35 04 06 00 38 55 7C 26 BD D6 94 97 0C 53 C5 ED 64 7B [12:49:23]CheckFolder [12:49:23]dirname=/storage/ofd_packets [12:49:23]CheckFolder done [12:49:23]ProducePacketName [12:49:23]name=ofd_packets/00082367 [12:49:23]NVStorageSaveData ofd_packets/00082367 [12:49:23]File name is /storage/ofd_packets/00082367 [12:49:23]Write 301 bytes [12:49:23]NVStorageSaveData done [12:49:23]OFDSenderStorePacket done [12:49:23]KKMCreateOFDPacket done [12:49:23]NVStorageSaveData kkm_last_timestamp [12:49:23]File name is /storage/kkm_last_timestamp [12:49:23]Write 4 bytes [12:49:23]NVStorageSaveData done [12:49:23]ExternCall_PrintAddStr [12:49:23]wPrintStart [12:49:23]Write to MH i2c: 01 00 00 5C 05 61 [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: 01 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: 01 07 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [12:49:23]RasterBufferAndPrint [12:49:23]line Счет N : (1)918862 [12:49:23]line ИНН: 02508201610067 [12:49:23]line Контрольно-Кассовый Чек [12:49:23]line ПРОДАЖА [12:49:23]line ТРК (МРК, ГНК) : 11 [12:49:23]line Товар: 2710124130 [12:49:23]line Аи-92-К-4 [12:49:23]line 7.480 * 66.90 [12:49:23]line = 500.41 [12:49:23]line НДС 12% НСП 1% [12:49:23]line > о реализуемом товаре [12:49:23]line ОКРУГЛЕНИЕ: -0.41 [12:49:23]line ИТОГО: 500.00 [12:49:23]line Внесено: 500.00 [12:49:23]line СДАЧА: 0.00 [12:49:23]line НСП 1% : 4.43 [12:49:23]line НДС 12% : 53.14 [12:49:23]line Наличными: 500.00 [12:49:23]line Безнал.: 0.00 [12:49:23]line Место: АЗС № 114 "Партнер Нефть" [12:49:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:49:23]line СНО: Общий режим [12:49:23]line Чек 76 18.10.2024 12:49 [12:49:23]line Смена: 526 ФФД: 1.0 [12:49:23]line ЗНМ: 0300000086 [12:49:23]line РНМ: 0000000000091680 [12:49:23]line Версия ККМ: 001 [12:49:23]line ФМ: 0000000000871843 [12:49:23]line ФД: 82367 [12:49:23]line ФПД: 61939806289366 [12:49:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124922&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82367&fm=61939806289366&tin=02508201610067®Number=0000000000091680&sum=50000 [12:49:24]OFD Sender: Processing packet 82367 [packets to send 254, broken 253] [12:49:24]ProducePacketName [12:49:24]name=ofd_packets/00082367 [12:49:24]OFD Sender: To server: pG, [12:49:24]CommunicateWithHost lk.salyk.kg:30040 [12:49:24]ConnectInit lk.salyk.kg [12:49:24]written 0, free lines is 4095 [12:49:24]Write to MH i2c: 01 00 00 87 05 8C [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: 01 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: 01 07 00 [12:49:24]MH_I2C_Read... [12:49:24]Connected sock=11 [12:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F4 C9 07 01 93 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 52 59 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 41 01 00 35 04 06 00 38 55 7C 26 BD D6 94 97 0C 53 C5 ED 64 7B [12:49:24]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 CD 0C 6C [12:49:24]RasterBufferAndPrint [12:49:24]line [12:49:24]line [12:49:24]line [12:49:24]line [12:49:24]line [12:49:24]written 0, free lines is 3298 [12:49:24]MH_Cut [12:49:24]Write to MH i2c: D1 01 00 8E 05 01 65 [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: D1 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: D1 01 00 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: D1 01 00 8E 05 00 64 [12:49:24]Write to MH i2c: 01 00 00 8F 05 94 [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B3 2B 47 00 EC 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 BF 41 01 00 F4 03 04 00 8D FE 11 67 B6 04 01 00 00 5C 41 06 97 F5 19 9C 15 [12:49:24]CommunicateWithHost err = 0 [12:49:24]CheckOFDResponse [12:49:24]1017 (14) - 77093643461234 [12:49:24]1041 (16) - 0000000000871843 [12:49:24]1040 (4) - 82367 [12:49:24]1012 (4) - 18.10.2024 06:22 [12:49:24]1206 (1) - 0 [12:49:24]OFD Sender: Remove packet 82367 [12:49:24]ProducePacketName [12:49:24]name=ofd_packets/00082367 [12:49:24]NVStorageDeleteData [12:49:25]*** Cut start [12:49:25]*** Partial cut [12:49:25]*** CUTSNS_PIN = 1 [12:49:25]*** CUTSNS_PIN = 0 [12:49:25]OFD Sender: No OFD packet to send [12:49:25]*** Brake cut motor [12:49:25]Read from MH i2c: 01 [12:49:25]MH_I2C_Read... [12:49:25]*** Stop cut motor [12:49:25]*** Cut end [12:49:25]Read from MH i2c: 01 07 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 FF 0F A9 [12:49:25]process_action close_receipt done [12:49:25]requested_data is exist [12:49:25]produce_requested_data [12:49:25]requested_item fm.sn is exist - process it [12:49:25]wFMCommunicate request_size=4 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 11 00 00 [12:49:25]Write to MH i2c: E2 08 00 90 05 80 11 00 00 00 00 00 00 0F [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 17 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 17 00 90 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 61 [12:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:49:25]wFMCommunicate OK [12:49:25]requested_item fd.num is exist - process it [12:49:25]SAM_PROTO_GetFieldsCounters [12:49:25]wFMCommunicate request_size=4 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 13 00 00 [12:49:25]Write to MH i2c: E2 08 00 91 05 80 13 00 00 00 00 00 00 12 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:26]Read from MH i2c: E2 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 62 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 62 00 91 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:49:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 BF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:26]wFMCommunicate OK [12:49:26]SAM_PROTO_GetFieldsCounters done [12:49:26]requested_item shift.num is exist - process it [12:49:26]requested_item shift.opened is exist - process it [12:49:26]req_shift_opened [12:49:26]FM_GetShiftState [12:49:26]SAM_PROTO_GetShiftState [12:49:26]wFMCommunicate request_size=4 [12:49:26]MH_SAM_APDU [12:49:26]CAPDU: 80 13 01 00 [12:49:26]Write to MH i2c: E2 08 00 92 05 80 13 01 00 00 00 00 00 14 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:26]Read from MH i2c: E2 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 0E 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: E2 0E 00 92 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E6 [12:49:26]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:49:26]wFMCommunicate OK [12:49:26]SAM_PROTO_GetShiftState done [12:49:26]FM_GetShiftState done [12:49:26]req_shift_opened done [12:49:26]requested_item shift.open_date is exist - process it [12:49:26]req_shift_open_date [12:49:26]req_shift_open_date done [12:49:26]produce_requested_data done [12:49:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82367,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:49:26]process_action_free close_receipt [12:49:26]json_value_free [12:49:26]json_value_free done [12:49:26]process_json_proto returns [12:49:26]Send response to host [12:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82367,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:49:26]free response buf [12:49:26]execute_script done [12:49:26]execute_script returns [12:49:26]free content buf [12:49:26]Sock 9.Close socket [12:49:26]Sock 9.Thread stoped [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]recv_with_timeout no data received [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [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:17]accept exits with 8 [12:52:17]New connection [12:52:17]New thread 3067071844 created [12:52:17]Thread 3067215204 joined [12:52:17]Waiting for new connection... [12:52:17] Sock 8.Parse request [12:52:17]Sock 8.Check first char [12:52:17]Sock 8.First char is OK [12:52:17]request: POST /json_proto HTTP/1.0 [12:52:17]Method: POST [12:52:17]URL: /json_proto [12:52:17]Method is POST - this is cgi request [12:52:17]url: /json_proto [12:52:17]query_string will be loaded in cgi processing [12:52:17]execute_cgi json_proto POST (null) [12:52:17]execute_cgi path=json_proto method=POST [12:52:17]POST find Content-Length [12:52:17]Host: 172.17.44.67:8080 [12:52:17]Content-Length: 759 [12:52:17]Content-Type: application/json [12:52:17] [12:52:17]POST finish read [12:52:17]Found Content-Length = 759 [12:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087243", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:17]execute_script... [12:52: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)918863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087243", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:17]POST & json_proto [12:52:17]process_json_proto [12:52:17]json parsed OK: [12:52:17]protocol is kg_v1.0 [12:52:17]action value=close_receipt [12:52:17]process_action close_receipt [12:52:17]cmd_close_receipt [12:52:17]MH_GetDate [12:52:17]Write to MH i2c: F0 00 00 93 05 87 [12:52:17]Write i2c OK [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: F0 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: F0 09 00 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: F0 09 00 93 05 00 02 5A 12 67 F1 C7 6B 64 EC [12:52:17]GetLastDocTimeStamp 1729255762 [12:52:17]current date 1729255938 [12:52:17]FM_GetShiftState [12:52:17]SAM_PROTO_GetShiftState [12:52:17]wFMCommunicate request_size=4 [12:52:17]MH_SAM_APDU [12:52:17]CAPDU: 80 13 01 00 [12:52:17]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [12:52:17]Write i2c OK [12:52:17]MH_I2C_Read... [12:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:17]Read from MH i2c: E2 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: E2 0E 00 [12:52:17]MH_I2C_Read... [12:52:17]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E8 [12:52:17]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:52:17]wFMCommunicate OK [12:52:17]SAM_PROTO_GetShiftState done [12:52:17]FM_GetShiftState done [12:52:17]opened in 1729212319 [12:52:17]opened+sec_in_day 1729298719 [12:52:17]quantity*price = 0 [12:52:17]sum+1 = 1 [12:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 77 18.10.2024 12:52 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087243 ФМ: 0000000000871843 ФД: 82368 ФПД: 239131765905197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T125218&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82368&fm=239131765905197&tin=02508201610067®Number=0000000000091680&sum=0 [12:52:18]StoreToDocumentArchive [12:52:18]shift 526 fd 82368 [12:52:18]save to /storage/0526/doc_00082368 [12:52:18]save last doc name /storage/0526/doc_00082368 to /storage/kkm_last_doc_name [12:52:18]save OK [12:52:18]Clear old archive folders... [12:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:52:18]tlvbuf is 00A35B80 [12:52:18]SAM_PROTO_ClearQueue [12:52:18]wFMCommunicate request_size=4 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 09 00 00 [12:52:18]Write to MH i2c: E2 08 00 A1 05 80 09 00 00 00 00 00 00 18 [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [12:52:18]RAPDU: 90 00 [12:52:18]wFMCommunicate OK [12:52:18]SAM_PROTO_ClearQueue done [12:52:18]KKMCreateOFDPacket [12:52:18]OFDProtocolAddRootSTLVToBuf [12:52:18]FM_MakeSignedData [12:52:18]FM_MakeSignedData [12:52:18]SAM_PROTO_SignData [12:52:18]wFMCommunicate request_size=4 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 0D 01 02 [12:52:18]Write to MH i2c: E2 08 00 A2 05 80 0D 01 02 00 00 00 00 20 [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [12:52:18]RAPDU: 90 00 [12:52:18]wFMCommunicate OK [12:52:18]wFMCommunicate request_size=255 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 5A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 41 01 00 35 04 06 00 [12:52:18]Write to MH i2c: E2 02 01 A3 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 5A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 41 01 00 35 04 06 00 00 00 05 [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [12:52:18]RAPDU: 90 00 [12:52:18]wFMCommunicate OK [12:52:18]wFMCommunicate request_size=11 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 0D 02 02 06 D9 7D 33 F6 17 2D [12:52:18]Write to MH i2c: E2 0E 00 A4 05 80 0D 02 02 06 00 D9 7D 33 F6 17 2D 00 00 F2 [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [12:52:18]RAPDU: 90 00 [12:52:18]wFMCommunicate OK [12:52:18]wFMCommunicate request_size=4 [12:52:18]MH_SAM_APDU [12:52:18]CAPDU: 80 0D 03 02 [12:52:18]Write to MH i2c: E2 08 00 A5 05 80 0D 03 02 00 00 00 00 25 [12:52:18]Write i2c OK [12:52:18]MH_I2C_Read... [12:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:18]Read from MH i2c: E2 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 0B 00 [12:52:18]MH_I2C_Read... [12:52:18]Read from MH i2c: E2 0B 00 A5 05 00 E2 86 D3 06 1B AC D6 71 90 00 75 [12:52:19]RAPDU: E2 86 D3 06 1B AC D6 71 90 00 [12:52:19]wFMCommunicate OK [12:52:19]SAM_PROTO_SignData done [12:52:19]FM_MakeSignedData done [12:52:19]CreateOFDProtocolMessage [12:52:19]wFMCommunicate request_size=4 [12:52:19]MH_SAM_APDU [12:52:19]CAPDU: 80 11 00 00 [12:52:19]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:19]Read from MH i2c: E2 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: E2 17 00 [12:52:19]MH_I2C_Read... [12:52:19]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 31 38 34 33 90 00 77 [12:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:52:19]wFMCommunicate OK [12:52:19]CreateOFDProtocolMessage done [12:52:19]OFDSenderStorePacket 82368 [12:52:19]StoreOFDPacket docnum=82368 [12:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 54 0B 08 01 4D 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 5A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 41 01 00 35 04 06 00 D9 7D 33 F6 17 2D E2 86 D3 06 1B AC D6 71 [12:52:19]CheckFolder [12:52:19]dirname=/storage/ofd_packets [12:52:19]CheckFolder done [12:52:19]ProducePacketName [12:52:19]name=ofd_packets/00082368 [12:52:19]NVStorageSaveData ofd_packets/00082368 [12:52:19]File name is /storage/ofd_packets/00082368 [12:52:19]Write 302 bytes [12:52:19]NVStorageSaveData done [12:52:19]OFDSenderStorePacket done [12:52:19]KKMCreateOFDPacket done [12:52:19]NVStorageSaveData kkm_last_timestamp [12:52:19]File name is /storage/kkm_last_timestamp [12:52:19]Write 4 bytes [12:52:19]NVStorageSaveData done [12:52:19]ExternCall_PrintAddStr [12:52:19]wPrintStart [12:52:19]Write to MH i2c: 01 00 00 A7 05 AC [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: 01 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: 01 07 00 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [12:52:19]RasterBufferAndPrint [12:52:19]line Счет N : (1)918863 [12:52:19]line ИНН: 02508201610067 [12:52:19]line Контрольно-Кассовый Чек [12:52:19]line ПРОДАЖА [12:52:19]line ТРК (МРК, ГНК) : 31 [12:52:19]line Товар: 2710194210 [12:52:19]line ДТ(л)-К-5 [12:52:19]line 20.000 * 0.00 [12:52:19]line = 0.00 [12:52:19]line НДС 12% НСП 1% [12:52:19]line > о реализуемом товаре [12:52:19]line ИТОГО: 0.00 [12:52:19]line НСП 1% : 0.00 [12:52:19]line НДС 12% : 0.00 [12:52:19]line Наличными: 0.00 [12:52:19]line Безнал.: 0.00 [12:52:19]line Место: АЗС № 114 "Партнер Нефть" [12:52:19]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [12:52:19]line СНО: Общий режим [12:52:19]line Чек 77 18.10.2024 12:52 [12:52:19]line Смена: 526 ФФД: 1.0 [12:52:19]line ЗНМ: 0300000086 [12:52:19]line РНМ: 0000000000091680 [12:52:19]line Версия ККМ: 001 [12:52:19]line Талоны: ТК ГПНА Online [12:52:19]line 30087243 [12:52:19]line ФМ: 0000000000871843 [12:52:19]line ФД: 82368 [12:52:19]line ФПД: 239131765905197 [12:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T125218&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82368&fm=239131765905197&tin=02508201610067®Number=0000000000091680&sum=0 [12:52:19]written 0, free lines is 4095 [12:52:19]OFD Sender: Processing packet 82368 [packets to send 254, broken 253] [12:52:19]ProducePacketName [12:52:19]name=ofd_packets/00082368 [12:52:19]OFD Sender: To server: pG, [12:52:19]CommunicateWithHost lk.salyk.kg:30040 [12:52:19]ConnectInit lk.salyk.kg [12:52:19]Write to MH i2c: 01 00 00 D1 05 D6 [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: 01 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: 01 07 00 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 E1 0C CA [12:52:19]RasterBufferAndPrint [12:52:19]line [12:52:19]line [12:52:19]line [12:52:19]line [12:52:19]line [12:52:19]written 0, free lines is 3304 [12:52:19]MH_Cut [12:52:19]Write to MH i2c: D1 01 00 D8 05 01 AF [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: D1 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: D1 01 00 [12:52:19]MH_I2C_Read... [12:52:19]Read from MH i2c: D1 01 00 D8 05 00 AE [12:52:19]Write to MH i2c: 01 00 00 D9 05 DE [12:52:19]Write i2c OK [12:52:19]MH_I2C_Read... [12:52:20]Connected sock=10 [12: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 31 38 34 33 10 01 00 00 54 0B 08 01 4D 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 02 5A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 41 01 00 35 04 06 00 D9 7D 33 F6 17 2D E2 86 D3 06 1B AC D6 71 [12:52:20]*** Cut start [12:52:20]*** Partial cut [12:52:20]*** CUTSNS_PIN = 1 [12:52:20]*** CUTSNS_PIN = 0 [12:52:20]*** Brake cut motor [12:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 81 F1 47 00 12 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C0 41 01 00 F4 03 04 00 3D FF 11 67 B6 04 01 00 00 4A D2 20 7D 05 44 24 15 [12:52:20]CommunicateWithHost err = 0 [12:52:20]CheckOFDResponse [12:52:20]1017 (14) - 77093643461234 [12:52:20]1041 (16) - 0000000000871843 [12:52:20]1040 (4) - 82368 [12:52:20]1012 (4) - 18.10.2024 06:25 [12:52:20]1206 (1) - 0 [12:52:20]OFD Sender: Remove packet 82368 [12:52:20]ProducePacketName [12:52:20]name=ofd_packets/00082368 [12:52:20]NVStorageDeleteData [12:52:20]Read from MH i2c: 01 [12:52:20]MH_I2C_Read... [12:52:20]*** Stop cut motor [12:52:20]*** Cut end [12:52:20]Read from MH i2c: 01 07 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 FF 0F F3 [12:52:20]process_action close_receipt done [12:52:20]requested_data is exist [12:52:20]produce_requested_data [12:52:20]requested_item fm.sn is exist - process it [12:52:20]wFMCommunicate request_size=4 [12:52:20]MH_SAM_APDU [12:52:20]CAPDU: 80 11 00 00 [12:52:20]Write to MH i2c: E2 08 00 DA 05 80 11 00 00 00 00 00 00 59 [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:20]Read from MH i2c: E2 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 17 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 17 00 DA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AB [12:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [12:52:20]wFMCommunicate OK [12:52:20]requested_item fd.num is exist - process it [12:52:20]SAM_PROTO_GetFieldsCounters [12:52:20]wFMCommunicate request_size=4 [12:52:20]MH_SAM_APDU [12:52:20]CAPDU: 80 13 00 00 [12:52:20]Write to MH i2c: E2 08 00 DB 05 80 13 00 00 00 00 00 00 5C [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 62 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 62 00 DB 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:21]wFMCommunicate OK [12:52:21]SAM_PROTO_GetFieldsCounters done [12:52:21]requested_item shift.num is exist - process it [12:52:21]requested_item shift.opened is exist - process it [12:52:21]req_shift_opened [12:52:21]FM_GetShiftState [12:52:21]SAM_PROTO_GetShiftState [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 13 01 00 [12:52:21]Write to MH i2c: E2 08 00 DC 05 80 13 01 00 00 00 00 00 5E [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0E 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0E 00 DC 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 30 [12:52:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [12:52:21]wFMCommunicate OK [12:52:21]SAM_PROTO_GetShiftState done [12:52:21]FM_GetShiftState done [12:52:21]req_shift_opened done [12:52:21]requested_item shift.open_date is exist - process it [12:52:21]req_shift_open_date [12:52:21]req_shift_open_date done [12:52:21]produce_requested_data done [12:52:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82368,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [12:52:21]process_action_free close_receipt [12:52:21]json_value_free [12:52:21]json_value_free done [12:52:21]process_json_proto returns [12:52:21]Send response to host [12:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82368,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [12:52:21]free response buf [12:52:21]execute_script done [12:52:21]execute_script returns [12:52:21]free content buf [12:52:21]Sock 8.Close socket [12:52:21]Sock 8.Thread stoped [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:36]recv_with_timeout no data received [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:47]recv_with_timeout no data received [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:22]recv_with_timeout no data received [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:41]recv_with_timeout no data received [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:49]recv_with_timeout no data received [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:51]recv_with_timeout no data received [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:12]accept exits with 9 [13:12:12]New connection [13:12:12]New thread 3067215204 created [13:12:12]Thread 3067071844 joined [13:12:12]Waiting for new connection... [13:12:12] Sock 9.Parse request [13:12:12]Sock 9.Check first char [13:12:12]Sock 9.First char is OK [13:12:12]request: POST /json_proto HTTP/1.0 [13:12:12]Method: POST [13:12:12]URL: /json_proto [13:12:12]Method is POST - this is cgi request [13:12:12]url: /json_proto [13:12:12]query_string will be loaded in cgi processing [13:12:12]execute_cgi json_proto POST (null) [13:12:12]execute_cgi path=json_proto method=POST [13:12:12]POST find Content-Length [13:12:12]Host: 172.17.44.67:8080 [13:12:12]Content-Length: 803 [13:12:12]Content-Type: application/json [13:12:12] [13:12:12]POST finish read [13:12:12]Found Content-Length = 803 [13:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918864", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:12]execute_script... [13:12: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)918864", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:12]POST & json_proto [13:12:12]process_json_proto [13:12:12]json parsed OK: [13:12:12]protocol is kg_v1.0 [13:12:12]action value=close_receipt [13:12:12]process_action close_receipt [13:12:12]cmd_close_receipt [13:12:12]MH_GetDate [13:12:12]Write to MH i2c: F0 00 00 DD 05 D1 [13:12:12]Write i2c OK [13:12:12]MH_I2C_Read... [13:12:12]Read from MH i2c: F0 [13:12:12]MH_I2C_Read... [13:12:12]Read from MH i2c: F0 09 00 [13:12:12]MH_I2C_Read... [13:12:12]Read from MH i2c: F0 09 00 DD 05 00 AD 5E 12 67 F1 C7 6B 64 E5 [13:12:12]GetLastDocTimeStamp 1729255938 [13:12:12]current date 1729257133 [13:12:12]FM_GetShiftState [13:12:12]SAM_PROTO_GetShiftState [13:12:12]wFMCommunicate request_size=4 [13:12:12]MH_SAM_APDU [13:12:12]CAPDU: 80 13 01 00 [13:12:12]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [13:12:12]Write i2c OK [13:12:12]MH_I2C_Read... [13:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:12]Read from MH i2c: E2 [13:12:12]MH_I2C_Read... [13:12:12]Read from MH i2c: E2 0E 00 [13:12:12]MH_I2C_Read... [13:12:12]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 32 [13:12:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:12:12]wFMCommunicate OK [13:12:12]SAM_PROTO_GetShiftState done [13:12:12]FM_GetShiftState done [13:12:12]opened in 1729212319 [13:12:12]opened+sec_in_day 1729298719 [13:12:12]quantity*price = 100021 [13:12:12]sum+1 = 100023 [13:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 78 18.10.2024 13:12 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82369 ФПД: 168888965286399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131213&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82369&fm=168888965286399&tin=02508201610067®Number=0000000000091680&sum=100022 [13:12:13]StoreToDocumentArchive [13:12:13]shift 526 fd 82369 [13:12:13]save to /storage/0526/doc_00082369 [13:12:13]save last doc name /storage/0526/doc_00082369 to /storage/kkm_last_doc_name [13:12:13]save OK [13:12:13]Clear old archive folders... [13:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:13]tlvbuf is 00A376C0 [13:12:13]SAM_PROTO_ClearQueue [13:12:13]wFMCommunicate request_size=4 [13:12:13]MH_SAM_APDU [13:12:13]CAPDU: 80 09 00 00 [13:12:13]Write to MH i2c: E2 08 00 EB 05 80 09 00 00 00 00 00 00 62 [13:12:13]Write i2c OK [13:12:13]MH_I2C_Read... [13:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:13]Read from MH i2c: E2 [13:12:13]MH_I2C_Read... [13:12:13]Read from MH i2c: E2 03 00 [13:12:13]MH_I2C_Read... [13:12:13]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [13:12:13]RAPDU: 90 00 [13:12:13]wFMCommunicate OK [13:12:13]SAM_PROTO_ClearQueue done [13:12:13]KKMCreateOFDPacket [13:12:13]OFDProtocolAddRootSTLVToBuf [13:12:13]FM_MakeSignedData [13:12:13]FM_MakeSignedData [13:12:13]SAM_PROTO_SignData [13:12:13]wFMCommunicate request_size=4 [13:12:13]MH_SAM_APDU [13:12:13]CAPDU: 80 0D 01 02 [13:12:13]Write to MH i2c: E2 08 00 EC 05 80 0D 01 02 00 00 00 00 6A [13:12:13]Write i2c OK [13:12:13]MH_I2C_Read... [13:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:14]Read from MH i2c: E2 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 03 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [13:12:14]RAPDU: 90 00 [13:12:14]wFMCommunicate OK [13:12:14]wFMCommunicate request_size=255 [13:12:14]MH_SAM_APDU [13:12:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AD 5E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 41 01 00 35 04 06 00 99 [13:12:14]Write to MH i2c: E2 02 01 ED 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AD 5E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 41 01 00 35 04 06 00 99 00 00 BE [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:14]Read from MH i2c: E2 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 03 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [13:12:14]RAPDU: 90 00 [13:12:14]wFMCommunicate OK [13:12:14]wFMCommunicate request_size=10 [13:12:14]MH_SAM_APDU [13:12:14]CAPDU: 80 0D 02 02 05 9A 86 C8 49 FF [13:12:14]Write to MH i2c: E2 0D 00 EE 05 80 0D 02 02 05 00 9A 86 C8 49 FF 00 00 A7 [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:14]Read from MH i2c: E2 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 03 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [13:12:14]RAPDU: 90 00 [13:12:14]wFMCommunicate OK [13:12:14]wFMCommunicate request_size=4 [13:12:14]MH_SAM_APDU [13:12:14]CAPDU: 80 0D 03 02 [13:12:14]Write to MH i2c: E2 08 00 EF 05 80 0D 03 02 00 00 00 00 6F [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:14]Read from MH i2c: E2 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 0B 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 0B 00 EF 05 00 31 2D 8B 18 23 E4 0C 50 90 00 D4 [13:12:14]RAPDU: 31 2D 8B 18 23 E4 0C 50 90 00 [13:12:14]wFMCommunicate OK [13:12:14]SAM_PROTO_SignData done [13:12:14]FM_MakeSignedData done [13:12:14]CreateOFDProtocolMessage [13:12:14]wFMCommunicate request_size=4 [13:12:14]MH_SAM_APDU [13:12:14]CAPDU: 80 11 00 00 [13:12:14]Write to MH i2c: E2 08 00 F0 05 80 11 00 00 00 00 00 00 6F [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:14]Read from MH i2c: E2 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 17 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: E2 17 00 F0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C1 [13:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:12:14]wFMCommunicate OK [13:12:14]CreateOFDProtocolMessage done [13:12:14]OFDSenderStorePacket 82369 [13:12:14]StoreOFDPacket docnum=82369 [13:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 87 C2 07 01 1C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AD 5E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 41 01 00 35 04 06 00 99 9A 86 C8 49 FF 31 2D 8B 18 23 E4 0C 50 [13:12:14]CheckFolder [13:12:14]dirname=/storage/ofd_packets [13:12:14]CheckFolder done [13:12:14]ProducePacketName [13:12:14]name=ofd_packets/00082369 [13:12:14]NVStorageSaveData ofd_packets/00082369 [13:12:14]File name is /storage/ofd_packets/00082369 [13:12:14]Write 301 bytes [13:12:14]NVStorageSaveData done [13:12:14]OFDSenderStorePacket done [13:12:14]KKMCreateOFDPacket done [13:12:14]NVStorageSaveData kkm_last_timestamp [13:12:14]File name is /storage/kkm_last_timestamp [13:12:14]Write 4 bytes [13:12:14]NVStorageSaveData done [13:12:14]ExternCall_PrintAddStr [13:12:14]wPrintStart [13:12:14]Write to MH i2c: 01 00 00 F1 05 F6 [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: 01 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: 01 07 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: 01 07 00 F1 05 00 00 00 00 00 FF 0F 0B [13:12:14]RasterBufferAndPrint [13:12:14]line Счет N : (1)918864 [13:12:14]line ИНН: 02508201610067 [13:12:14]line Контрольно-Кассовый Чек [13:12:14]line ПРОДАЖА [13:12:14]line ТРК (МРК, ГНК) : 12 [13:12:14]line Товар: 2710124500 [13:12:14]line Аи-95-К-5 [13:12:14]line 13.480 * 74.20 [13:12:14]line = 1000.22 [13:12:14]line НДС 12% НСП 1% [13:12:14]line > о реализуемом товаре [13:12:14]line ИТОГО: 1000.22 [13:12:14]line НСП 1% : 8.85 [13:12:14]line НДС 12% : 106.22 [13:12:14]line Наличными: 0.00 [13:12:14]line Безнал.: 1000.22 [13:12:14]line Место: АЗС № 114 "Партнер Нефть" [13:12:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:12:14]line СНО: Общий режим [13:12:14]line Чек 78 18.10.2024 13:12 [13:12:14]line Смена: 526 ФФД: 1.0 [13:12:14]line ЗНМ: 0300000086 [13:12:14]line РНМ: 0000000000091680 [13:12:14]line Версия ККМ: 001 [13:12:14]line Платежная система: O! деньги [13:12:14]line ФМ: 0000000000871843 [13:12:14]line ФД: 82369 [13:12:14]line ФПД: 168888965286399 [13:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131213&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82369&fm=168888965286399&tin=02508201610067®Number=0000000000091680&sum=100022 [13:12:14]written 0, free lines is 4095 [13:12:14]OFD Sender: Processing packet 82369 [packets to send 254, broken 253] [13:12:14]ProducePacketName [13:12:14]name=ofd_packets/00082369 [13:12:14]OFD Sender: To server: pG, [13:12:14]CommunicateWithHost lk.salyk.kg:30040 [13:12:14]ConnectInit lk.salyk.kg [13:12:14]Write to MH i2c: 01 00 00 1B 06 21 [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: 01 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: 01 07 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 EB 0C 1F [13:12:14]RasterBufferAndPrint [13:12:14]line [13:12:14]line [13:12:14]line [13:12:14]line [13:12:14]line [13:12:14]written 0, free lines is 3314 [13:12:14]MH_Cut [13:12:14]Write to MH i2c: D1 01 00 22 06 01 FA [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: D1 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: D1 01 00 [13:12:14]MH_I2C_Read... [13:12:14]Read from MH i2c: D1 01 00 22 06 00 F9 [13:12:14]Write to MH i2c: 01 00 00 23 06 29 [13:12:14]Write i2c OK [13:12:14]MH_I2C_Read... [13:12:15]Connected sock=10 [13:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 87 C2 07 01 1C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 AD 5E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 41 01 00 35 04 06 00 99 9A 86 C8 49 FF 31 2D 8B 18 23 E4 0C 50 [13:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DE A4 47 00 2A 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C1 41 01 00 F4 03 04 00 E8 03 12 67 B6 04 01 00 00 07 6F F4 87 40 37 8B 2E [13:12:15]CommunicateWithHost err = 0 [13:12:15]CheckOFDResponse [13:12:15]1017 (14) - 77093643461234 [13:12:15]1041 (16) - 0000000000871843 [13:12:15]1040 (4) - 82369 [13:12:15]1012 (4) - 18.10.2024 06:44 [13:12:15]1206 (1) - 0 [13:12:15]OFD Sender: Remove packet 82369 [13:12:15]ProducePacketName [13:12:15]name=ofd_packets/00082369 [13:12:15]NVStorageDeleteData [13:12:15]*** Cut start [13:12:15]*** Partial cut [13:12:15]*** CUTSNS_PIN = 1 [13:12:15]*** CUTSNS_PIN = 0 [13:12:15]*** Brake cut motor [13:12:16]OFD Sender: No OFD packet to send [13:12:16]Read from MH i2c: 01 [13:12:16]MH_I2C_Read... [13:12:16]*** Stop cut motor [13:12:16]*** Cut end [13:12:16]Read from MH i2c: 01 07 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [13:12:16]process_action close_receipt done [13:12:16]requested_data is exist [13:12:16]produce_requested_data [13:12:16]requested_item fm.sn is exist - process it [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 11 00 00 [13:12:16]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 17 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 17 00 24 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F6 [13:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:12:16]wFMCommunicate OK [13:12:16]requested_item fd.num is exist - process it [13:12:16]SAM_PROTO_GetFieldsCounters [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 13 00 00 [13:12:16]Write to MH i2c: E2 08 00 25 06 80 13 00 00 00 00 00 00 A7 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 62 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 62 00 25 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:16]wFMCommunicate OK [13:12:16]SAM_PROTO_GetFieldsCounters done [13:12:16]requested_item shift.num is exist - process it [13:12:16]requested_item shift.opened is exist - process it [13:12:16]req_shift_opened [13:12:16]FM_GetShiftState [13:12:16]SAM_PROTO_GetShiftState [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 13 01 00 [13:12:16]Write to MH i2c: E2 08 00 26 06 80 13 01 00 00 00 00 00 A9 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 0E 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 0E 00 26 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 7B [13:12:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:12:16]wFMCommunicate OK [13:12:16]SAM_PROTO_GetShiftState done [13:12:16]FM_GetShiftState done [13:12:16]req_shift_opened done [13:12:16]requested_item shift.open_date is exist - process it [13:12:16]req_shift_open_date [13:12:16]req_shift_open_date done [13:12:16]produce_requested_data done [13:12:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82369,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [13:12:16]process_action_free close_receipt [13:12:16]json_value_free [13:12:16]json_value_free done [13:12:16]process_json_proto returns [13:12:16]Send response to host [13:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82369,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [13:12:16]free response buf [13:12:16]execute_script done [13:12:16]execute_script returns [13:12:16]free content buf [13:12:16]Sock 9.Close socket [13:12:16]Sock 9.Thread stoped [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:32]recv_with_timeout no data received [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:45]recv_with_timeout no data received [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:55]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:08]recv_with_timeout no data received [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]recv_with_timeout no data received [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:54]accept exits with 8 [13:18:54]New connection [13:18:54]New thread 3067071844 created [13:18:54]Thread 3067215204 joined [13:18:54]Waiting for new connection... [13:18:54] Sock 8.Parse request [13:18:54]Sock 8.Check first char [13:18:54]Sock 8.First char is OK [13:18:54]request: POST /json_proto HTTP/1.0 [13:18:54]Method: POST [13:18:54]URL: /json_proto [13:18:54]Method is POST - this is cgi request [13:18:54]url: /json_proto [13:18:54]query_string will be loaded in cgi processing [13:18:54]execute_cgi json_proto POST (null) [13:18:54]execute_cgi path=json_proto method=POST [13:18:54]POST find Content-Length [13:18:54]Host: 172.17.44.67:8080 [13:18:54]Content-Length: 677 [13:18:54]Content-Type: application/json [13:18:54] [13:18:54]POST finish read [13:18:54]Found Content-Length = 677 [13:18:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:54]execute_script... [13:18: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)918865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:54]POST & json_proto [13:18:54]process_json_proto [13:18:54]json parsed OK: [13:18:54]protocol is kg_v1.0 [13:18:54]action value=close_receipt [13:18:54]process_action close_receipt [13:18:54]cmd_close_receipt [13:18:54]MH_GetDate [13:18:54]Write to MH i2c: F0 00 00 27 06 1C [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: F0 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: F0 09 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: F0 09 00 27 06 00 3E 60 12 67 F1 C7 6B 64 C3 [13:18:54]GetLastDocTimeStamp 1729257133 [13:18:54]current date 1729257534 [13:18:54]FM_GetShiftState [13:18:54]SAM_PROTO_GetShiftState [13:18:54]wFMCommunicate request_size=4 [13:18:54]MH_SAM_APDU [13:18:54]CAPDU: 80 13 01 00 [13:18:54]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [13:18:54]Write i2c OK [13:18:54]MH_I2C_Read... [13:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:54]Read from MH i2c: E2 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 0E 00 [13:18:54]MH_I2C_Read... [13:18:54]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 7D [13:18:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:18:54]wFMCommunicate OK [13:18:54]SAM_PROTO_GetShiftState done [13:18:54]FM_GetShiftState done [13:18:54]opened in 1729212319 [13:18:54]opened+sec_in_day 1729298719 [13:18:54]quantity*price = 50041 [13:18:54]sum+1 = 50042 [13:18:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 79 18.10.2024 13:18 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82370 ФПД: 22692339654008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131855&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82370&fm=22692339654008&tin=02508201610067®Number=0000000000091680&sum=50000 [13:18:55]StoreToDocumentArchive [13:18:55]shift 526 fd 82370 [13:18:55]save to /storage/0526/doc_00082370 [13:18:55]save last doc name /storage/0526/doc_00082370 to /storage/kkm_last_doc_name [13:18:55]save OK [13:18:55]Clear old archive folders... [13:18:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:55]tlvbuf is 00A358B0 [13:18:55]SAM_PROTO_ClearQueue [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 09 00 00 [13:18:55]Write to MH i2c: E2 08 00 35 06 80 09 00 00 00 00 00 00 AD [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [13:18:55]RAPDU: 90 00 [13:18:55]wFMCommunicate OK [13:18:55]SAM_PROTO_ClearQueue done [13:18:55]KKMCreateOFDPacket [13:18:55]OFDProtocolAddRootSTLVToBuf [13:18:55]FM_MakeSignedData [13:18:55]FM_MakeSignedData [13:18:55]SAM_PROTO_SignData [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 0D 01 02 [13:18:55]Write to MH i2c: E2 08 00 36 06 80 0D 01 02 00 00 00 00 B5 [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [13:18:55]RAPDU: 90 00 [13:18:55]wFMCommunicate OK [13:18:55]wFMCommunicate request_size=255 [13:18:55]MH_SAM_APDU [13:18: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3F 60 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 41 01 00 35 04 06 00 14 [13:18:55]Write to MH i2c: E2 02 01 37 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3F 60 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 41 01 00 35 04 06 00 14 00 00 D0 [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [13:18:55]RAPDU: 90 00 [13:18:55]wFMCommunicate OK [13:18:55]wFMCommunicate request_size=10 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 0D 02 02 05 A3 78 D8 1D 78 [13:18:55]Write to MH i2c: E2 0D 00 38 06 80 0D 02 02 05 00 A3 78 D8 1D 78 00 00 4A [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [13:18:55]RAPDU: 90 00 [13:18:55]wFMCommunicate OK [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 0D 03 02 [13:18:55]Write to MH i2c: E2 08 00 39 06 80 0D 03 02 00 00 00 00 BA [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 0B 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 0B 00 39 06 00 6E 8A BA 83 48 69 CF 1C 90 00 8C [13:18:55]RAPDU: 6E 8A BA 83 48 69 CF 1C 90 00 [13:18:55]wFMCommunicate OK [13:18:55]SAM_PROTO_SignData done [13:18:55]FM_MakeSignedData done [13:18:55]CreateOFDProtocolMessage [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 11 00 00 [13:18:55]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 17 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 17 00 3A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0C [13:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:18:55]wFMCommunicate OK [13:18:55]CreateOFDProtocolMessage done [13:18:55]OFDSenderStorePacket 82370 [13:18:55]StoreOFDPacket docnum=82370 [13:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EB 0B 07 01 88 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3F 60 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 41 01 00 35 04 06 00 14 A3 78 D8 1D 78 6E 8A BA 83 48 69 CF 1C [13:18:55]CheckFolder [13:18:55]dirname=/storage/ofd_packets [13:18:55]CheckFolder done [13:18:55]ProducePacketName [13:18:55]name=ofd_packets/00082370 [13:18:55]NVStorageSaveData ofd_packets/00082370 [13:18:55]File name is /storage/ofd_packets/00082370 [13:18:55]Write 301 bytes [13:18:55]NVStorageSaveData done [13:18:55]OFDSenderStorePacket done [13:18:55]KKMCreateOFDPacket done [13:18:55]NVStorageSaveData kkm_last_timestamp [13:18:55]File name is /storage/kkm_last_timestamp [13:18:55]Write 4 bytes [13:18:55]NVStorageSaveData done [13:18:55]ExternCall_PrintAddStr [13:18:55]wPrintStart [13:18:55]Write to MH i2c: 01 00 00 3B 06 41 [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: 01 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: 01 07 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [13:18:55]RasterBufferAndPrint [13:18:55]line Счет N : (1)918865 [13:18:55]line ИНН: 02508201610067 [13:18:55]line Контрольно-Кассовый Чек [13:18:55]line ПРОДАЖА [13:18:55]line ТРК (МРК, ГНК) : 22 [13:18:55]line Товар: 2710124130 [13:18:55]line Аи-92-К-4 [13:18:55]line 7.480 * 66.90 [13:18:55]line = 500.41 [13:18:55]line НДС 12% НСП 1% [13:18:55]line > о реализуемом товаре [13:18:55]line ОКРУГЛЕНИЕ: -0.41 [13:18:55]line ИТОГО: 500.00 [13:18:55]line Внесено: 500.00 [13:18:55]line СДАЧА: 0.00 [13:18:55]line НСП 1% : 4.43 [13:18:55]line НДС 12% : 53.14 [13:18:55]line Наличными: 500.00 [13:18:55]line Безнал.: 0.00 [13:18:55]line Место: АЗС № 114 "Партнер Нефть" [13:18:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:18:55]line СНО: Общий режим [13:18:55]line Чек 79 18.10.2024 13:18 [13:18:55]line Смена: 526 ФФД: 1.0 [13:18:55]line ЗНМ: 0300000086 [13:18:55]line РНМ: 0000000000091680 [13:18:55]line Версия ККМ: 001 [13:18:55]line ФМ: 0000000000871843 [13:18:55]line ФД: 82370 [13:18:55]line ФПД: 22692339654008 [13:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131855&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82370&fm=22692339654008&tin=02508201610067®Number=0000000000091680&sum=50000 [13:18:55]written 0, free lines is 4095 [13:18:55]OFD Sender: Processing packet 82370 [packets to send 254, broken 253] [13:18:55]ProducePacketName [13:18:55]name=ofd_packets/00082370 [13:18:55]OFD Sender: To server: pG, [13:18:55]CommunicateWithHost lk.salyk.kg:30040 [13:18:55]ConnectInit lk.salyk.kg [13:18:56]Write to MH i2c: 01 00 00 66 06 6C [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: 01 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: 01 07 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: 01 07 00 66 06 00 00 00 00 00 CF 0C 4E [13:18:56]RasterBufferAndPrint [13:18:56]line [13:18:56]line [13:18:56]line [13:18:56]line [13:18:56]line [13:18:56]written 0, free lines is 3287 [13:18:56]MH_Cut [13:18:56]Write to MH i2c: D1 01 00 6D 06 01 45 [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: D1 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: D1 01 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: D1 01 00 6D 06 00 44 [13:18:56]Write to MH i2c: 01 00 00 6E 06 74 [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:57]*** Cut start [13:18:57]*** Partial cut [13:18:57]*** CUTSNS_PIN = 1 [13:18:57]*** CUTSNS_PIN = 0 [13:18:57]*** Brake cut motor [13:18:57]Read from MH i2c: 01 [13:18:57]MH_I2C_Read... [13:18:57]*** Stop cut motor [13:18:57]*** Cut end [13:18:57]Read from MH i2c: 01 07 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FF 0F 89 [13:18:57]process_action close_receipt done [13:18:57]requested_data is exist [13:18:57]produce_requested_data [13:18:57]requested_item fm.sn is exist - process it [13:18:57]wFMCommunicate request_size=4 [13:18:57]MH_SAM_APDU [13:18:57]CAPDU: 80 11 00 00 [13:18:57]Write to MH i2c: E2 08 00 6F 06 80 11 00 00 00 00 00 00 EF [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:57]Read from MH i2c: E2 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 17 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 17 00 6F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 41 [13:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:18:57]wFMCommunicate OK [13:18:57]requested_item fd.num is exist - process it [13:18:57]SAM_PROTO_GetFieldsCounters [13:18:57]wFMCommunicate request_size=4 [13:18:57]MH_SAM_APDU [13:18:57]CAPDU: 80 13 00 00 [13:18:57]Write to MH i2c: E2 08 00 70 06 80 13 00 00 00 00 00 00 F2 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 62 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 62 00 70 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [13:18:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:58]wFMCommunicate OK [13:18:58]SAM_PROTO_GetFieldsCounters done [13:18:58]requested_item shift.num is exist - process it [13:18:58]requested_item shift.opened is exist - process it [13:18:58]req_shift_opened [13:18:58]FM_GetShiftState [13:18:58]SAM_PROTO_GetShiftState [13:18:58]wFMCommunicate request_size=4 [13:18:58]MH_SAM_APDU [13:18:58]CAPDU: 80 13 01 00 [13:18:58]Write to MH i2c: E2 08 00 71 06 80 13 01 00 00 00 00 00 F4 [13:18:58]Write i2c OK [13:18:58]MH_I2C_Read... [13:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:58]Read from MH i2c: E2 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 0E 00 [13:18:58]MH_I2C_Read... [13:18:58]Read from MH i2c: E2 0E 00 71 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C6 [13:18:58]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:18:58]wFMCommunicate OK [13:18:58]SAM_PROTO_GetShiftState done [13:18:58]FM_GetShiftState done [13:18:58]req_shift_opened done [13:18:58]requested_item shift.open_date is exist - process it [13:18:58]req_shift_open_date [13:18:58]req_shift_open_date done [13:18:58]produce_requested_data done [13:18:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82370,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [13:18:58]process_action_free close_receipt [13:18:58]json_value_free [13:18:58]json_value_free done [13:18:58]process_json_proto returns [13:18:58]Send response to host [13:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82370,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [13:18:58]free response buf [13:18:58]execute_script done [13:18:58]execute_script returns [13:18:58]free content buf [13:18:58]Sock 8.Close socket [13:18:58]Sock 8.Thread stoped [13:18:58]Connected sock=9 [13:18:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EB 0B 07 01 88 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3F 60 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 41 01 00 35 04 06 00 14 A3 78 D8 1D 78 6E 8A BA 83 48 69 CF 1C [13:18:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F5 91 47 00 49 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C2 41 01 00 F4 03 04 00 7B 05 12 67 B6 04 01 00 00 73 30 00 FA 7F 2D AD 1D [13:18:59]CommunicateWithHost err = 0 [13:18:59]CheckOFDResponse [13:18:59]1017 (14) - 77093643461234 [13:18:59]1041 (16) - 0000000000871843 [13:18:59]1040 (4) - 82370 [13:18:59]1012 (4) - 18.10.2024 06:51 [13:18:59]1206 (1) - 0 [13:18:59]OFD Sender: Remove packet 82370 [13:18:59]ProducePacketName [13:18:59]name=ofd_packets/00082370 [13:18:59]NVStorageDeleteData [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:05]recv_with_timeout no data received [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:16]recv_with_timeout no data received [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:27]recv_with_timeout no data received [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:41]recv_with_timeout no data received [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:08]recv_with_timeout no data received [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:25]recv_with_timeout no data received [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:41]recv_with_timeout no data received [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:28]recv_with_timeout no data received [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:03]accept exits with 10 [13:31:03]New connection [13:31:03]New thread 3067215204 created [13:31:03]Thread 3067071844 joined [13:31:03]Waiting for new connection... [13:31:03] Sock 10.Parse request [13:31:03]Sock 10.Check first char [13:31:03]Sock 10.First char is OK [13:31:03]request: POST /json_proto HTTP/1.0 [13:31:03]Method: POST [13:31:03]URL: /json_proto [13:31:03]Method is POST - this is cgi request [13:31:03]url: /json_proto [13:31:03]query_string will be loaded in cgi processing [13:31:03]execute_cgi json_proto POST (null) [13:31:03]execute_cgi path=json_proto method=POST [13:31:03]POST find Content-Length [13:31:03]Host: 172.17.44.67:8080 [13:31:03]Content-Length: 754 [13:31:03]Content-Type: application/json [13:31:03] [13:31:03]POST finish read [13:31:03]Found Content-Length = 754 [13:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:03]execute_script... [13:31:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:03]POST & json_proto [13:31:03]process_json_proto [13:31:03]json parsed OK: [13:31:03]protocol is kg_v1.0 [13:31:03]action value=close_receipt [13:31:03]process_action close_receipt [13:31:03]cmd_close_receipt [13:31:03]MH_GetDate [13:31:03]Write to MH i2c: F0 00 00 72 06 67 [13:31:03]Write i2c OK [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: F0 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: F0 09 00 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: F0 09 00 72 06 00 17 63 12 67 F1 C7 6B 64 EA [13:31:03]GetLastDocTimeStamp 1729257535 [13:31:03]current date 1729258263 [13:31:03]FM_GetShiftState [13:31:03]SAM_PROTO_GetShiftState [13:31:03]wFMCommunicate request_size=4 [13:31:03]MH_SAM_APDU [13:31:03]CAPDU: 80 13 01 00 [13:31:03]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [13:31:03]Write i2c OK [13:31:03]MH_I2C_Read... [13:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:03]Read from MH i2c: E2 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 0E 00 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C8 [13:31:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:31:03]wFMCommunicate OK [13:31:03]SAM_PROTO_GetShiftState done [13:31:03]FM_GetShiftState done [13:31:03]opened in 1729212319 [13:31:03]opened+sec_in_day 1729298719 [13:31:03]quantity*price = 0 [13:31:03]sum+1 = 1 [13:31:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 80 18.10.2024 13:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30053245 ФМ: 0000000000871843 ФД: 82371 ФПД: 80378717370673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T133103&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82371&fm=80378717370673&tin=02508201610067®Number=0000000000091680&sum=0 [13:31:04]StoreToDocumentArchive [13:31:04]shift 526 fd 82371 [13:31:04]save to /storage/0526/doc_00082371 [13:31:04]save last doc name /storage/0526/doc_00082371 to /storage/kkm_last_doc_name [13:31:04]save OK [13:31:04]Clear old archive folders... [13:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:04]tlvbuf is 00AAE320 [13:31:04]SAM_PROTO_ClearQueue [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 09 00 00 [13:31:04]Write to MH i2c: E2 08 00 80 06 80 09 00 00 00 00 00 00 F8 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]SAM_PROTO_ClearQueue done [13:31:04]KKMCreateOFDPacket [13:31:04]OFDProtocolAddRootSTLVToBuf [13:31:04]FM_MakeSignedData [13:31:04]FM_MakeSignedData [13:31:04]SAM_PROTO_SignData [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 0D 01 02 [13:31:04]Write to MH i2c: E2 08 00 81 06 80 0D 01 02 00 00 00 00 00 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]wFMCommunicate request_size=255 [13:31:04]MH_SAM_APDU [13:31: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 17 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 41 01 00 35 04 06 00 49 [13:31:04]Write to MH i2c: E2 02 01 82 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 17 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 41 01 00 35 04 06 00 49 00 00 16 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]wFMCommunicate request_size=10 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 0D 02 02 05 1A A0 E5 79 31 [13:31:04]Write to MH i2c: E2 0D 00 83 06 80 0D 02 02 05 00 1A A0 E5 79 31 00 00 56 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [13:31:04]RAPDU: 90 00 [13:31:04]wFMCommunicate OK [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 0D 03 02 [13:31:04]Write to MH i2c: E2 08 00 84 06 80 0D 03 02 00 00 00 00 05 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 0B 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 0B 00 84 06 00 B0 01 41 70 19 79 91 E9 90 00 74 [13:31:04]RAPDU: B0 01 41 70 19 79 91 E9 90 00 [13:31:04]wFMCommunicate OK [13:31:04]SAM_PROTO_SignData done [13:31:04]FM_MakeSignedData done [13:31:04]CreateOFDProtocolMessage [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 11 00 00 [13:31:04]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 17 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 17 00 85 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 57 [13:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:31:04]wFMCommunicate OK [13:31:04]CreateOFDProtocolMessage done [13:31:04]OFDSenderStorePacket 82371 [13:31:04]StoreOFDPacket docnum=82371 [13:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 63 4C 07 01 18 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 17 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 41 01 00 35 04 06 00 49 1A A0 E5 79 31 B0 01 41 70 19 79 91 E9 [13:31:04]CheckFolder [13:31:04]dirname=/storage/ofd_packets [13:31:04]CheckFolder done [13:31:04]ProducePacketName [13:31:04]name=ofd_packets/00082371 [13:31:04]NVStorageSaveData ofd_packets/00082371 [13:31:04]File name is /storage/ofd_packets/00082371 [13:31:04]Write 301 bytes [13:31:04]NVStorageSaveData done [13:31:04]OFDSenderStorePacket done [13:31:04]KKMCreateOFDPacket done [13:31:04]NVStorageSaveData kkm_last_timestamp [13:31:04]File name is /storage/kkm_last_timestamp [13:31:04]Write 4 bytes [13:31:04]NVStorageSaveData done [13:31:04]ExternCall_PrintAddStr [13:31:04]wPrintStart [13:31:04]Write to MH i2c: 01 00 00 86 06 8C [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 07 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [13:31:04]RasterBufferAndPrint [13:31:04]line Счет N : (1)918866 [13:31:04]line ИНН: 02508201610067 [13:31:04]line Контрольно-Кассовый Чек [13:31:04]line ПРОДАЖА [13:31:04]line ТРК (МРК, ГНК) : 22 [13:31:04]line Товар: 2710124130 [13:31:04]line Аи-92-К-4 [13:31:04]line 20.000 * 0.00 [13:31:04]line = 0.00 [13:31:04]line НДС 12% НСП 1% [13:31:04]line > о реализуемом товаре [13:31:04]line ИТОГО: 0.00 [13:31:04]line НСП 1% : 0.00 [13:31:04]line НДС 12% : 0.00 [13:31:04]line Наличными: 0.00 [13:31:04]line Безнал.: 0.00 [13:31:04]line Место: АЗС № 114 "Партнер Нефть" [13:31:04]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:31:04]line СНО: Общий режим [13:31:04]line Чек 80 18.10.2024 13:31 [13:31:04]line Смена: 526 ФФД: 1.0 [13:31:04]line ЗНМ: 0300000086 [13:31:04]line РНМ: 0000000000091680 [13:31:04]line Версия ККМ: 001 [13:31:04]line Талоны: ТК ГПНА Online [13:31:04]line 30053245 [13:31:04]line ФМ: 0000000000871843 [13:31:04]line ФД: 82371 [13:31:04]line ФПД: 80378717370673 [13:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T133103&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82371&fm=80378717370673&tin=02508201610067®Number=0000000000091680&sum=0 [13:31:04]written 0, free lines is 4095 [13:31:04]OFD Sender: Processing packet 82371 [packets to send 254, broken 253] [13:31:04]ProducePacketName [13:31:04]name=ofd_packets/00082371 [13:31:04]OFD Sender: To server: pG, [13:31:04]CommunicateWithHost lk.salyk.kg:30040 [13:31:04]ConnectInit lk.salyk.kg [13:31:05]Write to MH i2c: 01 00 00 B0 06 B6 [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: 01 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: 01 07 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: 01 07 00 B0 06 00 00 00 00 00 DA 0C A3 [13:31:05]RasterBufferAndPrint [13:31:05]line [13:31:05]line [13:31:05]line [13:31:05]line [13:31:05]line [13:31:05]written 0, free lines is 3296 [13:31:05]MH_Cut [13:31:05]Write to MH i2c: D1 01 00 B7 06 01 8F [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: D1 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: D1 01 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: D1 01 00 B7 06 00 8E [13:31:05]Write to MH i2c: 01 00 00 B8 06 BE [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** Cut start [13:31:05]*** Partial cut [13:31:05]*** CUTSNS_PIN = 1 [13:31:06]*** CUTSNS_PIN = 0 [13:31:06]Connected sock=9 [13:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 63 4C 07 01 18 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 17 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 41 01 00 35 04 06 00 49 1A A0 E5 79 31 B0 01 41 70 19 79 91 E9 [13:31:06]*** Brake cut motor [13:31:06]Read from MH i2c: 01 [13:31:06]MH_I2C_Read... [13:31:06]*** Stop cut motor [13:31:06]*** Cut end [13:31:06]Read from MH i2c: 01 07 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 07 00 B8 06 00 00 00 00 00 FF 0F D3 [13:31:06]process_action close_receipt done [13:31:06]requested_data is exist [13:31:06]produce_requested_data [13:31:06]requested_item fm.sn is exist - process it [13:31:06]wFMCommunicate request_size=4 [13:31:06]MH_SAM_APDU [13:31:06]CAPDU: 80 11 00 00 [13:31:06]Write to MH i2c: E2 08 00 B9 06 80 11 00 00 00 00 00 00 39 [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 [13:31:06]MH_I2C_Read... [13:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:06]Read from MH i2c: E2 17 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 17 00 B9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8B [13:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:31:06]wFMCommunicate OK [13:31:06]requested_item fd.num is exist - process it [13:31:06]SAM_PROTO_GetFieldsCounters [13:31:06]wFMCommunicate request_size=4 [13:31:06]MH_SAM_APDU [13:31:06]CAPDU: 80 13 00 00 [13:31:06]Write to MH i2c: E2 08 00 BA 06 80 13 00 00 00 00 00 00 3C [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:06]Read from MH i2c: E2 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 62 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 62 00 BA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [13:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:06]wFMCommunicate OK [13:31:06]SAM_PROTO_GetFieldsCounters done [13:31:06]requested_item shift.num is exist - process it [13:31:06]requested_item shift.opened is exist - process it [13:31:06]req_shift_opened [13:31:06]FM_GetShiftState [13:31:06]SAM_PROTO_GetShiftState [13:31:06]wFMCommunicate request_size=4 [13:31:06]MH_SAM_APDU [13:31:06]CAPDU: 80 13 01 00 [13:31:06]Write to MH i2c: E2 08 00 BB 06 80 13 01 00 00 00 00 00 3E [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:06]Read from MH i2c: E2 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 0E 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: E2 0E 00 BB 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 10 [13:31:06]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:31:06]wFMCommunicate OK [13:31:06]SAM_PROTO_GetShiftState done [13:31:06]FM_GetShiftState done [13:31:06]req_shift_opened done [13:31:06]requested_item shift.open_date is exist - process it [13:31:06]req_shift_open_date [13:31:06]req_shift_open_date done [13:31:06]produce_requested_data done [13:31:06]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82371,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [13:31:06]process_action_free close_receipt [13:31:06]json_value_free [13:31:06]json_value_free done [13:31:06]process_json_proto returns [13:31:06]Send response to host [13:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82371,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [13:31:06]free response buf [13:31:06]execute_script done [13:31:06]execute_script returns [13:31:06]free content buf [13:31:06]Sock 10.Close socket [13:31:06]Sock 10.Thread stoped [13:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AC 64 47 00 51 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C3 41 01 00 F4 03 04 00 53 08 12 67 B6 04 01 00 00 38 86 AB D7 5A 68 DD BF [13:31:07]CommunicateWithHost err = 0 [13:31:07]CheckOFDResponse [13:31:07]1017 (14) - 77093643461234 [13:31:07]1041 (16) - 0000000000871843 [13:31:07]1040 (4) - 82371 [13:31:07]1012 (4) - 18.10.2024 07:03 [13:31:07]1206 (1) - 0 [13:31:07]OFD Sender: Remove packet 82371 [13:31:07]ProducePacketName [13:31:07]name=ofd_packets/00082371 [13:31:07]NVStorageDeleteData [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:13]recv_with_timeout no data received [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:23]recv_with_timeout no data received [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:34]recv_with_timeout no data received [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:05]accept exits with 8 [13:33:05]New connection [13:33:05]New thread 3067071844 created [13:33:05]Thread 3067215204 joined [13:33:05]Waiting for new connection... [13:33:05] Sock 8.Parse request [13:33:05]Sock 8.Check first char [13:33:05]Sock 8.First char is OK [13:33:05]request: POST /json_proto HTTP/1.0 [13:33:05]Method: POST [13:33:05]URL: /json_proto [13:33:05]Method is POST - this is cgi request [13:33:05]url: /json_proto [13:33:05]query_string will be loaded in cgi processing [13:33:05]execute_cgi json_proto POST (null) [13:33:05]execute_cgi path=json_proto method=POST [13:33:05]POST find Content-Length [13:33:05]Host: 172.17.44.67:8080 [13:33:05]Content-Length: 759 [13:33:05]Content-Type: application/json [13:33:05] [13:33:05]POST finish read [13:33:05]Found Content-Length = 759 [13:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30130720", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:05]execute_script... [13:33: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)918867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30130720", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:05]POST & json_proto [13:33:05]process_json_proto [13:33:05]json parsed OK: [13:33:05]protocol is kg_v1.0 [13:33:05]action value=close_receipt [13:33:05]process_action close_receipt [13:33:05]cmd_close_receipt [13:33:05]MH_GetDate [13:33:05]Write to MH i2c: F0 00 00 BC 06 B1 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: F0 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: F0 09 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: F0 09 00 BC 06 00 91 63 12 67 F1 C7 6B 64 AE [13:33:05]GetLastDocTimeStamp 1729258263 [13:33:05]current date 1729258385 [13:33:05]FM_GetShiftState [13:33:05]SAM_PROTO_GetShiftState [13:33:05]wFMCommunicate request_size=4 [13:33:05]MH_SAM_APDU [13:33:05]CAPDU: 80 13 01 00 [13:33:05]Write to MH i2c: E2 08 00 BD 06 80 13 01 00 00 00 00 00 40 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:05]Read from MH i2c: E2 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0E 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: E2 0E 00 BD 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 12 [13:33:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:33:05]wFMCommunicate OK [13:33:05]SAM_PROTO_GetShiftState done [13:33:05]FM_GetShiftState done [13:33:05]opened in 1729212319 [13:33:05]opened+sec_in_day 1729298719 [13:33:05]quantity*price = 0 [13:33:05]sum+1 = 1 [13:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 81 18.10.2024 13:33 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30130720 ФМ: 0000000000871843 ФД: 82372 ФПД: 69214969740315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T133305&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82372&fm=69214969740315&tin=02508201610067®Number=0000000000091680&sum=0 [13:33:06]StoreToDocumentArchive [13:33:06]shift 526 fd 82372 [13:33:06]save to /storage/0526/doc_00082372 [13:33:06]save last doc name /storage/0526/doc_00082372 to /storage/kkm_last_doc_name [13:33:06]save OK [13:33:06]Clear old archive folders... [13:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:33:06]tlvbuf is 00AC6900 [13:33:06]SAM_PROTO_ClearQueue [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 09 00 00 [13:33:06]Write to MH i2c: E2 08 00 CA 06 80 09 00 00 00 00 00 00 42 [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [13:33:06]RAPDU: 90 00 [13:33:06]wFMCommunicate OK [13:33:06]SAM_PROTO_ClearQueue done [13:33:06]KKMCreateOFDPacket [13:33:06]OFDProtocolAddRootSTLVToBuf [13:33:06]FM_MakeSignedData [13:33:06]FM_MakeSignedData [13:33:06]SAM_PROTO_SignData [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 0D 01 02 [13:33:06]Write to MH i2c: E2 08 00 CB 06 80 0D 01 02 00 00 00 00 4A [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [13:33:06]RAPDU: 90 00 [13:33:06]wFMCommunicate OK [13:33:06]wFMCommunicate request_size=255 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 41 01 00 35 04 06 00 [13:33:06]Write to MH i2c: E2 02 01 CC 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 41 01 00 35 04 06 00 00 00 06 [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [13:33:06]RAPDU: 90 00 [13:33:06]wFMCommunicate OK [13:33:06]wFMCommunicate request_size=11 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 0D 02 02 06 3E F3 5D AF 3C 1B [13:33:06]Write to MH i2c: E2 0E 00 CD 06 80 0D 02 02 06 00 3E F3 5D AF 3C 1B 00 00 ED [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [13:33:06]RAPDU: 90 00 [13:33:06]wFMCommunicate OK [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 0D 03 02 [13:33:06]Write to MH i2c: E2 08 00 CE 06 80 0D 03 02 00 00 00 00 4F [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 0B 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 0B 00 CE 06 00 D8 58 07 73 E4 67 FF D5 90 00 19 [13:33:06]RAPDU: D8 58 07 73 E4 67 FF D5 90 00 [13:33:06]wFMCommunicate OK [13:33:06]SAM_PROTO_SignData done [13:33:06]FM_MakeSignedData done [13:33:06]CreateOFDProtocolMessage [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 11 00 00 [13:33:06]Write to MH i2c: E2 08 00 CF 06 80 11 00 00 00 00 00 00 4F [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 17 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 17 00 CF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A1 [13:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:33:06]wFMCommunicate OK [13:33:06]CreateOFDProtocolMessage done [13:33:06]OFDSenderStorePacket 82372 [13:33:06]StoreOFDPacket docnum=82372 [13:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 87 48 08 01 CB 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 41 01 00 35 04 06 00 3E F3 5D AF 3C 1B D8 58 07 73 E4 67 FF D5 [13:33:06]CheckFolder [13:33:06]dirname=/storage/ofd_packets [13:33:06]CheckFolder done [13:33:06]ProducePacketName [13:33:06]name=ofd_packets/00082372 [13:33:06]NVStorageSaveData ofd_packets/00082372 [13:33:06]File name is /storage/ofd_packets/00082372 [13:33:06]Write 302 bytes [13:33:06]NVStorageSaveData done [13:33:06]OFDSenderStorePacket done [13:33:06]KKMCreateOFDPacket done [13:33:06]NVStorageSaveData kkm_last_timestamp [13:33:06]File name is /storage/kkm_last_timestamp [13:33:06]Write 4 bytes [13:33:06]NVStorageSaveData done [13:33:06]ExternCall_PrintAddStr [13:33:06]wPrintStart [13:33:06]Write to MH i2c: 01 00 00 D0 06 D6 [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: 01 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: 01 07 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 FF 0F EB [13:33:06]RasterBufferAndPrint [13:33:06]line Счет N : (1)918867 [13:33:06]line ИНН: 02508201610067 [13:33:06]line Контрольно-Кассовый Чек [13:33:06]line ПРОДАЖА [13:33:06]line ТРК (МРК, ГНК) : 31 [13:33:06]line Товар: 2710194210 [13:33:06]line ДТ(л)-К-5 [13:33:06]line 30.000 * 0.00 [13:33:06]line = 0.00 [13:33:06]line НДС 12% НСП 1% [13:33:06]line > о реализуемом товаре [13:33:06]line ИТОГО: 0.00 [13:33:06]line НСП 1% : 0.00 [13:33:06]line НДС 12% : 0.00 [13:33:06]line Наличными: 0.00 [13:33:06]line Безнал.: 0.00 [13:33:06]line Место: АЗС № 114 "Партнер Нефть" [13:33:06]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:33:06]line СНО: Общий режим [13:33:06]line Чек 81 18.10.2024 13:33 [13:33:06]line Смена: 526 ФФД: 1.0 [13:33:06]line ЗНМ: 0300000086 [13:33:06]line РНМ: 0000000000091680 [13:33:06]line Версия ККМ: 001 [13:33:06]line Талоны: ТК ГПНА Online [13:33:06]line 30130720 [13:33:06]line ФМ: 0000000000871843 [13:33:06]line ФД: 82372 [13:33:06]line ФПД: 69214969740315 [13:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T133305&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82372&fm=69214969740315&tin=02508201610067®Number=0000000000091680&sum=0 [13:33:06]written 0, free lines is 4095 [13:33:06]OFD Sender: Processing packet 82372 [packets to send 254, broken 253] [13:33:06]ProducePacketName [13:33:06]name=ofd_packets/00082372 [13:33:06]OFD Sender: To server: pG, [13:33:06]CommunicateWithHost lk.salyk.kg:30040 [13:33:06]ConnectInit lk.salyk.kg [13:33:07]Write to MH i2c: 01 00 00 FA 06 00 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: 01 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: 01 07 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: 01 07 00 FA 06 00 00 00 00 00 E0 0C F3 [13:33:07]RasterBufferAndPrint [13:33:07]line [13:33:07]line [13:33:07]line [13:33:07]line [13:33:07]line [13:33:07]written 0, free lines is 3302 [13:33:07]MH_Cut [13:33:07]Write to MH i2c: D1 01 00 01 07 01 DA [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: D1 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: D1 01 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: D1 01 00 01 07 00 D9 [13:33:07]Write to MH i2c: 01 00 00 02 07 09 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]Connected sock=9 [13:33:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 87 48 08 01 CB 2E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 91 63 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 41 01 00 35 04 06 00 3E F3 5D AF 3C 1B D8 58 07 73 E4 67 FF D5 [13:33:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 23 53 47 00 9A FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C4 41 01 00 F4 03 04 00 CC 08 12 67 B6 04 01 00 00 06 0B 82 46 5B 22 F9 99 [13:33:07]CommunicateWithHost err = 0 [13:33:07]CheckOFDResponse [13:33:07]1017 (14) - 77093643461234 [13:33:07]1041 (16) - 0000000000871843 [13:33:07]1040 (4) - 82372 [13:33:07]1012 (4) - 18.10.2024 07:05 [13:33:07]1206 (1) - 0 [13:33:07]OFD Sender: Remove packet 82372 [13:33:07]ProducePacketName [13:33:07]name=ofd_packets/00082372 [13:33:07]NVStorageDeleteData [13:33:08]*** Cut start [13:33:08]*** Partial cut [13:33:08]*** CUTSNS_PIN = 1 [13:33:08]*** CUTSNS_PIN = 0 [13:33:08]*** Brake cut motor [13:33:08]OFD Sender: No OFD packet to send [13:33:08]Read from MH i2c: 01 [13:33:08]MH_I2C_Read... [13:33:08]*** Stop cut motor [13:33:08]*** Cut end [13:33:08]Read from MH i2c: 01 07 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: 01 07 00 02 07 00 00 00 00 00 FF 0F 1E [13:33:08]process_action close_receipt done [13:33:08]requested_data is exist [13:33:08]produce_requested_data [13:33:08]requested_item fm.sn is exist - process it [13:33:08]wFMCommunicate request_size=4 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 11 00 00 [13:33:08]Write to MH i2c: E2 08 00 03 07 80 11 00 00 00 00 00 00 84 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 17 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 17 00 03 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [13:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:33:08]wFMCommunicate OK [13:33:08]requested_item fd.num is exist - process it [13:33:08]SAM_PROTO_GetFieldsCounters [13:33:08]wFMCommunicate request_size=4 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 13 00 00 [13:33:08]Write to MH i2c: E2 08 00 04 07 80 13 00 00 00 00 00 00 87 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 62 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 62 00 04 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [13:33:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:08]wFMCommunicate OK [13:33:08]SAM_PROTO_GetFieldsCounters done [13:33:08]requested_item shift.num is exist - process it [13:33:08]requested_item shift.opened is exist - process it [13:33:08]req_shift_opened [13:33:08]FM_GetShiftState [13:33:08]SAM_PROTO_GetShiftState [13:33:08]wFMCommunicate request_size=4 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 13 01 00 [13:33:08]Write to MH i2c: E2 08 00 05 07 80 13 01 00 00 00 00 00 89 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 0E 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 0E 00 05 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 5B [13:33:08]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:33:08]wFMCommunicate OK [13:33:08]SAM_PROTO_GetShiftState done [13:33:08]FM_GetShiftState done [13:33:08]req_shift_opened done [13:33:08]requested_item shift.open_date is exist - process it [13:33:08]req_shift_open_date [13:33:08]req_shift_open_date done [13:33:08]produce_requested_data done [13:33:08]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82372,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [13:33:08]process_action_free close_receipt [13:33:08]json_value_free [13:33:08]json_value_free done [13:33:08]process_json_proto returns [13:33:08]Send response to host [13:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82372,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [13:33:08]free response buf [13:33:08]execute_script done [13:33:08]execute_script returns [13:33:08]free content buf [13:33:08]Sock 8.Close socket [13:33:08]Sock 8.Thread stoped [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:24]recv_with_timeout no data received [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:20]recv_with_timeout no data received [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:36]recv_with_timeout no data received [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:08]recv_with_timeout no data received [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:45]recv_with_timeout no data received [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:45]recv_with_timeout no data received [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49: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:56]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:06]recv_with_timeout no data received [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:20]recv_with_timeout no data received [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:14]accept exits with 10 [13:52:14]New connection [13:52:14]New thread 3067215204 created [13:52:14]Thread 3067071844 joined [13:52:14]Waiting for new connection... [13:52:14] Sock 10.Parse request [13:52:14]Sock 10.Check first char [13:52:14]Sock 10.First char is OK [13:52:14]request: POST /json_proto HTTP/1.0 [13:52:14]Method: POST [13:52:14]URL: /json_proto [13:52:14]Method is POST - this is cgi request [13:52:14]url: /json_proto [13:52:14]query_string will be loaded in cgi processing [13:52:14]execute_cgi json_proto POST (null) [13:52:14]execute_cgi path=json_proto method=POST [13:52:14]POST find Content-Length [13:52:14]Host: 172.17.44.67:8080 [13:52:14]Content-Length: 683 [13:52:14]Content-Type: application/json [13:52:14] [13:52:14]POST finish read [13:52:14]Found Content-Length = 683 [13:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:14]execute_script... [13:52: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)918868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:14]POST & json_proto [13:52:14]process_json_proto [13:52:14]json parsed OK: [13:52:14]protocol is kg_v1.0 [13:52:14]action value=close_receipt [13:52:14]process_action close_receipt [13:52:14]cmd_close_receipt [13:52:14]MH_GetDate [13:52:14]Write to MH i2c: F0 00 00 06 07 FC [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 09 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: F0 09 00 06 07 00 0F 68 12 67 F1 C7 6B 64 7C [13:52:14]GetLastDocTimeStamp 1729258385 [13:52:14]current date 1729259535 [13:52:14]FM_GetShiftState [13:52:14]SAM_PROTO_GetShiftState [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 13 01 00 [13:52:14]Write to MH i2c: E2 08 00 07 07 80 13 01 00 00 00 00 00 8B [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:14]Read from MH i2c: E2 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0E 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: E2 0E 00 07 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 5D [13:52:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:52:14]wFMCommunicate OK [13:52:14]SAM_PROTO_GetShiftState done [13:52:14]FM_GetShiftState done [13:52:14]opened in 1729212319 [13:52:14]opened+sec_in_day 1729298719 [13:52:14]quantity*price = 50025 [13:52:14]sum+1 = 50027 [13:52:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 82 18.10.2024 13:52 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82373 ФПД: 129051057361622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T135215&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82373&fm=129051057361622&tin=02508201610067®Number=0000000000091680&sum=50000 [13:52:15]StoreToDocumentArchive [13:52:15]shift 526 fd 82373 [13:52:15]save to /storage/0526/doc_00082373 [13:52:15]save last doc name /storage/0526/doc_00082373 to /storage/kkm_last_doc_name [13:52:15]save OK [13:52:15]Clear old archive folders... [13:52:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:52:15]tlvbuf is 00AADF60 [13:52:15]SAM_PROTO_ClearQueue [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 09 00 00 [13:52:15]Write to MH i2c: E2 08 00 14 07 80 09 00 00 00 00 00 00 8D [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [13:52:15]RAPDU: 90 00 [13:52:15]wFMCommunicate OK [13:52:15]SAM_PROTO_ClearQueue done [13:52:15]KKMCreateOFDPacket [13:52:15]OFDProtocolAddRootSTLVToBuf [13:52:15]FM_MakeSignedData [13:52:15]FM_MakeSignedData [13:52:15]SAM_PROTO_SignData [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 0D 01 02 [13:52:15]Write to MH i2c: E2 08 00 15 07 80 0D 01 02 00 00 00 00 95 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [13:52:15]RAPDU: 90 00 [13:52:15]wFMCommunicate OK [13:52:15]wFMCommunicate request_size=255 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0F 68 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 41 01 [13:52:15]Write to MH i2c: E2 02 01 16 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0F 68 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 41 01 00 00 B5 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]wFMCommunicate request_size=16 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 75 5F 0A 6E 92 D6 [13:52:16]Write to MH i2c: E2 13 00 17 07 80 0D 02 02 0B 00 00 35 04 06 00 75 5F 0A 6E 92 D6 00 00 A1 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [13:52:16]RAPDU: 90 00 [13:52:16]wFMCommunicate OK [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 0D 03 02 [13:52:16]Write to MH i2c: E2 08 00 18 07 80 0D 03 02 00 00 00 00 9A [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 0B 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 0B 00 18 07 00 E4 C1 AE E8 4C 6B 92 0E 90 00 2D [13:52:16]RAPDU: E4 C1 AE E8 4C 6B 92 0E 90 00 [13:52:16]wFMCommunicate OK [13:52:16]SAM_PROTO_SignData done [13:52:16]FM_MakeSignedData done [13:52:16]CreateOFDProtocolMessage [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 11 00 00 [13:52:16]Write to MH i2c: E2 08 00 19 07 80 11 00 00 00 00 00 00 9A [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:16]Read from MH i2c: E2 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 17 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: E2 17 00 19 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EC [13:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:52:16]wFMCommunicate OK [13:52:16]CreateOFDProtocolMessage done [13:52:16]OFDSenderStorePacket 82373 [13:52:16]StoreOFDPacket docnum=82373 [13:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 DC 73 0D 01 25 BF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0F 68 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 41 01 00 35 04 06 00 75 5F 0A 6E 92 D6 E4 C1 AE E8 4C 6B 92 0E [13:52:16]CheckFolder [13:52:16]dirname=/storage/ofd_packets [13:52:16]CheckFolder done [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00082373 [13:52:16]NVStorageSaveData ofd_packets/00082373 [13:52:16]File name is /storage/ofd_packets/00082373 [13:52:16]Write 307 bytes [13:52:16]NVStorageSaveData done [13:52:16]OFDSenderStorePacket done [13:52:16]KKMCreateOFDPacket done [13:52:16]NVStorageSaveData kkm_last_timestamp [13:52:16]File name is /storage/kkm_last_timestamp [13:52:16]Write 4 bytes [13:52:16]NVStorageSaveData done [13:52:16]ExternCall_PrintAddStr [13:52:16]wPrintStart [13:52:16]Write to MH i2c: 01 00 00 1A 07 21 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FF 0F 36 [13:52:16]RasterBufferAndPrint [13:52:16]line Счет N : (1)918868 [13:52:16]line ИНН: 02508201610067 [13:52:16]line Контрольно-Кассовый Чек [13:52:16]line ПРОДАЖА [13:52:16]line ТРК (МРК, ГНК) : 21 [13:52:16]line Товар: 2710194800 [13:52:16]line D-Energy ДТ-К-2 [13:52:16]line 6.480 * 77.20 [13:52:16]line = 500.26 [13:52:16]line НДС 12% НСП 1% [13:52:16]line > о реализуемом товаре [13:52:16]line ОКРУГЛЕНИЕ: -0.26 [13:52:16]line ИТОГО: 500.00 [13:52:16]line Внесено: 500.00 [13:52:16]line СДАЧА: 0.00 [13:52:16]line НСП 1% : 4.43 [13:52:16]line НДС 12% : 53.12 [13:52:16]line Наличными: 500.00 [13:52:16]line Безнал.: 0.00 [13:52:16]line Место: АЗС № 114 "Партнер Нефть" [13:52:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [13:52:16]line СНО: Общий режим [13:52:16]line Чек 82 18.10.2024 13:52 [13:52:16]line Смена: 526 ФФД: 1.0 [13:52:16]line ЗНМ: 0300000086 [13:52:16]line РНМ: 0000000000091680 [13:52:16]line Версия ККМ: 001 [13:52:16]line ФМ: 0000000000871843 [13:52:16]line ФД: 82373 [13:52:16]line ФПД: 129051057361622 [13:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T135215&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82373&fm=129051057361622&tin=02508201610067®Number=0000000000091680&sum=50000 [13:52:16]written 0, free lines is 4095 [13:52:16]OFD Sender: Processing packet 82373 [packets to send 254, broken 253] [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00082373 [13:52:16]OFD Sender: To server: pG, [13:52:16]CommunicateWithHost lk.salyk.kg:30040 [13:52:16]ConnectInit lk.salyk.kg [13:52:16]Write to MH i2c: 01 00 00 45 07 4C [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 45 07 00 00 00 00 00 E6 0C 45 [13:52:16]RasterBufferAndPrint [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]written 0, free lines is 3308 [13:52:16]MH_Cut [13:52:16]Write to MH i2c: D1 01 00 4C 07 01 25 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 01 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 01 00 4C 07 00 24 [13:52:16]Write to MH i2c: 01 00 00 4D 07 54 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:17]*** Cut start [13:52:17]*** Partial cut [13:52:17]*** CUTSNS_PIN = 1 [13:52:17]*** CUTSNS_PIN = 0 [13:52:17]*** Brake cut motor [13:52:18]Read from MH i2c: 01 [13:52:18]MH_I2C_Read... [13:52:18]*** Stop cut motor [13:52:18]*** Cut end [13:52:18]Read from MH i2c: 01 07 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 FF 0F 69 [13:52:18]process_action close_receipt done [13:52:18]requested_data is exist [13:52:18]produce_requested_data [13:52:18]requested_item fm.sn is exist - process it [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 11 00 00 [13:52:18]Write to MH i2c: E2 08 00 4E 07 80 11 00 00 00 00 00 00 CF [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 17 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 17 00 4E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 21 [13:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [13:52:18]wFMCommunicate OK [13:52:18]requested_item fd.num is exist - process it [13:52:18]SAM_PROTO_GetFieldsCounters [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 13 00 00 [13:52:18]Write to MH i2c: E2 08 00 4F 07 80 13 00 00 00 00 00 00 D2 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 62 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 62 00 4F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [13:52:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:18]wFMCommunicate OK [13:52:18]SAM_PROTO_GetFieldsCounters done [13:52:18]requested_item shift.num is exist - process it [13:52:18]requested_item shift.opened is exist - process it [13:52:18]req_shift_opened [13:52:18]FM_GetShiftState [13:52:18]SAM_PROTO_GetShiftState [13:52:18]wFMCommunicate request_size=4 [13:52:18]MH_SAM_APDU [13:52:18]CAPDU: 80 13 01 00 [13:52:18]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:18]Read from MH i2c: E2 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 0E 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A6 [13:52:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [13:52:18]wFMCommunicate OK [13:52:18]SAM_PROTO_GetShiftState done [13:52:18]FM_GetShiftState done [13:52:18]req_shift_opened done [13:52:18]requested_item shift.open_date is exist - process it [13:52:18]req_shift_open_date [13:52:18]req_shift_open_date done [13:52:18]produce_requested_data done [13:52:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82373,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [13:52:18]process_action_free close_receipt [13:52:18]json_value_free [13:52:18]json_value_free done [13:52:18]process_json_proto returns [13:52:18]Send response to host [13:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82373,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [13:52:18]free response buf [13:52:18]execute_script done [13:52:18]execute_script returns [13:52:18]free content buf [13:52:18]Sock 10.Close socket [13:52:18]Sock 10.Thread stoped [13:52:18]Connected sock=11 [13:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 DC 73 0D 01 25 BF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0F 68 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 41 01 00 35 04 06 00 75 5F 0A 6E 92 D6 E4 C1 AE E8 4C 6B 92 0E [13:52:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 BC 72 47 00 0F 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C5 41 01 00 F4 03 04 00 4B 0D 12 67 B6 04 01 00 00 6F 64 4E 91 FF 1D B9 B2 [13:52:19]CommunicateWithHost err = 0 [13:52:19]CheckOFDResponse [13:52:19]1017 (14) - 77093643461234 [13:52:19]1041 (16) - 0000000000871843 [13:52:19]1040 (4) - 82373 [13:52:19]1012 (4) - 18.10.2024 07:24 [13:52:19]1206 (1) - 0 [13:52:19]OFD Sender: Remove packet 82373 [13:52:19]ProducePacketName [13:52:19]name=ofd_packets/00082373 [13:52:19]NVStorageDeleteData [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]recv_with_timeout no data received [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:42]recv_with_timeout no data received [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:53]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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]recv_with_timeout no data received [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:50]OFD Sender: No OFD packet to send [13:55:52]recv_with_timeout no data received [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:09]recv_with_timeout no data received [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:32]recv_with_timeout no data received [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:45]recv_with_timeout no data received [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:04]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:29]recv_with_timeout no data received [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:14]recv_with_timeout no data received [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:26]recv_with_timeout no data received [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06: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:09]recv_with_timeout no data received [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:37]recv_with_timeout no data received [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17: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:01]recv_with_timeout no data received [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:02]recv_with_timeout no data received [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:49]recv_with_timeout no data received [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:25]recv_with_timeout no data received [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]recv_with_timeout no data received [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:25]accept exits with 9 [14:30:25]New connection [14:30:25]New thread 3067071844 created [14:30:25]Thread 3067215204 joined [14:30:25]Waiting for new connection... [14:30:25] Sock 9.Parse request [14:30:25]Sock 9.Check first char [14:30:25]Sock 9.First char is OK [14:30:25]request: POST /json_proto HTTP/1.0 [14:30:25]Method: POST [14:30:25]URL: /json_proto [14:30:25]Method is POST - this is cgi request [14:30:25]url: /json_proto [14:30:25]query_string will be loaded in cgi processing [14:30:25]execute_cgi json_proto POST (null) [14:30:25]execute_cgi path=json_proto method=POST [14:30:25]POST find Content-Length [14:30:25]Host: 172.17.44.67:8080 [14:30:25]Content-Length: 682 [14:30:25]Content-Type: application/json [14:30:25] [14:30:25]POST finish read [14:30:25]Found Content-Length = 682 [14:30:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:25]execute_script... [14:30: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)918869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:25]POST & json_proto [14:30:25]process_json_proto [14:30:25]json parsed OK: [14:30:25]protocol is kg_v1.0 [14:30:25]action value=close_receipt [14:30:25]process_action close_receipt [14:30:25]cmd_close_receipt [14:30:25]MH_GetDate [14:30:25]Write to MH i2c: F0 00 00 51 07 47 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: F0 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: F0 09 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: F0 09 00 51 07 00 02 71 12 67 F1 C7 6B 64 C3 [14:30:25]GetLastDocTimeStamp 1729259535 [14:30:25]current date 1729261826 [14:30:25]FM_GetShiftState [14:30:25]SAM_PROTO_GetShiftState [14:30:25]wFMCommunicate request_size=4 [14:30:25]MH_SAM_APDU [14:30:25]CAPDU: 80 13 01 00 [14:30:25]Write to MH i2c: E2 08 00 52 07 80 13 01 00 00 00 00 00 D6 [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:25]Read from MH i2c: E2 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 0E 00 [14:30:25]MH_I2C_Read... [14:30:25]Read from MH i2c: E2 0E 00 52 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A8 [14:30:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:30:25]wFMCommunicate OK [14:30:25]SAM_PROTO_GetShiftState done [14:30:25]FM_GetShiftState done [14:30:25]opened in 1729212319 [14:30:25]opened+sec_in_day 1729298719 [14:30:25]quantity*price = 100015 [14:30:25]sum+1 = 100017 [14:30:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 83 18.10.2024 14:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82374 ФПД: 126828806860581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143026&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82374&fm=126828806860581&tin=02508201610067®Number=0000000000091680&sum=100000 [14:30:26]StoreToDocumentArchive [14:30:26]shift 526 fd 82374 [14:30:26]save to /storage/0526/doc_00082374 [14:30:26]save last doc name /storage/0526/doc_00082374 to /storage/kkm_last_doc_name [14:30:26]save OK [14:30:26]Clear old archive folders... [14:30:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:26]tlvbuf is 00AC7A00 [14:30:26]SAM_PROTO_ClearQueue [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 09 00 00 [14:30:26]Write to MH i2c: E2 08 00 5F 07 80 09 00 00 00 00 00 00 D8 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [14:30:26]RAPDU: 90 00 [14:30:26]wFMCommunicate OK [14:30:26]SAM_PROTO_ClearQueue done [14:30:26]KKMCreateOFDPacket [14:30:26]OFDProtocolAddRootSTLVToBuf [14:30:26]FM_MakeSignedData [14:30:26]FM_MakeSignedData [14:30:26]SAM_PROTO_SignData [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 0D 01 02 [14:30:26]Write to MH i2c: E2 08 00 60 07 80 0D 01 02 00 00 00 00 E0 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [14:30:26]RAPDU: 90 00 [14:30:26]wFMCommunicate OK [14:30:26]wFMCommunicate request_size=255 [14:30:26]MH_SAM_APDU [14:30: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 02 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 41 01 00 35 04 06 00 73 [14:30:26]Write to MH i2c: E2 02 01 61 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 02 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 41 01 00 35 04 06 00 73 00 00 30 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [14:30:26]RAPDU: 90 00 [14:30:26]wFMCommunicate OK [14:30:26]wFMCommunicate request_size=10 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 0D 02 02 05 59 A1 FA EF 25 [14:30:26]Write to MH i2c: E2 0D 00 62 07 80 0D 02 02 05 00 59 A1 FA EF 25 00 00 F5 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [14:30:26]RAPDU: 90 00 [14:30:26]wFMCommunicate OK [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 0D 03 02 [14:30:26]Write to MH i2c: E2 08 00 63 07 80 0D 03 02 00 00 00 00 E5 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 0B 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 0B 00 63 07 00 0D B9 6C 22 76 9B F2 1A 90 00 57 [14:30:26]RAPDU: 0D B9 6C 22 76 9B F2 1A 90 00 [14:30:26]wFMCommunicate OK [14:30:26]SAM_PROTO_SignData done [14:30:26]FM_MakeSignedData done [14:30:26]CreateOFDProtocolMessage [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 11 00 00 [14:30:26]Write to MH i2c: E2 08 00 64 07 80 11 00 00 00 00 00 00 E5 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 17 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 17 00 64 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 37 [14:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:30:26]wFMCommunicate OK [14:30:26]CreateOFDProtocolMessage done [14:30:26]OFDSenderStorePacket 82374 [14:30:26]StoreOFDPacket docnum=82374 [14:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 29 D8 07 01 EE 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 02 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 41 01 00 35 04 06 00 73 59 A1 FA EF 25 0D B9 6C 22 76 9B F2 1A [14:30:26]CheckFolder [14:30:26]dirname=/storage/ofd_packets [14:30:26]CheckFolder done [14:30:26]ProducePacketName [14:30:26]name=ofd_packets/00082374 [14:30:26]NVStorageSaveData ofd_packets/00082374 [14:30:26]File name is /storage/ofd_packets/00082374 [14:30:26]Write 301 bytes [14:30:26]NVStorageSaveData done [14:30:26]OFDSenderStorePacket done [14:30:26]KKMCreateOFDPacket done [14:30:26]NVStorageSaveData kkm_last_timestamp [14:30:26]File name is /storage/kkm_last_timestamp [14:30:26]Write 4 bytes [14:30:26]NVStorageSaveData done [14:30:26]ExternCall_PrintAddStr [14:30:26]wPrintStart [14:30:26]Write to MH i2c: 01 00 00 65 07 6C [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 07 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 FF 0F 81 [14:30:26]RasterBufferAndPrint [14:30:26]line Счет N : (1)918869 [14:30:26]line ИНН: 02508201610067 [14:30:26]line Контрольно-Кассовый Чек [14:30:26]line ПРОДАЖА [14:30:26]line ТРК (МРК, ГНК) : 11 [14:30:26]line Товар: 2710124130 [14:30:26]line Аи-92-К-4 [14:30:26]line 14.950 * 66.90 [14:30:26]line = 1000.16 [14:30:26]line НДС 12% НСП 1% [14:30:26]line > о реализуемом товаре [14:30:26]line ОКРУГЛЕНИЕ: -0.16 [14:30:26]line ИТОГО: 1000.00 [14:30:26]line Внесено: 1000.00 [14:30:26]line СДАЧА: 0.00 [14:30:26]line НСП 1% : 8.85 [14:30:26]line НДС 12% : 106.21 [14:30:26]line Наличными: 1000.00 [14:30:26]line Безнал.: 0.00 [14:30:26]line Место: АЗС № 114 "Партнер Нефть" [14:30:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:30:26]line СНО: Общий режим [14:30:26]line Чек 83 18.10.2024 14:30 [14:30:26]line Смена: 526 ФФД: 1.0 [14:30:26]line ЗНМ: 0300000086 [14:30:26]line РНМ: 0000000000091680 [14:30:26]line Версия ККМ: 001 [14:30:26]line ФМ: 0000000000871843 [14:30:26]line ФД: 82374 [14:30:26]line ФПД: 126828806860581 [14:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143026&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82374&fm=126828806860581&tin=02508201610067®Number=0000000000091680&sum=100000 [14:30:27]OFD Sender: Processing packet 82374 [packets to send 254, broken 253] [14:30:27]ProducePacketName [14:30:27]name=ofd_packets/00082374 [14:30:27]OFD Sender: To server: pG, [14:30:27]CommunicateWithHost lk.salyk.kg:30040 [14:30:27]ConnectInit lk.salyk.kg [14:30:27]written 0, free lines is 4095 [14:30:27]Write to MH i2c: 01 00 00 90 07 97 [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: 01 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: 01 07 00 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: 01 07 00 90 07 00 00 00 00 00 D4 0C 7E [14:30:27]RasterBufferAndPrint [14:30:27]line [14:30:27]line [14:30:27]line [14:30:27]line [14:30:27]line [14:30:27]written 0, free lines is 3290 [14:30:27]MH_Cut [14:30:27]Write to MH i2c: D1 01 00 97 07 01 70 [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: D1 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: D1 01 00 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: D1 01 00 97 07 00 6F [14:30:27]Write to MH i2c: 01 00 00 98 07 9F [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:28]*** Cut start [14:30:28]*** Partial cut [14:30:28]*** CUTSNS_PIN = 1 [14:30:28]*** CUTSNS_PIN = 0 [14:30:28]*** Brake cut motor [14:30:29]Read from MH i2c: 01 [14:30:29]MH_I2C_Read... [14:30:29]*** Stop cut motor [14:30:29]*** Cut end [14:30:29]Read from MH i2c: 01 07 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 98 07 00 00 00 00 00 FF 0F B4 [14:30:29]process_action close_receipt done [14:30:29]requested_data is exist [14:30:29]produce_requested_data [14:30:29]requested_item fm.sn is exist - process it [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 11 00 00 [14:30:29]Write to MH i2c: E2 08 00 99 07 80 11 00 00 00 00 00 00 1A [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 17 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 17 00 99 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6C [14:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:30:29]wFMCommunicate OK [14:30:29]requested_item fd.num is exist - process it [14:30:29]SAM_PROTO_GetFieldsCounters [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 13 00 00 [14:30:29]Write to MH i2c: E2 08 00 9A 07 80 13 00 00 00 00 00 00 1D [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 62 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 62 00 9A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [14:30:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:29]wFMCommunicate OK [14:30:29]SAM_PROTO_GetFieldsCounters done [14:30:29]requested_item shift.num is exist - process it [14:30:29]requested_item shift.opened is exist - process it [14:30:29]req_shift_opened [14:30:29]FM_GetShiftState [14:30:29]SAM_PROTO_GetShiftState [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 13 01 00 [14:30:29]Write to MH i2c: E2 08 00 9B 07 80 13 01 00 00 00 00 00 1F [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 0E 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 0E 00 9B 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F1 [14:30:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:30:29]wFMCommunicate OK [14:30:29]SAM_PROTO_GetShiftState done [14:30:29]FM_GetShiftState done [14:30:29]req_shift_opened done [14:30:29]requested_item shift.open_date is exist - process it [14:30:29]req_shift_open_date [14:30:29]req_shift_open_date done [14:30:29]produce_requested_data done [14:30:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82374,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:30:29]process_action_free close_receipt [14:30:29]json_value_free [14:30:29]json_value_free done [14:30:29]process_json_proto returns [14:30:29]Send response to host [14:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82374,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:30:29]free response buf [14:30:29]execute_script done [14:30:29]execute_script returns [14:30:29]free content buf [14:30:29]Sock 9.Close socket [14:30:29]Sock 9.Thread stoped [14:30:34]recv_with_timeout no data received [14:30:42]Connected sock=11 [14:30:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 29 D8 07 01 EE 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 02 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 41 01 00 35 04 06 00 73 59 A1 FA EF 25 0D B9 6C 22 76 9B F2 1A [14:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 98 59 47 00 E2 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C6 41 01 00 F4 03 04 00 4B 16 12 67 B6 04 01 00 00 3C 33 23 E4 7A CD 02 B7 [14:30:43]CommunicateWithHost err = 0 [14:30:43]CheckOFDResponse [14:30:43]1017 (14) - 77093643461234 [14:30:43]1041 (16) - 0000000000871843 [14:30:43]1040 (4) - 82374 [14:30:43]1012 (4) - 18.10.2024 08:03 [14:30:43]1206 (1) - 0 [14:30:43]OFD Sender: Remove packet 82374 [14:30:43]ProducePacketName [14:30:43]name=ofd_packets/00082374 [14:30:43]NVStorageDeleteData [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:56]recv_with_timeout no data received [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:07]recv_with_timeout no data received [14:31:09]OFD Sender: No OFD packet to send [14:31:14]accept exits with 10 [14:31:14]New connection [14:31:14]New thread 3067215204 created [14:31:14]Thread 3067071844 joined [14:31:14]Waiting for new connection... [14:31:14] Sock 10.Parse request [14:31:14]Sock 10.Check first char [14:31:14]Sock 10.First char is OK [14:31:14]request: POST /json_proto HTTP/1.0 [14:31:14]Method: POST [14:31:14]URL: /json_proto [14:31:14]Method is POST - this is cgi request [14:31:14]url: /json_proto [14:31:14]query_string will be loaded in cgi processing [14:31:14]execute_cgi json_proto POST (null) [14:31:14]execute_cgi path=json_proto method=POST [14:31:14]POST find Content-Length [14:31:14]Host: 172.17.44.67:8080 [14:31:14]Content-Length: 678 [14:31:14]Content-Type: application/json [14:31:14] [14:31:14]POST finish read [14:31:14]Found Content-Length = 678 [14:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:14]execute_script... [14:31: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)918870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:14]POST & json_proto [14:31:14]process_json_proto [14:31:14]json parsed OK: [14:31:14]protocol is kg_v1.0 [14:31:14]action value=close_receipt [14:31:14]process_action close_receipt [14:31:14]cmd_close_receipt [14:31:14]MH_GetDate [14:31:14]Write to MH i2c: F0 00 00 9C 07 92 [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: F0 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: F0 09 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: F0 09 00 9C 07 00 33 71 12 67 F1 C7 6B 64 3F [14:31:14]GetLastDocTimeStamp 1729261826 [14:31:14]current date 1729261875 [14:31:14]FM_GetShiftState [14:31:14]SAM_PROTO_GetShiftState [14:31:14]wFMCommunicate request_size=4 [14:31:14]MH_SAM_APDU [14:31:14]CAPDU: 80 13 01 00 [14:31:14]Write to MH i2c: E2 08 00 9D 07 80 13 01 00 00 00 00 00 21 [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:14]Read from MH i2c: E2 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 0E 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 0E 00 9D 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F3 [14:31:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:31:14]wFMCommunicate OK [14:31:14]SAM_PROTO_GetShiftState done [14:31:14]FM_GetShiftState done [14:31:14]opened in 1729212319 [14:31:14]opened+sec_in_day 1729298719 [14:31:14]quantity*price = 80012 [14:31:14]sum+1 = 80013 [14:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 84 18.10.2024 14:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82375 ФПД: 205879073748630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143115&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82375&fm=205879073748630&tin=02508201610067®Number=0000000000091680&sum=80000 [14:31:15]StoreToDocumentArchive [14:31:15]shift 526 fd 82375 [14:31:15]save to /storage/0526/doc_00082375 [14:31:15]save last doc name /storage/0526/doc_00082375 to /storage/kkm_last_doc_name [14:31:15]save OK [14:31:15]Clear old archive folders... [14:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:15]tlvbuf is 00AADA10 [14:31:15]SAM_PROTO_ClearQueue [14:31:15]wFMCommunicate request_size=4 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 09 00 00 [14:31:15]Write to MH i2c: E2 08 00 AA 07 80 09 00 00 00 00 00 00 23 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [14:31:15]RAPDU: 90 00 [14:31:15]wFMCommunicate OK [14:31:15]SAM_PROTO_ClearQueue done [14:31:15]KKMCreateOFDPacket [14:31:15]OFDProtocolAddRootSTLVToBuf [14:31:15]FM_MakeSignedData [14:31:15]FM_MakeSignedData [14:31:15]SAM_PROTO_SignData [14:31:15]wFMCommunicate request_size=4 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 0D 01 02 [14:31:15]Write to MH i2c: E2 08 00 AB 07 80 0D 01 02 00 00 00 00 2B [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [14:31:15]RAPDU: 90 00 [14:31:15]wFMCommunicate OK [14:31:15]wFMCommunicate request_size=255 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 33 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 41 01 00 35 04 06 00 BB [14:31:15]Write to MH i2c: E2 02 01 AC 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 33 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 41 01 00 35 04 06 00 BB 00 00 E8 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [14:31:15]RAPDU: 90 00 [14:31:15]wFMCommunicate OK [14:31:15]wFMCommunicate request_size=10 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 0D 02 02 05 3E F5 0E B6 96 [14:31:15]Write to MH i2c: E2 0D 00 AD 07 80 0D 02 02 05 00 3E F5 0E B6 96 00 00 C5 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [14:31:15]RAPDU: 90 00 [14:31:15]wFMCommunicate OK [14:31:15]wFMCommunicate request_size=4 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 0D 03 02 [14:31:15]Write to MH i2c: E2 08 00 AE 07 80 0D 03 02 00 00 00 00 30 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 0B 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 0B 00 AE 07 00 C7 F3 21 06 1A 8F 0F 15 90 00 DF [14:31:15]RAPDU: C7 F3 21 06 1A 8F 0F 15 90 00 [14:31:15]wFMCommunicate OK [14:31:15]SAM_PROTO_SignData done [14:31:15]FM_MakeSignedData done [14:31:15]CreateOFDProtocolMessage [14:31:15]wFMCommunicate request_size=4 [14:31:15]MH_SAM_APDU [14:31:15]CAPDU: 80 11 00 00 [14:31:15]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:15]Read from MH i2c: E2 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 17 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: E2 17 00 AF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 82 [14:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:31:15]wFMCommunicate OK [14:31:15]CreateOFDProtocolMessage done [14:31:15]OFDSenderStorePacket 82375 [14:31:15]StoreOFDPacket docnum=82375 [14:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 02 03 07 01 A2 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 33 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 41 01 00 35 04 06 00 BB 3E F5 0E B6 96 C7 F3 21 06 1A 8F 0F 15 [14:31:15]CheckFolder [14:31:15]dirname=/storage/ofd_packets [14:31:15]CheckFolder done [14:31:15]ProducePacketName [14:31:15]name=ofd_packets/00082375 [14:31:15]NVStorageSaveData ofd_packets/00082375 [14:31:15]File name is /storage/ofd_packets/00082375 [14:31:15]Write 301 bytes [14:31:15]NVStorageSaveData done [14:31:15]OFDSenderStorePacket done [14:31:15]KKMCreateOFDPacket done [14:31:15]NVStorageSaveData kkm_last_timestamp [14:31:15]File name is /storage/kkm_last_timestamp [14:31:15]Write 4 bytes [14:31:15]NVStorageSaveData done [14:31:15]OFD Sender: Processing packet 82375 [packets to send 254, broken 253] [14:31:15]ProducePacketName [14:31:15]name=ofd_packets/00082375 [14:31:15]OFD Sender: To server: pG, [14:31:15]CommunicateWithHost lk.salyk.kg:30040 [14:31:15]ConnectInit lk.salyk.kg [14:31:15]ExternCall_PrintAddStr [14:31:15]wPrintStart [14:31:15]Write to MH i2c: 01 00 00 B0 07 B7 [14:31:15]Write i2c OK [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: 01 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: 01 07 00 [14:31:15]MH_I2C_Read... [14:31:15]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [14:31:15]RasterBufferAndPrint [14:31:15]line Счет N : (1)918870 [14:31:15]line ИНН: 02508201610067 [14:31:15]line Контрольно-Кассовый Чек [14:31:15]line ПРОДАЖА [14:31:15]line ТРК (МРК, ГНК) : 22 [14:31:15]line Товар: 2710124130 [14:31:15]line Аи-92-К-4 [14:31:15]line 11.960 * 66.90 [14:31:15]line = 800.12 [14:31:15]line НДС 12% НСП 1% [14:31:15]line > о реализуемом товаре [14:31:15]line ОКРУГЛЕНИЕ: -0.12 [14:31:15]line ИТОГО: 800.00 [14:31:15]line Внесено: 800.00 [14:31:15]line СДАЧА: 0.00 [14:31:15]line НСП 1% : 7.08 [14:31:15]line НДС 12% : 84.97 [14:31:15]line Наличными: 800.00 [14:31:15]line Безнал.: 0.00 [14:31:15]line Место: АЗС № 114 "Партнер Нефть" [14:31:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:31:15]line СНО: Общий режим [14:31:15]line Чек 84 18.10.2024 14:31 [14:31:15]line Смена: 526 ФФД: 1.0 [14:31:15]line ЗНМ: 0300000086 [14:31:15]line РНМ: 0000000000091680 [14:31:15]line Версия ККМ: 001 [14:31:15]line ФМ: 0000000000871843 [14:31:15]line ФД: 82375 [14:31:15]line ФПД: 205879073748630 [14:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143115&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82375&fm=205879073748630&tin=02508201610067®Number=0000000000091680&sum=80000 [14:31:16]written 0, free lines is 4095 [14:31:16]Connected sock=11 [14:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 02 03 07 01 A2 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 33 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 41 01 00 35 04 06 00 BB 3E F5 0E B6 96 C7 F3 21 06 1A 8F 0F 15 [14:31:16]Write to MH i2c: 01 00 00 DB 07 E2 [14:31:16]Write i2c OK [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: 01 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: 01 07 00 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 DF 0C D4 [14:31:16]RasterBufferAndPrint [14:31:16]line [14:31:16]line [14:31:16]line [14:31:16]line [14:31:16]line [14:31:16]written 0, free lines is 3301 [14:31:16]MH_Cut [14:31:16]Write to MH i2c: D1 01 00 E2 07 01 BB [14:31:16]Write i2c OK [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: D1 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: D1 01 00 [14:31:16]MH_I2C_Read... [14:31:16]Read from MH i2c: D1 01 00 E2 07 00 BA [14:31:16]Write to MH i2c: 01 00 00 E3 07 EA [14:31:16]Write i2c OK [14:31:16]MH_I2C_Read... [14:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 11 89 47 00 47 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C7 41 01 00 F4 03 04 00 6D 16 12 67 B6 04 01 00 00 3A AA BA 96 6C 61 26 C8 [14:31:16]CommunicateWithHost err = 0 [14:31:16]CheckOFDResponse [14:31:16]1017 (14) - 77093643461234 [14:31:16]1041 (16) - 0000000000871843 [14:31:16]1040 (4) - 82375 [14:31:16]1012 (4) - 18.10.2024 08:03 [14:31:16]1206 (1) - 0 [14:31:16]OFD Sender: Remove packet 82375 [14:31:16]ProducePacketName [14:31:16]name=ofd_packets/00082375 [14:31:16]NVStorageDeleteData [14:31:17]*** Cut start [14:31:17]*** Partial cut [14:31:17]*** CUTSNS_PIN = 1 [14:31:17]*** CUTSNS_PIN = 0 [14:31:17]OFD Sender: No OFD packet to send [14:31:17]*** Brake cut motor [14:31:18]Read from MH i2c: 01 [14:31:18]MH_I2C_Read... [14:31:18]*** Stop cut motor [14:31:18]*** Cut end [14:31:18]Read from MH i2c: 01 07 00 [14:31:18]MH_I2C_Read... [14:31:18]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 FF 0F FF [14:31:18]process_action close_receipt done [14:31:18]requested_data is exist [14:31:18]produce_requested_data [14:31:18]requested_item fm.sn is exist - process it [14:31:18]wFMCommunicate request_size=4 [14:31:18]MH_SAM_APDU [14:31:18]CAPDU: 80 11 00 00 [14:31:18]Write to MH i2c: E2 08 00 E4 07 80 11 00 00 00 00 00 00 65 [14:31:18]Write i2c OK [14:31:18]MH_I2C_Read... [14:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:18]Read from MH i2c: E2 [14:31:18]MH_I2C_Read... [14:31:18]Read from MH i2c: E2 17 00 [14:31:18]MH_I2C_Read... [14:31:18]Read from MH i2c: E2 17 00 E4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B7 [14:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:31:18]wFMCommunicate OK [14:31:18]requested_item fd.num is exist - process it [14:31:18]SAM_PROTO_GetFieldsCounters [14:31:18]wFMCommunicate request_size=4 [14:31:18]MH_SAM_APDU [14:31:18]CAPDU: 80 13 00 00 [14:31:18]Write to MH i2c: E2 08 00 E5 07 80 13 00 00 00 00 00 00 68 [14:31:18]Write i2c OK [14:31:18]MH_I2C_Read... [14:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:18]Read from MH i2c: E2 [14:31:18]MH_I2C_Read... [14:31:18]Read from MH i2c: E2 62 00 [14:31:18]MH_I2C_Read... [14:31:18]Read from MH i2c: E2 62 00 E5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [14:31:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:18]wFMCommunicate OK [14:31:18]SAM_PROTO_GetFieldsCounters done [14:31:18]requested_item shift.num is exist - process it [14:31:18]requested_item shift.opened is exist - process it [14:31:18]req_shift_opened [14:31:18]FM_GetShiftState [14:31:18]SAM_PROTO_GetShiftState [14:31:18]wFMCommunicate request_size=4 [14:31:18]MH_SAM_APDU [14:31:18]CAPDU: 80 13 01 00 [14:31:18]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [14:31:18]Write i2c OK [14:31:18]MH_I2C_Read... [14:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:18]Read from MH i2c: E2 [14:31:18]MH_I2C_Read... [14:31:18]Read from MH i2c: E2 0E 00 [14:31:18]MH_I2C_Read... [14:31:18]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3C [14:31:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:31:18]wFMCommunicate OK [14:31:18]SAM_PROTO_GetShiftState done [14:31:18]FM_GetShiftState done [14:31:18]req_shift_opened done [14:31:18]requested_item shift.open_date is exist - process it [14:31:18]req_shift_open_date [14:31:18]req_shift_open_date done [14:31:18]produce_requested_data done [14:31:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82375,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:31:18]process_action_free close_receipt [14:31:18]json_value_free [14:31:18]json_value_free done [14:31:18]process_json_proto returns [14:31:18]Send response to host [14:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82375,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:31:18]free response buf [14:31:18]execute_script done [14:31:18]execute_script returns [14:31:18]free content buf [14:31:18]Sock 10.Close socket [14:31:18]Sock 10.Thread stoped [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:33]recv_with_timeout no data received [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:44]accept exits with 8 [14:31:44]New connection [14:31:44]New thread 3067071844 created [14:31:44]Thread 3067215204 joined [14:31:44]Waiting for new connection... [14:31:44] Sock 8.Parse request [14:31:44]Sock 8.Check first char [14:31:44]Sock 8.First char is OK [14:31:44]request: POST /json_proto HTTP/1.0 [14:31:44]Method: POST [14:31:44]URL: /json_proto [14:31:44]Method is POST - this is cgi request [14:31:44]url: /json_proto [14:31:44]query_string will be loaded in cgi processing [14:31:44]execute_cgi json_proto POST (null) [14:31:44]execute_cgi path=json_proto method=POST [14:31:44]POST find Content-Length [14:31:44]Host: 172.17.44.67:8080 [14:31:44]Content-Length: 989 [14:31:44]Content-Type: application/json [14:31:44] [14:31:44]POST finish read [14:31:44]Found Content-Length = 989 [14:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10593", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:44]execute_script... [14: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 : (3)10593", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:44]POST & json_proto [14:31:44]process_json_proto [14:31:44]json parsed OK: [14:31:44]protocol is kg_v1.0 [14:31:44]action value=close_receipt [14:31:44]process_action close_receipt [14:31:44]cmd_close_receipt [14:31:44]MH_GetDate [14:31:44]Write to MH i2c: F0 00 00 E7 07 DD [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: F0 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: F0 09 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: F0 09 00 E7 07 00 51 71 12 67 F1 C7 6B 64 A8 [14:31:44]GetLastDocTimeStamp 1729261875 [14:31:44]current date 1729261905 [14:31:44]FM_GetShiftState [14:31:44]SAM_PROTO_GetShiftState [14:31:44]wFMCommunicate request_size=4 [14:31:44]MH_SAM_APDU [14:31:44]CAPDU: 80 13 01 00 [14:31:44]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 0E 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3E [14:31:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:31:44]wFMCommunicate OK [14:31:44]SAM_PROTO_GetShiftState done [14:31:44]FM_GetShiftState done [14:31:44]opened in 1729212319 [14:31:44]opened+sec_in_day 1729298719 [14:31:44]quantity*price = 12000 [14:31:44]sum+1 = 12001 [14:31:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре [14:31:46]line Товар: 4700000310043 [14:31:46]line Вода Жалалабат 27 1л [14:31:46]line 1.000 * 60.00 [14:31:46]line = 60.00 [14:31:46]line НДС 12% НСП 1% [14:31:46]line > о реализуемом товаре [14:31:46]line ИТОГО: 180.00 [14:31:46]line НСП 1% : 1.59 [14:31:46]line НДС 12% : 19.11 [14:31:46]line Наличными: 180.00 [14:31:46]line Безнал.: 0.00 [14:31:46]line Место: АЗС № 114 "Партнер Нефть" [14:31:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:31:46]line СНО: Общий режим [14:31:46]line Чек 85 18.10.2024 14:31 [14:31:46]line Смена: 526 ФФД: 1.0 [14:31:46]line ЗНМ: 0300000086 [14:31:46]line РНМ: 0000000000091680 [14:31:46]line Версия ККМ: 001 [14:31:46]line ФМ: 0000000000871843 [14:31:46]line ФД: 82376 [14:31:46]line ФПД: 228576137498452 [14:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143145&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82376&fm=228576137498452&tin=02508201610067®Number=0000000000091680&sum=18000 [14:31:46]line 0 [14:31:46]OFD Sender: Processing packet 82376 [packets to send 254, broken 253] [14:31:46]ProducePacketName [14:31:46]name=ofd_packets/00082376 [14:31:46]OFD Sender: To server: pG, [14:31:46]CommunicateWithHost lk.salyk.kg:30040 [14:31:46]ConnectInit lk.salyk.kg [14:31:46]written 0, free lines is 4095 [14:31:47]Write to MH i2c: 01 00 00 2A 08 32 [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: 01 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: 01 07 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 75 0C BA [14:31:47]RasterBufferAndPrint [14:31:47]line [14:31:47]line [14:31:47]line [14:31:47]line [14:31:47]line [14:31:47]written 0, free lines is 3195 [14:31:47]MH_Cut [14:31:47]Write to MH i2c: D1 01 00 31 08 01 0B [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: D1 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: D1 01 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: D1 01 00 31 08 00 0A [14:31:47]Write to MH i2c: 01 00 00 32 08 3A [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:48]*** Cut start [14:31:48]*** Partial cut [14:31:48]*** CUTSNS_PIN = 1 [14:31:48]*** CUTSNS_PIN = 0 [14:31:48]*** Brake cut motor [14:31:48]Read from MH i2c: 01 [14:31:48]MH_I2C_Read... [14:31:48]*** Stop cut motor [14:31:48]*** Cut end [14:31:48]Read from MH i2c: 01 07 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: 01 07 00 32 08 00 00 00 00 00 FF 0F 4F [14:31:48]process_action close_receipt done [14:31:48]requested_data is exist [14:31:48]produce_requested_data [14:31:48]requested_item fm.sn is exist - process it [14:31:48]wFMCommunicate request_size=4 [14:31:48]MH_SAM_APDU [14:31:48]CAPDU: 80 11 00 00 [14:31:48]Write to MH i2c: E2 08 00 33 08 80 11 00 00 00 00 00 00 B5 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:48]Read from MH i2c: E2 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 17 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 17 00 33 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [14:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:31:48]wFMCommunicate OK [14:31:48]requested_item fd.num is exist - process it [14:31:48]SAM_PROTO_GetFieldsCounters [14:31:48]wFMCommunicate request_size=4 [14:31:48]MH_SAM_APDU [14:31:48]CAPDU: 80 13 00 00 [14:31:48]Write to MH i2c: E2 08 00 34 08 80 13 00 00 00 00 00 00 B8 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:48]Read from MH i2c: E2 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 62 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 62 00 34 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [14:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 C8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:48]wFMCommunicate OK [14:31:48]SAM_PROTO_GetFieldsCounters done [14:31:48]requested_item shift.num is exist - process it [14:31:48]requested_item shift.opened is exist - process it [14:31:48]req_shift_opened [14:31:48]FM_GetShiftState [14:31:48]SAM_PROTO_GetShiftState [14:31:48]wFMCommunicate request_size=4 [14:31:48]MH_SAM_APDU [14:31:48]CAPDU: 80 13 01 00 [14:31:48]Write to MH i2c: E2 08 00 35 08 80 13 01 00 00 00 00 00 BA [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:48]Read from MH i2c: E2 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 0E 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: E2 0E 00 35 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8C [14:31:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:31:48]wFMCommunicate OK [14:31:48]SAM_PROTO_GetShiftState done [14:31:48]FM_GetShiftState done [14:31:48]req_shift_opened done [14:31:48]requested_item shift.open_date is exist - process it [14:31:48]req_shift_open_date [14:31:48]req_shift_open_date done [14:31:48]produce_requested_data done [14:31:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82376,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:31:48]process_action_free close_receipt [14:31:48]json_value_free [14:31:48]json_value_free done [14:31:48]process_json_proto returns [14:31:48]Send response to host [14:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82376,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:31:48]free response buf [14:31:48]execute_script done [14:31:48]execute_script returns [14:31:48]free content buf [14:31:48]Sock 8.Close socket [14:31:48]Sock 8.Thread stoped [14:31:51]ConnectInit Can't take IP for lk.salyk.kg [14:31:51]CommunicateWithHost connect error [14:31:51]CommunicateWithHost err = -1 [14:31:51]OFD Sender: Server communicate error [14:31:56]OFD Sender: Processing packet 82376 [packets to send 254, broken 253] [14:31:56]ProducePacketName [14:31:56]name=ofd_packets/00082376 [14:31:56]OFD Sender: To server: pG, [14:31:56]CommunicateWithHost lk.salyk.kg:30040 [14:31:56]ConnectInit lk.salyk.kg [14:31:58]Connected sock=8 [14:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 B2 01 00 00 04 05 AA 01 97 B4 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 51 71 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C8 41 01 00 35 04 06 00 CF E3 87 7A CF 54 6A 70 72 1B 5A F7 37 3E [14:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 96 8C 47 00 1F 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 C8 41 01 00 F4 03 04 00 97 16 12 67 B6 04 01 00 00 A7 E0 D3 CD EA C8 ED 0E [14:31:59]CommunicateWithHost err = 0 [14:31:59]CheckOFDResponse [14:31:59]1017 (14) - 77093643461234 [14:31:59]1041 (16) - 0000000000871843 [14:31:59]1040 (4) - 82376 [14:31:59]1012 (4) - 18.10.2024 08:04 [14:31:59]1206 (1) - 0 [14:31:59]OFD Sender: Remove packet 82376 [14:31:59]ProducePacketName [14:31:59]name=ofd_packets/00082376 [14:31:59]NVStorageDeleteData [14:31:59]OFD Sender: No OFD packet to send [14:32:01]recv_with_timeout no data received [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:13]recv_with_timeout no data received [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:23]recv_with_timeout no data received [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:38]accept exits with 9 [14:33:38]New connection [14:33:38]New thread 3067215204 created [14:33:38]Thread 3067071844 joined [14:33:38]Waiting for new connection... [14:33:38] Sock 9.Parse request [14:33:38]Sock 9.Check first char [14:33:38]Sock 9.First char is OK [14:33:38]request: POST /json_proto HTTP/1.0 [14:33:38]Method: POST [14:33:38]URL: /json_proto [14:33:38]Method is POST - this is cgi request [14:33:38]url: /json_proto [14:33:38]query_string will be loaded in cgi processing [14:33:38]execute_cgi json_proto POST (null) [14:33:38]execute_cgi path=json_proto method=POST [14:33:38]POST find Content-Length [14:33:38]Host: 172.17.44.67:8080 [14:33:38]Content-Length: 623 [14:33:38]Content-Type: application/json [14:33:38] [14:33:38]POST finish read [14:33:38]Found Content-Length = 623 [14:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10594", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:38]execute_script... [14:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10594", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:38]POST & json_proto [14:33:38]process_json_proto [14:33:38]json parsed OK: [14:33:38]protocol is kg_v1.0 [14:33:38]action value=close_receipt [14:33:38]process_action close_receipt [14:33:38]cmd_close_receipt [14:33:38]MH_GetDate [14:33:38]Write to MH i2c: F0 00 00 36 08 2D [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 09 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 09 00 36 08 00 C3 71 12 67 F1 C7 6B 64 6A [14:33:38]GetLastDocTimeStamp 1729261905 [14:33:38]current date 1729262019 [14:33:38]FM_GetShiftState [14:33:38]SAM_PROTO_GetShiftState [14:33:38]wFMCommunicate request_size=4 [14:33:38]MH_SAM_APDU [14:33:38]CAPDU: 80 13 01 00 [14:33:38]Write to MH i2c: E2 08 00 37 08 80 13 01 00 00 00 00 00 BC [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:38]Read from MH i2c: E2 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 0E 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 0E 00 37 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8E [14:33:38]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:33:38]wFMCommunicate OK [14:33:38]SAM_PROTO_GetShiftState done [14:33:38]FM_GetShiftState done [14:33:38]opened in 1729212319 [14:33:38]opened+sec_in_day 1729298719 [14:33:38]quantity*price = 16000 [14:33:38]sum+1 = 16001 [14:33:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 87 18.10.2024 14:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100657 ФМ: 0000000000871843 ФД: 82378 ФПД: 55522890812125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143752&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82378&fm=55522890812125&tin=02508201610067®Number=0000000000091680&sum=0 [14:37:52]StoreToDocumentArchive [14:37:52]shift 526 fd 82378 [14:37:52]save to /storage/0526/doc_00082378 [14:37:52]save last doc name /storage/0526/doc_00082378 to /storage/kkm_last_doc_name [14:37:52]save OK [14:37:52]Clear old archive folders... [14:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:52]tlvbuf is 00DB3B20 [14:37:52]SAM_PROTO_ClearQueue [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 09 00 00 [14:37:52]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:37:52]RAPDU: 90 00 [14:37:52]wFMCommunicate OK [14:37:52]SAM_PROTO_ClearQueue done [14:37:52]KKMCreateOFDPacket [14:37:52]OFDProtocolAddRootSTLVToBuf [14:37:52]FM_MakeSignedData [14:37:52]FM_MakeSignedData [14:37:52]SAM_PROTO_SignData [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 0D 01 02 [14:37:52]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:37:52]RAPDU: 90 00 [14:37:52]wFMCommunicate OK [14:37:52]wFMCommunicate request_size=255 [14:37:52]MH_SAM_APDU [14:37: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C0 72 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 41 01 00 35 04 06 00 32 [14:37:52]Write to MH i2c: E2 02 01 2D 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C0 72 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 41 01 00 35 04 06 00 32 00 00 6A [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:37:52]RAPDU: 90 00 [14:37:52]wFMCommunicate OK [14:37:52]wFMCommunicate request_size=10 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 0D 02 02 05 7F 6E 2F 0A DD [14:37:52]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 7F 6E 2F 0A DD 00 00 B5 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 03 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:37:53]RAPDU: 90 00 [14:37:53]wFMCommunicate OK [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 0D 03 02 [14:37:53]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0B 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0B 00 2F 00 00 2C 82 AF C1 54 CA 3B BD 90 00 DF [14:37:53]RAPDU: 2C 82 AF C1 54 CA 3B BD 90 00 [14:37:53]wFMCommunicate OK [14:37:53]SAM_PROTO_SignData done [14:37:53]FM_MakeSignedData done [14:37:53]CreateOFDProtocolMessage [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 11 00 00 [14:37:53]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 17 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [14:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:37:53]wFMCommunicate OK [14:37:53]CreateOFDProtocolMessage done [14:37:53]OFDSenderStorePacket 82378 [14:37:53]StoreOFDPacket docnum=82378 [14:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 60 61 07 01 1B D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C0 72 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 41 01 00 35 04 06 00 32 7F 6E 2F 0A DD 2C 82 AF C1 54 CA 3B BD [14:37:53]CheckFolder [14:37:53]dirname=/storage/ofd_packets [14:37:53]CheckFolder done [14:37:53]ProducePacketName [14:37:53]name=ofd_packets/00082378 [14:37:53]NVStorageSaveData ofd_packets/00082378 [14:37:53]File name is /storage/ofd_packets/00082378 [14:37:53]Write 301 bytes [14:37:53]NVStorageSaveData done [14:37:53]OFDSenderStorePacket done [14:37:53]KKMCreateOFDPacket done [14:37:53]NVStorageSaveData kkm_last_timestamp [14:37:53]File name is /storage/kkm_last_timestamp [14:37:53]Write 4 bytes [14:37:53]NVStorageSaveData done [14:37:53]ExternCall_PrintAddStr [14:37:53]wPrintStart [14:37:53]Write to MH i2c: 01 00 00 31 00 31 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:37:53]RasterBufferAndPrint [14:37:53]line Счет N : (1)918871 [14:37:53]line ИНН: 02508201610067 [14:37:53]line Контрольно-Кассовый Чек [14:37:53]line ПРОДАЖА [14:37:53]line ТРК (МРК, ГНК) : 22 [14:37:53]line Товар: 2710124130 [14:37:53]line Аи-92-К-4 [14:37:53]line 20.000 * 0.00 [14:37:53]line = 0.00 [14:37:53]line НДС 12% НСП 1% [14:37:53]line > о реализуемом товаре [14:37:53]line ИТОГО: 0.00 [14:37:53]line НСП 1% : 0.00 [14:37:53]line НДС 12% : 0.00 [14:37:53]line Наличными: 0.00 [14:37:53]line Безнал.: 0.00 [14:37:53]line Место: АЗС № 114 "Партнер Нефть" [14:37:53]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:37:53]line СНО: Общий режим [14:37:53]line Чек 87 18.10.2024 14:37 [14:37:53]line Смена: 526 ФФД: 1.0 [14:37:53]line ЗНМ: 0300000086 [14:37:53]line РНМ: 0000000000091680 [14:37:53]line Версия ККМ: 001 [14:37:53]line Талоны: ТК ГПНА Online [14:37:53]line 30100657 [14:37:53]line ФМ: 0000000000871843 [14:37:53]line ФД: 82378 [14:37:53]line ФПД: 55522890812125 [14:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143752&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82378&fm=55522890812125&tin=02508201610067®Number=0000000000091680&sum=0 [14:37:53]written 0, free lines is 4095 [14:37:53]OFD Sender: Processing packet 82378 [packets to send 254, broken 253] [14:37:53]ProducePacketName [14:37:53]name=ofd_packets/00082378 [14:37:53]OFD Sender: To server: pG, [14:37:53]CommunicateWithHost lk.salyk.kg:30040 [14:37:53]ConnectInit lk.salyk.kg [14:37:53]Write to MH i2c: 01 00 00 5B 00 5B [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E9 0C 57 [14:37:53]RasterBufferAndPrint [14:37:53]line [14:37:53]line [14:37:53]line [14:37:53]line [14:37:53]line [14:37:53]written 0, free lines is 3313 [14:37:53]MH_Cut [14:37:53]Write to MH i2c: D1 01 00 62 00 01 34 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: D1 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: D1 01 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: D1 01 00 62 00 00 33 [14:37:53]Write to MH i2c: 01 00 00 63 00 63 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:54]Connected sock=10 [14:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 60 61 07 01 1B D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C0 72 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 41 01 00 35 04 06 00 32 7F 6E 2F 0A DD 2C 82 AF C1 54 CA 3B BD [14:37:54]*** Cut start [14:37:54]*** Partial cut [14:37:54]*** CUTSNS_PIN = 1 [14:37:54]*** CUTSNS_PIN = 0 [14:37:54]*** Brake cut motor [14:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 73 33 47 00 C4 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CA 41 01 00 F4 03 04 00 FB 17 12 67 B6 04 01 00 00 67 EA D1 F4 07 96 86 5C [14:37:54]CommunicateWithHost err = 0 [14:37:54]CheckOFDResponse [14:37:54]1017 (14) - 77093643461234 [14:37:54]1041 (16) - 0000000000871843 [14:37:54]1040 (4) - 82378 [14:37:54]1012 (4) - 18.10.2024 08:10 [14:37:54]1206 (1) - 0 [14:37:54]OFD Sender: Remove packet 82378 [14:37:54]ProducePacketName [14:37:54]name=ofd_packets/00082378 [14:37:54]NVStorageDeleteData [14:37:54]Read from MH i2c: 01 [14:37:54]MH_I2C_Read... [14:37:54]*** Stop cut motor [14:37:54]Read from MH i2c: 01 *** Cut end [14:37:54]07 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [14:37:54]process_action close_receipt done [14:37:54]requested_data is exist [14:37:54]produce_requested_data [14:37:54]requested_item fm.sn is exist - process it [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 11 00 00 [14:37:54]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 17 00 [14:37:54]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [14:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:37:55]wFMCommunicate OK [14:37:55]requested_item fd.num is exist - process it [14:37:55]SAM_PROTO_GetFieldsCounters [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 00 00 [14:37:55]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [14:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetFieldsCounters done [14:37:55]requested_item shift.num is exist - process it [14:37:55]requested_item shift.opened is exist - process it [14:37:55]req_shift_opened [14:37:55]FM_GetShiftState [14:37:55]SAM_PROTO_GetShiftState [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 01 00 [14:37:55]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B5 [14:37:55]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetShiftState done [14:37:55]FM_GetShiftState done [14:37:55]req_shift_opened done [14:37:55]requested_item shift.open_date is exist - process it [14:37:55]req_shift_open_date [14:37:55]req_shift_open_date done [14:37:55]produce_requested_data done [14:37:55]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82378,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:37:55]process_action_free close_receipt [14:37:55]json_value_free [14:37:55]json_value_free done [14:37:55]process_json_proto returns [14:37:55]Send response to host [14:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82378,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:37:55]free response buf [14:37:55]execute_script done [14:37:55]execute_script returns [14:37:55]free content buf [14:37:55]Sock 9.Close socket [14:37:55]Sock 9.Thread stoped [14:37:55]OFD Sender: No OFD packet to send [14:37:59]recv_with_timeout no data received [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:04]recv_with_timeout no data received [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:05]accept exits with 7 [14:40:05]New connection [14:40:05]New thread 3066826084 created [14:40:05]Thread 3066969444 joined [14:40:05]Waiting for new connection... [14:40:05] Sock 7.Parse request [14:40:05]Sock 7.Check first char [14:40:05]Sock 7.First char is OK [14:40:05]request: POST /json_proto HTTP/1.0 [14:40:05]Method: POST [14:40:05]URL: /json_proto [14:40:05]Method is POST - this is cgi request [14:40:05]url: /json_proto [14:40:05]query_string will be loaded in cgi processing [14:40:05]execute_cgi json_proto POST (null) [14:40:05]execute_cgi path=json_proto method=POST [14:40:05]POST find Content-Length [14:40:05]Host: 172.17.44.67:8080 [14:40:05]Content-Length: 754 [14:40:05]Content-Type: application/json [14:40:05] [14:40:05]POST finish read [14:40:05]Found Content-Length = 754 [14:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918872", "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" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30136040", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:05]execute_script... [14:40: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)918872", "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" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30136040", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:05]POST & json_proto [14:40:05]process_json_proto [14:40:05]json parsed OK: [14:40:05]protocol is kg_v1.0 [14:40:05]action value=close_receipt [14:40:05]process_action close_receipt [14:40:05]cmd_close_receipt [14:40:05]MH_GetDate [14:40:05]Write to MH i2c: F0 00 00 67 00 56 [14:40:05]Write i2c OK [14:40:05]MH_I2C_Read... [14:40:05]Read from MH i2c: F0 [14:40:05]MH_I2C_Read... [14:40:05]Read from MH i2c: F0 09 00 [14:40:05]MH_I2C_Read... [14:40:05]Read from MH i2c: F0 09 00 67 00 00 46 73 12 67 F1 C7 6B 64 18 [14:40:05]GetLastDocTimeStamp 1729262272 [14:40:05]current date 1729262406 [14:40:05]FM_GetShiftState [14:40:05]SAM_PROTO_GetShiftState [14:40:05]wFMCommunicate request_size=4 [14:40:05]MH_SAM_APDU [14:40:05]CAPDU: 80 13 01 00 [14:40:05]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [14:40:05]Write i2c OK [14:40:05]MH_I2C_Read... [14:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:05]Read from MH i2c: E2 [14:40:05]MH_I2C_Read... [14:40:05]Read from MH i2c: E2 0E 00 [14:40:05]MH_I2C_Read... [14:40:05]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B7 [14:40:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:40:05]wFMCommunicate OK [14:40:05]SAM_PROTO_GetShiftState done [14:40:05]FM_GetShiftState done [14:40:05]opened in 1729212319 [14:40:05]opened+sec_in_day 1729298719 [14:40:05]quantity*price = 0 [14:40:05]sum+1 = 1 [14:40:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 88 18.10.2024 14:40 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30136040 ФМ: 0000000000871843 ФД: 82379 ФПД: 153593535058313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144006&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82379&fm=153593535058313&tin=02508201610067®Number=0000000000091680&sum=0 [14:40:06]StoreToDocumentArchive [14:40:06]shift 526 fd 82379 [14:40:06]save to /storage/0526/doc_00082379 [14:40:06]save last doc name /storage/0526/doc_00082379 to /storage/kkm_last_doc_name [14:40:06]save OK [14:40:06]Clear old archive folders... [14:40:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:06]tlvbuf is 00DAA6A0 [14:40:06]SAM_PROTO_ClearQueue [14:40:06]wFMCommunicate request_size=4 [14:40:06]MH_SAM_APDU [14:40:06]CAPDU: 80 09 00 00 [14:40:06]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [14:40:06]Write i2c OK [14:40:06]MH_I2C_Read... [14:40:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:06]Read from MH i2c: E2 [14:40:06]MH_I2C_Read... [14:40:06]Read from MH i2c: E2 03 00 [14:40:06]MH_I2C_Read... [14:40:06]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [14:40:06]RAPDU: 90 00 [14:40:06]wFMCommunicate OK [14:40:06]SAM_PROTO_ClearQueue done [14:40:06]KKMCreateOFDPacket [14:40:06]OFDProtocolAddRootSTLVToBuf [14:40:06]FM_MakeSignedData [14:40:06]FM_MakeSignedData [14:40:06]SAM_PROTO_SignData [14:40:06]wFMCommunicate request_size=4 [14:40:06]MH_SAM_APDU [14:40:06]CAPDU: 80 0D 01 02 [14:40:06]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [14:40:06]Write i2c OK [14:40:06]MH_I2C_Read... [14:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:06]Read from MH i2c: E2 [14:40:06]MH_I2C_Read... [14:40:06]Read from MH i2c: E2 03 00 [14:40:06]MH_I2C_Read... [14:40:06]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:40:06]RAPDU: 90 00 [14:40:06]wFMCommunicate OK [14:40:06]wFMCommunicate request_size=255 [14:40:06]MH_SAM_APDU [14:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 46 73 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 41 01 00 35 04 06 00 8B [14:40:06]Write to MH i2c: E2 02 01 77 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 46 73 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 41 01 00 35 04 06 00 8B 00 00 77 [14:40:06]Write i2c OK [14:40:06]MH_I2C_Read... [14:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:07]Read from MH i2c: E2 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 03 00 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:40:07]RAPDU: 90 00 [14:40:07]wFMCommunicate OK [14:40:07]wFMCommunicate request_size=10 [14:40:07]MH_SAM_APDU [14:40:07]CAPDU: 80 0D 02 02 05 B1 48 18 D1 89 [14:40:07]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 B1 48 18 D1 89 00 00 67 [14:40:07]Write i2c OK [14:40:07]MH_I2C_Read... [14:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:07]Read from MH i2c: E2 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 03 00 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:40:07]RAPDU: 90 00 [14:40:07]wFMCommunicate OK [14:40:07]wFMCommunicate request_size=4 [14:40:07]MH_SAM_APDU [14:40:07]CAPDU: 80 0D 03 02 [14:40:07]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [14:40:07]Write i2c OK [14:40:07]MH_I2C_Read... [14:40:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:07]Read from MH i2c: E2 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 0B 00 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 0B 00 79 00 00 D1 30 5A C2 08 3F 6C A7 90 00 6C [14:40:07]RAPDU: D1 30 5A C2 08 3F 6C A7 90 00 [14:40:07]wFMCommunicate OK [14:40:07]SAM_PROTO_SignData done [14:40:07]FM_MakeSignedData done [14:40:07]CreateOFDProtocolMessage [14:40:07]wFMCommunicate request_size=4 [14:40:07]MH_SAM_APDU [14:40:07]CAPDU: 80 11 00 00 [14:40:07]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [14:40:07]Write i2c OK [14:40:07]MH_I2C_Read... [14:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:07]Read from MH i2c: E2 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 17 00 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 46 [14:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:40:07]wFMCommunicate OK [14:40:07]CreateOFDProtocolMessage done [14:40:07]OFDSenderStorePacket 82379 [14:40:07]StoreOFDPacket docnum=82379 [14:40:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3A 10 07 01 63 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 46 73 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 41 01 00 35 04 06 00 8B B1 48 18 D1 89 D1 30 5A C2 08 3F 6C A7 [14:40:07]CheckFolder [14:40:07]dirname=/storage/ofd_packets [14:40:07]CheckFolder done [14:40:07]ProducePacketName [14:40:07]name=ofd_packets/00082379 [14:40:07]NVStorageSaveData ofd_packets/00082379 [14:40:07]File name is /storage/ofd_packets/00082379 [14:40:07]Write 301 bytes [14:40:07]NVStorageSaveData done [14:40:07]OFDSenderStorePacket done [14:40:07]KKMCreateOFDPacket done [14:40:07]NVStorageSaveData kkm_last_timestamp [14:40:07]File name is /storage/kkm_last_timestamp [14:40:07]Write 4 bytes [14:40:07]NVStorageSaveData done [14:40:07]ExternCall_PrintAddStr [14:40:07]wPrintStart [14:40:07]Write to MH i2c: 01 00 00 7B 00 7B [14:40:07]Write i2c OK [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: 01 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: 01 07 00 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [14:40:07]RasterBufferAndPrint [14:40:07]line Счет N : (1)918872 [14:40:07]line ИНН: 02508201610067 [14:40:07]line Контрольно-Кассовый Чек [14:40:07]line ПРОДАЖА [14:40:07]line ТРК (МРК, ГНК) : 12 [14:40:07]line Товар: 2710124500 [14:40:07]line Аи-95-К-5 [14:40:07]line 60.000 * 0.00 [14:40:07]line = 0.00 [14:40:07]line НДС 12% НСП 1% [14:40:07]line > о реализуемом товаре [14:40:07]line ИТОГО: 0.00 [14:40:07]line НСП 1% : 0.00 [14:40:07]line НДС 12% : 0.00 [14:40:07]line Наличными: 0.00 [14:40:07]line Безнал.: 0.00 [14:40:07]line Место: АЗС № 114 "Партнер Нефть" [14:40:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:40:07]line СНО: Общий режим [14:40:07]line Чек 88 18.10.2024 14:40 [14:40:07]line Смена: 526 ФФД: 1.0 [14:40:07]line ЗНМ: 0300000086 [14:40:07]line РНМ: 0000000000091680 [14:40:07]line Версия ККМ: 001 [14:40:07]line Талоны: ТК ГПНА Online [14:40:07]line 30136040 [14:40:07]line ФМ: 0000000000871843 [14:40:07]line ФД: 82379 [14:40:07]line ФПД: 153593535058313 [14:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144006&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82379&fm=153593535058313&tin=02508201610067®Number=0000000000091680&sum=0 [14:40:07]written 0, free lines is 4095 [14:40:07]OFD Sender: Processing packet 82379 [packets to send 254, broken 253] [14:40:07]ProducePacketName [14:40:07]name=ofd_packets/00082379 [14:40:07]OFD Sender: To server: pG, [14:40:07]CommunicateWithHost lk.salyk.kg:30040 [14:40:07]ConnectInit lk.salyk.kg [14:40:08]Write to MH i2c: 01 00 00 A5 00 A5 [14:40:08]Write i2c OK [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: 01 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: 01 07 00 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E0 0C 98 [14:40:08]RasterBufferAndPrint [14:40:08]line [14:40:08]line [14:40:08]line [14:40:08]line [14:40:08]line [14:40:08]written 0, free lines is 3302 [14:40:08]MH_Cut [14:40:08]Write to MH i2c: D1 01 00 AC 00 01 7E [14:40:08]Write i2c OK [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: D1 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: D1 01 00 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: D1 01 00 AC 00 00 7D [14:40:08]Write to MH i2c: 01 00 00 AD 00 AD [14:40:08]Write i2c OK [14:40:08]MH_I2C_Read... [14:40:08]*** Cut start [14:40:08]*** Partial cut [14:40:08]*** CUTSNS_PIN = 1 [14:40:08]*** CUTSNS_PIN = 0 [14:40:09]*** Brake cut motor [14:40:09]Read from MH i2c: 01 [14:40:09]MH_I2C_Read... [14:40:09]*** Stop cut motor [14:40:09]*** Cut end [14:40:09]Read from MH i2c: 01 07 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [14:40:09]process_action close_receipt done [14:40:09]requested_data is exist [14:40:09]produce_requested_data [14:40:09]requested_item fm.sn is exist - process it [14:40:09]wFMCommunicate request_size=4 [14:40:09]MH_SAM_APDU [14:40:09]CAPDU: 80 11 00 00 [14:40:09]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 17 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7A [14:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:40:09]wFMCommunicate OK [14:40:09]requested_item fd.num is exist - process it [14:40:09]SAM_PROTO_GetFieldsCounters [14:40:09]wFMCommunicate request_size=4 [14:40:09]MH_SAM_APDU [14:40:09]CAPDU: 80 13 00 00 [14:40:09]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 62 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [14:40:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:09]wFMCommunicate OK [14:40:09]SAM_PROTO_GetFieldsCounters done [14:40:09]requested_item shift.num is exist - process it [14:40:09]requested_item shift.opened is exist - process it [14:40:09]req_shift_opened [14:40:09]FM_GetShiftState [14:40:09]SAM_PROTO_GetShiftState [14:40:09]wFMCommunicate request_size=4 [14:40:09]MH_SAM_APDU [14:40:09]CAPDU: 80 13 01 00 [14:40:09]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 0E 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FF [14:40:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:40:09]wFMCommunicate OK [14:40:09]SAM_PROTO_GetShiftState done [14:40:09]FM_GetShiftState done [14:40:09]req_shift_opened done [14:40:09]requested_item shift.open_date is exist - process it [14:40:09]req_shift_open_date [14:40:09]req_shift_open_date done [14:40:09]produce_requested_data done [14:40:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82379,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:40:09]process_action_free close_receipt [14:40:09]json_value_free [14:40:09]json_value_free done [14:40:09]process_json_proto returns [14:40:09]Send response to host [14:40:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82379,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:40:09]free response buf [14:40:09]execute_script done [14:40:09]execute_script returns [14:40:09]free content buf [14:40:09]Sock 7.Close socket [14:40:09]Sock 7.Thread stoped [14:40:09]Connected sock=11 [14:40:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3A 10 07 01 63 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 46 73 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 41 01 00 35 04 06 00 8B B1 48 18 D1 89 D1 30 5A C2 08 3F 6C A7 [14:40:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 08 1D 47 00 A5 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CB 41 01 00 F4 03 04 00 82 18 12 67 B6 04 01 00 00 26 66 11 FD 45 53 E7 BD [14:40:10]CommunicateWithHost err = 0 [14:40:10]CheckOFDResponse [14:40:10]1017 (14) - 77093643461234 [14:40:10]1041 (16) - 0000000000871843 [14:40:10]1040 (4) - 82379 [14:40:10]1012 (4) - 18.10.2024 08:12 [14:40:10]1206 (1) - 0 [14:40:10]OFD Sender: Remove packet 82379 [14:40:10]ProducePacketName [14:40:10]name=ofd_packets/00082379 [14:40:10]NVStorageDeleteData [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:22]recv_with_timeout no data received [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:34]recv_with_timeout no data received [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:01]recv_with_timeout no data received [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]recv_with_timeout no data received [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:10]recv_with_timeout no data received [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:10]recv_with_timeout no data received [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:37]accept exits with 9 [14:44:37]New connection [14:44:37]New thread 3066969444 created [14:44:37]Thread 3066826084 joined [14:44:37]Waiting for new connection... [14:44:37] Sock 9.Parse request [14:44:37]Sock 9.Check first char [14:44:37]Sock 9.First char is OK [14:44:37]request: POST /json_proto HTTP/1.0 [14:44:37]Method: POST [14:44:37]URL: /json_proto [14:44:37]Method is POST - this is cgi request [14:44:37]url: /json_proto [14:44:37]query_string will be loaded in cgi processing [14:44:37]execute_cgi json_proto POST (null) [14:44:37]execute_cgi path=json_proto method=POST [14:44:37]POST find Content-Length [14:44:37]Host: 172.17.44.67:8080 [14:44:37]Content-Length: 677 [14:44:37]Content-Type: application/json [14:44:37] [14:44:37]POST finish read [14:44:37]Found Content-Length = 677 [14:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:37]execute_script... [14: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)918873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:37]POST & json_proto [14:44:37]process_json_proto [14:44:37]json parsed OK: [14:44:37]protocol is kg_v1.0 [14:44:37]action value=close_receipt [14:44:37]process_action close_receipt [14:44:37]cmd_close_receipt [14:44:37]MH_GetDate [14:44:37]Write to MH i2c: F0 00 00 B1 00 A0 [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: F0 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: F0 09 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: F0 09 00 B1 00 00 56 74 12 67 F1 C7 6B 64 73 [14:44:37]GetLastDocTimeStamp 1729262406 [14:44:37]current date 1729262678 [14:44:37]FM_GetShiftState [14:44:37]SAM_PROTO_GetShiftState [14:44:37]wFMCommunicate request_size=4 [14:44:37]MH_SAM_APDU [14:44:37]CAPDU: 80 13 01 00 [14:44:37]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:37]Read from MH i2c: E2 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 0E 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 01 [14:44:37]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:44:37]wFMCommunicate OK [14:44:37]SAM_PROTO_GetShiftState done [14:44:37]FM_GetShiftState done [14:44:37]opened in 1729212319 [14:44:37]opened+sec_in_day 1729298719 [14:44:37]quantity*price = 40006 [14:44:37]sum+1 = 40007 [14:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 89 18.10.2024 14:44 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82380 ФПД: 182843013664458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144438&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82380&fm=182843013664458&tin=02508201610067®Number=0000000000091680&sum=40000 [14:44:39]StoreToDocumentArchive [14:44:39]shift 526 fd 82380 [14:44:39]save to /storage/0526/doc_00082380 [14:44:39]save last doc name /storage/0526/doc_00082380 to /storage/kkm_last_doc_name [14:44:39]save OK [14:44:39]Clear old archive folders... [14:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:39]tlvbuf is 00D9F1A0 [14:44:39]SAM_PROTO_ClearQueue [14:44:39]wFMCommunicate request_size=4 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 09 00 00 [14:44:39]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [14:44:39]RAPDU: 90 00 [14:44:39]wFMCommunicate OK [14:44:39]SAM_PROTO_ClearQueue done [14:44:39]KKMCreateOFDPacket [14:44:39]OFDProtocolAddRootSTLVToBuf [14:44:39]FM_MakeSignedData [14:44:39]FM_MakeSignedData [14:44:39]SAM_PROTO_SignData [14:44:39]wFMCommunicate request_size=4 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 0D 01 02 [14:44:39]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:44:39]RAPDU: 90 00 [14:44:39]wFMCommunicate OK [14:44:39]wFMCommunicate request_size=255 [14:44:39]MH_SAM_APDU [14:44: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 74 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 41 01 00 35 04 06 00 A6 [14:44:39]Write to MH i2c: E2 02 01 C1 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 74 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 41 01 00 35 04 06 00 A6 00 00 F4 [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:44:39]RAPDU: 90 00 [14:44:39]wFMCommunicate OK [14:44:39]wFMCommunicate request_size=10 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 0D 02 02 05 4B 74 E1 0E CA [14:44:39]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 4B 74 E1 0E CA 00 00 BE [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:44:39]RAPDU: 90 00 [14:44:39]wFMCommunicate OK [14:44:39]wFMCommunicate request_size=4 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 0D 03 02 [14:44:39]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 0B 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 0B 00 C3 00 00 B2 0B 1D 60 35 BA 80 1A 90 00 02 [14:44:39]RAPDU: B2 0B 1D 60 35 BA 80 1A 90 00 [14:44:39]wFMCommunicate OK [14:44:39]SAM_PROTO_SignData done [14:44:39]FM_MakeSignedData done [14:44:39]CreateOFDProtocolMessage [14:44:39]wFMCommunicate request_size=4 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 11 00 00 [14:44:39]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 17 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 90 [14:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:44:39]wFMCommunicate OK [14:44:39]CreateOFDProtocolMessage done [14:44:39]OFDSenderStorePacket 82380 [14:44:39]StoreOFDPacket docnum=82380 [14:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4C 99 07 01 27 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 74 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 41 01 00 35 04 06 00 A6 4B 74 E1 0E CA B2 0B 1D 60 35 BA 80 1A [14:44:39]CheckFolder [14:44:39]dirname=/storage/ofd_packets [14:44:39]CheckFolder done [14:44:39]ProducePacketName [14:44:39]name=ofd_packets/00082380 [14:44:39]NVStorageSaveData ofd_packets/00082380 [14:44:39]File name is /storage/ofd_packets/00082380 [14:44:39]Write 301 bytes [14:44:39]NVStorageSaveData done [14:44:39]OFDSenderStorePacket done [14:44:39]KKMCreateOFDPacket done [14:44:39]NVStorageSaveData kkm_last_timestamp [14:44:39]File name is /storage/kkm_last_timestamp [14:44:39]Write 4 bytes [14:44:39]NVStorageSaveData done [14:44:39]ExternCall_PrintAddStr [14:44:39]wPrintStart [14:44:39]Write to MH i2c: 01 00 00 C5 00 C5 [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: 01 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: 01 07 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [14:44:39]RasterBufferAndPrint [14:44:39]line Счет N : (1)918873 [14:44:39]line ИНН: 02508201610067 [14:44:39]line Контрольно-Кассовый Чек [14:44:39]line ПРОДАЖА [14:44:39]line ТРК (МРК, ГНК) : 22 [14:44:39]line Товар: 2710124130 [14:44:39]line Аи-92-К-4 [14:44:39]line 5.980 * 66.90 [14:44:39]line = 400.06 [14:44:39]line НДС 12% НСП 1% [14:44:39]line > о реализуемом товаре [14:44:39]line ОКРУГЛЕНИЕ: -0.06 [14:44:39]line ИТОГО: 400.00 [14:44:39]line Внесено: 400.00 [14:44:39]line СДАЧА: 0.00 [14:44:39]line НСП 1% : 3.54 [14:44:39]line НДС 12% : 42.48 [14:44:39]line Наличными: 400.00 [14:44:39]line Безнал.: 0.00 [14:44:39]line Место: АЗС № 114 "Партнер Нефть" [14:44:39]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:44:39]line СНО: Общий режим [14:44:39]line Чек 89 18.10.2024 14:44 [14:44:39]line Смена: 526 ФФД: 1.0 [14:44:39]line ЗНМ: 0300000086 [14:44:39]line РНМ: 0000000000091680 [14:44:39]line Версия ККМ: 001 [14:44:39]line ФМ: 0000000000871843 [14:44:39]line ФД: 82380 [14:44:39]line ФПД: 182843013664458 [14:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144438&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82380&fm=182843013664458&tin=02508201610067®Number=0000000000091680&sum=40000 [14:44:39]OFD Sender: Processing packet 82380 [packets to send 254, broken 253] [14:44:39]ProducePacketName [14:44:39]name=ofd_packets/00082380 [14:44:39]OFD Sender: To server: pG, [14:44:39]CommunicateWithHost lk.salyk.kg:30040 [14:44:39]ConnectInit lk.salyk.kg [14:44:39]written 0, free lines is 4095 [14:44:40]Write to MH i2c: 01 00 00 F0 00 F0 [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: 01 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: 01 07 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 D8 0C DB [14:44:40]RasterBufferAndPrint [14:44:40]line [14:44:40]line [14:44:40]line [14:44:40]line [14:44:40]line [14:44:40]written 0, free lines is 3296 [14:44:40]MH_Cut [14:44:40]Write to MH i2c: D1 01 00 F7 00 01 C9 [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: D1 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: D1 01 00 [14:44:40]MH_I2C_Read... [14:44:40]Read from MH i2c: D1 01 00 F7 00 00 C8 [14:44:40]Write to MH i2c: 01 00 00 F8 00 F8 [14:44:40]Write i2c OK [14:44:40]MH_I2C_Read... [14:44:41]*** Cut start [14:44:41]*** Partial cut [14:44:41]*** CUTSNS_PIN = 1 [14:44:41]*** CUTSNS_PIN = 0 [14:44:41]*** Brake cut motor [14:44:41]Read from MH i2c: 01 [14:44:41]MH_I2C_Read... [14:44:41]*** Stop cut motor [14:44:41]*** Cut end [14:44:41]Read from MH i2c: 01 07 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [14:44:41]process_action close_receipt done [14:44:41]requested_data is exist [14:44:41]produce_requested_data [14:44:41]requested_item fm.sn is exist - process it [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 11 00 00 [14:44:41]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 17 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [14:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:44:41]wFMCommunicate OK [14:44:41]requested_item fd.num is exist - process it [14:44:41]SAM_PROTO_GetFieldsCounters [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 13 00 00 [14:44:41]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 62 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [14:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:42]wFMCommunicate OK [14:44:42]SAM_PROTO_GetFieldsCounters done [14:44:42]requested_item shift.num is exist - process it [14:44:42]requested_item shift.opened is exist - process it [14:44:42]req_shift_opened [14:44:42]FM_GetShiftState [14:44:42]SAM_PROTO_GetShiftState [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 13 01 00 [14:44:42]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 0E 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4A [14:44:42]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:44:42]wFMCommunicate OK [14:44:42]SAM_PROTO_GetShiftState done [14:44:42]FM_GetShiftState done [14:44:42]req_shift_opened done [14:44:42]requested_item shift.open_date is exist - process it [14:44:42]req_shift_open_date [14:44:42]req_shift_open_date done [14:44:42]produce_requested_data done [14:44:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82380,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:44:42]process_action_free close_receipt [14:44:42]json_value_free [14:44:42]json_value_free done [14:44:42]process_json_proto returns [14:44:42]Send response to host [14:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82380,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:44:42]free response buf [14:44:42]execute_script done [14:44:42]execute_script returns [14:44:42]free content buf [14:44:42]Sock 9.Close socket [14:44:42]Sock 9.Thread stoped [14:44:44]Connected sock=11 [14: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 31 38 34 33 0F 01 00 00 4C 99 07 01 27 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 56 74 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 41 01 00 35 04 06 00 A6 4B 74 E1 0E CA B2 0B 1D 60 35 BA 80 1A [14:44:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 22 FB 47 00 E6 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CC 41 01 00 F4 03 04 00 96 19 12 67 B6 04 01 00 00 C0 9C 7A 4F 16 8A 5B 9D [14:44:46]CommunicateWithHost err = 0 [14:44:46]CheckOFDResponse [14:44:46]1017 (14) - 77093643461234 [14:44:46]1041 (16) - 0000000000871843 [14:44:46]1040 (4) - 82380 [14:44:46]1012 (4) - 18.10.2024 08:17 [14:44:46]1206 (1) - 0 [14:44:46]OFD Sender: Remove packet 82380 [14:44:46]ProducePacketName [14:44:46]name=ofd_packets/00082380 [14:44:46]NVStorageDeleteData [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:52]recv_with_timeout no data received [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:05]recv_with_timeout no data received [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]recv_with_timeout no data received [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:24]recv_with_timeout no data received [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]accept exits with 10 [14:48:56]New connection [14:48:56]New thread 3066826084 created [14:48:56]Thread 3066969444 joined [14:48:56]Waiting for new connection... [14:48:56] Sock 10.Parse request [14:48:56]Sock 10.Check first char [14:48:56]Sock 10.First char is OK [14:48:56]request: POST /json_proto HTTP/1.0 [14:48:56]Method: POST [14:48:56]URL: /json_proto [14:48:56]Method is POST - this is cgi request [14:48:56]url: /json_proto [14:48:56]query_string will be loaded in cgi processing [14:48:56]execute_cgi json_proto POST (null) [14:48:56]execute_cgi path=json_proto method=POST [14:48:56]POST find Content-Length [14:48:56]Host: 172.17.44.67:8080 [14:48:56]Content-Length: 769 [14:48:56]Content-Type: application/json [14:48:56] [14:48:56]POST finish read [14:48:56]Found Content-Length = 769 [14:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:56]execute_script... [14:48: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)918874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:56]POST & json_proto [14:48:56]process_json_proto [14:48:56]json parsed OK: [14:48:56]protocol is kg_v1.0 [14:48:56]action value=close_receipt [14:48:56]process_action close_receipt [14:48:56]cmd_close_receipt [14:48:56]MH_GetDate [14:48:56]Write to MH i2c: F0 00 00 FC 00 EB [14:48:56]Write i2c OK [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: F0 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: F0 09 00 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: F0 09 00 FC 00 00 59 75 12 67 F1 C7 6B 64 C2 [14:48:56]GetLastDocTimeStamp 1729262678 [14:48:56]current date 1729262937 [14:48:56]FM_GetShiftState [14:48:56]SAM_PROTO_GetShiftState [14:48:56]wFMCommunicate request_size=4 [14:48:56]MH_SAM_APDU [14:48:56]CAPDU: 80 13 01 00 [14:48:56]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [14:48:56]Write i2c OK [14:48:56]MH_I2C_Read... [14:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:56]Read from MH i2c: E2 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 0E 00 [14:48:56]MH_I2C_Read... [14:48:56]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4C [14:48:56]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:48:56]wFMCommunicate OK [14:48:56]SAM_PROTO_GetShiftState done [14:48:56]FM_GetShiftState done [14:48:56]opened in 1729212319 [14:48:56]opened+sec_in_day 1729298719 [14:48:56]quantity*price = 100015 [14:48:56]sum+1 = 100017 [14:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 90 18.10.2024 14:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82381 ФПД: 50808978511605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144857&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82381&fm=50808978511605&tin=02508201610067®Number=0000000000091680&sum=100016 [14:48:57]StoreToDocumentArchive [14:48:57]shift 526 fd 82381 [14:48:57]save to /storage/0526/doc_00082381 [14:48:57]save last doc name /storage/0526/doc_00082381 to /storage/kkm_last_doc_name [14:48:57]save OK [14:48:57]Clear old archive folders... [14:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:57]tlvbuf is 00D9ED50 [14:48:57]SAM_PROTO_ClearQueue [14:48:57]wFMCommunicate request_size=4 [14:48:57]MH_SAM_APDU [14:48:57]CAPDU: 80 09 00 00 [14:48:57]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [14:48:57]Write i2c OK [14:48:57]MH_I2C_Read... [14:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:57]Read from MH i2c: E2 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:48:57]RAPDU: 90 00 [14:48:57]wFMCommunicate OK [14:48:57]SAM_PROTO_ClearQueue done [14:48:57]KKMCreateOFDPacket [14:48:57]OFDProtocolAddRootSTLVToBuf [14:48:57]FM_MakeSignedData [14:48:57]FM_MakeSignedData [14:48:57]SAM_PROTO_SignData [14:48:57]wFMCommunicate request_size=4 [14:48:57]MH_SAM_APDU [14:48:57]CAPDU: 80 0D 01 02 [14:48:57]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [14:48:57]Write i2c OK [14:48:57]MH_I2C_Read... [14:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:57]Read from MH i2c: E2 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:48:57]RAPDU: 90 00 [14:48:57]wFMCommunicate OK [14:48:57]wFMCommunicate request_size=255 [14:48:57]MH_SAM_APDU [14:48: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 59 75 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 41 01 00 35 04 06 00 2E [14:48:57]Write to MH i2c: E2 02 01 0C 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 59 75 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 41 01 00 35 04 06 00 2E 00 00 19 [14:48:57]Write i2c OK [14:48:57]MH_I2C_Read... [14:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:57]Read from MH i2c: E2 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:48:57]RAPDU: 90 00 [14:48:57]wFMCommunicate OK [14:48:57]wFMCommunicate request_size=10 [14:48:57]MH_SAM_APDU [14:48:57]CAPDU: 80 0D 02 02 05 35 E3 1D 96 F5 [14:48:57]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 35 E3 1D 96 F5 00 00 52 [14:48:57]Write i2c OK [14:48:57]MH_I2C_Read... [14:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:57]Read from MH i2c: E2 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 [14:48:57]MH_I2C_Read... [14:48:57]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:48:57]RAPDU: 90 00 [14:48:57]wFMCommunicate OK [14:48:57]wFMCommunicate request_size=4 [14:48:57]MH_SAM_APDU [14:48:57]CAPDU: 80 0D 03 02 [14:48:57]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [14:48:57]Write i2c OK [14:48:57]MH_I2C_Read... [14:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:58]Read from MH i2c: E2 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 0B 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 0B 00 0E 01 00 A1 9F 3B A8 4B 49 49 A9 90 00 34 [14:48:58]RAPDU: A1 9F 3B A8 4B 49 49 A9 90 00 [14:48:58]wFMCommunicate OK [14:48:58]SAM_PROTO_SignData done [14:48:58]FM_MakeSignedData done [14:48:58]CreateOFDProtocolMessage [14:48:58]wFMCommunicate request_size=4 [14:48:58]MH_SAM_APDU [14:48:58]CAPDU: 80 11 00 00 [14:48:58]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:58]Read from MH i2c: E2 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 17 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [14:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:48:58]wFMCommunicate OK [14:48:58]CreateOFDProtocolMessage done [14:48:58]OFDSenderStorePacket 82381 [14:48:58]StoreOFDPacket docnum=82381 [14:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 32 81 07 01 AC E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 59 75 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 41 01 00 35 04 06 00 2E 35 E3 1D 96 F5 A1 9F 3B A8 4B 49 49 A9 [14:48:58]CheckFolder [14:48:58]dirname=/storage/ofd_packets [14:48:58]CheckFolder done [14:48:58]ProducePacketName [14:48:58]name=ofd_packets/00082381 [14:48:58]NVStorageSaveData ofd_packets/00082381 [14:48:58]File name is /storage/ofd_packets/00082381 [14:48:58]Write 301 bytes [14:48:58]NVStorageSaveData done [14:48:58]OFDSenderStorePacket done [14:48:58]KKMCreateOFDPacket done [14:48:58]NVStorageSaveData kkm_last_timestamp [14:48:58]File name is /storage/kkm_last_timestamp [14:48:58]Write 4 bytes [14:48:58]NVStorageSaveData done [14:48:58]ExternCall_PrintAddStr [14:48:58]wPrintStart [14:48:58]Write to MH i2c: 01 00 00 10 01 11 [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: 01 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: 01 07 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [14:48:58]RasterBufferAndPrint [14:48:58]line Счет N : (1)918874 [14:48:58]line ИНН: 02508201610067 [14:48:58]line Контрольно-Кассовый Чек [14:48:58]line ПРОДАЖА [14:48:58]line ТРК (МРК, ГНК) : 22 [14:48:58]line Товар: 2710124130 [14:48:58]line Аи-92-К-4 [14:48:58]line 14.950 * 66.90 [14:48:58]line = 1000.16 [14:48:58]line НДС 12% НСП 1% [14:48:58]line > о реализуемом товаре [14:48:58]line ИТОГО: 1000.16 [14:48:58]line НСП 1% : 8.85 [14:48:58]line НДС 12% : 106.21 [14:48:58]line Наличными: 0.00 [14:48:58]line Безнал.: 1000.16 [14:48:58]line Место: АЗС № 114 "Партнер Нефть" [14:48:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:48:58]line СНО: Общий режим [14:48:58]line Чек 90 18.10.2024 14:48 [14:48:58]line Смена: 526 ФФД: 1.0 [14:48:58]line ЗНМ: 0300000086 [14:48:58]line РНМ: 0000000000091680 [14:48:58]line Версия ККМ: 001 [14:48:58]line Платежная система: Mbank [14:48:58]line ФМ: 0000000000871843 [14:48:58]line ФД: 82381 [14:48:58]line ФПД: 50808978511605 [14:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144857&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82381&fm=50808978511605&tin=02508201610067®Number=0000000000091680&sum=100016 [14:48:58]written 0, free lines is 4095 [14:48:58]OFD Sender: Processing packet 82381 [packets to send 254, broken 253] [14:48:58]ProducePacketName [14:48:58]name=ofd_packets/00082381 [14:48:58]OFD Sender: To server: pG, [14:48:58]CommunicateWithHost lk.salyk.kg:30040 [14:48:58]ConnectInit lk.salyk.kg [14:48:58]Write to MH i2c: 01 00 00 39 01 3A [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: 01 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: 01 07 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 F6 0C 43 [14:48:58]RasterBufferAndPrint [14:48:58]line [14:48:58]line [14:48:58]line [14:48:58]line [14:48:58]line [14:48:58]written 0, free lines is 3324 [14:48:58]MH_Cut [14:48:58]Write to MH i2c: D1 01 00 40 01 01 13 [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: D1 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: D1 01 00 [14:48:58]MH_I2C_Read... [14:48:58]Read from MH i2c: D1 01 00 40 01 00 12 [14:48:58]Write to MH i2c: 01 00 00 41 01 42 [14:48:58]Write i2c OK [14:48:58]MH_I2C_Read... [14:48:59]*** Cut start [14:48:59]*** Partial cut [14:48:59]*** CUTSNS_PIN = 1 [14:48:59]*** CUTSNS_PIN = 0 [14:48:59]*** Brake cut motor [14:49:00]Read from MH i2c: 01 [14:49:00]MH_I2C_Read... [14:49:00]*** Stop cut motor [14:49:00]*** Cut end [14:49:00]Read from MH i2c: 01 07 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [14:49:00]process_action close_receipt done [14:49:00]requested_data is exist [14:49:00]produce_requested_data [14:49:00]requested_item fm.sn is exist - process it [14:49:00]wFMCommunicate request_size=4 [14:49:00]MH_SAM_APDU [14:49:00]CAPDU: 80 11 00 00 [14:49:00]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 [14:49:00]MH_I2C_Read... [14:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:00]Read from MH i2c: E2 17 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0F [14:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:49:00]wFMCommunicate OK [14:49:00]requested_item fd.num is exist - process it [14:49:00]SAM_PROTO_GetFieldsCounters [14:49:00]wFMCommunicate request_size=4 [14:49:00]MH_SAM_APDU [14:49:00]CAPDU: 80 13 00 00 [14:49:00]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:00]Read from MH i2c: E2 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 62 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 62 00 43 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CD 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CD 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:00]wFMCommunicate OK [14:49:00]SAM_PROTO_GetFieldsCounters done [14:49:00]requested_item shift.num is exist - process it [14:49:00]requested_item shift.opened is exist - process it [14:49:00]req_shift_opened [14:49:00]FM_GetShiftState [14:49:00]SAM_PROTO_GetShiftState [14:49:00]wFMCommunicate request_size=4 [14:49:00]MH_SAM_APDU [14:49:00]CAPDU: 80 13 01 00 [14:49:00]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:00]Read from MH i2c: E2 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 0E 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 94 [14:49:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:49:00]wFMCommunicate OK [14:49:00]SAM_PROTO_GetShiftState done [14:49:00]FM_GetShiftState done [14:49:00]req_shift_opened done [14:49:00]requested_item shift.open_date is exist - process it [14:49:00]req_shift_open_date [14:49:00]req_shift_open_date done [14:49:00]produce_requested_data done [14:49:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82381,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:49:00]process_action_free close_receipt [14:49:00]json_value_free [14:49:00]json_value_free done [14:49:00]process_json_proto returns [14:49:00]Send response to host [14:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82381,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:49:00]free response buf [14:49:00]execute_script done [14:49:00]execute_script returns [14:49:00]free content buf [14:49:00]Sock 10.Close socket [14:49:00]Sock 10.Thread stoped [14:49:02]Connected sock=9 [14:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 32 81 07 01 AC E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 59 75 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 41 01 00 35 04 06 00 2E 35 E3 1D 96 F5 A1 9F 3B A8 4B 49 49 A9 [14:49:07]recv_with_timeout no data received [14:49:07]CommunicateWithHost answer receiving error [14:49:07]CommunicateWithHost err = -3 [14:49:07]OFD Sender: Server communicate error [14:49:07]recv_with_timeout no data received [14:49:12]OFD Sender: Processing packet 82381 [packets to send 254, broken 253] [14:49:12]ProducePacketName [14:49:12]name=ofd_packets/00082381 [14:49:12]OFD Sender: To server: pG, [14:49:12]CommunicateWithHost lk.salyk.kg:30040 [14:49:12]ConnectInit lk.salyk.kg [14:49:17]Connected sock=10 [14:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 32 81 07 01 AC E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 59 75 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 41 01 00 35 04 06 00 2E 35 E3 1D 96 F5 A1 9F 3B A8 4B 49 49 A9 [14:49:19]recv_with_timeout no data received [14:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 22 8F 47 00 55 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CD 41 01 00 F4 03 04 00 A8 1A 12 67 B6 04 01 00 00 DF 53 08 29 F3 69 DA 4D [14:49:20]CommunicateWithHost err = 0 [14:49:20]CheckOFDResponse [14:49:20]1017 (14) - 77093643461234 [14:49:20]1041 (16) - 0000000000871843 [14:49:20]1040 (4) - 82381 [14:49:20]1012 (4) - 18.10.2024 08:22 [14:49:20]1206 (1) - 0 [14:49:20]OFD Sender: Remove packet 82381 [14:49:20]ProducePacketName [14:49:20]name=ofd_packets/00082381 [14:49:20]NVStorageDeleteData [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:37]recv_with_timeout no data received [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:17]recv_with_timeout no data received [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]recv_with_timeout no data received [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:28]accept exits with 7 [14:53:28]New connection [14:53:28]New thread 3066969444 created [14:53:28]Thread 3066826084 joined [14:53:28]Waiting for new connection... [14:53:28] Sock 7.Parse request [14:53:28]Sock 7.Check first char [14:53:28]Sock 7.First char is OK [14:53:28]request: POST /json_proto HTTP/1.0 [14:53:28]Method: POST [14:53:28]URL: /json_proto [14:53:28]Method is POST - this is cgi request [14:53:28]url: /json_proto [14:53:28]query_string will be loaded in cgi processing [14:53:28]execute_cgi json_proto POST (null) [14:53:28]execute_cgi path=json_proto method=POST [14:53:28]POST find Content-Length [14:53:28]Host: 172.17.44.67:8080 [14:53:28]Content-Length: 759 [14:53:28]Content-Type: application/json [14:53:28] [14:53:28]POST finish read [14:53:28]Found Content-Length = 759 [14:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103743", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:28]execute_script... [14:53: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)918875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103743", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:28]POST & json_proto [14:53:28]process_json_proto [14:53:28]json parsed OK: [14:53:28]protocol is kg_v1.0 [14:53:28]action value=close_receipt [14:53:28]process_action close_receipt [14:53:28]cmd_close_receipt [14:53:28]MH_GetDate [14:53:28]Write to MH i2c: F0 00 00 45 01 35 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 09 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: F0 09 00 45 01 00 69 76 12 67 F1 C7 6B 64 1D [14:53:28]GetLastDocTimeStamp 1729262937 [14:53:28]current date 1729263209 [14:53:28]FM_GetShiftState [14:53:28]SAM_PROTO_GetShiftState [14:53:28]wFMCommunicate request_size=4 [14:53:28]MH_SAM_APDU [14:53:28]CAPDU: 80 13 01 00 [14:53:28]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [14:53:28]Write i2c OK [14:53:28]MH_I2C_Read... [14:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:28]Read from MH i2c: E2 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0E 00 [14:53:28]MH_I2C_Read... [14:53:28]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 96 [14:53:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:53:28]wFMCommunicate OK [14:53:28]SAM_PROTO_GetShiftState done [14:53:28]FM_GetShiftState done [14:53:28]opened in 1729212319 [14:53:28]opened+sec_in_day 1729298719 [14:53:28]quantity*price = 0 [14:53:28]sum+1 = 1 [14:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 91 18.10.2024 14:53 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30103743 ФМ: 0000000000871843 ФД: 82382 ФПД: 85453975871721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T145329&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82382&fm=85453975871721&tin=02508201610067®Number=0000000000091680&sum=0 [14:53:29]StoreToDocumentArchive [14:53:29]shift 526 fd 82382 [14:53:29]save to /storage/0526/doc_00082382 [14:53:29]save last doc name /storage/0526/doc_00082382 to /storage/kkm_last_doc_name [14:53:29]save OK [14:53:29]Clear old archive folders... [14:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:53:29]tlvbuf is 00DE8C00 [14:53:29]SAM_PROTO_ClearQueue [14:53:29]wFMCommunicate request_size=4 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 09 00 00 [14:53:29]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [14:53:29]RAPDU: 90 00 [14:53:29]wFMCommunicate OK [14:53:29]SAM_PROTO_ClearQueue done [14:53:29]KKMCreateOFDPacket [14:53:29]OFDProtocolAddRootSTLVToBuf [14:53:29]FM_MakeSignedData [14:53:29]FM_MakeSignedData [14:53:29]SAM_PROTO_SignData [14:53:29]wFMCommunicate request_size=4 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 0D 01 02 [14:53:29]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [14:53:29]Write i2c OK [14:53:29]MH_I2C_Read... [14:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:29]Read from MH i2c: E2 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 [14:53:29]MH_I2C_Read... [14:53:29]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [14:53:29]RAPDU: 90 00 [14:53:29]wFMCommunicate OK [14:53:29]wFMCommunicate request_size=255 [14:53:29]MH_SAM_APDU [14:53:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 69 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 41 01 00 35 04 06 00 [14:53:30]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 69 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 41 01 00 35 04 06 00 00 00 89 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [14:53:30]RAPDU: 90 00 [14:53:30]wFMCommunicate OK [14:53:30]wFMCommunicate request_size=11 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 0D 02 02 06 4D B8 4D E0 60 E9 [14:53:30]Write to MH i2c: E2 0E 00 56 01 80 0D 02 02 06 00 4D B8 4D E0 60 E9 00 00 58 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [14:53:30]RAPDU: 90 00 [14:53:30]wFMCommunicate OK [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 0D 03 02 [14:53:30]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0B 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 0B 00 57 01 00 72 08 98 55 3D EF 4B EA 90 00 9C [14:53:30]RAPDU: 72 08 98 55 3D EF 4B EA 90 00 [14:53:30]wFMCommunicate OK [14:53:30]SAM_PROTO_SignData done [14:53:30]FM_MakeSignedData done [14:53:30]CreateOFDProtocolMessage [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 11 00 00 [14:53:30]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:30]Read from MH i2c: E2 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 25 [14:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:53:30]wFMCommunicate OK [14:53:30]CreateOFDProtocolMessage done [14:53:30]OFDSenderStorePacket 82382 [14:53:30]StoreOFDPacket docnum=82382 [14:53:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 EF A4 08 01 E2 B0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 69 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 41 01 00 35 04 06 00 4D B8 4D E0 60 E9 72 08 98 55 3D EF 4B EA [14:53:30]CheckFolder [14:53:30]dirname=/storage/ofd_packets [14:53:30]CheckFolder done [14:53:30]ProducePacketName [14:53:30]name=ofd_packets/00082382 [14:53:30]NVStorageSaveData ofd_packets/00082382 [14:53:30]File name is /storage/ofd_packets/00082382 [14:53:30]Write 302 bytes [14:53:30]NVStorageSaveData done [14:53:30]OFDSenderStorePacket done [14:53:30]KKMCreateOFDPacket done [14:53:30]NVStorageSaveData kkm_last_timestamp [14:53:30]File name is /storage/kkm_last_timestamp [14:53:30]Write 4 bytes [14:53:30]NVStorageSaveData done [14:53:30]ExternCall_PrintAddStr [14:53:30]wPrintStart [14:53:30]Write to MH i2c: 01 00 00 59 01 5A [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [14:53:30]RasterBufferAndPrint [14:53:30]line Счет N : (1)918875 [14:53:30]line ИНН: 02508201610067 [14:53:30]line Контрольно-Кассовый Чек [14:53:30]line ПРОДАЖА [14:53:30]line ТРК (МРК, ГНК) : 31 [14:53:30]line Товар: 2710194210 [14:53:30]line ДТ(л)-К-5 [14:53:30]line 30.000 * 0.00 [14:53:30]line = 0.00 [14:53:30]line НДС 12% НСП 1% [14:53:30]line > о реализуемом товаре [14:53:30]line ИТОГО: 0.00 [14:53:30]line НСП 1% : 0.00 [14:53:30]line НДС 12% : 0.00 [14:53:30]line Наличными: 0.00 [14:53:30]line Безнал.: 0.00 [14:53:30]line Место: АЗС № 114 "Партнер Нефть" [14:53:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:53:30]line СНО: Общий режим [14:53:30]line Чек 91 18.10.2024 14:53 [14:53:30]line Смена: 526 ФФД: 1.0 [14:53:30]line ЗНМ: 0300000086 [14:53:30]line РНМ: 0000000000091680 [14:53:30]line Версия ККМ: 001 [14:53:30]line Талоны: ТК ГПНА Online [14:53:30]line 30103743 [14:53:30]line ФМ: 0000000000871843 [14:53:30]line ФД: 82382 [14:53:30]line ФПД: 85453975871721 [14:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T145329&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82382&fm=85453975871721&tin=02508201610067®Number=0000000000091680&sum=0 [14:53:30]written 0, free lines is 4095 [14:53:30]OFD Sender: Processing packet 82382 [packets to send 254, broken 253] [14:53:30]ProducePacketName [14:53:30]name=ofd_packets/00082382 [14:53:30]OFD Sender: To server: pG, [14:53:30]CommunicateWithHost lk.salyk.kg:30040 [14:53:30]ConnectInit lk.salyk.kg [14:53:31]Write to MH i2c: 01 00 00 83 01 84 [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: 01 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: 01 07 00 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E6 0C 7D [14:53:31]RasterBufferAndPrint [14:53:31]line [14:53:31]line [14:53:31]line [14:53:31]line [14:53:31]line [14:53:31]written 0, free lines is 3309 [14:53:31]MH_Cut [14:53:31]Write to MH i2c: D1 01 00 8A 01 01 5D [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: D1 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: D1 01 00 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: D1 01 00 8A 01 00 5C [14:53:31]Write to MH i2c: 01 00 00 8B 01 8C [14:53:31]Write i2c OK [14:53:31]MH_I2C_Read... [14:53:31]*** Cut start [14:53:31]*** Partial cut [14:53:31]*** CUTSNS_PIN = 1 [14:53:32]*** CUTSNS_PIN = 0 [14:53:32]*** Brake cut motor [14:53:32]Read from MH i2c: 01 [14:53:32]MH_I2C_Read... [14:53:32]*** Stop cut motor [14:53:32]*** Cut end [14:53:32]Read from MH i2c: 01 07 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [14:53:32]process_action close_receipt done [14:53:32]requested_data is exist [14:53:32]produce_requested_data [14:53:32]requested_item fm.sn is exist - process it [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 11 00 00 [14:53:32]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 17 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 59 [14:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:53:32]wFMCommunicate OK [14:53:32]requested_item fd.num is exist - process it [14:53:32]SAM_PROTO_GetFieldsCounters [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 13 00 00 [14:53:32]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 62 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [14:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_GetFieldsCounters done [14:53:32]requested_item shift.num is exist - process it [14:53:32]requested_item shift.opened is exist - process it [14:53:32]req_shift_opened [14:53:32]FM_GetShiftState [14:53:32]SAM_PROTO_GetShiftState [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 13 01 00 [14:53:32]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DE [14:53:32]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_GetShiftState done [14:53:32]FM_GetShiftState done [14:53:32]req_shift_opened done [14:53:32]requested_item shift.open_date is exist - process it [14:53:32]req_shift_open_date [14:53:32]req_shift_open_date done [14:53:32]produce_requested_data done [14:53:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82382,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:53:32]process_action_free close_receipt [14:53:32]json_value_free [14:53:32]json_value_free done [14:53:32]process_json_proto returns [14:53:32]Send response to host [14:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82382,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:53:32]free response buf [14:53:32]execute_script done [14:53:32]execute_script returns [14:53:32]free content buf [14:53:32]Sock 7.Close socket [14:53:32]Sock 7.Thread stoped [14:53:40]recv_with_timeout no data received [14:54:01]recv_with_timeout no data received [14:54:32]accept exits with 9 [14:54:32]New connection [14:54:32]New thread 3066826084 created [14:54:32]Thread 3066969444 joined [14:54:32]Waiting for new connection... [14:54:32] Sock 9.Parse request [14:54:32]Sock 9.Check first char [14:54:32]Sock 9.First char is OK [14:54:32]request: POST /json_proto HTTP/1.0 [14:54:32]Method: POST [14:54:32]URL: /json_proto [14:54:32]Method is POST - this is cgi request [14:54:32]url: /json_proto [14:54:32]query_string will be loaded in cgi processing [14:54:32]execute_cgi json_proto POST (null) [14:54:32]execute_cgi path=json_proto method=POST [14:54:32]POST find Content-Length [14:54:32]Host: 172.17.44.67:8080 [14:54:32]Content-Length: 627 [14:54:32]Content-Type: application/json [14:54:32] [14:54:32]POST finish read [14:54:32]Found Content-Length = 627 [14:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10595", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:32]execute_script... [14:54:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10595", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:32]POST & json_proto [14:54:32]process_json_proto [14:54:32]json parsed OK: [14:54:32]protocol is kg_v1.0 [14:54:32]action value=close_receipt [14:54:32]process_action close_receipt [14:54:32]cmd_close_receipt [14:54:32]MH_GetDate [14:54:32]Write to MH i2c: F0 00 00 8F 01 7F [14:54:32]Write i2c OK [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: F0 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: F0 09 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: F0 09 00 8F 01 00 A9 76 12 67 F1 C7 6B 64 A7 [14:54:32]GetLastDocTimeStamp 1729263209 [14:54:32]current date 1729263273 [14:54:32]FM_GetShiftState [14:54:32]SAM_PROTO_GetShiftState [14:54:32]wFMCommunicate request_size=4 [14:54:32]MH_SAM_APDU [14:54:32]CAPDU: 80 13 01 00 [14:54:32]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [14:54:32]Write i2c OK [14:54:32]MH_I2C_Read... [14:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:32]Read from MH i2c: E2 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 0E 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E0 [14:54:32]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:54:32]wFMCommunicate OK [14:54:32]SAM_PROTO_GetShiftState done [14:54:32]FM_GetShiftState done [14:54:32]opened in 1729212319 [14:54:32]opened+sec_in_day 1729298719 [14:54:32]quantity*price = 13000 [14:54:32]sum+1 = 13001 [14:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 92 18.10.2024 14:54 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82383 ФПД: 138988884929107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T145433&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82383&fm=138988884929107&tin=02508201610067®Number=0000000000091680&sum=13000 0 [14:54:33]StoreToDocumentArchive [14:54:33]shift 526 fd 82383 [14:54:33]save to /storage/0526/doc_00082383 [14:54:33]save last doc name /storage/0526/doc_00082383 to /storage/kkm_last_doc_name [14:54:33]save OK [14:54:33]Clear old archive folders... [14:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:54:33]tlvbuf is 00DEE060 [14:54:33]SAM_PROTO_ClearQueue [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 09 00 00 [14:54:33]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [14:54:33]RAPDU: 90 00 [14:54:33]wFMCommunicate OK [14:54:33]SAM_PROTO_ClearQueue done [14:54:33]KKMCreateOFDPacket [14:54:33]OFDProtocolAddRootSTLVToBuf [14:54:33]FM_MakeSignedData [14:54:33]FM_MakeSignedData [14:54:33]SAM_PROTO_SignData [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 0D 01 02 [14:54:33]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [14:54:33]RAPDU: 90 00 [14:54:33]wFMCommunicate OK [14:54:33]wFMCommunicate request_size=255 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A9 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 [14:54:33]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A9 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 00 00 64 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:34]Read from MH i2c: E2 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 03 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [14:54:34]RAPDU: 90 00 [14:54:34]wFMCommunicate OK [14:54:34]wFMCommunicate request_size=39 [14:54:34]MH_SAM_APDU [14:54:34]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 41 01 00 35 04 06 00 7E 68 DF 1D 2A 53 [14:54:34]Write to MH i2c: E2 2A 00 A0 01 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 41 01 00 35 04 06 00 7E 68 DF 1D 2A 53 00 00 45 [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:34]Read from MH i2c: E2 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 03 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [14:54:34]RAPDU: 90 00 [14:54:34]wFMCommunicate OK [14:54:34]wFMCommunicate request_size=4 [14:54:34]MH_SAM_APDU [14:54:34]CAPDU: 80 0D 03 02 [14:54:34]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:34]Read from MH i2c: E2 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 0B 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 0B 00 A1 01 00 40 50 3E F2 57 F5 36 67 90 00 C7 [14:54:34]RAPDU: 40 50 3E F2 57 F5 36 67 90 00 [14:54:34]wFMCommunicate OK [14:54:34]SAM_PROTO_SignData done [14:54:34]FM_MakeSignedData done [14:54:34]CreateOFDProtocolMessage [14:54:34]wFMCommunicate request_size=4 [14:54:34]MH_SAM_APDU [14:54:34]CAPDU: 80 11 00 00 [14:54:34]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:34]Read from MH i2c: E2 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 17 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6F [14:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:54:34]wFMCommunicate OK [14:54:34]CreateOFDProtocolMessage done [14:54:34]OFDSenderStorePacket 82383 [14:54:34]StoreOFDPacket docnum=82383 [14:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 AF A5 24 01 87 BA 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A9 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 41 01 00 35 04 06 00 7E 68 DF 1D 2A 53 40 50 3E F2 57 F5 36 67 [14:54:34]CheckFolder [14:54:34]dirname=/storage/ofd_packets [14:54:34]CheckFolder done [14:54:34]ProducePacketName [14:54:34]name=ofd_packets/00082383 [14:54:34]NVStorageSaveData ofd_packets/00082383 [14:54:34]File name is /storage/ofd_packets/00082383 [14:54:34]Write 330 bytes [14:54:34]NVStorageSaveData done [14:54:34]OFDSenderStorePacket done [14:54:34]KKMCreateOFDPacket done [14:54:34]NVStorageSaveData kkm_last_timestamp [14:54:34]File name is /storage/kkm_last_timestamp [14:54:34]Write 4 bytes [14:54:34]NVStorageSaveData done [14:54:34]ExternCall_PrintAddStr [14:54:34]wPrintStart [14:54:34]Write to MH i2c: 01 00 00 A3 01 A4 [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 07 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [14:54:34]RasterBufferAndPrint [14:54:34]line Счет N : (3)10595 [14:54:34]line ИНН: 02508201610067 [14:54:34]line Контрольно-Кассовый Чек [14:54:34]line ПРОДАЖА [14:54:34]line Товар: 48741231 [14:54:34]line Сигареты Winston Super Slims Silver [14:54:34]line 1.000 * 130.00 [14:54:34]line = 130.00 [14:54:34]line НДС 12% НСП 1% [14:54:34]line > о реализуемом товаре [14:54:34]line ИТОГО: 130.00 [14:54:34]line НСП 1% : 1.15 [14:54:34]line НДС 12% : 13.80 [14:54:34]line Наличными: 130.00 [14:54:34]line Безнал.: 0.00 [14:54:34]line Место: АЗС № 114 "Партнер Нефть" [14:54:34]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [14:54:34]line СНО: Общий режим [14:54:34]line Чек 92 18.10.2024 14:54 [14:54:34]line Смена: 526 ФФД: 1.0 [14:54:34]line ЗНМ: 0300000086 [14:54:34]line РНМ: 0000000000091680 [14:54:34]line Версия ККМ: 001 [14:54:34]line ФМ: 0000000000871843 [14:54:34]line ФД: 82383 [14:54:34]line ФПД: 138988884929107 [14:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T145433&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82383&fm=138988884929107&tin=02508201610067®Number=0000000000091680&sum=13000 [14:54:34]line 0 [14:54:34]written 0, free lines is 4095 [14:54:35]Write to MH i2c: 01 00 00 CC 01 CD [14:54:35]Write i2c OK [14:54:35]MH_I2C_Read... [14:54:35]Read from MH i2c: 01 [14:54:35]MH_I2C_Read... [14:54:35]Read from MH i2c: 01 07 00 [14:54:35]MH_I2C_Read... [14:54:35]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 D7 0C B7 [14:54:35]RasterBufferAndPrint [14:54:35]line [14:54:35]line [14:54:35]line [14:54:35]line [14:54:35]line [14:54:35]written 0, free lines is 3293 [14:54:35]MH_Cut [14:54:35]Write to MH i2c: D1 01 00 D3 01 01 A6 [14:54:35]Write i2c OK [14:54:35]MH_I2C_Read... [14:54:35]Read from MH i2c: D1 [14:54:35]MH_I2C_Read... [14:54:35]Read from MH i2c: D1 01 00 [14:54:35]MH_I2C_Read... [14:54:35]Read from MH i2c: D1 01 00 D3 01 00 A5 [14:54:35]Write to MH i2c: 01 00 00 D4 01 D5 [14:54:35]Write i2c OK [14:54:35]MH_I2C_Read... [14:54:35]*** Cut start [14:54:35]*** Partial cut [14:54:35]*** CUTSNS_PIN = 1 [14:54:35]*** CUTSNS_PIN = 0 [14:54:36]*** Brake cut motor [14:54:36]Read from MH i2c: 01 [14:54:36]MH_I2C_Read... [14:54:36]*** Stop cut motor [14:54:36]*** Cut end [14:54:36]Read from MH i2c: 01 07 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [14:54:36]process_action close_receipt done [14:54:36]requested_data is exist [14:54:36]produce_requested_data [14:54:36]requested_item fm.sn is exist - process it [14:54:36]wFMCommunicate request_size=4 [14:54:36]MH_SAM_APDU [14:54:36]CAPDU: 80 11 00 00 [14:54:36]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [14:54:36]Write i2c OK [14:54:36]MH_I2C_Read... [14:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:36]Read from MH i2c: E2 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 17 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A2 [14:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [14:54:36]wFMCommunicate OK [14:54:36]requested_item fd.num is exist - process it [14:54:36]SAM_PROTO_GetFieldsCounters [14:54:36]wFMCommunicate request_size=4 [14:54:36]MH_SAM_APDU [14:54:36]CAPDU: 80 13 00 00 [14:54:36]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [14:54:36]Write i2c OK [14:54:36]MH_I2C_Read... [14:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:36]Read from MH i2c: E2 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 62 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 62 00 D6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [14:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 CF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:36]wFMCommunicate OK [14:54:36]SAM_PROTO_GetFieldsCounters done [14:54:36]requested_item shift.num is exist - process it [14:54:36]requested_item shift.opened is exist - process it [14:54:36]req_shift_opened [14:54:36]FM_GetShiftState [14:54:36]SAM_PROTO_GetShiftState [14:54:36]wFMCommunicate request_size=4 [14:54:36]MH_SAM_APDU [14:54:36]CAPDU: 80 13 01 00 [14:54:36]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [14:54:36]Write i2c OK [14:54:36]MH_I2C_Read... [14:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:36]Read from MH i2c: E2 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 0E 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 27 [14:54:36]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [14:54:36]wFMCommunicate OK [14:54:36]SAM_PROTO_GetShiftState done [14:54:36]FM_GetShiftState done [14:54:36]req_shift_opened done [14:54:36]requested_item shift.open_date is exist - process it [14:54:36]req_shift_open_date [14:54:36]req_shift_open_date done [14:54:36]produce_requested_data done [14:54:36]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82383,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [14:54:36]process_action_free close_receipt [14:54:36]json_value_free [14:54:36]json_value_free done [14:54:36]process_json_proto returns [14:54:36]Send response to host [14:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82383,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [14:54:36]free response buf [14:54:36]execute_script done [14:54:36]execute_script returns [14:54:36]free content buf [14:54:36]Sock 9.Close socket [14:54:36]Sock 9.Thread stoped [14:54:38]recv_with_timeout no data received [14:54:57]recv_with_timeout no data received [14:55:48]ConnectInit Can't connect to host [14:55:48]CommunicateWithHost connect error [14:55:48]CommunicateWithHost err = -1 [14:55:48]OFD Sender: Server communicate error [14:55:49]OFD Sender: Processing packet 82382 [packets to send 255, broken 253] [14:55:49]ProducePacketName [14:55:49]name=ofd_packets/00082382 [14:55:49]OFD Sender: To server: pG, [14:55:49]CommunicateWithHost lk.salyk.kg:30040 [14:55:49]ConnectInit lk.salyk.kg [14:55:49]Connected sock=9 [14:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 EF A4 08 01 E2 B0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 69 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 41 01 00 35 04 06 00 4D B8 4D E0 60 E9 72 08 98 55 3D EF 4B EA [14:55:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 06 C4 47 00 26 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CE 41 01 00 F4 03 04 00 2E 1C 12 67 B6 04 01 00 00 53 1A AB DB D6 0A 7D 83 [14:55:50]CommunicateWithHost err = 0 [14:55:50]CheckOFDResponse [14:55:50]1017 (14) - 77093643461234 [14:55:50]1041 (16) - 0000000000871843 [14:55:50]1040 (4) - 82382 [14:55:50]1012 (4) - 18.10.2024 08:28 [14:55:50]1206 (1) - 0 [14:55:50]OFD Sender: Remove packet 82382 [14:55:50]ProducePacketName [14:55:50]name=ofd_packets/00082382 [14:55:50]NVStorageDeleteData [14:55:50]OFD Sender: Processing packet 82383 [packets to send 254, broken 253] [14:55:50]ProducePacketName [14:55:50]name=ofd_packets/00082383 [14:55:50]OFD Sender: To server: pG, [14:55:50]CommunicateWithHost lk.salyk.kg:30040 [14:55:50]ConnectInit lk.salyk.kg [14:55:51]Connected sock=9 [14:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 2C 01 00 00 AF A5 24 01 87 BA 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A9 76 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 41 01 00 35 04 06 00 7E 68 DF 1D 2A 53 40 50 3E F2 57 F5 36 67 [14:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6A 83 47 00 44 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 CF 41 01 00 F4 03 04 00 30 1C 12 67 B6 04 01 00 00 E7 7F E2 FE 6B 7F AC EB [14:55:51]CommunicateWithHost err = 0 [14:55:51]CheckOFDResponse [14:55:51]1017 (14) - 77093643461234 [14:55:51]1041 (16) - 0000000000871843 [14:55:51]1040 (4) - 82383 [14:55:51]1012 (4) - 18.10.2024 08:28 [14:55:51]1206 (1) - 0 [14:55:51]OFD Sender: Remove packet 82383 [14:55:51]ProducePacketName [14:55:51]name=ofd_packets/00082383 [14:55:51]NVStorageDeleteData [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:45]accept exits with 7 [15:02:45]New connection [15:02:45]New thread 3066969444 created [15:02:45]Thread 3066826084 joined [15:02:45]Waiting for new connection... [15:02:45] Sock 7.Parse request [15:02:45]Sock 7.Check first char [15:02:45]Sock 7.First char is OK [15:02:45]request: POST /json_proto HTTP/1.0 [15:02:45]Method: POST [15:02:45]URL: /json_proto [15:02:45]Method is POST - this is cgi request [15:02:45]url: /json_proto [15:02:45]query_string will be loaded in cgi processing [15:02:45]execute_cgi json_proto POST (null) [15:02:45]execute_cgi path=json_proto method=POST [15:02:45]POST find Content-Length [15:02:45]Host: 172.17.44.67:8080 [15:02:45]Content-Length: 677 [15:02:45]Content-Type: application/json [15:02:45] [15:02:45]POST finish read [15:02:45]Found Content-Length = 677 [15:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:45]execute_script... [15:02: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)918876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:45]POST & json_proto [15:02:45]process_json_proto [15:02:45]json parsed OK: [15:02:45]protocol is kg_v1.0 [15:02:45]action value=close_receipt [15:02:45]process_action close_receipt [15:02:45]cmd_close_receipt [15:02:45]MH_GetDate [15:02:45]Write to MH i2c: F0 00 00 D8 01 C8 [15:02:45]Write i2c OK [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: F0 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: F0 09 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: F0 09 00 D8 01 00 96 78 12 67 F1 C7 6B 64 DF [15:02:45]GetLastDocTimeStamp 1729263273 [15:02:45]current date 1729263766 [15:02:45]FM_GetShiftState [15:02:45]SAM_PROTO_GetShiftState [15:02:45]wFMCommunicate request_size=4 [15:02:45]MH_SAM_APDU [15:02:45]CAPDU: 80 13 01 00 [15:02:45]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [15:02:45]Write i2c OK [15:02:45]MH_I2C_Read... [15:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:45]Read from MH i2c: E2 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 0E 00 [15:02:45]MH_I2C_Read... [15:02:45]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 29 [15:02:45]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:02:45]wFMCommunicate OK [15:02:45]SAM_PROTO_GetShiftState done [15:02:45]FM_GetShiftState done [15:02:45]opened in 1729212319 [15:02:45]opened+sec_in_day 1729298719 [15:02:45]quantity*price = 50041 [15:02:45]sum+1 = 50042 [15:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 93 18.10.2024 15:02 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82384 ФПД: 57107580740892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150246&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82384&fm=57107580740892&tin=02508201610067®Number=0000000000091680&sum=50000 [15:02:46]StoreToDocumentArchive [15:02:46]shift 526 fd 82384 [15:02:46]save to /storage/0526/doc_00082384 [15:02:46]save last doc name /storage/0526/doc_00082384 to /storage/kkm_last_doc_name [15:02:46]save OK [15:02:46]Clear old archive folders... [15:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:46]tlvbuf is 00DC3D30 [15:02:46]SAM_PROTO_ClearQueue [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 09 00 00 [15:02:46]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [15:02:46]RAPDU: 90 00 [15:02:46]wFMCommunicate OK [15:02:46]SAM_PROTO_ClearQueue done [15:02:46]KKMCreateOFDPacket [15:02:46]OFDProtocolAddRootSTLVToBuf [15:02:46]FM_MakeSignedData [15:02:46]FM_MakeSignedData [15:02:46]SAM_PROTO_SignData [15:02:46]wFMCommunicate request_size=4 [15:02:46]MH_SAM_APDU [15:02:46]CAPDU: 80 0D 01 02 [15:02:46]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:46]Read from MH i2c: E2 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 [15:02:46]MH_I2C_Read... [15:02:46]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [15:02:46]RAPDU: 90 00 [15:02:46]wFMCommunicate OK [15:02:46]wFMCommunicate request_size=255 [15:02:46]MH_SAM_APDU [15:02: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 96 78 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 41 01 00 35 04 06 00 33 [15:02:46]Write to MH i2c: E2 02 01 E8 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 96 78 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 41 01 00 35 04 06 00 33 00 00 26 [15:02:46]Write i2c OK [15:02:46]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 03 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [15:02:47]RAPDU: 90 00 [15:02:47]wFMCommunicate OK [15:02:47]wFMCommunicate request_size=10 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 0D 02 02 05 F0 65 10 65 1C [15:02:47]Write to MH i2c: E2 0D 00 E9 01 80 0D 02 02 05 00 F0 65 10 65 1C 00 00 54 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 03 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [15:02:47]RAPDU: 90 00 [15:02:47]wFMCommunicate OK [15:02:47]wFMCommunicate request_size=4 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 0D 03 02 [15:02:47]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0B 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 0B 00 EA 01 00 90 C3 22 5F 6F AA A1 78 90 00 6D [15:02:47]RAPDU: 90 C3 22 5F 6F AA A1 78 90 00 [15:02:47]wFMCommunicate OK [15:02:47]SAM_PROTO_SignData done [15:02:47]FM_MakeSignedData done [15:02:47]CreateOFDProtocolMessage [15:02:47]wFMCommunicate request_size=4 [15:02:47]MH_SAM_APDU [15:02:47]CAPDU: 80 11 00 00 [15:02:47]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:47]Read from MH i2c: E2 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 17 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B8 [15:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:02:47]wFMCommunicate OK [15:02:47]CreateOFDProtocolMessage done [15:02:47]OFDSenderStorePacket 82384 [15:02:47]StoreOFDPacket docnum=82384 [15:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 51 93 07 01 39 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 96 78 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 41 01 00 35 04 06 00 33 F0 65 10 65 1C 90 C3 22 5F 6F AA A1 78 [15:02:47]CheckFolder [15:02:47]dirname=/storage/ofd_packets [15:02:47]CheckFolder done [15:02:47]ProducePacketName [15:02:47]name=ofd_packets/00082384 [15:02:47]NVStorageSaveData ofd_packets/00082384 [15:02:47]File name is /storage/ofd_packets/00082384 [15:02:47]Write 301 bytes [15:02:47]NVStorageSaveData done [15:02:47]OFDSenderStorePacket done [15:02:47]KKMCreateOFDPacket done [15:02:47]NVStorageSaveData kkm_last_timestamp [15:02:47]File name is /storage/kkm_last_timestamp [15:02:47]Write 4 bytes [15:02:47]NVStorageSaveData done [15:02:47]ExternCall_PrintAddStr [15:02:47]wPrintStart [15:02:47]Write to MH i2c: 01 00 00 EC 01 ED [15:02:47]Write i2c OK [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: 01 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: 01 07 00 [15:02:47]MH_I2C_Read... [15:02:47]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [15:02:47]RasterBufferAndPrint [15:02:47]line Счет N : (1)918876 [15:02:47]line ИНН: 02508201610067 [15:02:47]line Контрольно-Кассовый Чек [15:02:47]line ПРОДАЖА [15:02:47]line ТРК (МРК, ГНК) : 11 [15:02:47]line Товар: 2710124130 [15:02:47]line Аи-92-К-4 [15:02:47]line 7.480 * 66.90 [15:02:47]line = 500.41 [15:02:47]line НДС 12% НСП 1% [15:02:47]line > о реализуемом товаре [15:02:47]line ОКРУГЛЕНИЕ: -0.41 [15:02:47]line ИТОГО: 500.00 [15:02:47]line Внесено: 500.00 [15:02:47]line СДАЧА: 0.00 [15:02:47]line НСП 1% : 4.43 [15:02:47]line НДС 12% : 53.14 [15:02:47]line Наличными: 500.00 [15:02:47]line Безнал.: 0.00 [15:02:47]line Место: АЗС № 114 "Партнер Нефть" [15:02:47]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:02:47]line СНО: Общий режим [15:02:47]line Чек 93 18.10.2024 15:02 [15:02:47]line Смена: 526 ФФД: 1.0 [15:02:47]line ЗНМ: 0300000086 [15:02:47]line РНМ: 0000000000091680 [15:02:47]line Версия ККМ: 001 [15:02:47]line ФМ: 0000000000871843 [15:02:47]line ФД: 82384 [15:02:47]line ФПД: 57107580740892 [15:02:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150246&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82384&fm=57107580740892&tin=02508201610067®Number=0000000000091680&sum=50000 [15:02:47]OFD Sender: Processing packet 82384 [packets to send 254, broken 253] [15:02:47]ProducePacketName [15:02:47]name=ofd_packets/00082384 [15:02:47]OFD Sender: To server: pG, [15:02:47]CommunicateWithHost lk.salyk.kg:30040 [15:02:47]ConnectInit lk.salyk.kg [15:02:47]written 0, free lines is 4095 [15:02:48]Write to MH i2c: 01 00 00 17 02 19 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: 01 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: 01 07 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 D4 0C 00 [15:02:48]RasterBufferAndPrint [15:02:48]line [15:02:48]line [15:02:48]line [15:02:48]line [15:02:48]line [15:02:48]written 0, free lines is 3292 [15:02:48]MH_Cut [15:02:48]Write to MH i2c: D1 01 00 1E 02 01 F2 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: D1 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: D1 01 00 [15:02:48]MH_I2C_Read... [15:02:48]Read from MH i2c: D1 01 00 1E 02 00 F1 [15:02:48]Write to MH i2c: 01 00 00 1F 02 21 [15:02:48]Write i2c OK [15:02:48]MH_I2C_Read... [15:02:48]Connected sock=9 [15:02:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 51 93 07 01 39 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 96 78 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 41 01 00 35 04 06 00 33 F0 65 10 65 1C 90 C3 22 5F 6F AA A1 78 [15:02:48]*** Cut start [15:02:48]*** Partial cut [15:02:48]*** CUTSNS_PIN = 1 [15:02:48]*** CUTSNS_PIN = 0 [15:02:49]*** Brake cut motor [15:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 45 28 47 00 33 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D0 41 01 00 F4 03 04 00 D1 1D 12 67 B6 04 01 00 00 00 52 2B AE D3 9B 12 85 [15:02:49]CommunicateWithHost err = 0 [15:02:49]CheckOFDResponse [15:02:49]1017 (14) - 77093643461234 [15:02:49]1041 (16) - 0000000000871843 [15:02:49]1040 (4) - 82384 [15:02:49]1012 (4) - 18.10.2024 08:35 [15:02:49]1206 (1) - 0 [15:02:49]OFD Sender: Remove packet 82384 [15:02:49]ProducePacketName [15:02:49]name=ofd_packets/00082384 [15:02:49]NVStorageDeleteData [15:02:49]Read from MH i2c: 01 [15:02:49]MH_I2C_Read... [15:02:49]*** Stop cut motor [15:02:49]*** Cut end [15:02:49]Read from MH i2c: 01 07 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [15:02:49]process_action close_receipt done [15:02:49]requested_data is exist [15:02:49]produce_requested_data [15:02:49]requested_item fm.sn is exist - process it [15:02:49]wFMCommunicate request_size=4 [15:02:49]MH_SAM_APDU [15:02:49]CAPDU: 80 11 00 00 [15:02:49]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:49]Read from MH i2c: E2 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 17 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EE [15:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:02:49]wFMCommunicate OK [15:02:49]requested_item fd.num is exist - process it [15:02:49]SAM_PROTO_GetFieldsCounters [15:02:49]wFMCommunicate request_size=4 [15:02:49]MH_SAM_APDU [15:02:49]CAPDU: 80 13 00 00 [15:02:49]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:49]Read from MH i2c: E2 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 62 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [15:02:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:49]wFMCommunicate OK [15:02:49]SAM_PROTO_GetFieldsCounters done [15:02:49]requested_item shift.num is exist - process it [15:02:49]requested_item shift.opened is exist - process it [15:02:49]req_shift_opened [15:02:49]FM_GetShiftState [15:02:49]SAM_PROTO_GetShiftState [15:02:49]wFMCommunicate request_size=4 [15:02:49]MH_SAM_APDU [15:02:49]CAPDU: 80 13 01 00 [15:02:49]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [15:02:49]Write i2c OK [15:02:49]MH_I2C_Read... [15:02:49]OFD Sender: No OFD packet to send [15:02:49]Read from MH i2c: E2 [15:02:49]MH_I2C_Read... [15:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:49]Read from MH i2c: E2 0E 00 [15:02:49]MH_I2C_Read... [15:02:49]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 73 [15:02:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:02:49]wFMCommunicate OK [15:02:49]SAM_PROTO_GetShiftState done [15:02:49]FM_GetShiftState done [15:02:49]req_shift_opened done [15:02:49]requested_item shift.open_date is exist - process it [15:02:49]req_shift_open_date [15:02:49]req_shift_open_date done [15:02:49]produce_requested_data done [15:02:49]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82384,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:02:49]process_action_free close_receipt [15:02:49]json_value_free [15:02:49]json_value_free done [15:02:49]process_json_proto returns [15:02:49]Send response to host [15:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82384,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:02:49]free response buf [15:02:49]execute_script done [15:02:49]execute_script returns [15:02:49]free content buf [15:02:49]Sock 7.Close socket [15:02:49]Sock 7.Thread stoped [15:02:54]OFD Sender: No OFD packet to send [15:02:56]recv_with_timeout no data received [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:12]recv_with_timeout no data received [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:24]accept exits with 10 [15:09:24]New connection [15:09:24]New thread 3066826084 created [15:09:24]Thread 3066969444 joined [15:09:24]Waiting for new connection... [15:09:24] Sock 10.Parse request [15:09:24]Sock 10.Check first char [15:09:24]Sock 10.First char is OK [15:09:24]request: POST /json_proto HTTP/1.0 [15:09:24]Method: POST [15:09:24]URL: /json_proto [15:09:24]Method is POST - this is cgi request [15:09:24]url: /json_proto [15:09:24]query_string will be loaded in cgi processing [15:09:24]execute_cgi json_proto POST (null) [15:09:24]execute_cgi path=json_proto method=POST [15:09:24]POST find Content-Length [15:09:24]Host: 172.17.44.67:8080 [15:09:24]Content-Length: 677 [15:09:24]Content-Type: application/json [15:09:24] [15:09:24]POST finish read [15:09:24]Found Content-Length = 677 [15:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:24]execute_script... [15:09: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)918877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:24]POST & json_proto [15:09:24]process_json_proto [15:09:24]json parsed OK: [15:09:24]protocol is kg_v1.0 [15:09:24]action value=close_receipt [15:09:24]process_action close_receipt [15:09:24]cmd_close_receipt [15:09:24]MH_GetDate [15:09:24]Write to MH i2c: F0 00 00 23 02 14 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: F0 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: F0 09 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: F0 09 00 23 02 00 25 7A 12 67 F1 C7 6B 64 BC [15:09:24]GetLastDocTimeStamp 1729263766 [15:09:24]current date 1729264165 [15:09:24]FM_GetShiftState [15:09:24]SAM_PROTO_GetShiftState [15:09:24]wFMCommunicate request_size=4 [15:09:24]MH_SAM_APDU [15:09:24]CAPDU: 80 13 01 00 [15:09:24]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [15:09:24]Write i2c OK [15:09:24]MH_I2C_Read... [15:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:24]Read from MH i2c: E2 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 0E 00 [15:09:24]MH_I2C_Read... [15:09:24]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 75 [15:09:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:09:24]wFMCommunicate OK [15:09:24]SAM_PROTO_GetShiftState done [15:09:24]FM_GetShiftState done [15:09:24]opened in 1729212319 [15:09:24]opened+sec_in_day 1729298719 [15:09:24]quantity*price = 50041 [15:09:24]sum+1 = 50042 [15:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 94 18.10.2024 15:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82385 ФПД: 214209950148711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150925&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82385&fm=214209950148711&tin=02508201610067®Number=0000000000091680&sum=50000 [15:09:25]StoreToDocumentArchive [15:09:25]shift 526 fd 82385 [15:09:25]save to /storage/0526/doc_00082385 [15:09:25]save last doc name /storage/0526/doc_00082385 to /storage/kkm_last_doc_name [15:09:25]save OK [15:09:25]Clear old archive folders... [15:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:25]tlvbuf is 00DC38F0 [15:09:25]SAM_PROTO_ClearQueue [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 09 00 00 [15:09:25]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]SAM_PROTO_ClearQueue done [15:09:25]KKMCreateOFDPacket [15:09:25]OFDProtocolAddRootSTLVToBuf [15:09:25]FM_MakeSignedData [15:09:25]FM_MakeSignedData [15:09:25]SAM_PROTO_SignData [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 0D 01 02 [15:09:25]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:25]Read from MH i2c: E2 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [15:09:25]RAPDU: 90 00 [15:09:25]wFMCommunicate OK [15:09:25]wFMCommunicate request_size=255 [15:09:25]MH_SAM_APDU [15:09: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 25 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 41 01 00 35 04 06 00 C2 [15:09:25]Write to MH i2c: E2 02 01 33 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 25 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 41 01 00 35 04 06 00 C2 00 00 94 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:26]Read from MH i2c: E2 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 03 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [15:09:26]RAPDU: 90 00 [15:09:26]wFMCommunicate OK [15:09:26]wFMCommunicate request_size=10 [15:09:26]MH_SAM_APDU [15:09:26]CAPDU: 80 0D 02 02 05 D2 A3 FC 68 67 [15:09:26]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 D2 A3 FC 68 67 00 00 FA [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:26]Read from MH i2c: E2 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 03 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [15:09:26]RAPDU: 90 00 [15:09:26]wFMCommunicate OK [15:09:26]wFMCommunicate request_size=4 [15:09:26]MH_SAM_APDU [15:09:26]CAPDU: 80 0D 03 02 [15:09:26]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:26]Read from MH i2c: E2 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 0B 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 0B 00 35 02 00 D9 2E 5D D3 9E F3 B4 6D 90 00 9C [15:09:26]RAPDU: D9 2E 5D D3 9E F3 B4 6D 90 00 [15:09:26]wFMCommunicate OK [15:09:26]SAM_PROTO_SignData done [15:09:26]FM_MakeSignedData done [15:09:26]CreateOFDProtocolMessage [15:09:26]wFMCommunicate request_size=4 [15:09:26]MH_SAM_APDU [15:09:26]CAPDU: 80 11 00 00 [15:09:26]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:26]Read from MH i2c: E2 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 17 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 04 [15:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:09:26]wFMCommunicate OK [15:09:26]CreateOFDProtocolMessage done [15:09:26]OFDSenderStorePacket 82385 [15:09:26]StoreOFDPacket docnum=82385 [15:09:28]1017 (14) - 77093643461234 [15:09:28]1041 (16) - 0000000000871843 [15:09:28]1040 (4) - 82385 [15:09:28]1012 (4) - 18.10.2024 08:42 [15:09:28]1206 (1) - 0 [15:09:28]OFD Sender: Remove packet 82385 [15:09:28]ProducePacketName [15:09:28]name=ofd_packets/00082385 [15:09:28]NVStorageDeleteData [15:09:29]OFD Sender: No OFD packet to send [15:09:34]recv_with_timeout no data received [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:45]recv_with_timeout no data received [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:55]recv_with_timeout no data received [15:09:59]OFD Sender: No OFD packet to send [15:09:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9B EE 07 01 2F C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 25 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 41 01 00 35 04 06 00 C2 D2 A3 FC 68 67 D9 2E 5D D3 9E F3 B4 6D [15:09:26]CheckFolder [15:09:26]dirname=/storage/ofd_packets [15:09:26]CheckFolder done [15:09:26]ProducePacketName [15:09:26]name=ofd_packets/00082385 [15:09:26]NVStorageSaveData ofd_packets/00082385 [15:09:26]File name is /storage/ofd_packets/00082385 [15:09:26]Write 301 bytes [15:09:26]NVStorageSaveData done [15:09:26]OFDSenderStorePacket done [15:09:26]KKMCreateOFDPacket done [15:09:26]NVStorageSaveData kkm_last_timestamp [15:09:26]File name is /storage/kkm_last_timestamp [15:09:26]Write 4 bytes [15:09:26]NVStorageSaveData done [15:09:26]ExternCall_PrintAddStr [15:09:26]wPrintStart [15:09:26]Write to MH i2c: 01 00 00 37 02 39 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [15:09:26]RasterBufferAndPrint [15:09:26]line Счет N : (1)918877 [15:09:26]line ИНН: 02508201610067 [15:09:26]line Контрольно-Кассовый Чек [15:09:26]line ПРОДАЖА [15:09:26]line ТРК (МРК, ГНК) : 11 [15:09:26]line Товар: 2710124130 [15:09:26]line Аи-92-К-4 [15:09:26]line 7.480 * 66.90 [15:09:26]line = 500.41 [15:09:26]line НДС 12% НСП 1% [15:09:26]line > о реализуемом товаре [15:09:26]line ОКРУГЛЕНИЕ: -0.41 [15:09:26]line ИТОГО: 500.00 [15:09:26]line Внесено: 500.00 [15:09:26]line СДАЧА: 0.00 [15:09:26]line НСП 1% : 4.43 [15:09:26]line НДС 12% : 53.14 [15:09:26]line Наличными: 500.00 [15:09:26]line Безнал.: 0.00 [15:09:26]line Место: АЗС № 114 "Партнер Нефть" [15:09:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:09:26]line СНО: Общий режим [15:09:26]line Чек 94 18.10.2024 15:09 [15:09:26]line Смена: 526 ФФД: 1.0 [15:09:26]line ЗНМ: 0300000086 [15:09:26]line РНМ: 0000000000091680 [15:09:26]line Версия ККМ: 001 [15:09:26]line ФМ: 0000000000871843 [15:09:26]line ФД: 82385 [15:09:26]line ФПД: 214209950148711 [15:09:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150925&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82385&fm=214209950148711&tin=02508201610067®Number=0000000000091680&sum=50000 [15:09:26]written 0, free lines is 4095 [15:09:26]OFD Sender: Processing packet 82385 [packets to send 254, broken 253] [15:09:26]ProducePacketName [15:09:26]name=ofd_packets/00082385 [15:09:26]OFD Sender: To server: pG, [15:09:26]CommunicateWithHost lk.salyk.kg:30040 [15:09:26]ConnectInit lk.salyk.kg [15:09:26]Write to MH i2c: 01 00 00 62 02 64 [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 D7 0C 4E [15:09:26]RasterBufferAndPrint [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]line [15:09:26]written 0, free lines is 3294 [15:09:26]MH_Cut [15:09:26]Write to MH i2c: D1 01 00 69 02 01 3D [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 01 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: D1 01 00 69 02 00 3C [15:09:26]Write to MH i2c: 01 00 00 6A 02 6C [15:09:26]Write i2c OK [15:09:26]MH_I2C_Read... [15:09:27]*** Cut start [15:09:27]*** Partial cut [15:09:27]*** CUTSNS_PIN = 1 [15:09:27]*** CUTSNS_PIN = 0 [15:09:27]*** Brake cut motor [15:09:27]Connected sock=9 [15:09:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9B EE 07 01 2F C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 25 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 41 01 00 35 04 06 00 C2 D2 A3 FC 68 67 D9 2E 5D D3 9E F3 B4 6D [15:09:28]Read from MH i2c: 01 [15:09:28]MH_I2C_Read... [15:09:28]*** Stop cut motor [15:09:28]*** Cut end [15:09:28]Read from MH i2c: 01 07 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [15:09:28]process_action close_receipt done [15:09:28]requested_data is exist [15:09:28]produce_requested_data [15:09:28]requested_item fm.sn is exist - process it [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 11 00 00 [15:09:28]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 17 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 39 [15:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:09:28]wFMCommunicate OK [15:09:28]requested_item fd.num is exist - process it [15:09:28]SAM_PROTO_GetFieldsCounters [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 13 00 00 [15:09:28]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 62 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [15:09:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:28]wFMCommunicate OK [15:09:28]SAM_PROTO_GetFieldsCounters done [15:09:28]requested_item shift.num is exist - process it [15:09:28]requested_item shift.opened is exist - process it [15:09:28]req_shift_opened [15:09:28]FM_GetShiftState [15:09:28]SAM_PROTO_GetShiftState [15:09:28]wFMCommunicate request_size=4 [15:09:28]MH_SAM_APDU [15:09:28]CAPDU: 80 13 01 00 [15:09:28]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 [15:09:28]MH_I2C_Read... [15:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:28]Read from MH i2c: E2 0E 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 BE [15:09:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:09:28]wFMCommunicate OK [15:09:28]SAM_PROTO_GetShiftState done [15:09:28]FM_GetShiftState done [15:09:28]req_shift_opened done [15:09:28]requested_item shift.open_date is exist - process it [15:09:28]req_shift_open_date [15:09:28]req_shift_open_date done [15:09:28]produce_requested_data done [15:09:28]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82385,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:09:28]process_action_free close_receipt [15:09:28]json_value_free [15:09:28]json_value_free done [15:09:28]process_json_proto returns [15:09:28]Send response to host [15:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82385,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:09:28]free response buf [15:09:28]execute_script done [15:09:28]execute_script returns [15:09:28]free content buf [15:09:28]Sock 10.Close socket [15:09:28]Sock 10.Thread stoped [15:09:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 36 CE 47 00 A8 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D1 41 01 00 F4 03 04 00 61 1F 12 67 B6 04 01 00 00 58 95 49 12 8F 3F D4 C9 [15:09:28]CommunicateWithHost err = 0 [15:09:28]CheckOFDResponse [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]accept exits with 7 [15:11:59]New connection [15:11:59]New thread 3066969444 created [15:11:59]Thread 3066826084 joined [15:11:59]Waiting for new connection... [15:11:59] Sock 7.Parse request [15:11:59]Sock 7.Check first char [15:11:59]Sock 7.First char is OK [15:11:59]request: POST /json_proto HTTP/1.0 [15:11:59]Method: POST [15:11:59]URL: /json_proto [15:11:59]Method is POST - this is cgi request [15:11:59]url: /json_proto [15:11:59]query_string will be loaded in cgi processing [15:11:59]execute_cgi json_proto POST (null) [15:11:59]execute_cgi path=json_proto method=POST [15:11:59]POST find Content-Length [15:11:59]Host: 172.17.44.67:8080 [15:11:59]Content-Length: 766 [15:11:59]Content-Type: application/json [15:11:59] [15:11:59]POST finish read [15:11:59]Found Content-Length = 766 [15:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]execute_script... [15:11: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)918878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]POST & json_proto [15:11:59]process_json_proto [15:11:59]json parsed OK: [15:11:59]protocol is kg_v1.0 [15:11:59]action value=close_receipt [15:11:59]process_action close_receipt [15:11:59]cmd_close_receipt [15:11:59]MH_GetDate [15:11:59]Write to MH i2c: F0 00 00 6E 02 5F [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 09 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: F0 09 00 6E 02 00 C0 7A 12 67 F1 C7 6B 64 A2 [15:11:59]GetLastDocTimeStamp 1729264165 [15:11:59]current date 1729264320 [15:11:59]FM_GetShiftState [15:11:59]SAM_PROTO_GetShiftState [15:11:59]wFMCommunicate request_size=4 [15:11:59]MH_SAM_APDU [15:11:59]CAPDU: 80 13 01 00 [15:11:59]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:59]Read from MH i2c: E2 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 0E 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C0 [15:11:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:11:59]wFMCommunicate OK [15:11:59]SAM_PROTO_GetShiftState done [15:11:59]FM_GetShiftState done [15:11:59]opened in 1729212319 [15:11:59]opened+sec_in_day 1729298719 [15:11:59]quantity*price = 30038 [15:11:59]sum+1 = 30039 [15:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 95 18.10.2024 15:12 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82386 ФПД: 207432536657267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151200&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82386&fm=207432536657267&tin=02508201610067®Number=0000000000091680&sum=30038 [15:12:00]StoreToDocumentArchive [15:12:00]shift 526 fd 82386 [15:12:00]save to /storage/0526/doc_00082386 [15:12:00]save last doc name /storage/0526/doc_00082386 to /storage/kkm_last_doc_name [15:12:00]save OK [15:12:00]Clear old archive folders... [15:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:00]tlvbuf is 00D9E440 [15:12:00]SAM_PROTO_ClearQueue [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 09 00 00 [15:12:00]Write to MH i2c: E2 08 00 7C 02 80 09 00 00 00 00 00 00 F0 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]SAM_PROTO_ClearQueue done [15:12:00]KKMCreateOFDPacket [15:12:00]OFDProtocolAddRootSTLVToBuf [15:12:00]FM_MakeSignedData [15:12:00]FM_MakeSignedData [15:12:00]SAM_PROTO_SignData [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 0D 01 02 [15:12:00]Write to MH i2c: E2 08 00 7D 02 80 0D 01 02 00 00 00 00 F8 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]wFMCommunicate request_size=255 [15:12:00]MH_SAM_APDU [15:12: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C0 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 41 01 00 35 04 06 00 BC [15:12:00]Write to MH i2c: E2 02 01 7E 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C0 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 41 01 00 35 04 06 00 BC 00 00 B6 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]wFMCommunicate request_size=10 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 0D 02 02 05 A8 A6 A9 8D 73 [15:12:00]Write to MH i2c: E2 0D 00 7F 02 80 0D 02 02 05 00 A8 A6 A9 8D 73 00 00 FC [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [15:12:00]RAPDU: 90 00 [15:12:00]wFMCommunicate OK [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 0D 03 02 [15:12:00]Write to MH i2c: E2 08 00 80 02 80 0D 03 02 00 00 00 00 FD [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 0B 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 0B 00 80 02 00 E8 7F 07 8D 1F 11 FB 1B 90 00 3F [15:12:00]RAPDU: E8 7F 07 8D 1F 11 FB 1B 90 00 [15:12:00]wFMCommunicate OK [15:12:00]SAM_PROTO_SignData done [15:12:00]FM_MakeSignedData done [15:12:00]CreateOFDProtocolMessage [15:12:00]wFMCommunicate request_size=4 [15:12:00]MH_SAM_APDU [15:12:00]CAPDU: 80 11 00 00 [15:12:00]Write to MH i2c: E2 08 00 81 02 80 11 00 00 00 00 00 00 FD [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:00]Read from MH i2c: E2 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 17 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: E2 17 00 81 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4F [15:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:12:00]wFMCommunicate OK [15:12:00]CreateOFDProtocolMessage done [15:12:00]OFDSenderStorePacket 82386 [15:12:00]StoreOFDPacket docnum=82386 [15:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3C F1 07 01 02 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C0 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 41 01 00 35 04 06 00 BC A8 A6 A9 8D 73 E8 7F 07 8D 1F 11 FB 1B [15:12:00]CheckFolder [15:12:00]dirname=/storage/ofd_packets [15:12:00]CheckFolder done [15:12:00]ProducePacketName [15:12:00]name=ofd_packets/00082386 [15:12:00]NVStorageSaveData ofd_packets/00082386 [15:12:00]File name is /storage/ofd_packets/00082386 [15:12:00]Write 301 bytes [15:12:00]NVStorageSaveData done [15:12:00]OFDSenderStorePacket done [15:12:00]KKMCreateOFDPacket done [15:12:00]NVStorageSaveData kkm_last_timestamp [15:12:00]File name is /storage/kkm_last_timestamp [15:12:00]Write 4 bytes [15:12:00]NVStorageSaveData done [15:12:00]ExternCall_PrintAddStr [15:12:00]wPrintStart [15:12:00]Write to MH i2c: 01 00 00 82 02 84 [15:12:00]Write i2c OK [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: 01 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: 01 07 00 [15:12:00]MH_I2C_Read... [15:12:00]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [15:12:00]RasterBufferAndPrint [15:12:00]line Счет N : (1)918878 [15:12:00]line ИНН: 02508201610067 [15:12:00]line Контрольно-Кассовый Чек [15:12:00]line ПРОДАЖА [15:12:00]line ТРК (МРК, ГНК) : 11 [15:12:00]line Товар: 2710124130 [15:12:00]line Аи-92-К-4 [15:12:00]line 4.490 * 66.90 [15:12:00]line = 300.38 [15:12:00]line НДС 12% НСП 1% [15:12:00]line > о реализуемом товаре [15:12:00]line ИТОГО: 300.38 [15:12:00]line НСП 1% : 2.66 [15:12:00]line НДС 12% : 31.90 [15:12:00]line Наличными: 0.00 [15:12:00]line Безнал.: 300.38 [15:12:00]line Место: АЗС № 114 "Партнер Нефть" [15:12:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:12:00]line СНО: Общий режим [15:12:00]line Чек 95 18.10.2024 15:12 [15:12:00]line Смена: 526 ФФД: 1.0 [15:12:00]line ЗНМ: 0300000086 [15:12:00]line РНМ: 0000000000091680 [15:12:00]line Версия ККМ: 001 [15:12:00]line Платежная система: Mbank [15:12:00]line ФМ: 0000000000871843 [15:12:00]line ФД: 82386 [15:12:00]line ФПД: 207432536657267 [15:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151200&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82386&fm=207432536657267&tin=02508201610067®Number=0000000000091680&sum=30038 [15:12:01]written 0, free lines is 4095 [15:12:01]OFD Sender: Processing packet 82386 [packets to send 254, broken 253] [15:12:01]ProducePacketName [15:12:01]name=ofd_packets/00082386 [15:12:01]OFD Sender: To server: pG, [15:12:01]CommunicateWithHost lk.salyk.kg:30040 [15:12:01]ConnectInit lk.salyk.kg [15:12:01]Write to MH i2c: 01 00 00 AB 02 AD [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 07 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 02 0D C3 [15:12:01]RasterBufferAndPrint [15:12:01]line [15:12:01]line [15:12:01]line [15:12:01]line [15:12:01]line [15:12:01]written 0, free lines is 3337 [15:12:01]MH_Cut [15:12:01]Write to MH i2c: D1 01 00 B2 02 01 86 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: D1 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: D1 01 00 [15:12:01]MH_I2C_Read... [15:12:01]Read from MH i2c: D1 01 00 B2 02 00 85 [15:12:01]Write to MH i2c: 01 00 00 B3 02 B5 [15:12:01]Write i2c OK [15:12:01]MH_I2C_Read... [15:12:01]Connected sock=9 [15:12:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3C F1 07 01 02 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 C0 7A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 41 01 00 35 04 06 00 BC A8 A6 A9 8D 73 E8 7F 07 8D 1F 11 FB 1B [15:12:02]*** Cut start [15:12:02]*** Partial cut [15:12:02]*** CUTSNS_PIN = 1 [15:12:02]*** CUTSNS_PIN = 0 [15:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E3 A9 47 00 88 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D2 41 01 00 F4 03 04 00 FA 1F 12 67 B6 04 01 00 00 64 F0 4D 4A FD D7 7E 35 [15:12:02]CommunicateWithHost err = 0 [15:12:02]CheckOFDResponse [15:12:02]1017 (14) - 77093643461234 [15:12:02]1041 (16) - 0000000000871843 [15:12:02]1040 (4) - 82386 [15:12:02]1012 (4) - 18.10.2024 08:44 [15:12:02]1206 (1) - 0 [15:12:02]OFD Sender: Remove packet 82386 [15:12:02]ProducePacketName [15:12:02]name=ofd_packets/00082386 [15:12:02]NVStorageDeleteData [15:12:02]*** Brake cut motor [15:12:02]OFD Sender: No OFD packet to send [15:12:02]Read from MH i2c: 01 [15:12:02]MH_I2C_Read... [15:12:02]*** Stop cut motor [15:12:03]*** Cut end [15:12:03]Read from MH i2c: 01 07 00 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [15:12:03]process_action close_receipt done [15:12:03]requested_data is exist [15:12:03]produce_requested_data [15:12:03]requested_item fm.sn is exist - process it [15:12:03]wFMCommunicate request_size=4 [15:12:03]MH_SAM_APDU [15:12:03]CAPDU: 80 11 00 00 [15:12:03]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [15:12:03]Write i2c OK [15:12:03]MH_I2C_Read... [15:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:03]Read from MH i2c: E2 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 17 00 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 82 [15:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:12:03]wFMCommunicate OK [15:12:03]requested_item fd.num is exist - process it [15:12:03]SAM_PROTO_GetFieldsCounters [15:12:03]wFMCommunicate request_size=4 [15:12:03]MH_SAM_APDU [15:12:03]CAPDU: 80 13 00 00 [15:12:03]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [15:12:03]Write i2c OK [15:12:03]MH_I2C_Read... [15:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:03]Read from MH i2c: E2 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 62 00 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [15:12:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:03]wFMCommunicate OK [15:12:03]SAM_PROTO_GetFieldsCounters done [15:12:03]requested_item shift.num is exist - process it [15:12:03]requested_item shift.opened is exist - process it [15:12:03]req_shift_opened [15:12:03]FM_GetShiftState [15:12:03]SAM_PROTO_GetShiftState [15:12:03]wFMCommunicate request_size=4 [15:12:03]MH_SAM_APDU [15:12:03]CAPDU: 80 13 01 00 [15:12:03]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [15:12:03]Write i2c OK [15:12:03]MH_I2C_Read... [15:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:03]Read from MH i2c: E2 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 0E 00 [15:12:03]MH_I2C_Read... [15:12:03]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 07 [15:12:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:12:03]wFMCommunicate OK [15:12:03]SAM_PROTO_GetShiftState done [15:12:03]FM_GetShiftState done [15:12:03]req_shift_opened done [15:12:03]requested_item shift.open_date is exist - process it [15:12:03]req_shift_open_date [15:12:03]req_shift_open_date done [15:12:03]produce_requested_data done [15:12:03]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82386,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:12:03]process_action_free close_receipt [15:12:03]json_value_free [15:12:03]json_value_free done [15:12:03]process_json_proto returns [15:12:03]Send response to host [15:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82386,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:12:03]free response buf [15:12:03]execute_script done [15:12:03]execute_script returns [15:12:03]free content buf [15:12:03]Sock 7.Close socket [15:12:03]Sock 7.Thread stoped [15:12:07]OFD Sender: No OFD packet to send [15:12:11]recv_with_timeout no data received [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:14]recv_with_timeout no data received [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:42]recv_with_timeout no data received [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:53]recv_with_timeout no data received [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:12]recv_with_timeout no data received [15:14:13]OFD Sender: No OFD packet to send [15:14:17]accept exits with 10 [15:14:17]New connection [15:14:17]New thread 3066826084 created [15:14:17]Thread 3066969444 joined [15:14:17]Waiting for new connection... [15:14:17] Sock 10.Parse request [15:14:17]Sock 10.Check first char [15:14:17]Sock 10.First char is OK [15:14:17]request: POST /json_proto HTTP/1.0 [15:14:17]Method: POST [15:14:17]URL: /json_proto [15:14:17]Method is POST - this is cgi request [15:14:17]url: /json_proto [15:14:17]query_string will be loaded in cgi processing [15:14:17]execute_cgi json_proto POST (null) [15:14:17]execute_cgi path=json_proto method=POST [15:14:17]POST find Content-Length [15:14:17]Host: 172.17.44.67:8080 [15:14:17]Content-Length: 670 [15:14:17]Content-Type: application/json [15:14:17] [15:14:17]POST finish read [15:14:17]Found Content-Length = 670 [15:14:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918880", "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" : 74.20, "quantity" : 0.010, "sum" : 0.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 74.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:17]execute_script... [15:14: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)918880", "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" : 74.20, "quantity" : 0.010, "sum" : 0.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 74.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:17]POST & json_proto [15:14:17]process_json_proto [15:14:17]json parsed OK: [15:14:17]protocol is kg_v1.0 [15:14:17]action value=close_receipt [15:14:17]process_action close_receipt [15:14:17]cmd_close_receipt [15:14:17]MH_GetDate [15:14:17]Write to MH i2c: F0 00 00 B7 02 A8 [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: F0 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: F0 09 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: F0 09 00 B7 02 00 4A 7B 12 67 F1 C7 6B 64 76 [15:14:17]GetLastDocTimeStamp 1729264320 [15:14:17]current date 1729264458 [15:14:17]FM_GetShiftState [15:14:17]SAM_PROTO_GetShiftState [15:14:17]wFMCommunicate request_size=4 [15:14:17]MH_SAM_APDU [15:14:17]CAPDU: 80 13 01 00 [15:14:17]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [15:14:17]Write i2c OK [15:14:17]MH_I2C_Read... [15:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:17]Read from MH i2c: E2 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 0E 00 [15:14:17]MH_I2C_Read... [15:14:17]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 09 [15:14:17]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:14:17]wFMCommunicate OK [15:14:17]SAM_PROTO_GetShiftState done [15:14:17]FM_GetShiftState done [15:14:17]opened in 1729212319 [15:14:17]opened+sec_in_day 1729298719 [15:14:17]quantity*price = 74 [15:14:17]sum+1 = 75 [15:14:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 0.00 Внесено: 74.00 СДАЧА: 74.00 НСП 1% : 0.01 НДС 12% : 0.08 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 96 18.10.2024 15:14 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82387 ФПД: 16966481600910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151418&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82387&fm=16966481600910&tin=02508201610067®Number=0000000000091680&sum=0 [15:14:18]StoreToDocumentArchive [15:14:18]shift 526 fd 82387 [15:14:18]save to /storage/0526/doc_00082387 [15:14:18]save last doc name /storage/0526/doc_00082387 to /storage/kkm_last_doc_name [15:14:18]save OK [15:14:18]Clear old archive folders... [15:14:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:18]tlvbuf is 00DB9660 [15:14:18]SAM_PROTO_ClearQueue [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 09 00 00 [15:14:18]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]SAM_PROTO_ClearQueue done [15:14:18]KKMCreateOFDPacket [15:14:18]OFDProtocolAddRootSTLVToBuf [15:14:18]FM_MakeSignedData [15:14:18]FM_MakeSignedData [15:14:18]SAM_PROTO_SignData [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 01 02 [15:14:18]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]wFMCommunicate request_size=255 [15:14:18]MH_SAM_APDU [15:14: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 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 00 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 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 08 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 60 00 00 00 F4 03 04 00 4A 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 41 01 00 35 04 06 00 0F [15:14:18]Write to MH i2c: E2 02 01 C7 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 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 00 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 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 08 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 60 00 00 00 F4 03 04 00 4A 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 41 01 00 35 04 06 00 0F 00 00 94 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]wFMCommunicate request_size=10 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 02 02 05 6E 51 1B E1 8E [15:14:18]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 6E 51 1B E1 8E 00 00 97 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [15:14:18]RAPDU: 90 00 [15:14:18]wFMCommunicate OK [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 0D 03 02 [15:14:18]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 0B 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 0B 00 C9 02 00 2B A6 C6 A6 7F F4 B0 84 90 00 2B [15:14:18]RAPDU: 2B A6 C6 A6 7F F4 B0 84 90 00 [15:14:18]wFMCommunicate OK [15:14:18]SAM_PROTO_SignData done [15:14:18]FM_MakeSignedData done [15:14:18]CreateOFDProtocolMessage [15:14:18]wFMCommunicate request_size=4 [15:14:18]MH_SAM_APDU [15:14:18]CAPDU: 80 11 00 00 [15:14:18]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:18]Read from MH i2c: E2 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 17 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 98 [15:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:14:18]wFMCommunicate OK [15:14:18]CreateOFDProtocolMessage done [15:14:18]OFDSenderStorePacket 82387 [15:14:18]StoreOFDPacket docnum=82387 [15:14:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 9A A4 07 01 19 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 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 00 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 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 08 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 60 00 00 00 F4 03 04 00 4A 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 41 01 00 35 04 06 00 0F 6E 51 1B E1 8E 2B A6 C6 A6 7F F4 B0 84 [15:14:18]CheckFolder [15:14:18]dirname=/storage/ofd_packets [15:14:18]CheckFolder done [15:14:18]ProducePacketName [15:14:18]name=ofd_packets/00082387 [15:14:18]NVStorageSaveData ofd_packets/00082387 [15:14:18]File name is /storage/ofd_packets/00082387 [15:14:18]Write 301 bytes [15:14:18]NVStorageSaveData done [15:14:18]OFDSenderStorePacket done [15:14:18]KKMCreateOFDPacket done [15:14:18]NVStorageSaveData kkm_last_timestamp [15:14:18]File name is /storage/kkm_last_timestamp [15:14:18]Write 4 bytes [15:14:18]NVStorageSaveData done [15:14:18]ExternCall_PrintAddStr [15:14:18]wPrintStart [15:14:18]Write to MH i2c: 01 00 00 CB 02 CD [15:14:18]Write i2c OK [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: 01 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: 01 07 00 [15:14:18]MH_I2C_Read... [15:14:18]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [15:14:18]RasterBufferAndPrint [15:14:18]line Счет N : (1)918880 [15:14:18]line ИНН: 02508201610067 [15:14:18]line Контрольно-Кассовый Чек [15:14:18]line ПРОДАЖА [15:14:18]line ТРК (МРК, ГНК) : 12 [15:14:18]line Товар: 2710124500 [15:14:18]line Аи-95-К-5 [15:14:18]line 0.010 * 74.20 [15:14:18]line = 0.74 [15:14:18]line НДС 12% НСП 1% [15:14:18]line > о реализуемом товаре [15:14:18]line ОКРУГЛЕНИЕ: -0.74 [15:14:18]line ИТОГО: 0.00 [15:14:18]line Внесено: 74.00 [15:14:18]line СДАЧА: 74.00 [15:14:18]line НСП 1% : 0.01 [15:14:18]line НДС 12% : 0.08 [15:14:18]line Наличными: 0.00 [15:14:18]line Безнал.: 0.00 [15:14:18]line Место: АЗС № 114 "Партнер Нефть" [15:14:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:14:18]line СНО: Общий режим [15:14:18]line Чек 96 18.10.2024 15:14 [15:14:18]line Смена: 526 ФФД: 1.0 [15:14:18]line ЗНМ: 0300000086 [15:14:18]line РНМ: 0000000000091680 [15:14:18]line Версия ККМ: 001 [15:14:18]line ФМ: 0000000000871843 [15:14:18]line ФД: 82387 [15:14:18]line ФПД: 16966481600910 [15:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151418&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82387&fm=16966481600910&tin=02508201610067®Number=0000000000091680&sum=0 [15:14:19]OFD Sender: Processing packet 82387 [packets to send 254, broken 253] [15:14:19]ProducePacketName [15:14:19]name=ofd_packets/00082387 [15:14:19]OFD Sender: To server: pG, [15:14:19]CommunicateWithHost lk.salyk.kg:30040 [15:14:19]ConnectInit lk.salyk.kg [15:14:19]written 0, free lines is 4095 [15:14:19]Write to MH i2c: 01 00 00 F6 02 F8 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 D8 0C E3 [15:14:19]RasterBufferAndPrint [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]line [15:14:19]written 0, free lines is 3294 [15:14:19]MH_Cut [15:14:19]Write to MH i2c: D1 01 00 FD 02 01 D1 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 01 00 [15:14:19]MH_I2C_Read... [15:14:19]Read from MH i2c: D1 01 00 FD 02 00 D0 [15:14:19]Write to MH i2c: 01 00 00 FE 02 00 [15:14:19]Write i2c OK [15:14:19]MH_I2C_Read... [15:14:20]*** Cut start [15:14:20]*** Partial cut [15:14:20]*** CUTSNS_PIN = 1 [15:14:20]*** CUTSNS_PIN = 0 [15:14:20]*** Brake cut motor [15:14:20]Read from MH i2c: 01 [15:14:20]MH_I2C_Read... [15:14:20]*** Stop cut motor [15:14:20]*** Cut end [15:14:20]Read from MH i2c: 01 07 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [15:14:20]process_action close_receipt done [15:14:20]requested_data is exist [15:14:20]produce_requested_data [15:14:20]requested_item fm.sn is exist - process it [15:14:20]wFMCommunicate request_size=4 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 11 00 00 [15:14:20]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:20]Read from MH i2c: E2 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 [15:14:20]MH_I2C_Read... [15:14:20]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CD [15:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:14:20]wFMCommunicate OK [15:14:20]requested_item fd.num is exist - process it [15:14:20]SAM_PROTO_GetFieldsCounters [15:14:20]wFMCommunicate request_size=4 [15:14:20]MH_SAM_APDU [15:14:20]CAPDU: 80 13 00 00 [15:14:20]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [15:14:20]Write i2c OK [15:14:20]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 62 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 62 00 00 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:14:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetFieldsCounters done [15:14:21]requested_item shift.num is exist - process it [15:14:21]requested_item shift.opened is exist - process it [15:14:21]req_shift_opened [15:14:21]FM_GetShiftState [15:14:21]SAM_PROTO_GetShiftState [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 01 00 [15:14:21]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 53 [15:14:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetShiftState done [15:14:21]FM_GetShiftState done [15:14:21]req_shift_opened done [15:14:21]requested_item shift.open_date is exist - process it [15:14:21]req_shift_open_date [15:14:21]req_shift_open_date done [15:14:21]produce_requested_data done [15:14:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82387,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:14:21]process_action_free close_receipt [15:14:21]json_value_free [15:14:21]json_value_free done [15:14:21]process_json_proto returns [15:14:21]Send response to host [15:14:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82387,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:14:21]free response buf [15:14:21]execute_script done [15:14:21]execute_script returns [15:14:21]free content buf [15:14:21]Sock 10.Close socket [15:14:21]Sock 10.Thread stoped [15:14:24]ConnectInit Can't take IP for lk.salyk.kg [15:14:24]CommunicateWithHost connect error [15:14:24]CommunicateWithHost err = -1 [15:14:24]OFD Sender: Server communicate error [15:14:29]OFD Sender: Processing packet 82387 [packets to send 254, broken 253] [15:14:29]ProducePacketName [15:14:29]name=ofd_packets/00082387 [15:14:29]OFD Sender: To server: pG, [15:14:29]CommunicateWithHost lk.salyk.kg:30040 [15:14:29]ConnectInit lk.salyk.kg [15:14:29]Connected sock=10 [15: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 31 38 34 33 0F 01 00 00 9A A4 07 01 19 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 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 00 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A 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 08 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 60 00 00 00 F4 03 04 00 4A 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D3 41 01 00 35 04 06 00 0F 6E 51 1B E1 8E 2B A6 C6 A6 7F F4 B0 84 [15:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D0 90 47 00 7C 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 31 38 34 33 10 04 04 00 D3 41 01 00 F4 03 04 00 8E 20 12 67 B6 04 01 00 00 C5 59 E2 5C 00 F7 0E EA [15:14:30]CommunicateWithHost err = 0 [15:14:30]CheckOFDResponse [15:14:30]1017 (14) - 77093643461234 [15:14:30]1041 (16) - 0000000000871843 [15:14:30]1040 (4) - 82387 [15:14:30]1012 (4) - 18.10.2024 08:47 [15:14:30]1206 (1) - 0 [15:14:30]OFD Sender: Remove packet 82387 [15:14:30]ProducePacketName [15:14:30]name=ofd_packets/00082387 [15:14:30]NVStorageDeleteData [15:14:30]OFD Sender: No OFD packet to send [15:14:32]recv_with_timeout no data received [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:11]accept exits with 7 [15:15:11]New connection [15:15:11]New thread 3066969444 created [15:15:11]Thread 3066826084 joined [15:15:11]Waiting for new connection... [15:15:11] Sock 7.Parse request [15:15:11]Sock 7.Check first char [15:15:11]Sock 7.First char is OK [15:15:11]request: POST /json_proto HTTP/1.0 [15:15:11]Method: POST [15:15:11]URL: /json_proto [15:15:11]Method is POST - this is cgi request [15:15:11]url: /json_proto [15:15:11]query_string will be loaded in cgi processing [15:15:11]execute_cgi json_proto POST (null) [15:15:11]execute_cgi path=json_proto method=POST [15:15:11]POST find Content-Length [15:15:11]Host: 172.17.44.67:8080 [15:15:11]Content-Length: 754 [15:15:11]Content-Type: application/json [15:15:11] [15:15:11]POST finish read [15:15:11]Found Content-Length = 754 [15:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:11]execute_script... [15:15: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)918879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:11]POST & json_proto [15:15:11]process_json_proto [15:15:11]json parsed OK: [15:15:11]protocol is kg_v1.0 [15:15:11]action value=close_receipt [15:15:11]process_action close_receipt [15:15:11]cmd_close_receipt [15:15:11]MH_GetDate [15:15:11]Write to MH i2c: F0 00 00 02 03 F4 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: F0 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: F0 09 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: F0 09 00 02 03 00 80 7B 12 67 F1 C7 6B 64 F8 [15:15:11]GetLastDocTimeStamp 1729264458 [15:15:11]current date 1729264512 [15:15:11]FM_GetShiftState [15:15:11]SAM_PROTO_GetShiftState [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 13 01 00 [15:15:11]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0E 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 55 [15:15:11]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_GetShiftState done [15:15:11]FM_GetShiftState done [15:15:11]opened in 1729212319 [15:15:11]opened+sec_in_day 1729298719 [15:15:11]quantity*price = 0 [15:15:11]sum+1 = 1 [15:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 97 18.10.2024 15:15 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100665 ФМ: 0000000000871843 ФД: 82388 ФПД: 79230222210305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151512&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82388&fm=79230222210305&tin=02508201610067®Number=0000000000091680&sum=0 [15:15:12]StoreToDocumentArchive [15:15:12]shift 526 fd 82388 [15:15:12]save to /storage/0526/doc_00082388 [15:15:12]save last doc name /storage/0526/doc_00082388 to /storage/kkm_last_doc_name [15:15:12]save OK [15:15:12]Clear old archive folders... [15:15:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:12]tlvbuf is 00DE9630 [15:15:12]SAM_PROTO_ClearQueue [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 09 00 00 [15:15:12]Write to MH i2c: E2 08 00 10 03 80 09 00 00 00 00 00 00 85 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]SAM_PROTO_ClearQueue done [15:15:12]KKMCreateOFDPacket [15:15:12]OFDProtocolAddRootSTLVToBuf [15:15:12]FM_MakeSignedData [15:15:12]FM_MakeSignedData [15:15:12]SAM_PROTO_SignData [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 0D 01 02 [15:15:12]Write to MH i2c: E2 08 00 11 03 80 0D 01 02 00 00 00 00 8D [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]wFMCommunicate request_size=255 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 80 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 41 01 00 35 04 06 00 48 [15:15:12]Write to MH i2c: E2 02 01 12 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 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 80 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 41 01 00 35 04 06 00 48 00 00 EA [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]wFMCommunicate request_size=10 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 0D 02 02 05 0F 39 40 15 01 [15:15:12]Write to MH i2c: E2 0D 00 13 03 80 0D 02 02 05 00 0F 39 40 15 01 00 00 38 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [15:15:12]RAPDU: 90 00 [15:15:12]wFMCommunicate OK [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 0D 03 02 [15:15:12]Write to MH i2c: E2 08 00 14 03 80 0D 03 02 00 00 00 00 92 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 0B 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 0B 00 14 03 00 41 5A 05 CA CB AE D2 12 90 00 5A [15:15:12]RAPDU: 41 5A 05 CA CB AE D2 12 90 00 [15:15:12]wFMCommunicate OK [15:15:12]SAM_PROTO_SignData done [15:15:12]FM_MakeSignedData done [15:15:12]CreateOFDProtocolMessage [15:15:12]wFMCommunicate request_size=4 [15:15:12]MH_SAM_APDU [15:15:12]CAPDU: 80 11 00 00 [15:15:12]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:12]Read from MH i2c: E2 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 17 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E4 [15:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:15:12]wFMCommunicate OK [15:15:12]CreateOFDProtocolMessage done [15:15:12]OFDSenderStorePacket 82388 [15:15:12]StoreOFDPacket docnum=82388 [15:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 05 45 07 01 BF 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 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 80 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 41 01 00 35 04 06 00 48 0F 39 40 15 01 41 5A 05 CA CB AE D2 12 [15:15:12]CheckFolder [15:15:12]dirname=/storage/ofd_packets [15:15:12]CheckFolder done [15:15:12]ProducePacketName [15:15:12]name=ofd_packets/00082388 [15:15:12]NVStorageSaveData ofd_packets/00082388 [15:15:12]File name is /storage/ofd_packets/00082388 [15:15:12]Write 301 bytes [15:15:12]NVStorageSaveData done [15:15:12]OFDSenderStorePacket done [15:15:12]KKMCreateOFDPacket done [15:15:12]NVStorageSaveData kkm_last_timestamp [15:15:12]File name is /storage/kkm_last_timestamp [15:15:12]Write 4 bytes [15:15:12]NVStorageSaveData done [15:15:12]ExternCall_PrintAddStr [15:15:12]wPrintStart [15:15:12]Write to MH i2c: 01 00 00 16 03 19 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 07 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [15:15:12]RasterBufferAndPrint [15:15:12]line Счет N : (1)918879 [15:15:12]line ИНН: 02508201610067 [15:15:12]line Контрольно-Кассовый Чек [15:15:12]line ПРОДАЖА [15:15:12]line ТРК (МРК, ГНК) : 22 [15:15:12]line Товар: 2710124130 [15:15:12]line Аи-92-К-4 [15:15:12]line 50.000 * 0.00 [15:15:12]line = 0.00 [15:15:12]line НДС 12% НСП 1% [15:15:12]line > о реализуемом товаре [15:15:12]line ИТОГО: 0.00 [15:15:12]line НСП 1% : 0.00 [15:15:12]line НДС 12% : 0.00 [15:15:12]line Наличными: 0.00 [15:15:12]line Безнал.: 0.00 [15:15:12]line Место: АЗС № 114 "Партнер Нефть" [15:15:12]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:15:12]line СНО: Общий режим [15:15:12]line Чек 97 18.10.2024 15:15 [15:15:12]line Смена: 526 ФФД: 1.0 [15:15:12]line ЗНМ: 0300000086 [15:15:12]line РНМ: 0000000000091680 [15:15:12]line Версия ККМ: 001 [15:15:12]line Талоны: ТК ГПНА Online [15:15:12]line 30100665 [15:15:12]line ФМ: 0000000000871843 [15:15:12]line ФД: 82388 [15:15:12]line ФПД: 79230222210305 [15:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151512&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82388&fm=79230222210305&tin=02508201610067®Number=0000000000091680&sum=0 [15:15:13]written 0, free lines is 4095 [15:15:13]OFD Sender: Processing packet 82388 [packets to send 254, broken 253] [15:15:13]ProducePacketName [15:15:13]name=ofd_packets/00082388 [15:15:13]OFD Sender: To server: pG, [15:15:13]CommunicateWithHost lk.salyk.kg:30040 [15:15:13]ConnectInit lk.salyk.kg [15:15:13]Write to MH i2c: 01 00 00 40 03 43 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 ED 0C 43 [15:15:13]RasterBufferAndPrint [15:15:13]line [15:15:13]line [15:15:13]line [15:15:13]line [15:15:13]line [15:15:13]written 0, free lines is 3315 [15:15:13]MH_Cut [15:15:13]Write to MH i2c: D1 01 00 47 03 01 1C [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: D1 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: D1 01 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: D1 01 00 47 03 00 1B [15:15:13]Write to MH i2c: 01 00 00 48 03 4B [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Connected sock=11 [15:15:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 05 45 07 01 BF 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 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 80 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 41 01 00 35 04 06 00 48 0F 39 40 15 01 41 5A 05 CA CB AE D2 12 [15:15:14]*** Cut start [15:15:14]*** Partial cut [15:15:14]*** CUTSNS_PIN = 1 [15:15:14]*** CUTSNS_PIN = 0 [15:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6F D6 47 00 23 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D4 41 01 00 F4 03 04 00 BA 20 12 67 B6 04 01 00 00 F1 1D 0A C2 87 97 F5 7C [15:15:14]CommunicateWithHost err = 0 [15:15:14]CheckOFDResponse [15:15:14]1017 (14) - 77093643461234 [15:15:14]1041 (16) - 0000000000871843 [15:15:14]1040 (4) - 82388 [15:15:14]1012 (4) - 18.10.2024 08:47 [15:15:14]1206 (1) - 0 [15:15:14]OFD Sender: Remove packet 82388 [15:15:14]ProducePacketName [15:15:14]name=ofd_packets/00082388 [15:15:14]NVStorageDeleteData [15:15:14]*** Brake cut motor [15:15:14]Read from MH i2c: 01 [15:15:14]MH_I2C_Read... [15:15:14]*** Stop cut motor [15:15:14]*** Cut end [15:15:14]Read from MH i2c: 01 07 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [15:15:14]process_action close_receipt done [15:15:14]requested_data is exist [15:15:14]produce_requested_data [15:15:14]requested_item fm.sn is exist - process it [15:15:14]wFMCommunicate request_size=4 [15:15:14]MH_SAM_APDU [15:15:14]CAPDU: 80 11 00 00 [15:15:14]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:14]Read from MH i2c: E2 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 17 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 18 [15:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:15:14]wFMCommunicate OK [15:15:14]requested_item fd.num is exist - process it [15:15:14]SAM_PROTO_GetFieldsCounters [15:15:14]wFMCommunicate request_size=4 [15:15:14]MH_SAM_APDU [15:15:14]CAPDU: 80 13 00 00 [15:15:14]Write to MH i2c: E2 08 00 4A 03 80 13 00 00 00 00 00 00 C9 [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]OFD Sender: No OFD packet to send [15:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 62 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 62 00 4A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [15:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:15]wFMCommunicate OK [15:15:15]SAM_PROTO_GetFieldsCounters done [15:15:15]requested_item shift.num is exist - process it [15:15:15]requested_item shift.opened is exist - process it [15:15:15]req_shift_opened [15:15:15]FM_GetShiftState [15:15:15]SAM_PROTO_GetShiftState [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 13 01 00 [15:15:15]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0E 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 9D [15:15:15]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:15:15]wFMCommunicate OK [15:15:15]SAM_PROTO_GetShiftState done [15:15:15]FM_GetShiftState done [15:15:15]req_shift_opened done [15:15:15]requested_item shift.open_date is exist - process it [15:15:15]req_shift_open_date [15:15:15]req_shift_open_date done [15:15:15]produce_requested_data done [15:15:15]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82388,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:15:15]process_action_free close_receipt [15:15:15]json_value_free [15:15:15]json_value_free done [15:15:15]process_json_proto returns [15:15:15]Send response to host [15:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82388,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:15:15]free response buf [15:15:15]execute_script done [15:15:15]execute_script returns [15:15:15]free content buf [15:15:15]Sock 7.Close socket [15:15:15]Sock 7.Thread stoped [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:33]recv_with_timeout no data received [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:44]recv_with_timeout no data received [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:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:52]accept exits with 9 [15:16:52]New connection [15:16:52]New thread 3066826084 created [15:16:52]Thread 3066969444 joined [15:16:52]Waiting for new connection... [15:16:52] Sock 9.Parse request [15:16:52]Sock 9.Check first char [15:16:52]Sock 9.First char is OK [15:16:52]request: POST /json_proto HTTP/1.0 [15:16:52]Method: POST [15:16:52]URL: /json_proto [15:16:52]Method is POST - this is cgi request [15:16:52]url: /json_proto [15:16:52]query_string will be loaded in cgi processing [15:16:52]execute_cgi json_proto POST (null) [15:16:52]execute_cgi path=json_proto method=POST [15:16:52]POST find Content-Length [15:16:52]Host: 172.17.44.67:8080 [15:16:52]Content-Length: 677 [15:16:52]Content-Type: application/json [15:16:52] [15:16:52]POST finish read [15:16:52]Found Content-Length = 677 [15:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:52]execute_script... [15:16:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:52]POST & json_proto [15:16:52]process_json_proto [15:16:52]json parsed OK: [15:16:52]protocol is kg_v1.0 [15:16:52]action value=close_receipt [15:16:52]process_action close_receipt [15:16:52]cmd_close_receipt [15:16:52]MH_GetDate [15:16:52]Write to MH i2c: F0 00 00 4C 03 3E [15:16:52]Write i2c OK [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: F0 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: F0 09 00 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: F0 09 00 4C 03 00 E5 7B 12 67 F1 C7 6B 64 A7 [15:16:52]GetLastDocTimeStamp 1729264512 [15:16:52]current date 1729264613 [15:16:52]FM_GetShiftState [15:16:52]SAM_PROTO_GetShiftState [15:16:52]wFMCommunicate request_size=4 [15:16:52]MH_SAM_APDU [15:16:52]CAPDU: 80 13 01 00 [15:16:52]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [15:16:52]Write i2c OK [15:16:52]MH_I2C_Read... [15:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:52]Read from MH i2c: E2 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: E2 0E 00 [15:16:52]MH_I2C_Read... [15:16:52]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 9F [15:16:52]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:16:52]wFMCommunicate OK [15:16:52]SAM_PROTO_GetShiftState done [15:16:52]FM_GetShiftState done [15:16:52]opened in 1729212319 [15:16:52]opened+sec_in_day 1729298719 [15:16:52]quantity*price = 20003 [15:16:52]sum+1 = 20004 [15:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 98 18.10.2024 15:16 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82389 ФПД: 131254289101062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82389&fm=131254289101062&tin=02508201610067®Number=0000000000091680&sum=20000 [15:16:53]StoreToDocumentArchive [15:16:53]shift 526 fd 82389 [15:16:53]save to /storage/0526/doc_00082389 [15:16:53]save last doc name /storage/0526/doc_00082389 to /storage/kkm_last_doc_name [15:16:53]save OK [15:16:53]Clear old archive folders... [15:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:53]tlvbuf is 00DB8EE0 [15:16:53]SAM_PROTO_ClearQueue [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 09 00 00 [15:16:53]Write to MH i2c: E2 08 00 5A 03 80 09 00 00 00 00 00 00 CF [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [15:16:53]RAPDU: 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_ClearQueue done [15:16:53]KKMCreateOFDPacket [15:16:53]OFDProtocolAddRootSTLVToBuf [15:16:53]FM_MakeSignedData [15:16:53]FM_MakeSignedData [15:16:53]SAM_PROTO_SignData [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 0D 01 02 [15:16:53]Write to MH i2c: E2 08 00 5B 03 80 0D 01 02 00 00 00 00 D7 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [15:16:53]RAPDU: 90 00 [15:16:53]wFMCommunicate OK [15:16:53]wFMCommunicate request_size=255 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 41 01 00 35 04 06 00 77 [15:16:53]Write to MH i2c: E2 02 01 5C 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 41 01 00 35 04 06 00 77 00 00 FE [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [15:16:53]RAPDU: 90 00 [15:16:53]wFMCommunicate OK [15:16:53]wFMCommunicate request_size=10 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 0D 02 02 05 60 05 46 F1 06 [15:16:53]Write to MH i2c: E2 0D 00 5D 03 80 0D 02 02 05 00 60 05 46 F1 06 00 00 86 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [15:16:54]RAPDU: 90 00 [15:16:54]wFMCommunicate OK [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 0D 03 02 [15:16:54]Write to MH i2c: E2 08 00 5E 03 80 0D 03 02 00 00 00 00 DC [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 0B 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 0B 00 5E 03 00 01 96 C3 7D 55 F1 61 F8 90 00 53 [15:16:54]RAPDU: 01 96 C3 7D 55 F1 61 F8 90 00 [15:16:54]wFMCommunicate OK [15:16:54]SAM_PROTO_SignData done [15:16:54]FM_MakeSignedData done [15:16:54]CreateOFDProtocolMessage [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 11 00 00 [15:16:54]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 17 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2E [15:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:16:54]wFMCommunicate OK [15:16:54]CreateOFDProtocolMessage done [15:16:54]OFDSenderStorePacket 82389 [15:16:54]StoreOFDPacket docnum=82389 [15:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7B 9D 07 01 86 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 41 01 00 35 04 06 00 77 60 05 46 F1 06 01 96 C3 7D 55 F1 61 F8 [15:16:54]CheckFolder [15:16:54]dirname=/storage/ofd_packets [15:16:54]CheckFolder done [15:16:54]ProducePacketName [15:16:54]name=ofd_packets/00082389 [15:16:54]NVStorageSaveData ofd_packets/00082389 [15:16:54]File name is /storage/ofd_packets/00082389 [15:16:54]Write 301 bytes [15:16:54]NVStorageSaveData done [15:16:54]OFDSenderStorePacket done [15:16:54]KKMCreateOFDPacket done [15:16:54]NVStorageSaveData kkm_last_timestamp [15:16:54]File name is /storage/kkm_last_timestamp [15:16:54]Write 4 bytes [15:16:54]NVStorageSaveData done [15:16:54]ExternCall_PrintAddStr [15:16:54]wPrintStart [15:16:54]Write to MH i2c: 01 00 00 60 03 63 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 07 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [15:16:54]RasterBufferAndPrint [15:16:54]line Счет N : (1)918881 [15:16:54]line ИНН: 02508201610067 [15:16:54]line Контрольно-Кассовый Чек [15:16:54]line ПРОДАЖА [15:16:54]line ТРК (МРК, ГНК) : 11 [15:16:54]line Товар: 2710124130 [15:16:54]line Аи-92-К-4 [15:16:54]line 2.990 * 66.90 [15:16:54]line = 200.03 [15:16:54]line НДС 12% НСП 1% [15:16:54]line > о реализуемом товаре [15:16:54]line ОКРУГЛЕНИЕ: -0.03 [15:16:54]line ИТОГО: 200.00 [15:16:54]line Внесено: 200.00 [15:16:54]line СДАЧА: 0.00 [15:16:54]line НСП 1% : 1.77 [15:16:54]line НДС 12% : 21.24 [15:16:54]line Наличными: 200.00 [15:16:54]line Безнал.: 0.00 [15:16:54]line Место: АЗС № 114 "Партнер Нефть" [15:16:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:16:54]line СНО: Общий режим [15:16:54]line Чек 98 18.10.2024 15:16 [15:16:54]line Смена: 526 ФФД: 1.0 [15:16:54]line ЗНМ: 0300000086 [15:16:54]line РНМ: 0000000000091680 [15:16:54]line Версия ККМ: 001 [15:16:54]line ФМ: 0000000000871843 [15:16:54]line ФД: 82389 [15:16:54]line ФПД: 131254289101062 [15:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T151653&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82389&fm=131254289101062&tin=02508201610067®Number=0000000000091680&sum=20000 [15:16:54]OFD Sender: Processing packet 82389 [packets to send 254, broken 253] [15:16:54]ProducePacketName [15:16:54]name=ofd_packets/00082389 [15:16:54]OFD Sender: To server: pG, [15:16:54]CommunicateWithHost lk.salyk.kg:30040 [15:16:54]ConnectInit lk.salyk.kg [15:16:54]written 0, free lines is 4095 [15:16:54]Write to MH i2c: 01 00 00 8B 03 8E [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 07 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 D9 0C 7A [15:16:54]RasterBufferAndPrint [15:16:54]line [15:16:54]line [15:16:54]line [15:16:54]line [15:16:54]line [15:16:54]written 0, free lines is 3296 [15:16:54]MH_Cut [15:16:54]Write to MH i2c: D1 01 00 92 03 01 67 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: D1 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: D1 01 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: D1 01 00 92 03 00 66 [15:16:54]Write to MH i2c: 01 00 00 93 03 96 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:55]Connected sock=7 [15:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7B 9D 07 01 86 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E5 7B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 41 01 00 35 04 06 00 77 60 05 46 F1 06 01 96 C3 7D 55 F1 61 F8 [15:16:55]*** Cut start [15:16:55]*** Partial cut [15:16:55]*** CUTSNS_PIN = 1 [15:16:55]*** CUTSNS_PIN = 0 [15:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3D 7D 47 00 CF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D5 41 01 00 F4 03 04 00 20 21 12 67 B6 04 01 00 00 36 75 C0 A4 73 B6 51 3C [15:16:55]CommunicateWithHost err = 0 [15:16:55]CheckOFDResponse [15:16:55]1017 (14) - 77093643461234 [15:16:55]1041 (16) - 0000000000871843 [15:16:55]1040 (4) - 82389 [15:16:55]1012 (4) - 18.10.2024 08:49 [15:16:55]1206 (1) - 0 [15:16:55]OFD Sender: Remove packet 82389 [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00082389 [15:16:55]NVStorageDeleteData [15:16:55]*** Brake cut motor [15:16:56]Read from MH i2c: 01 [15:16:56]MH_I2C_Read... [15:16:56]OFD Sender: No OFD packet to send [15:16:56]Read from MH i2c: 01 07 00 [15:16:56]MH_I2C_Read... [15:16:56]*** Stop cut motor [15:16:56]*** Cut end [15:16:56]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [15:16:56]process_action close_receipt done [15:16:56]requested_data is exist [15:16:56]produce_requested_data [15:16:56]requested_item fm.sn is exist - process it [15:16:56]wFMCommunicate request_size=4 [15:16:56]MH_SAM_APDU [15:16:56]CAPDU: 80 11 00 00 [15:16:56]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:56]Read from MH i2c: E2 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 17 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 63 [15:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:16:56]wFMCommunicate OK [15:16:56]requested_item fd.num is exist - process it [15:16:56]SAM_PROTO_GetFieldsCounters [15:16:56]wFMCommunicate request_size=4 [15:16:56]MH_SAM_APDU [15:16:56]CAPDU: 80 13 00 00 [15:16:56]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:56]Read from MH i2c: E2 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 62 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 62 00 95 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [15:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:56]wFMCommunicate OK [15:16:56]SAM_PROTO_GetFieldsCounters done [15:16:56]requested_item shift.num is exist - process it [15:16:56]requested_item shift.opened is exist - process it [15:16:56]req_shift_opened [15:16:56]FM_GetShiftState [15:16:56]SAM_PROTO_GetShiftState [15:16:56]wFMCommunicate request_size=4 [15:16:56]MH_SAM_APDU [15:16:56]CAPDU: 80 13 01 00 [15:16:56]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:56]Read from MH i2c: E2 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 0E 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E8 [15:16:56]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:16:56]wFMCommunicate OK [15:16:56]SAM_PROTO_GetShiftState done [15:16:56]FM_GetShiftState done [15:16:56]req_shift_opened done [15:16:56]requested_item shift.open_date is exist - process it [15:16:56]req_shift_open_date [15:16:56]req_shift_open_date done [15:16:56]produce_requested_data done [15:16:56]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82389,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:16:56]process_action_free close_receipt [15:16:56]json_value_free [15:16:56]json_value_free done [15:16:56]process_json_proto returns [15:16:56]Send response to host [15:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82389,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:16:56]free response buf [15:16:56]execute_script done [15:16:56]execute_script returns [15:16:56]free content buf [15:16:56]Sock 9.Close socket [15:16:56]Sock 9.Thread stoped [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:45]accept exits with 10 [15:21:45]New connection [15:21:45]New thread 3066969444 created [15:21:45]Thread 3066826084 joined [15:21:45]Waiting for new connection... [15:21:45] Sock 10.Parse request [15:21:45]Sock 10.Check first char [15:21:45]Sock 10.First char is OK [15:21:45]request: POST /json_proto HTTP/1.0 [15:21:45]Method: POST [15:21:45]URL: /json_proto [15:21:45]Method is POST - this is cgi request [15:21:45]url: /json_proto [15:21:45]query_string will be loaded in cgi processing [15:21:45]execute_cgi json_proto POST (null) [15:21:45]execute_cgi path=json_proto method=POST [15:21:45]POST find Content-Length [15:21:45]Host: 172.17.44.67:8080 [15:21:45]Content-Length: 677 [15:21:45]Content-Type: application/json [15:21:45] [15:21:45]POST finish read [15:21:45]Found Content-Length = 677 [15:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:45]execute_script... [15: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)918882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:45]POST & json_proto [15:21:45]process_json_proto [15:21:45]json parsed OK: [15:21:45]protocol is kg_v1.0 [15:21:45]action value=close_receipt [15:21:45]process_action close_receipt [15:21:45]cmd_close_receipt [15:21:45]MH_GetDate [15:21:45]Write to MH i2c: F0 00 00 97 03 89 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: F0 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: F0 09 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: F0 09 00 97 03 00 0A 7D 12 67 F1 C7 6B 64 19 [15:21:45]GetLastDocTimeStamp 1729264613 [15:21:45]current date 1729264906 [15:21:45]FM_GetShiftState [15:21:45]SAM_PROTO_GetShiftState [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 13 01 00 [15:21:45]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 0E 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EA [15:21:45]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:21:45]wFMCommunicate OK [15:21:45]SAM_PROTO_GetShiftState done [15:21:45]FM_GetShiftState done [15:21:45]opened in 1729212319 [15:21:45]opened+sec_in_day 1729298719 [15:21:45]quantity*price = 40006 [15:21:45]sum+1 = 40007 [15:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 99 18.10.2024 15:21 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82390 ФПД: 112733119623183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152146&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82390&fm=112733119623183&tin=02508201610067®Number=0000000000091680&sum=40000 [15:21:46]StoreToDocumentArchive [15:21:46]shift 526 fd 82390 [15:21:46]save to /storage/0526/doc_00082390 [15:21:46]save last doc name /storage/0526/doc_00082390 to /storage/kkm_last_doc_name [15:21:46]save OK [15:21:46]Clear old archive folders... [15:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:46]tlvbuf is 00D9FD40 [15:21:46]SAM_PROTO_ClearQueue [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 09 00 00 [15:21:46]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 03 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [15:21:46]RAPDU: 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_ClearQueue done [15:21:46]KKMCreateOFDPacket [15:21:46]OFDProtocolAddRootSTLVToBuf [15:21:46]FM_MakeSignedData [15:21:46]FM_MakeSignedData [15:21:46]SAM_PROTO_SignData [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 0D 01 02 [15:21:46]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:46]OFD Sender: No OFD packet to send [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 03 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [15:21:46]RAPDU: 90 00 [15:21:46]wFMCommunicate OK [15:21:46]wFMCommunicate request_size=255 [15:21:46]MH_SAM_APDU [15: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0A 7D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 41 01 00 35 04 06 00 66 [15:21:46]Write to MH i2c: E2 02 01 A7 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0A 7D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 41 01 00 35 04 06 00 66 00 00 6E [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=10 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 02 02 05 87 B9 8C B0 0F [15:21:47]Write to MH i2c: E2 0D 00 A8 03 80 0D 02 02 05 00 87 B9 8C B0 0F 00 00 BA [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [15:21:47]RAPDU: 90 00 [15:21:47]wFMCommunicate OK [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 0D 03 02 [15:21:47]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0B 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 0B 00 A9 03 00 3B 87 21 1F BB 67 0B 71 90 00 C8 [15:21:47]RAPDU: 3B 87 21 1F BB 67 0B 71 90 00 [15:21:47]wFMCommunicate OK [15:21:47]SAM_PROTO_SignData done [15:21:47]FM_MakeSignedData done [15:21:47]CreateOFDProtocolMessage [15:21:47]wFMCommunicate request_size=4 [15:21:47]MH_SAM_APDU [15:21:47]CAPDU: 80 11 00 00 [15:21:47]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:47]Read from MH i2c: E2 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 17 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 79 [15:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:21:47]wFMCommunicate OK [15:21:47]CreateOFDProtocolMessage done [15:21:47]OFDSenderStorePacket 82390 [15:21:47]StoreOFDPacket docnum=82390 [15:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7C 1B 07 01 AE D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0A 7D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 41 01 00 35 04 06 00 66 87 B9 8C B0 0F 3B 87 21 1F BB 67 0B 71 [15:21:47]CheckFolder [15:21:47]dirname=/storage/ofd_packets [15:21:47]CheckFolder done [15:21:47]ProducePacketName [15:21:47]name=ofd_packets/00082390 [15:21:47]NVStorageSaveData ofd_packets/00082390 [15:21:47]File name is /storage/ofd_packets/00082390 [15:21:47]Write 301 bytes [15:21:47]NVStorageSaveData done [15:21:47]OFDSenderStorePacket done [15:21:47]KKMCreateOFDPacket done [15:21:47]NVStorageSaveData kkm_last_timestamp [15:21:47]File name is /storage/kkm_last_timestamp [15:21:47]Write 4 bytes [15:21:47]NVStorageSaveData done [15:21:47]ExternCall_PrintAddStr [15:21:47]wPrintStart [15:21:47]Write to MH i2c: 01 00 00 AB 03 AE [15:21:47]Write i2c OK [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 07 00 [15:21:47]MH_I2C_Read... [15:21:47]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [15:21:47]RasterBufferAndPrint [15:21:47]line Счет N : (1)918882 [15:21:47]line ИНН: 02508201610067 [15:21:47]line Контрольно-Кассовый Чек [15:21:47]line ПРОДАЖА [15:21:47]line ТРК (МРК, ГНК) : 11 [15:21:47]line Товар: 2710124130 [15:21:47]line Аи-92-К-4 [15:21:47]line 5.980 * 66.90 [15:21:47]line = 400.06 [15:21:47]line НДС 12% НСП 1% [15:21:47]line > о реализуемом товаре [15:21:47]line ОКРУГЛЕНИЕ: -0.06 [15:21:47]line ИТОГО: 400.00 [15:21:47]line Внесено: 400.00 [15:21:47]line СДАЧА: 0.00 [15:21:47]line НСП 1% : 3.54 [15:21:47]line НДС 12% : 42.48 [15:21:47]line Наличными: 400.00 [15:21:47]line Безнал.: 0.00 [15:21:47]line Место: АЗС № 114 "Партнер Нефть" [15:21:47]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:21:47]line СНО: Общий режим [15:21:47]line Чек 99 18.10.2024 15:21 [15:21:47]line Смена: 526 ФФД: 1.0 [15:21:47]line ЗНМ: 0300000086 [15:21:47]line РНМ: 0000000000091680 [15:21:47]line Версия ККМ: 001 [15:21:47]line ФМ: 0000000000871843 [15:21:47]line ФД: 82390 [15:21:47]line ФПД: 112733119623183 [15:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152146&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82390&fm=112733119623183&tin=02508201610067®Number=0000000000091680&sum=40000 [15:21:47]OFD Sender: Processing packet 82390 [packets to send 254, broken 253] [15:21:47]ProducePacketName [15:21:47]name=ofd_packets/00082390 [15:21:47]OFD Sender: To server: pG, [15:21:47]CommunicateWithHost lk.salyk.kg:30040 [15:21:47]ConnectInit lk.salyk.kg [15:21:47]written 0, free lines is 4095 [15:21:48]Write to MH i2c: 01 00 00 D6 03 D9 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 D9 0C C5 [15:21:48]RasterBufferAndPrint [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]line [15:21:48]written 0, free lines is 3296 [15:21:48]MH_Cut [15:21:48]Write to MH i2c: D1 01 00 DD 03 01 B2 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 01 00 [15:21:48]MH_I2C_Read... [15:21:48]Read from MH i2c: D1 01 00 DD 03 00 B1 [15:21:48]Write to MH i2c: 01 00 00 DE 03 E1 [15:21:48]Write i2c OK [15:21:48]MH_I2C_Read... [15:21:48]Connected sock=7 [15:21:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7C 1B 07 01 AE D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0A 7D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 41 01 00 35 04 06 00 66 87 B9 8C B0 0F 3B 87 21 1F BB 67 0B 71 [15:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 C7 A9 47 00 8D A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D6 41 01 00 F4 03 04 00 45 22 12 67 B6 04 01 00 00 35 48 A1 3C B1 4A F1 84 [15:21:48]CommunicateWithHost err = 0 [15:21:48]CheckOFDResponse [15:21:48]1017 (14) - 77093643461234 [15:21:48]1041 (16) - 0000000000871843 [15:21:48]1040 (4) - 82390 [15:21:48]1012 (4) - 18.10.2024 08:54 [15:21:48]1206 (1) - 0 [15:21:48]OFD Sender: Remove packet 82390 [15:21:48]ProducePacketName [15:21:48]name=ofd_packets/00082390 [15:21:48]NVStorageDeleteData [15:21:48]*** Cut start [15:21:48]*** Partial cut [15:21:48]*** CUTSNS_PIN = 1 [15:21:48]*** CUTSNS_PIN = 0 [15:21:49]*** Brake cut motor [15:21:49]OFD Sender: No OFD packet to send [15:21:49]Read from MH i2c: 01 [15:21:49]MH_I2C_Read... [15:21:49]*** Stop cut motor [15:21:49]*** Cut end [15:21:49]Read from MH i2c: 01 07 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [15:21:49]process_action close_receipt done [15:21:49]requested_data is exist [15:21:49]produce_requested_data [15:21:49]requested_item fm.sn is exist - process it [15:21:49]wFMCommunicate request_size=4 [15:21:49]MH_SAM_APDU [15:21:49]CAPDU: 80 11 00 00 [15:21:49]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:49]Read from MH i2c: E2 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 17 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AE [15:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:21:49]wFMCommunicate OK [15:21:49]requested_item fd.num is exist - process it [15:21:49]SAM_PROTO_GetFieldsCounters [15:21:49]wFMCommunicate request_size=4 [15:21:49]MH_SAM_APDU [15:21:49]CAPDU: 80 13 00 00 [15:21:49]Write to MH i2c: E2 08 00 E0 03 80 13 00 00 00 00 00 00 5F [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:49]Read from MH i2c: E2 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 62 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 62 00 E0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [15:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:49]wFMCommunicate OK [15:21:49]SAM_PROTO_GetFieldsCounters done [15:21:49]requested_item shift.num is exist - process it [15:21:49]requested_item shift.opened is exist - process it [15:21:49]req_shift_opened [15:21:49]FM_GetShiftState [15:21:49]SAM_PROTO_GetShiftState [15:21:49]wFMCommunicate request_size=4 [15:21:49]MH_SAM_APDU [15:21:49]CAPDU: 80 13 01 00 [15:21:49]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:49]Read from MH i2c: E2 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 0E 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 33 [15:21:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:21:49]wFMCommunicate OK [15:21:49]SAM_PROTO_GetShiftState done [15:21:49]FM_GetShiftState done [15:21:49]req_shift_opened done [15:21:49]requested_item shift.open_date is exist - process it [15:21:49]req_shift_open_date [15:21:49]req_shift_open_date done [15:21:49]produce_requested_data done [15:21:49]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82390,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:21:49]process_action_free close_receipt [15:21:49]json_value_free [15:21:49]json_value_free done [15:21:49]process_json_proto returns [15:21:49]Send response to host [15:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82390,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:21:49]free response buf [15:21:49]execute_script done [15:21:49]execute_script returns [15:21:49]free content buf [15:21:49]Sock 10.Close socket [15:21:49]Sock 10.Thread stoped [15:21:54]OFD Sender: No OFD packet to send [15:21:56]recv_with_timeout no data received [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:17]recv_with_timeout no data received [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:55]recv_with_timeout no data received [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:20]recv_with_timeout no data received [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:08]accept exits with 9 [15:26:08]New connection [15:26:08]New thread 3066826084 created [15:26:08]Thread 3066969444 joined [15:26:08]Waiting for new connection... [15:26:08] Sock 9.Parse request [15:26:08]Sock 9.Check first char [15:26:08]Sock 9.First char is OK [15:26:08]request: POST /json_proto HTTP/1.0 [15:26:08]Method: POST [15:26:08]URL: /json_proto [15:26:08]Method is POST - this is cgi request [15:26:08]url: /json_proto [15:26:08]query_string will be loaded in cgi processing [15:26:08]execute_cgi json_proto POST (null) [15:26:08]execute_cgi path=json_proto method=POST [15:26:08]POST find Content-Length [15:26:08]Host: 172.17.44.67:8080 [15:26:08]Content-Length: 806 [15:26:08]Content-Type: application/json [15:26:08] [15:26:08]POST finish read [15:26:08]Found Content-Length = 806 [15:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2226328", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:08]execute_script... [15:26: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)918883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2226328", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:08]POST & json_proto [15:26:08]process_json_proto [15:26:08]json parsed OK: [15:26:08]protocol is kg_v1.0 [15:26:08]action value=close_receipt [15:26:08]process_action close_receipt [15:26:08]cmd_close_receipt [15:26:08]MH_GetDate [15:26:08]Write to MH i2c: F0 00 00 E2 03 D4 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: F0 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: F0 09 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: F0 09 00 E2 03 00 11 7E 12 67 F1 C7 6B 64 6C [15:26:08]GetLastDocTimeStamp 1729264906 [15:26:08]current date 1729265169 [15:26:08]FM_GetShiftState [15:26:08]SAM_PROTO_GetShiftState [15:26:08]wFMCommunicate request_size=4 [15:26:08]MH_SAM_APDU [15:26:08]CAPDU: 80 13 01 00 [15:26:08]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 0E 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 35 [15:26:08]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:26:08]wFMCommunicate OK [15:26:08]SAM_PROTO_GetShiftState done [15:26:08]FM_GetShiftState done [15:26:08]opened in 1729212319 [15:26:08]opened+sec_in_day 1729298719 [15:26:08]quantity*price = 0 [15:26:08]sum+1 = 1 [15:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 100 18.10.2024 15:26 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2226328 ФМ: 0000000000871843 ФД: 82391 ФПД: 176715310858658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152609&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82391&fm=176715310858658&tin=02508201610067®Number=0000000000091680&sum=0 [15:26:09]StoreToDocumentArchive [15:26:09]shift 526 fd 82391 [15:26:09]save to /storage/0526/doc_00082391 [15:26:09]save last doc name /storage/0526/doc_00082391 to /storage/kkm_last_doc_name [15:26:09]save OK [15:26:09]Clear old archive folders... [15:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:26:09]tlvbuf is 00D84840 [15:26:09]SAM_PROTO_ClearQueue [15:26:09]wFMCommunicate request_size=4 [15:26:09]MH_SAM_APDU [15:26:09]CAPDU: 80 09 00 00 [15:26:09]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:09]Read from MH i2c: E2 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 03 00 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [15:26:09]RAPDU: 90 00 [15:26:09]wFMCommunicate OK [15:26:09]SAM_PROTO_ClearQueue done [15:26:09]KKMCreateOFDPacket [15:26:09]OFDProtocolAddRootSTLVToBuf [15:26:09]FM_MakeSignedData [15:26:09]FM_MakeSignedData [15:26:09]SAM_PROTO_SignData [15:26:09]wFMCommunicate request_size=4 [15:26:09]MH_SAM_APDU [15:26:09]CAPDU: 80 0D 01 02 [15:26:09]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:09]Read from MH i2c: E2 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 03 00 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [15:26:09]RAPDU: 90 00 [15:26:09]wFMCommunicate OK [15:26:09]wFMCommunicate request_size=255 [15:26:09]MH_SAM_APDU [15:26:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 11 7E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 41 01 [15:26:09]Write to MH i2c: E2 02 01 F2 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 11 7E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 41 01 00 00 A5 [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:09]Read from MH i2c: E2 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 03 00 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [15:26:09]RAPDU: 90 00 [15:26:09]wFMCommunicate OK [15:26:09]wFMCommunicate request_size=16 [15:26:09]MH_SAM_APDU [15:26:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A0 B8 BD 54 81 A2 [15:26:09]Write to MH i2c: E2 13 00 F3 03 80 0D 02 02 0B 00 00 35 04 06 00 A0 B8 BD 54 81 A2 00 00 51 [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:10]Read from MH i2c: E2 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: E2 03 00 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [15:26:10]RAPDU: 90 00 [15:26:10]wFMCommunicate OK [15:26:10]wFMCommunicate request_size=4 [15:26:10]MH_SAM_APDU [15:26:10]CAPDU: 80 0D 03 02 [15:26:10]Write to MH i2c: E2 08 00 F4 03 80 0D 03 02 00 00 00 00 72 [15:26:10]Write i2c OK [15:26:10]MH_I2C_Read... [15:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:10]Read from MH i2c: E2 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: E2 0B 00 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: E2 0B 00 F4 03 00 E8 97 34 55 9B 15 7F 6E 90 00 18 [15:26:10]RAPDU: E8 97 34 55 9B 15 7F 6E 90 00 [15:26:10]wFMCommunicate OK [15:26:10]SAM_PROTO_SignData done [15:26:10]FM_MakeSignedData done [15:26:10]CreateOFDProtocolMessage [15:26:10]wFMCommunicate request_size=4 [15:26:10]MH_SAM_APDU [15:26:10]CAPDU: 80 11 00 00 [15:26:10]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [15:26:10]Write i2c OK [15:26:10]MH_I2C_Read... [15:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:10]Read from MH i2c: E2 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: E2 17 00 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [15:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:26:10]wFMCommunicate OK [15:26:10]CreateOFDProtocolMessage done [15:26:10]OFDSenderStorePacket 82391 [15:26:10]StoreOFDPacket docnum=82391 [15:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 BC 79 0D 01 10 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 11 7E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 41 01 00 35 04 06 00 A0 B8 BD 54 81 A2 E8 97 34 55 9B 15 7F 6E [15:26:10]CheckFolder [15:26:10]dirname=/storage/ofd_packets [15:26:10]CheckFolder done [15:26:10]ProducePacketName [15:26:10]name=ofd_packets/00082391 [15:26:10]NVStorageSaveData ofd_packets/00082391 [15:26:10]File name is /storage/ofd_packets/00082391 [15:26:10]Write 307 bytes [15:26:10]NVStorageSaveData done [15:26:10]OFDSenderStorePacket done [15:26:10]KKMCreateOFDPacket done [15:26:10]NVStorageSaveData kkm_last_timestamp [15:26:10]File name is /storage/kkm_last_timestamp [15:26:10]Write 4 bytes [15:26:10]NVStorageSaveData done [15:26:10]ExternCall_PrintAddStr [15:26:10]wPrintStart [15:26:10]Write to MH i2c: 01 00 00 F6 03 F9 [15:26:10]Write i2c OK [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: 01 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: 01 07 00 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [15:26:10]RasterBufferAndPrint [15:26:10]line Счет N : (1)918883 [15:26:10]line ИНН: 02508201610067 [15:26:10]line Контрольно-Кассовый Чек [15:26:10]line ПРОДАЖА [15:26:10]line ТРК (МРК, ГНК) : 21 [15:26:10]line Товар: 2710194800 [15:26:10]line D-Energy ДТ-К-2 [15:26:10]line 20.000 * 0.00 [15:26:10]line = 0.00 [15:26:10]line НДС 12% НСП 1% [15:26:10]line > о реализуемом товаре [15:26:10]line ИТОГО: 0.00 [15:26:10]line НСП 1% : 0.00 [15:26:10]line НДС 12% : 0.00 [15:26:10]line Наличными: 0.00 [15:26:10]line Безнал.: 0.00 [15:26:10]line Место: АЗС № 114 "Партнер Нефть" [15:26:10]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:26:10]line СНО: Общий режим [15:26:10]line Чек 100 18.10.2024 15:26 [15:26:10]line Смена: 526 ФФД: 1.0 [15:26:10]line ЗНМ: 0300000086 [15:26:10]line РНМ: 0000000000091680 [15:26:10]line Версия ККМ: 001 [15:26:10]line Талоны: Топливные Талоны [15:26:10]line 2226328 [15:26:10]line ФМ: 0000000000871843 [15:26:10]line ФД: 82391 [15:26:10]line ФПД: 176715310858658 [15:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152609&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82391&fm=176715310858658&tin=02508201610067®Number=0000000000091680&sum=0 [15:26:10]OFD Sender: Processing packet 82391 [packets to send 254, broken 253] [15:26:10]ProducePacketName [15:26:10]name=ofd_packets/00082391 [15:26:10]OFD Sender: To server: pG, [15:26:10]CommunicateWithHost lk.salyk.kg:30040 [15:26:10]ConnectInit lk.salyk.kg [15:26:10]written 0, free lines is 4095 [15:26:10]Write to MH i2c: 01 00 00 20 04 24 [15:26:10]Write i2c OK [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: 01 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: 01 07 00 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 FB 0C 32 [15:26:10]RasterBufferAndPrint [15:26:10]line [15:26:10]line [15:26:10]line [15:26:10]line [15:26:10]line [15:26:10]written 0, free lines is 3329 [15:26:10]MH_Cut [15:26:10]Write to MH i2c: D1 01 00 27 04 01 FD [15:26:10]Write i2c OK [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: D1 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: D1 01 00 [15:26:10]MH_I2C_Read... [15:26:10]Read from MH i2c: D1 01 00 27 04 00 FC [15:26:10]Write to MH i2c: 01 00 00 28 04 2C [15:26:10]Write i2c OK [15:26:10]MH_I2C_Read... [15:26:11]*** Cut start [15:26:11]*** Partial cut [15:26:11]*** CUTSNS_PIN = 1 [15:26:11]*** CUTSNS_PIN = 0 [15:26:11]Connected sock=11 [15:26:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 BC 79 0D 01 10 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 11 7E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 41 01 00 35 04 06 00 A0 B8 BD 54 81 A2 E8 97 34 55 9B 15 7F 6E [15:26:11]*** Brake cut motor [15:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5E C5 47 00 ED 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D7 41 01 00 F4 03 04 00 4C 23 12 67 B6 04 01 00 00 41 14 AE 32 92 24 32 25 [15:26:12]CommunicateWithHost err = 0 [15:26:12]CheckOFDResponse [15:26:12]1017 (14) - 77093643461234 [15:26:12]1041 (16) - 0000000000871843 [15:26:12]1040 (4) - 82391 [15:26:12]1012 (4) - 18.10.2024 08:58 [15:26:12]1206 (1) - 0 [15:26:12]OFD Sender: Remove packet 82391 [15:26:12]ProducePacketName [15:26:12]name=ofd_packets/00082391 [15:26:12]NVStorageDeleteData [15:26:12]Read from MH i2c: 01 [15:26:12]MH_I2C_Read... [15:26:12]*** Stop cut motor [15:26:12]*** Cut end [15:26:12]Read from MH i2c: 01 07 00 [15:26:12]MH_I2C_Read... [15:26:12]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [15:26:12]process_action close_receipt done [15:26:12]requested_data is exist [15:26:12]produce_requested_data [15:26:12]requested_item fm.sn is exist - process it [15:26:12]wFMCommunicate request_size=4 [15:26:12]MH_SAM_APDU [15:26:12]CAPDU: 80 11 00 00 [15:26:12]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [15:26:12]Write i2c OK [15:26:12]MH_I2C_Read... [15:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:12]Read from MH i2c: E2 [15:26:12]MH_I2C_Read... [15:26:12]Read from MH i2c: E2 17 00 [15:26:12]MH_I2C_Read... [15:26:12]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F9 [15:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:26:12]wFMCommunicate OK [15:26:12]requested_item fd.num is exist - process it [15:26:12]SAM_PROTO_GetFieldsCounters [15:26:12]wFMCommunicate request_size=4 [15:26:12]MH_SAM_APDU [15:26:12]CAPDU: 80 13 00 00 [15:26:12]Write to MH i2c: E2 08 00 2A 04 80 13 00 00 00 00 00 00 AA [15:26:12]Write i2c OK [15:26:12]MH_I2C_Read... [15:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:12]Read from MH i2c: E2 [15:26:12]MH_I2C_Read... [15:26:12]Read from MH i2c: E2 62 00 [15:26:12]MH_I2C_Read... [15:26:12]Read from MH i2c: E2 62 00 2A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [15:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:12]wFMCommunicate OK [15:26:12]SAM_PROTO_GetFieldsCounters done [15:26:12]requested_item shift.num is exist - process it [15:26:12]requested_item shift.opened is exist - process it [15:26:12]req_shift_opened [15:26:12]FM_GetShiftState [15:26:12]SAM_PROTO_GetShiftState [15:26:12]wFMCommunicate request_size=4 [15:26:12]MH_SAM_APDU [15:26:12]CAPDU: 80 13 01 00 [15:26:12]Write to MH i2c: E2 08 00 2B 04 80 13 01 00 00 00 00 00 AC [15:26:12]Write i2c OK [15:26:12]MH_I2C_Read... [15:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:12]Read from MH i2c: E2 [15:26:12]MH_I2C_Read... [15:26:12]Read from MH i2c: E2 0E 00 [15:26:12]MH_I2C_Read... [15:26:12]Read from MH i2c: E2 0E 00 2B 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 7E [15:26:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:26:12]wFMCommunicate OK [15:26:12]SAM_PROTO_GetShiftState done [15:26:12]FM_GetShiftState done [15:26:12]req_shift_opened done [15:26:12]requested_item shift.open_date is exist - process it [15:26:12]req_shift_open_date [15:26:12]req_shift_open_date done [15:26:12]produce_requested_data done [15:26:12]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82391,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:26:12]process_action_free close_receipt [15:26:12]json_value_free [15:26:12]json_value_free done [15:26:12]process_json_proto returns [15:26:12]Send response to host [15:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82391,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:26:12]free response buf [15:26:12]execute_script done [15:26:12]execute_script returns [15:26:12]free content buf [15:26:12]Sock 9.Close socket [15:26:12]Sock 9.Thread stoped [15:26:12]OFD Sender: No OFD packet to send [15:26:14]recv_with_timeout no data received [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:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:25]recv_with_timeout no data received [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:56]recv_with_timeout no data received [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [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:23]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:15]accept exits with 7 [15:42:15]New connection [15:42:15]New thread 3066969444 created [15:42:15]Thread 3066826084 joined [15:42:15]Waiting for new connection... [15:42:15] Sock 7.Parse request [15:42:15]Sock 7.Check first char [15:42:15]Sock 7.First char is OK [15:42:15]request: POST /json_proto HTTP/1.0 [15:42:15]Method: POST [15:42:15]URL: /json_proto [15:42:15]Method is POST - this is cgi request [15:42:15]url: /json_proto [15:42:15]query_string will be loaded in cgi processing [15:42:15]execute_cgi json_proto POST (null) [15:42:15]execute_cgi path=json_proto method=POST [15:42:15]POST find Content-Length [15:42:15]Host: 172.17.44.67:8080 [15:42:15]Content-Length: 677 [15:42:15]Content-Type: application/json [15:42:15] [15:42:15]POST finish read [15:42:15]Found Content-Length = 677 [15:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:15]execute_script... [15:42: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)918884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:15]POST & json_proto [15:42:15]process_json_proto [15:42:15]json parsed OK: [15:42:15]protocol is kg_v1.0 [15:42:15]action value=close_receipt [15:42:15]process_action close_receipt [15:42:15]cmd_close_receipt [15:42:15]MH_GetDate [15:42:15]Write to MH i2c: F0 00 00 2C 04 1F [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: F0 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: F0 09 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: F0 09 00 2C 04 00 D8 81 12 67 F1 C7 6B 64 81 [15:42:15]GetLastDocTimeStamp 1729265169 [15:42:15]current date 1729266136 [15:42:15]FM_GetShiftState [15:42:15]SAM_PROTO_GetShiftState [15:42:15]wFMCommunicate request_size=4 [15:42:15]MH_SAM_APDU [15:42:15]CAPDU: 80 13 01 00 [15:42:15]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [15:42:15]Write i2c OK [15:42:15]MH_I2C_Read... [15:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:15]Read from MH i2c: E2 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 0E 00 [15:42:15]MH_I2C_Read... [15:42:15]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 80 [15:42:15]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:42:15]wFMCommunicate OK [15:42:15]SAM_PROTO_GetShiftState done [15:42:15]FM_GetShiftState done [15:42:15]opened in 1729212319 [15:42:15]opened+sec_in_day 1729298719 [15:42:15]quantity*price = 48034 [15:42:15]sum+1 = 48035 [15:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.01 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 101 18.10.2024 15:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82392 ФПД: 46432000034799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154217&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82392&fm=46432000034799&tin=02508201610067®Number=0000000000091680&sum=48000 [15:42:17]StoreToDocumentArchive [15:42:17]shift 526 fd 82392 [15:42:17]save to /storage/0526/doc_00082392 [15:42:17]save last doc name /storage/0526/doc_00082392 to /storage/kkm_last_doc_name [15:42:17]save OK [15:42:17]Clear old archive folders... [15:42:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:17]tlvbuf is 00DED1A0 [15:42:17]SAM_PROTO_ClearQueue [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 09 00 00 [15:42:17]Write to MH i2c: E2 08 00 3A 04 80 09 00 00 00 00 00 00 B0 [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [15:42:17]RAPDU: 90 00 [15:42:17]wFMCommunicate OK [15:42:17]SAM_PROTO_ClearQueue done [15:42:17]KKMCreateOFDPacket [15:42:17]OFDProtocolAddRootSTLVToBuf [15:42:17]FM_MakeSignedData [15:42:17]FM_MakeSignedData [15:42:17]SAM_PROTO_SignData [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 0D 01 02 [15:42:17]Write to MH i2c: E2 08 00 3B 04 80 0D 01 02 00 00 00 00 B8 [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [15:42:17]RAPDU: 90 00 [15:42:17]wFMCommunicate OK [15:42:17]wFMCommunicate request_size=255 [15:42:17]MH_SAM_APDU [15:42: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 34 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D9 81 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 41 01 00 35 04 06 00 2A [15:42:17]Write to MH i2c: E2 02 01 3C 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 34 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D9 81 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 41 01 00 35 04 06 00 2A 00 00 2C [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [15:42:17]RAPDU: 90 00 [15:42:17]wFMCommunicate OK [15:42:17]wFMCommunicate request_size=10 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 0D 02 02 05 3A CA DE 47 EF [15:42:17]Write to MH i2c: E2 0D 00 3D 04 80 0D 02 02 05 00 3A CA DE 47 EF 00 00 DD [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [15:42:17]RAPDU: 90 00 [15:42:17]wFMCommunicate OK [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 0D 03 02 [15:42:17]Write to MH i2c: E2 08 00 3E 04 80 0D 03 02 00 00 00 00 BD [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0B 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0B 00 3E 04 00 98 3A 29 FE FC 75 6E 30 90 00 C6 [15:42:17]RAPDU: 98 3A 29 FE FC 75 6E 30 90 00 [15:42:17]wFMCommunicate OK [15:42:17]SAM_PROTO_SignData done [15:42:17]FM_MakeSignedData done [15:42:17]CreateOFDProtocolMessage [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 11 00 00 [15:42:17]Write to MH i2c: E2 08 00 3F 04 80 11 00 00 00 00 00 00 BD [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 17 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 17 00 3F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0F [15:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:42:17]wFMCommunicate OK [15:42:17]CreateOFDProtocolMessage done [15:42:17]OFDSenderStorePacket 82392 [15:42:17]StoreOFDPacket docnum=82392 [15:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F4 F5 07 01 32 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 34 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D9 81 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 41 01 00 35 04 06 00 2A 3A CA DE 47 EF 98 3A 29 FE FC 75 6E 30 [15:42:17]CheckFolder [15:42:17]dirname=/storage/ofd_packets [15:42:17]CheckFolder done [15:42:17]ProducePacketName [15:42:17]name=ofd_packets/00082392 [15:42:17]NVStorageSaveData ofd_packets/00082392 [15:42:17]File name is /storage/ofd_packets/00082392 [15:42:17]Write 301 bytes [15:42:17]NVStorageSaveData done [15:42:17]OFDSenderStorePacket done [15:42:17]KKMCreateOFDPacket done [15:42:17]NVStorageSaveData kkm_last_timestamp [15:42:17]File name is /storage/kkm_last_timestamp [15:42:17]Write 4 bytes [15:42:17]NVStorageSaveData done [15:42:17]ExternCall_PrintAddStr [15:42:17]wPrintStart [15:42:17]Write to MH i2c: 01 00 00 40 04 44 [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: 01 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: 01 07 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [15:42:17]RasterBufferAndPrint [15:42:17]line Счет N : (1)918884 [15:42:17]line ИНН: 02508201610067 [15:42:17]line Контрольно-Кассовый Чек [15:42:17]line ПРОДАЖА [15:42:17]line ТРК (МРК, ГНК) : 22 [15:42:17]line Товар: 2710124130 [15:42:17]line Аи-92-К-4 [15:42:17]line 7.180 * 66.90 [15:42:17]line = 480.34 [15:42:17]line НДС 12% НСП 1% [15:42:17]line > о реализуемом товаре [15:42:17]line ОКРУГЛЕНИЕ: -0.34 [15:42:17]line ИТОГО: 480.00 [15:42:17]line Внесено: 480.00 [15:42:17]line СДАЧА: 0.00 [15:42:17]line НСП 1% : 4.25 [15:42:17]line НДС 12% : 51.01 [15:42:17]line Наличными: 480.00 [15:42:17]line Безнал.: 0.00 [15:42:17]line Место: АЗС № 114 "Партнер Нефть" [15:42:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:42:17]line СНО: Общий режим [15:42:17]line Чек 101 18.10.2024 15:42 [15:42:17]line Смена: 526 ФФД: 1.0 [15:42:17]line ЗНМ: 0300000086 [15:42:17]line РНМ: 0000000000091680 [15:42:17]line Версия ККМ: 001 [15:42:17]line ФМ: 0000000000871843 [15:42:17]line ФД: 82392 [15:42:17]line ФПД: 46432000034799 [15:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154217&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82392&fm=46432000034799&tin=02508201610067®Number=0000000000091680&sum=48000 [15:42:17]OFD Sender: Processing packet 82392 [packets to send 254, broken 253] [15:42:17]ProducePacketName [15:42:17]name=ofd_packets/00082392 [15:42:17]OFD Sender: To server: pG, [15:42:17]CommunicateWithHost lk.salyk.kg:30040 [15:42:17]ConnectInit lk.salyk.kg [15:42:17]written 0, free lines is 4095 [15:42:18]Write to MH i2c: 01 00 00 6B 04 6F [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: 01 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: 01 07 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: 01 07 00 6B 04 00 00 00 00 00 E1 0C 63 [15:42:18]RasterBufferAndPrint [15:42:18]line [15:42:18]line [15:42:18]line [15:42:18]line [15:42:18]line [15:42:18]written 0, free lines is 3303 [15:42:18]MH_Cut [15:42:18]Write to MH i2c: D1 01 00 72 04 01 48 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: D1 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: D1 01 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: D1 01 00 72 04 00 47 [15:42:18]Write to MH i2c: 01 00 00 73 04 77 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:19]*** Cut start [15:42:19]*** Partial cut [15:42:19]*** CUTSNS_PIN = 1 [15:42:19]*** CUTSNS_PIN = 0 [15:42:19]*** Brake cut motor [15:42:19]Read from MH i2c: 01 [15:42:19]MH_I2C_Read... [15:42:19]*** Stop cut motor [15:42:19]*** Cut end [15:42:19]Read from MH i2c: 01 07 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [15:42:19]process_action close_receipt done [15:42:19]requested_data is exist [15:42:19]produce_requested_data [15:42:19]requested_item fm.sn is exist - process it [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 11 00 00 [15:42:19]Write to MH i2c: E2 08 00 74 04 80 11 00 00 00 00 00 00 F2 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 17 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 17 00 74 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 44 [15:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:42:19]wFMCommunicate OK [15:42:19]requested_item fd.num is exist - process it [15:42:19]SAM_PROTO_GetFieldsCounters [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 13 00 00 [15:42:19]Write to MH i2c: E2 08 00 75 04 80 13 00 00 00 00 00 00 F5 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:19]Read from MH i2c: E2 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 62 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: E2 62 00 75 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [15:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:19]wFMCommunicate OK [15:42:19]SAM_PROTO_GetFieldsCounters done [15:42:19]requested_item shift.num is exist - process it [15:42:19]requested_item shift.opened is exist - process it [15:42:19]req_shift_opened [15:42:19]FM_GetShiftState [15:42:19]SAM_PROTO_GetShiftState [15:42:19]wFMCommunicate request_size=4 [15:42:19]MH_SAM_APDU [15:42:19]CAPDU: 80 13 01 00 [15:42:19]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:20]Read from MH i2c: E2 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: E2 0E 00 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C9 [15:42:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:42:20]wFMCommunicate OK [15:42:20]SAM_PROTO_GetShiftState done [15:42:20]FM_GetShiftState done [15:42:20]req_shift_opened done [15:42:20]requested_item shift.open_date is exist - process it [15:42:20]req_shift_open_date [15:42:20]req_shift_open_date done [15:42:20]produce_requested_data done [15:42:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82392,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:42:20]process_action_free close_receipt [15:42:20]json_value_free [15:42:20]json_value_free done [15:42:20]process_json_proto returns [15:42:20]Send response to host [15:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82392,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:42:20]free response buf [15:42:20]execute_script done [15:42:20]execute_script returns [15:42:20]free content buf [15:42:20]Sock 7.Close socket [15:42:20]Sock 7.Thread stoped [15:42:20]Connected sock=11 [15:42:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F4 F5 07 01 32 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 34 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D9 81 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 41 01 00 35 04 06 00 2A 3A CA DE 47 EF 98 3A 29 FE FC 75 6E 30 [15:42:23]recv_with_timeout no data received [15:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8E BC 47 00 DC A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D8 41 01 00 F4 03 04 00 15 27 12 67 B6 04 01 00 00 19 FD D0 34 A7 76 C1 43 [15:42:23]CommunicateWithHost err = 0 [15:42:23]CheckOFDResponse [15:42:23]1017 (14) - 77093643461234 [15:42:23]1041 (16) - 0000000000871843 [15:42:23]1040 (4) - 82392 [15:42:23]1012 (4) - 18.10.2024 09:15 [15:42:23]1206 (1) - 0 [15:42:23]OFD Sender: Remove packet 82392 [15:42:23]ProducePacketName [15:42:23]name=ofd_packets/00082392 [15:42:23]NVStorageDeleteData [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]recv_with_timeout no data received [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]recv_with_timeout no data received [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:13]recv_with_timeout no data received [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]accept exits with 9 [15:44:59]New connection [15:44:59]New thread 3066826084 created [15:44:59]Thread 3066969444 joined [15:44:59]Waiting for new connection... [15:44:59] Sock 9.Parse request [15:44:59]Sock 9.Check first char [15:44:59]Sock 9.First char is OK [15:44:59]request: POST /json_proto HTTP/1.0 [15:44:59]Method: POST [15:44:59]URL: /json_proto [15:44:59]Method is POST - this is cgi request [15:44:59]url: /json_proto [15:44:59]query_string will be loaded in cgi processing [15:44:59]execute_cgi json_proto POST (null) [15:44:59]execute_cgi path=json_proto method=POST [15:44:59]POST find Content-Length [15:44:59]Host: 172.17.44.67:8080 [15:44:59]Content-Length: 766 [15:44:59]Content-Type: application/json [15:44:59] [15:44:59]POST finish read [15:44:59]Found Content-Length = 766 [15:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:59]execute_script... [15:44:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:59]POST & json_proto [15:44:59]process_json_proto [15:44:59]json parsed OK: [15:44:59]protocol is kg_v1.0 [15:44:59]action value=close_receipt [15:44:59]process_action close_receipt [15:44:59]cmd_close_receipt [15:44:59]MH_GetDate [15:44:59]Write to MH i2c: F0 00 00 77 04 6A [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: F0 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: F0 09 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: F0 09 00 77 04 00 7C 82 12 67 F1 C7 6B 64 71 [15:44:59]GetLastDocTimeStamp 1729266137 [15:44:59]current date 1729266300 [15:44:59]FM_GetShiftState [15:44:59]SAM_PROTO_GetShiftState [15:44:59]wFMCommunicate request_size=4 [15:44:59]MH_SAM_APDU [15:44:59]CAPDU: 80 13 01 00 [15:44:59]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [15:44:59]Write i2c OK [15:44:59]MH_I2C_Read... [15:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:59]OFD Sender: No OFD packet to send [15:44:59]Read from MH i2c: E2 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 0E 00 [15:44:59]MH_I2C_Read... [15:44:59]Read from MH i2c: E2 0E 00 78 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CB [15:44:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:44:59]wFMCommunicate OK [15:44:59]SAM_PROTO_GetShiftState done [15:44:59]FM_GetShiftState done [15:44:59]opened in 1729212319 [15:44:59]opened+sec_in_day 1729298719 [15:44:59]quantity*price = 30038 [15:44:59]sum+1 = 30039 [15:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 102 18.10.2024 15:45 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82393 ФПД: 110757882719232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154500&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82393&fm=110757882719232&tin=02508201610067®Number=0000000000091680&sum=30038 [15:45:00]StoreToDocumentArchive [15:45:00]shift 526 fd 82393 [15:45:00]save to /storage/0526/doc_00082393 [15:45:00]save last doc name /storage/0526/doc_00082393 to /storage/kkm_last_doc_name [15:45:00]save OK [15:45:00]Clear old archive folders... [15:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:00]tlvbuf is 00DB6D60 [15:45:00]SAM_PROTO_ClearQueue [15:45:00]wFMCommunicate request_size=4 [15:45:00]MH_SAM_APDU [15:45:00]CAPDU: 80 09 00 00 [15:45:00]Write to MH i2c: E2 08 00 85 04 80 09 00 00 00 00 00 00 FB [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:00]Read from MH i2c: E2 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 03 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [15:45:00]RAPDU: 90 00 [15:45:00]wFMCommunicate OK [15:45:00]SAM_PROTO_ClearQueue done [15:45:00]KKMCreateOFDPacket [15:45:00]OFDProtocolAddRootSTLVToBuf [15:45:00]FM_MakeSignedData [15:45:00]FM_MakeSignedData [15:45:00]SAM_PROTO_SignData [15:45:00]wFMCommunicate request_size=4 [15:45:00]MH_SAM_APDU [15:45:00]CAPDU: 80 0D 01 02 [15:45:00]Write to MH i2c: E2 08 00 86 04 80 0D 01 02 00 00 00 00 03 [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:00]Read from MH i2c: E2 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 03 00 [15:45:00]MH_I2C_Read... [15:45:00]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [15:45:00]RAPDU: 90 00 [15:45:00]wFMCommunicate OK [15:45:00]wFMCommunicate request_size=255 [15:45:00]MH_SAM_APDU [15:45: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C 82 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 41 01 00 35 04 06 00 64 [15:45:00]Write to MH i2c: E2 02 01 87 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C 82 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 41 01 00 35 04 06 00 64 00 00 3B [15:45:00]Write i2c OK [15:45:00]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [15:45:01]RAPDU: 90 00 [15:45:01]wFMCommunicate OK [15:45:01]wFMCommunicate request_size=10 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 0D 02 02 05 BB D4 41 6C 00 [15:45:01]Write to MH i2c: E2 0D 00 88 04 80 0D 02 02 05 00 BB D4 41 6C 00 00 00 4C [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [15:45:01]RAPDU: 90 00 [15:45:01]wFMCommunicate OK [15:45:01]wFMCommunicate request_size=4 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 0D 03 02 [15:45:01]Write to MH i2c: E2 08 00 89 04 80 0D 03 02 00 00 00 00 08 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 0B 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 0B 00 89 04 00 DF 32 77 87 A4 E7 EE 27 90 00 B8 [15:45:01]RAPDU: DF 32 77 87 A4 E7 EE 27 90 00 [15:45:01]wFMCommunicate OK [15:45:01]SAM_PROTO_SignData done [15:45:01]FM_MakeSignedData done [15:45:01]CreateOFDProtocolMessage [15:45:01]wFMCommunicate request_size=4 [15:45:01]MH_SAM_APDU [15:45:01]CAPDU: 80 11 00 00 [15:45:01]Write to MH i2c: E2 08 00 8A 04 80 11 00 00 00 00 00 00 08 [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:01]Read from MH i2c: E2 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 17 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: E2 17 00 8A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5A [15:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:45:01]wFMCommunicate OK [15:45:01]CreateOFDProtocolMessage done [15:45:01]OFDSenderStorePacket 82393 [15:45:01]StoreOFDPacket docnum=82393 [15:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C6 DA 07 01 D3 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C 82 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 41 01 00 35 04 06 00 64 BB D4 41 6C 00 DF 32 77 87 A4 E7 EE 27 [15:45:01]CheckFolder [15:45:01]dirname=/storage/ofd_packets [15:45:01]CheckFolder done [15:45:01]ProducePacketName [15:45:01]name=ofd_packets/00082393 [15:45:01]NVStorageSaveData ofd_packets/00082393 [15:45:01]File name is /storage/ofd_packets/00082393 [15:45:01]Write 301 bytes [15:45:01]NVStorageSaveData done [15:45:01]OFDSenderStorePacket done [15:45:01]KKMCreateOFDPacket done [15:45:01]NVStorageSaveData kkm_last_timestamp [15:45:01]File name is /storage/kkm_last_timestamp [15:45:01]Write 4 bytes [15:45:01]NVStorageSaveData done [15:45:01]ExternCall_PrintAddStr [15:45:01]wPrintStart [15:45:01]Write to MH i2c: 01 00 00 8B 04 8F [15:45:01]Write i2c OK [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: 01 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: 01 07 00 [15:45:01]MH_I2C_Read... [15:45:01]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [15:45:01]RasterBufferAndPrint [15:45:01]line Счет N : (1)918885 [15:45:01]line ИНН: 02508201610067 [15:45:01]line Контрольно-Кассовый Чек [15:45:01]line ПРОДАЖА [15:45:01]line ТРК (МРК, ГНК) : 22 [15:45:01]line Товар: 2710124130 [15:45:01]line Аи-92-К-4 [15:45:01]line 4.490 * 66.90 [15:45:01]line = 300.38 [15:45:01]line НДС 12% НСП 1% [15:45:01]line > о реализуемом товаре [15:45:01]line ИТОГО: 300.38 [15:45:01]line НСП 1% : 2.66 [15:45:01]line НДС 12% : 31.90 [15:45:01]line Наличными: 0.00 [15:45:01]line Безнал.: 300.38 [15:45:01]line Место: АЗС № 114 "Партнер Нефть" [15:45:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:45:01]line СНО: Общий режим [15:45:01]line Чек 102 18.10.2024 15:45 [15:45:01]line Смена: 526 ФФД: 1.0 [15:45:01]line ЗНМ: 0300000086 [15:45:01]line РНМ: 0000000000091680 [15:45:01]line Версия ККМ: 001 [15:45:01]line Платежная система: Mbank [15:45:01]line ФМ: 0000000000871843 [15:45:01]line ФД: 82393 [15:45:01]line ФПД: 110757882719232 [15:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154500&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82393&fm=110757882719232&tin=02508201610067®Number=0000000000091680&sum=30038 [15:45:01]OFD Sender: Processing packet 82393 [packets to send 254, broken 253] [15:45:01]ProducePacketName [15:45:01]name=ofd_packets/00082393 [15:45:01]OFD Sender: To server: pG, [15:45:01]CommunicateWithHost lk.salyk.kg:30040 [15:45:01]ConnectInit lk.salyk.kg [15:45:01]written 0, free lines is 4095 [15:45:02]Write to MH i2c: 01 00 00 B4 04 B8 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 07 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 02 0D CE [15:45:02]RasterBufferAndPrint [15:45:02]line [15:45:02]line [15:45:02]line [15:45:02]line [15:45:02]line [15:45:02]written 0, free lines is 3337 [15:45:02]MH_Cut [15:45:02]Write to MH i2c: D1 01 00 BB 04 01 91 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: D1 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: D1 01 00 [15:45:02]MH_I2C_Read... [15:45:02]Read from MH i2c: D1 01 00 BB 04 00 90 [15:45:02]Write to MH i2c: 01 00 00 BC 04 C0 [15:45:02]Write i2c OK [15:45:02]MH_I2C_Read... [15:45:02]*** Cut start [15:45:02]*** Partial cut [15:45:02]*** CUTSNS_PIN = 1 [15:45:02]*** CUTSNS_PIN = 0 [15:45:03]Connected sock=10 [15:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C6 DA 07 01 D3 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 7C 82 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 41 01 00 35 04 06 00 64 BB D4 41 6C 00 DF 32 77 87 A4 E7 EE 27 [15:45:03]*** Brake cut motor [15:45:03]Read from MH i2c: 01 [15:45:03]MH_I2C_Read... [15:45:03]*** Stop cut motor [15:45:03]*** Cut end [15:45:03]Read from MH i2c: 01 07 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 FF 0F D5 [15:45:03]process_action close_receipt done [15:45:03]requested_data is exist [15:45:03]produce_requested_data [15:45:03]requested_item fm.sn is exist - process it [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 11 00 00 [15:45:03]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 17 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8D [15:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:45:03]wFMCommunicate OK [15:45:03]requested_item fd.num is exist - process it [15:45:03]SAM_PROTO_GetFieldsCounters [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 13 00 00 [15:45:03]Write to MH i2c: E2 08 00 BE 04 80 13 00 00 00 00 00 00 3E [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 62 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 62 00 BE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:45:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 D9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:03]wFMCommunicate OK [15:45:03]SAM_PROTO_GetFieldsCounters done [15:45:03]requested_item shift.num is exist - process it [15:45:03]requested_item shift.opened is exist - process it [15:45:03]req_shift_opened [15:45:03]FM_GetShiftState [15:45:03]SAM_PROTO_GetShiftState [15:45:03]wFMCommunicate request_size=4 [15:45:03]MH_SAM_APDU [15:45:03]CAPDU: 80 13 01 00 [15:45:03]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [15:45:03]Write i2c OK [15:45:03]MH_I2C_Read... [15:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:03]Read from MH i2c: E2 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 0E 00 [15:45:03]MH_I2C_Read... [15:45:03]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 12 [15:45:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:45:03]wFMCommunicate OK [15:45:03]SAM_PROTO_GetShiftState done [15:45:03]FM_GetShiftState done [15:45:03]req_shift_opened done [15:45:03]requested_item shift.open_date is exist - process it [15:45:03]req_shift_open_date [15:45:03]req_shift_open_date done [15:45:03]produce_requested_data done [15:45:03]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82393,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:45:03]process_action_free close_receipt [15:45:03]json_value_free [15:45:03]json_value_free done [15:45:03]process_json_proto returns [15:45:03]Send response to host [15:45:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82393,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:45:03]free response buf [15:45:03]execute_script done [15:45:03]execute_script returns [15:45:03]free content buf [15:45:03]Sock 9.Close socket [15:45:03]Sock 9.Thread stoped [15:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F1 95 47 00 EC 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 D9 41 01 00 F4 03 04 00 B8 27 12 67 B6 04 01 00 00 20 F2 73 70 F6 E7 73 22 [15:45:04]CommunicateWithHost err = 0 [15:45:04]CheckOFDResponse [15:45:04]1017 (14) - 77093643461234 [15:45:04]1041 (16) - 0000000000871843 [15:45:04]1040 (4) - 82393 [15:45:04]1012 (4) - 18.10.2024 09:17 [15:45:04]1206 (1) - 0 [15:45:04]OFD Sender: Remove packet 82393 [15:45:04]ProducePacketName [15:45:04]name=ofd_packets/00082393 [15:45:04]NVStorageDeleteData [15:45:05]OFD Sender: No OFD packet to send [15:45:09]recv_with_timeout no data received [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:22]recv_with_timeout no data received [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:33]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:26]recv_with_timeout no data received [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:09]recv_with_timeout no data received [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:31]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:44]accept exits with 7 [15:51:44]New connection [15:51:44]New thread 3066969444 created [15:51:44]Thread 3066826084 joined [15:51:44]Waiting for new connection... [15:51:44] Sock 7.Parse request [15:51:44]Sock 7.Check first char [15:51:44]Sock 7.First char is OK [15:51:44]request: POST /json_proto HTTP/1.0 [15:51:44]Method: POST [15:51:44]URL: /json_proto [15:51:44]Method is POST - this is cgi request [15:51:44]url: /json_proto [15:51:44]query_string will be loaded in cgi processing [15:51:44]execute_cgi json_proto POST (null) [15:51:44]execute_cgi path=json_proto method=POST [15:51:44]POST find Content-Length [15:51:44]Host: 172.17.44.67:8080 [15:51:44]Content-Length: 682 [15:51:44]Content-Type: application/json [15:51:44] [15:51:44]POST finish read [15:51:44]Found Content-Length = 682 [15:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:44]execute_script... [15:51:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:44]POST & json_proto [15:51:44]process_json_proto [15:51:44]json parsed OK: [15:51:44]protocol is kg_v1.0 [15:51:44]action value=close_receipt [15:51:44]process_action close_receipt [15:51:44]cmd_close_receipt [15:51:44]MH_GetDate [15:51:44]Write to MH i2c: F0 00 00 C0 04 B3 [15:51:44]Write i2c OK [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: F0 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: F0 09 00 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: F0 09 00 C0 04 00 11 84 12 67 F1 C7 6B 64 51 [15:51:44]GetLastDocTimeStamp 1729266300 [15:51:44]current date 1729266705 [15:51:44]FM_GetShiftState [15:51:44]SAM_PROTO_GetShiftState [15:51:44]wFMCommunicate request_size=4 [15:51:44]MH_SAM_APDU [15:51:44]CAPDU: 80 13 01 00 [15:51:44]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [15:51:44]Write i2c OK [15:51:44]MH_I2C_Read... [15:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:44]Read from MH i2c: E2 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: E2 0E 00 [15:51:44]MH_I2C_Read... [15:51:44]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 14 [15:51:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:51:44]wFMCommunicate OK [15:51:44]SAM_PROTO_GetShiftState done [15:51:44]FM_GetShiftState done [15:51:44]opened in 1729212319 [15:51:44]opened+sec_in_day 1729298719 [15:51:44]quantity*price = 100015 [15:51:44]sum+1 = 100017 [15:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 103 18.10.2024 15:51 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82394 ФПД: 237614954178154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T155145&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82394&fm=237614954178154&tin=02508201610067®Number=0000000000091680&sum=100000 [15:51:45]StoreToDocumentArchive [15:51:45]shift 526 fd 82394 [15:51:45]save to /storage/0526/doc_00082394 [15:51:45]save last doc name /storage/0526/doc_00082394 to /storage/kkm_last_doc_name [15:51:45]save OK [15:51:45]Clear old archive folders... [15:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:45]tlvbuf is 00DB6930 [15:51:45]SAM_PROTO_ClearQueue [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 09 00 00 [15:51:45]Write to MH i2c: E2 08 00 CE 04 80 09 00 00 00 00 00 00 44 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [15:51:45]RAPDU: 90 00 [15:51:45]wFMCommunicate OK [15:51:45]SAM_PROTO_ClearQueue done [15:51:45]KKMCreateOFDPacket [15:51:45]OFDProtocolAddRootSTLVToBuf [15:51:45]FM_MakeSignedData [15:51:45]FM_MakeSignedData [15:51:45]SAM_PROTO_SignData [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 0D 01 02 [15:51:45]Write to MH i2c: E2 08 00 CF 04 80 0D 01 02 00 00 00 00 4C [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [15:51:45]RAPDU: 90 00 [15:51:45]wFMCommunicate OK [15:51:45]wFMCommunicate request_size=255 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 11 84 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 41 01 00 35 04 06 00 D8 [15:51:45]Write to MH i2c: E2 02 01 D0 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 11 84 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 41 01 00 35 04 06 00 D8 00 00 4B [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [15:51:45]RAPDU: 90 00 [15:51:45]wFMCommunicate OK [15:51:45]wFMCommunicate request_size=10 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 0D 02 02 05 1C 0A EF E6 6A [15:51:45]Write to MH i2c: E2 0D 00 D1 04 80 0D 02 02 05 00 1C 0A EF E6 6A 00 00 BE [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [15:51:45]RAPDU: 90 00 [15:51:45]wFMCommunicate OK [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 0D 03 02 [15:51:45]Write to MH i2c: E2 08 00 D2 04 80 0D 03 02 00 00 00 00 51 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 0B 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 0B 00 D2 04 00 64 D2 C8 FE 23 64 69 AD 90 00 EB [15:51:45]RAPDU: 64 D2 C8 FE 23 64 69 AD 90 00 [15:51:45]wFMCommunicate OK [15:51:45]SAM_PROTO_SignData done [15:51:45]FM_MakeSignedData done [15:51:45]CreateOFDProtocolMessage [15:51:45]wFMCommunicate request_size=4 [15:51:45]MH_SAM_APDU [15:51:45]CAPDU: 80 11 00 00 [15:51:45]Write to MH i2c: E2 08 00 D3 04 80 11 00 00 00 00 00 00 51 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:45]Read from MH i2c: E2 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 17 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: E2 17 00 D3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A3 [15:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:51:45]wFMCommunicate OK [15:51:45]CreateOFDProtocolMessage done [15:51:45]OFDSenderStorePacket 82394 [15:51:45]StoreOFDPacket docnum=82394 [15:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1B 9D 07 01 AF 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 11 84 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 41 01 00 35 04 06 00 D8 1C 0A EF E6 6A 64 D2 C8 FE 23 64 69 AD [15:51:45]CheckFolder [15:51:45]dirname=/storage/ofd_packets [15:51:45]CheckFolder done [15:51:45]ProducePacketName [15:51:45]name=ofd_packets/00082394 [15:51:45]NVStorageSaveData ofd_packets/00082394 [15:51:45]File name is /storage/ofd_packets/00082394 [15:51:45]Write 301 bytes [15:51:45]NVStorageSaveData done [15:51:45]OFDSenderStorePacket done [15:51:45]KKMCreateOFDPacket done [15:51:45]NVStorageSaveData kkm_last_timestamp [15:51:45]File name is /storage/kkm_last_timestamp [15:51:45]Write 4 bytes [15:51:45]NVStorageSaveData done [15:51:45]ExternCall_PrintAddStr [15:51:45]wPrintStart [15:51:45]Write to MH i2c: 01 00 00 D4 04 D8 [15:51:45]Write i2c OK [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: 01 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: 01 07 00 [15:51:45]MH_I2C_Read... [15:51:45]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 FF 0F ED [15:51:45]RasterBufferAndPrint [15:51:45]line Счет N : (1)918886 [15:51:45]line ИНН: 02508201610067 [15:51:45]line Контрольно-Кассовый Чек [15:51:45]line ПРОДАЖА [15:51:45]line ТРК (МРК, ГНК) : 22 [15:51:45]line Товар: 2710124130 [15:51:45]line Аи-92-К-4 [15:51:45]line 14.950 * 66.90 [15:51:45]line = 1000.16 [15:51:45]line НДС 12% НСП 1% [15:51:45]line > о реализуемом товаре [15:51:45]line ОКРУГЛЕНИЕ: -0.16 [15:51:45]line ИТОГО: 1000.00 [15:51:45]line Внесено: 1000.00 [15:51:45]line СДАЧА: 0.00 [15:51:45]line НСП 1% : 8.85 [15:51:45]line НДС 12% : 106.21 [15:51:45]line Наличными: 1000.00 [15:51:45]line Безнал.: 0.00 [15:51:45]line Место: АЗС № 114 "Партнер Нефть" [15:51:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [15:51:45]line СНО: Общий режим [15:51:45]line Чек 103 18.10.2024 15:51 [15:51:45]line Смена: 526 ФФД: 1.0 [15:51:45]line ЗНМ: 0300000086 [15:51:45]line РНМ: 0000000000091680 [15:51:45]line Версия ККМ: 001 [15:51:45]line ФМ: 0000000000871843 [15:51:45]line ФД: 82394 [15:51:45]line ФПД: 237614954178154 [15:51:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T155145&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82394&fm=237614954178154&tin=02508201610067®Number=0000000000091680&sum=100000 [15:51:46]OFD Sender: Processing packet 82394 [packets to send 254, broken 253] [15:51:46]ProducePacketName [15:51:46]name=ofd_packets/00082394 [15:51:46]OFD Sender: To server: pG, [15:51:46]CommunicateWithHost lk.salyk.kg:30040 [15:51:46]ConnectInit lk.salyk.kg [15:51:46]written 0, free lines is 4095 [15:51:46]Write to MH i2c: 01 00 00 FF 04 03 [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 07 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 D6 0C EC [15:51:46]RasterBufferAndPrint [15:51:46]line [15:51:46]line [15:51:46]line [15:51:46]line [15:51:46]line [15:51:46]written 0, free lines is 3293 [15:51:46]MH_Cut [15:51:46]Write to MH i2c: D1 01 00 06 05 01 DD [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: D1 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: D1 01 00 [15:51:46]MH_I2C_Read... [15:51:46]Read from MH i2c: D1 01 00 06 05 00 DC [15:51:46]Write to MH i2c: 01 00 00 07 05 0C [15:51:46]Write i2c OK [15:51:46]MH_I2C_Read... [15:51:46]Connected sock=10 [15:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1B 9D 07 01 AF 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 11 84 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 41 01 00 35 04 06 00 D8 1C 0A EF E6 6A 64 D2 C8 FE 23 64 69 AD [15:51:47]*** Cut start [15:51:47]*** Partial cut [15:51:47]*** CUTSNS_PIN = 1 [15:51:47]*** CUTSNS_PIN = 0 [15:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CD 99 47 00 1B 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DA 41 01 00 F4 03 04 00 4B 29 12 67 B6 04 01 00 00 BD 91 27 C7 88 44 3B 0C [15:51:47]CommunicateWithHost err = 0 [15:51:47]CheckOFDResponse [15:51:47]1017 (14) - 77093643461234 [15:51:47]1041 (16) - 0000000000871843 [15:51:47]1040 (4) - 82394 [15:51:47]1012 (4) - 18.10.2024 09:24 [15:51:47]1206 (1) - 0 [15:51:47]OFD Sender: Remove packet 82394 [15:51:47]ProducePacketName [15:51:47]name=ofd_packets/00082394 [15:51:47]NVStorageDeleteData [15:51:47]*** Brake cut motor [15:51:47]Read from MH i2c: 01 [15:51:47]MH_I2C_Read... [15:51:47]*** Stop cut motor [15:51:47]*** Cut end [15:51:47]Read from MH i2c: 01 07 00 [15:51:47]MH_I2C_Read... [15:51:47]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [15:51:47]process_action close_receipt done [15:51:47]requested_data is exist [15:51:47]produce_requested_data [15:51:47]requested_item fm.sn is exist - process it [15:51:47]wFMCommunicate request_size=4 [15:51:47]MH_SAM_APDU [15:51:47]CAPDU: 80 11 00 00 [15:51:47]Write to MH i2c: E2 08 00 08 05 80 11 00 00 00 00 00 00 87 [15:51:47]Write i2c OK [15:51:47]MH_I2C_Read... [15:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:48]Read from MH i2c: E2 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 17 00 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 17 00 08 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D9 [15:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [15:51:48]wFMCommunicate OK [15:51:48]requested_item fd.num is exist - process it [15:51:48]SAM_PROTO_GetFieldsCounters [15:51:48]wFMCommunicate request_size=4 [15:51:48]MH_SAM_APDU [15:51:48]CAPDU: 80 13 00 00 [15:51:48]Write to MH i2c: E2 08 00 09 05 80 13 00 00 00 00 00 00 8A [15:51:48]Write i2c OK [15:51:48]MH_I2C_Read... [15:51:48]OFD Sender: No OFD packet to send [15:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:48]Read from MH i2c: E2 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 62 00 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 62 00 09 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:48]wFMCommunicate OK [15:51:48]SAM_PROTO_GetFieldsCounters done [15:51:48]requested_item shift.num is exist - process it [15:51:48]requested_item shift.opened is exist - process it [15:51:48]req_shift_opened [15:51:48]FM_GetShiftState [15:51:48]SAM_PROTO_GetShiftState [15:51:48]wFMCommunicate request_size=4 [15:51:48]MH_SAM_APDU [15:51:48]CAPDU: 80 13 01 00 [15:51:48]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [15:51:48]Write i2c OK [15:51:48]MH_I2C_Read... [15:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:48]Read from MH i2c: E2 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 0E 00 [15:51:48]MH_I2C_Read... [15:51:48]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 5E [15:51:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [15:51:48]wFMCommunicate OK [15:51:48]SAM_PROTO_GetShiftState done [15:51:48]FM_GetShiftState done [15:51:48]req_shift_opened done [15:51:48]requested_item shift.open_date is exist - process it [15:51:48]req_shift_open_date [15:51:48]req_shift_open_date done [15:51:48]produce_requested_data done [15:51:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82394,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [15:51:48]process_action_free close_receipt [15:51:48]json_value_free [15:51:48]json_value_free done [15:51:48]process_json_proto returns [15:51:48]Send response to host [15:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82394,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [15:51:48]free response buf [15:51:48]execute_script done [15:51:48]execute_script returns [15:51:48]free content buf [15:51:48]Sock 7.Close socket [15:51:48]Sock 7.Thread stoped [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:03]recv_with_timeout no data received [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:14]recv_with_timeout no data received [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:36]recv_with_timeout no data received [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:28]recv_with_timeout no data received [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:25]recv_with_timeout no data received [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:46]recv_with_timeout no data received [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]recv_with_timeout no data received [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:57]accept exits with 9 [16:05:57]New connection [16:05:57]New thread 3066826084 created [16:05:57]Thread 3066969444 joined [16:05:57]Waiting for new connection... [16:05:57] Sock 9.Parse request [16:05:57]Sock 9.Check first char [16:05:57]Sock 9.First char is OK [16:05:57]request: POST /json_proto HTTP/1.0 [16:05:57]Method: POST [16:05:57]URL: /json_proto [16:05:57]Method is POST - this is cgi request [16:05:57]url: /json_proto [16:05:57]query_string will be loaded in cgi processing [16:05:57]execute_cgi json_proto POST (null) [16:05:57]execute_cgi path=json_proto method=POST [16:05:57]POST find Content-Length [16:05:57]Host: 172.17.44.67:8080 [16:05:57]Content-Length: 677 [16:05:57]Content-Type: application/json [16:05:57] [16:05:57]POST finish read [16:05:57]Found Content-Length = 677 [16:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918887", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:57]execute_script... [16:05: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)918887", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:57]POST & json_proto [16:05:57]process_json_proto [16:05:57]json parsed OK: [16:05:57]protocol is kg_v1.0 [16:05:57]action value=close_receipt [16:05:57]process_action close_receipt [16:05:57]cmd_close_receipt [16:05:57]MH_GetDate [16:05:57]Write to MH i2c: F0 00 00 0B 05 FF [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: F0 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: F0 09 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: F0 09 00 0B 05 00 66 87 12 67 F1 C7 6B 64 F5 [16:05:57]GetLastDocTimeStamp 1729266705 [16:05:57]current date 1729267558 [16:05:57]FM_GetShiftState [16:05:57]SAM_PROTO_GetShiftState [16:05:57]wFMCommunicate request_size=4 [16:05:57]MH_SAM_APDU [16:05:57]CAPDU: 80 13 01 00 [16:05:57]Write to MH i2c: E2 08 00 0C 05 80 13 01 00 00 00 00 00 8E [16:05:57]Write i2c OK [16:05:57]MH_I2C_Read... [16:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:57]Read from MH i2c: E2 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 0E 00 [16:05:57]MH_I2C_Read... [16:05:57]Read from MH i2c: E2 0E 00 0C 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 60 [16:05:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:05:57]wFMCommunicate OK [16:05:57]SAM_PROTO_GetShiftState done [16:05:57]FM_GetShiftState done [16:05:57]opened in 1729212319 [16:05:57]opened+sec_in_day 1729298719 [16:05:57]quantity*price = 40068 [16:05:57]sum+1 = 40069 [16:05:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 104 18.10.2024 16:05 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82395 ФПД: 231502131288157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T160558&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82395&fm=231502131288157&tin=02508201610067®Number=0000000000091680&sum=40000 [16:05:58]StoreToDocumentArchive [16:05:58]shift 526 fd 82395 [16:05:58]save to /storage/0526/doc_00082395 [16:05:58]save last doc name /storage/0526/doc_00082395 to /storage/kkm_last_doc_name [16:05:58]save OK [16:05:58]Clear old archive folders... [16:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:58]tlvbuf is 00DBCBC0 [16:05:58]SAM_PROTO_ClearQueue [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 09 00 00 [16:05:58]Write to MH i2c: E2 08 00 19 05 80 09 00 00 00 00 00 00 90 [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [16:05:58]RAPDU: 90 00 [16:05:58]wFMCommunicate OK [16:05:58]SAM_PROTO_ClearQueue done [16:05:58]KKMCreateOFDPacket [16:05:58]OFDProtocolAddRootSTLVToBuf [16:05:58]FM_MakeSignedData [16:05:58]FM_MakeSignedData [16:05:58]SAM_PROTO_SignData [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 0D 01 02 [16:05:58]Write to MH i2c: E2 08 00 1A 05 80 0D 01 02 00 00 00 00 98 [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [16:05:58]RAPDU: 90 00 [16:05:58]wFMCommunicate OK [16:05:58]wFMCommunicate request_size=255 [16:05:58]MH_SAM_APDU [16:05: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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 66 87 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DB 41 01 00 35 04 06 00 D2 [16:05:58]Write to MH i2c: E2 02 01 1B 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 66 87 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DB 41 01 00 35 04 06 00 D2 00 00 A1 [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [16:05:58]RAPDU: 90 00 [16:05:58]wFMCommunicate OK [16:05:58]wFMCommunicate request_size=10 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 0D 02 02 05 8C CA 4C D8 5D [16:05:58]Write to MH i2c: E2 0D 00 1C 05 80 0D 02 02 05 00 8C CA 4C D8 5D 00 00 7C [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [16:05:58]RAPDU: 90 00 [16:05:58]wFMCommunicate OK [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 0D 03 02 [16:05:58]Write to MH i2c: E2 08 00 1D 05 80 0D 03 02 00 00 00 00 9D [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 0B 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 0B 00 1D 05 00 34 18 4A 19 EA 06 14 E5 90 00 36 [16:05:58]RAPDU: 34 18 4A 19 EA 06 14 E5 90 00 [16:05:58]wFMCommunicate OK [16:05:58]SAM_PROTO_SignData done [16:05:58]FM_MakeSignedData done [16:05:58]CreateOFDProtocolMessage [16:05:58]wFMCommunicate request_size=4 [16:05:58]MH_SAM_APDU [16:05:58]CAPDU: 80 11 00 00 [16:05:58]Write to MH i2c: E2 08 00 1E 05 80 11 00 00 00 00 00 00 9D [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:58]Read from MH i2c: E2 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 17 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: E2 17 00 1E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EF [16:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:05:58]wFMCommunicate OK [16:05:58]CreateOFDProtocolMessage done [16:05:58]OFDSenderStorePacket 82395 [16:05:58]StoreOFDPacket docnum=82395 [16:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 69 B5 07 01 A8 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 66 87 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DB 41 01 00 35 04 06 00 D2 8C CA 4C D8 5D 34 18 4A 19 EA 06 14 E5 [16:05:58]CheckFolder [16:05:58]dirname=/storage/ofd_packets [16:05:58]CheckFolder done [16:05:58]ProducePacketName [16:05:58]name=ofd_packets/00082395 [16:05:58]NVStorageSaveData ofd_packets/00082395 [16:05:58]File name is /storage/ofd_packets/00082395 [16:05:58]Write 301 bytes [16:05:58]NVStorageSaveData done [16:05:58]OFDSenderStorePacket done [16:05:58]KKMCreateOFDPacket done [16:05:58]NVStorageSaveData kkm_last_timestamp [16:05:58]File name is /storage/kkm_last_timestamp [16:05:58]Write 4 bytes [16:05:58]NVStorageSaveData done [16:05:58]ExternCall_PrintAddStr [16:05:58]wPrintStart [16:05:58]Write to MH i2c: 01 00 00 1F 05 24 [16:05:58]Write i2c OK [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: 01 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: 01 07 00 [16:05:58]MH_I2C_Read... [16:05:58]Read from MH i2c: 01 07 00 1F 05 00 00 00 00 00 FF 0F 39 [16:05:58]RasterBufferAndPrint [16:05:58]line Счет N : (1)918887 [16:05:58]line ИНН: 02508201610067 [16:05:58]line Контрольно-Кассовый Чек [16:05:58]line ПРОДАЖА [16:05:58]line ТРК (МРК, ГНК) : 12 [16:05:58]line Товар: 2710124500 [16:05:58]line Аи-95-К-5 [16:05:58]line 5.400 * 74.20 [16:05:58]line = 400.68 [16:05:58]line НДС 12% НСП 1% [16:05:58]line > о реализуемом товаре [16:05:58]line ОКРУГЛЕНИЕ: -0.68 [16:05:58]line ИТОГО: 400.00 [16:05:58]line Внесено: 400.00 [16:05:58]line СДАЧА: 0.00 [16:05:58]line НСП 1% : 3.55 [16:05:58]line НДС 12% : 42.55 [16:05:58]line Наличными: 400.00 [16:05:58]line Безнал.: 0.00 [16:05:58]line Место: АЗС № 114 "Партнер Нефть" [16:05:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:05:58]line СНО: Общий режим [16:05:58]line Чек 104 18.10.2024 16:05 [16:05:58]line Смена: 526 ФФД: 1.0 [16:05:58]line ЗНМ: 0300000086 [16:05:58]line РНМ: 0000000000091680 [16:05:58]line Версия ККМ: 001 [16:05:58]line ФМ: 0000000000871843 [16:05:58]line ФД: 82395 [16:05:58]line ФПД: 231502131288157 [16:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T160558&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82395&fm=231502131288157&tin=02508201610067®Number=0000000000091680&sum=40000 [16:05:59]OFD Sender: Processing packet 82395 [packets to send 254, broken 253] [16:05:59]ProducePacketName [16:05:59]name=ofd_packets/00082395 [16:05:59]OFD Sender: To server: pG, [16:05:59]CommunicateWithHost lk.salyk.kg:30040 [16:05:59]ConnectInit lk.salyk.kg [16:05:59]written 0, free lines is 4095 [16:05:59]Write to MH i2c: 01 00 00 4A 05 4F [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: 01 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: 01 07 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 D4 0C 36 [16:05:59]RasterBufferAndPrint [16:05:59]line [16:05:59]line [16:05:59]line [16:05:59]line [16:05:59]line [16:05:59]written 0, free lines is 3288 [16:05:59]MH_Cut [16:05:59]Write to MH i2c: D1 01 00 51 05 01 28 [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: D1 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: D1 01 00 [16:05:59]MH_I2C_Read... [16:05:59]Read from MH i2c: D1 01 00 51 05 00 27 [16:05:59]Write to MH i2c: 01 00 00 52 05 57 [16:05:59]Write i2c OK [16:05:59]MH_I2C_Read... [16:06:00]*** Cut start [16:06:00]*** Partial cut [16:06:00]*** CUTSNS_PIN = 1 [16:06:00]*** CUTSNS_PIN = 0 [16:06:00]*** Brake cut motor [16:06:01]Read from MH i2c: 01 [16:06:01]MH_I2C_Read... [16:06:01]*** Stop cut motor [16:06:01]*** Cut end [16:06:01]Read from MH i2c: 01 07 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [16:06:01]process_action close_receipt done [16:06:01]requested_data is exist [16:06:01]produce_requested_data [16:06:01]requested_item fm.sn is exist - process it [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 11 00 00 [16:06:01]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 17 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 24 [16:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:06:01]wFMCommunicate OK [16:06:01]requested_item fd.num is exist - process it [16:06:01]SAM_PROTO_GetFieldsCounters [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 13 00 00 [16:06:01]Write to MH i2c: E2 08 00 54 05 80 13 00 00 00 00 00 00 D5 [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 62 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 62 00 54 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [16:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:01]wFMCommunicate OK [16:06:01]SAM_PROTO_GetFieldsCounters done [16:06:01]requested_item shift.num is exist - process it [16:06:01]requested_item shift.opened is exist - process it [16:06:01]req_shift_opened [16:06:01]FM_GetShiftState [16:06:01]SAM_PROTO_GetShiftState [16:06:01]wFMCommunicate request_size=4 [16:06:01]MH_SAM_APDU [16:06:01]CAPDU: 80 13 01 00 [16:06:01]Write to MH i2c: E2 08 00 55 05 80 13 01 00 00 00 00 00 D7 [16:06:01]Write i2c OK [16:06:01]MH_I2C_Read... [16:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:01]Read from MH i2c: E2 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 0E 00 [16:06:01]MH_I2C_Read... [16:06:01]Read from MH i2c: E2 0E 00 55 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A9 [16:06:01]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:06:01]wFMCommunicate OK [16:06:01]SAM_PROTO_GetShiftState done [16:06:01]FM_GetShiftState done [16:06:01]req_shift_opened done [16:06:01]requested_item shift.open_date is exist - process it [16:06:01]req_shift_open_date [16:06:01]req_shift_open_date done [16:06:01]produce_requested_data done [16:06:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82395,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:06:01]process_action_free close_receipt [16:06:01]json_value_free [16:06:01]json_value_free done [16:06:01]process_json_proto returns [16:06:01]Send response to host [16:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82395,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:06:01]free response buf [16:06:01]execute_script done [16:06:01]execute_script returns [16:06:01]free content buf [16:06:01]Sock 9.Close socket [16:06:01]Sock 9.Thread stoped [16:06:04]Connected sock=11 [16:06:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 69 B5 07 01 A8 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 66 87 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DB 41 01 00 35 04 06 00 D2 8C CA 4C D8 5D 34 18 4A 19 EA 06 14 E5 [16:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 64 8B 47 00 46 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DB 41 01 00 F4 03 04 00 A5 2C 12 67 B6 04 01 00 00 5E 2B 7E 2A 7B F4 49 A8 [16:06:04]CommunicateWithHost err = 0 [16:06:04]CheckOFDResponse [16:06:04]1017 (14) - 77093643461234 [16:06:04]1041 (16) - 0000000000871843 [16:06:04]1040 (4) - 82395 [16:06:04]1012 (4) - 18.10.2024 09:38 [16:06:04]1206 (1) - 0 [16:06:04]OFD Sender: Remove packet 82395 [16:06:04]ProducePacketName [16:06:04]name=ofd_packets/00082395 [16:06:04]NVStorageDeleteData [16:06:05]recv_with_timeout no data received [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:16]recv_with_timeout no data received [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:27]recv_with_timeout no data received [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:18]recv_with_timeout no data received [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:31]recv_with_timeout no data received [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:07:59]recv_with_timeout no data received [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]accept exits with 7 [16:08:40]New connection [16:08:40]New thread 3066969444 created [16:08:40]Thread 3066826084 joined [16:08:40]Waiting for new connection... [16:08:40] Sock 7.Parse request [16:08:40]Sock 7.Check first char [16:08:40]Sock 7.First char is OK [16:08:40]request: POST /json_proto HTTP/1.0 [16:08:40]Method: POST [16:08:40]URL: /json_proto [16:08:40]Method is POST - this is cgi request [16:08:40]url: /json_proto [16:08:40]query_string will be loaded in cgi processing [16:08:40]execute_cgi json_proto POST (null) [16:08:40]execute_cgi path=json_proto method=POST [16:08:40]POST find Content-Length [16:08:40]Host: 172.17.44.67:8080 [16:08:40]Content-Length: 767 [16:08:40]Content-Type: application/json [16:08:40] [16:08:40]POST finish read [16:08:40]Found Content-Length = 767 [16:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 850.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:40]execute_script... [16:08: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)918888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 850.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:40]POST & json_proto [16:08:40]process_json_proto [16:08:40]json parsed OK: [16:08:40]protocol is kg_v1.0 [16:08:40]action value=close_receipt [16:08:40]process_action close_receipt [16:08:40]cmd_close_receipt [16:08:40]MH_GetDate [16:08:40]Write to MH i2c: F0 00 00 56 05 4A [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: F0 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: F0 09 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: F0 09 00 56 05 00 09 88 12 67 F1 C7 6B 64 E4 [16:08:40]GetLastDocTimeStamp 1729267558 [16:08:40]current date 1729267721 [16:08:40]FM_GetShiftState [16:08:40]SAM_PROTO_GetShiftState [16:08:40]wFMCommunicate request_size=4 [16:08:40]MH_SAM_APDU [16:08:40]CAPDU: 80 13 01 00 [16:08:40]Write to MH i2c: E2 08 00 57 05 80 13 01 00 00 00 00 00 D9 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:40]Read from MH i2c: E2 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 0E 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: E2 0E 00 57 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AB [16:08:40]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:08:40]wFMCommunicate OK [16:08:40]SAM_PROTO_GetShiftState done [16:08:40]FM_GetShiftState done [16:08:40]opened in 1729212319 [16:08:40]opened+sec_in_day 1729298719 [16:08:40]quantity*price = 85029 [16:08:40]sum+1 = 85031 [16:08:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.30 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 0.00 Безнал.: 850.30 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 105 18.10.2024 16:08 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82396 ФПД: 257749410363343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T160841&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82396&fm=257749410363343&tin=02508201610067®Number=0000000000091680&sum=85030 [16:08:41]StoreToDocumentArchive [16:08:41]shift 526 fd 82396 [16:08:41]save to /storage/0526/doc_00082396 [16:08:41]save last doc name /storage/0526/doc_00082396 to /storage/kkm_last_doc_name [16:08:41]save OK [16:08:41]Clear old archive folders... [16:08:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:41]tlvbuf is 00D9F8E0 [16:08:41]SAM_PROTO_ClearQueue [16:08:41]wFMCommunicate request_size=4 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 09 00 00 [16:08:41]Write to MH i2c: E2 08 00 64 05 80 09 00 00 00 00 00 00 DB [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:41]Read from MH i2c: E2 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 03 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [16:08:41]RAPDU: 90 00 [16:08:41]wFMCommunicate OK [16:08:41]SAM_PROTO_ClearQueue done [16:08:41]KKMCreateOFDPacket [16:08:41]OFDProtocolAddRootSTLVToBuf [16:08:41]FM_MakeSignedData [16:08:41]FM_MakeSignedData [16:08:41]SAM_PROTO_SignData [16:08:41]wFMCommunicate request_size=4 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 0D 01 02 [16:08:41]Write to MH i2c: E2 08 00 65 05 80 0D 01 02 00 00 00 00 E3 [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:41]Read from MH i2c: E2 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 03 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [16:08:41]RAPDU: 90 00 [16:08:41]wFMCommunicate OK [16:08:41]wFMCommunicate request_size=255 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 88 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 41 01 00 35 04 06 00 EA [16:08:41]Write to MH i2c: E2 02 01 66 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 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 88 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 41 01 00 35 04 06 00 EA 00 00 3C [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 03 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [16:08:42]RAPDU: 90 00 [16:08:42]wFMCommunicate OK [16:08:42]wFMCommunicate request_size=10 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 0D 02 02 05 6B F6 0B B7 CF [16:08:42]Write to MH i2c: E2 0D 00 67 05 80 0D 02 02 05 00 6B F6 0B B7 CF 00 00 E2 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 03 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [16:08:42]RAPDU: 90 00 [16:08:42]wFMCommunicate OK [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 0D 03 02 [16:08:42]Write to MH i2c: E2 08 00 68 05 80 0D 03 02 00 00 00 00 E8 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0B 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0B 00 68 05 00 B3 04 C1 5F 7D C9 7E 1C 90 00 A0 [16:08:42]RAPDU: B3 04 C1 5F 7D C9 7E 1C 90 00 [16:08:42]wFMCommunicate OK [16:08:42]SAM_PROTO_SignData done [16:08:42]FM_MakeSignedData done [16:08:42]CreateOFDProtocolMessage [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 11 00 00 [16:08:42]Write to MH i2c: E2 08 00 69 05 80 11 00 00 00 00 00 00 E8 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 17 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 17 00 69 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3A [16:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:08:42]wFMCommunicate OK [16:08:42]CreateOFDProtocolMessage done [16:08:42]OFDSenderStorePacket 82396 [16:08:42]StoreOFDPacket docnum=82396 [16:08:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EB AE 07 01 57 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 88 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 41 01 00 35 04 06 00 EA 6B F6 0B B7 CF B3 04 C1 5F 7D C9 7E 1C [16:08:42]CheckFolder [16:08:42]dirname=/storage/ofd_packets [16:08:42]CheckFolder done [16:08:42]ProducePacketName [16:08:42]name=ofd_packets/00082396 [16:08:42]NVStorageSaveData ofd_packets/00082396 [16:08:42]File name is /storage/ofd_packets/00082396 [16:08:42]Write 301 bytes [16:08:42]NVStorageSaveData done [16:08:42]OFDSenderStorePacket done [16:08:42]KKMCreateOFDPacket done [16:08:42]NVStorageSaveData kkm_last_timestamp [16:08:42]File name is /storage/kkm_last_timestamp [16:08:42]Write 4 bytes [16:08:42]NVStorageSaveData done [16:08:42]ExternCall_PrintAddStr [16:08:42]wPrintStart [16:08:42]Write to MH i2c: 01 00 00 6A 05 6F [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: 01 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: 01 07 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [16:08:42]RasterBufferAndPrint [16:08:42]line Счет N : (1)918888 [16:08:42]line ИНН: 02508201610067 [16:08:42]line Контрольно-Кассовый Чек [16:08:42]line ПРОДАЖА [16:08:42]line ТРК (МРК, ГНК) : 22 [16:08:42]line Товар: 2710124130 [16:08:42]line Аи-92-К-4 [16:08:42]line 12.710 * 66.90 [16:08:42]line = 850.30 [16:08:42]line НДС 12% НСП 1% [16:08:42]line > о реализуемом товаре [16:08:42]line ИТОГО: 850.30 [16:08:42]line НСП 1% : 7.52 [16:08:42]line НДС 12% : 90.30 [16:08:42]line Наличными: 0.00 [16:08:42]line Безнал.: 850.30 [16:08:42]line Место: АЗС № 114 "Партнер Нефть" [16:08:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:08:42]line СНО: Общий режим [16:08:42]line Чек 105 18.10.2024 16:08 [16:08:42]line Смена: 526 ФФД: 1.0 [16:08:42]line ЗНМ: 0300000086 [16:08:42]line РНМ: 0000000000091680 [16:08:42]line Версия ККМ: 001 [16:08:42]line Платежная система: Mbank [16:08:42]line ФМ: 0000000000871843 [16:08:42]line ФД: 82396 [16:08:42]line ФПД: 257749410363343 [16:08:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T160841&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82396&fm=257749410363343&tin=02508201610067®Number=0000000000091680&sum=85030 [16:08:42]OFD Sender: Processing packet 82396 [packets to send 254, broken 253] [16:08:42]ProducePacketName [16:08:42]name=ofd_packets/00082396 [16:08:42]OFD Sender: To server: pG, [16:08:42]CommunicateWithHost lk.salyk.kg:30040 [16:08:42]ConnectInit lk.salyk.kg [16:08:42]written 0, free lines is 4095 [16:08:43]Write to MH i2c: 01 00 00 93 05 98 [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: 01 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: 01 07 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 02 0D AE [16:08:43]RasterBufferAndPrint [16:08:43]line [16:08:43]line [16:08:43]line [16:08:43]line [16:08:43]line [16:08:43]written 0, free lines is 3333 [16:08:43]MH_Cut [16:08:43]Write to MH i2c: D1 01 00 9A 05 01 71 [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: D1 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: D1 01 00 [16:08:43]MH_I2C_Read... [16:08:43]Read from MH i2c: D1 01 00 9A 05 00 70 [16:08:43]Write to MH i2c: 01 00 00 9B 05 A0 [16:08:43]Write i2c OK [16:08:43]MH_I2C_Read... [16:08:43]*** Cut start [16:08:43]*** Partial cut [16:08:43]*** CUTSNS_PIN = 1 [16:08:43]*** CUTSNS_PIN = 0 [16:08:44]*** Brake cut motor [16:08:44]Read from MH i2c: 01 [16:08:44]MH_I2C_Read... [16:08:44]*** Stop cut motor [16:08:44]*** Cut end [16:08:44]Read from MH i2c: 01 07 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FF 0F B5 [16:08:44]process_action close_receipt done [16:08:44]requested_data is exist [16:08:44]produce_requested_data [16:08:44]requested_item fm.sn is exist - process it [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 11 00 00 [16:08:44]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6D [16:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:08:44]wFMCommunicate OK [16:08:44]requested_item fd.num is exist - process it [16:08:44]SAM_PROTO_GetFieldsCounters [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 13 00 00 [16:08:44]Write to MH i2c: E2 08 00 9D 05 80 13 00 00 00 00 00 00 1E [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 62 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 62 00 9D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:08:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:44]wFMCommunicate OK [16:08:44]SAM_PROTO_GetFieldsCounters done [16:08:44]requested_item shift.num is exist - process it [16:08:44]requested_item shift.opened is exist - process it [16:08:44]req_shift_opened [16:08:44]FM_GetShiftState [16:08:44]SAM_PROTO_GetShiftState [16:08:44]wFMCommunicate request_size=4 [16:08:44]MH_SAM_APDU [16:08:44]CAPDU: 80 13 01 00 [16:08:44]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [16:08:44]Write i2c OK [16:08:44]MH_I2C_Read... [16:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:44]Read from MH i2c: E2 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 0E 00 [16:08:44]MH_I2C_Read... [16:08:44]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F2 [16:08:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:08:44]wFMCommunicate OK [16:08:44]SAM_PROTO_GetShiftState done [16:08:44]FM_GetShiftState done [16:08:44]req_shift_opened done [16:08:44]requested_item shift.open_date is exist - process it [16:08:44]req_shift_open_date [16:08:44]req_shift_open_date done [16:08:44]produce_requested_data done [16:08:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82396,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:08:44]process_action_free close_receipt [16:08:44]json_value_free [16:08:44]json_value_free done [16:08:44]process_json_proto returns [16:08:44]Send response to host [16:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82396,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:08:44]free response buf [16:08:44]execute_script done [16:08:44]execute_script returns [16:08:44]free content buf [16:08:44]Sock 7.Close socket [16:08:44]Sock 7.Thread stoped [16:08:45]Connected sock=11 [16:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EB AE 07 01 57 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 09 88 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 41 01 00 35 04 06 00 EA 6B F6 0B B7 CF B3 04 C1 5F 7D C9 7E 1C [16:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 29 96 47 00 A9 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DC 41 01 00 F4 03 04 00 46 2D 12 67 B6 04 01 00 00 1F A9 11 B9 B2 CD 52 19 [16:08:46]CommunicateWithHost err = 0 [16:08:46]CheckOFDResponse [16:08:46]1017 (14) - 77093643461234 [16:08:46]1041 (16) - 0000000000871843 [16:08:46]1040 (4) - 82396 [16:08:46]1012 (4) - 18.10.2024 09:41 [16:08:46]1206 (1) - 0 [16:08:46]OFD Sender: Remove packet 82396 [16:08:46]ProducePacketName [16:08:46]name=ofd_packets/00082396 [16:08:46]NVStorageDeleteData [16:08:47]OFD Sender: No OFD packet to send [16:08:48]recv_with_timeout no data received [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:08:59]recv_with_timeout no data received [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:09]recv_with_timeout no data received [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:04]recv_with_timeout no data received [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]recv_with_timeout no data received [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:55]recv_with_timeout no data received [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:09]recv_with_timeout no data received [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]accept exits with 9 [16:13:42]New connection [16:13:42]New thread 3066826084 created [16:13:42]Thread 3066969444 joined [16:13:42]Waiting for new connection... [16:13:42] Sock 9.Parse request [16:13:42]Sock 9.Check first char [16:13:42]Sock 9.First char is OK [16:13:42]request: POST /json_proto HTTP/1.0 [16:13:42]Method: POST [16:13:42]URL: /json_proto [16:13:42]Method is POST - this is cgi request [16:13:42]url: /json_proto [16:13:42]query_string will be loaded in cgi processing [16:13:42]execute_cgi json_proto POST (null) [16:13:42]execute_cgi path=json_proto method=POST [16:13:42]POST find Content-Length [16:13:42]Host: 172.17.44.67:8080 [16:13:42]Content-Length: 682 [16:13:42]Content-Type: application/json [16:13:42] [16:13:42]POST finish read [16:13:42]Found Content-Length = 682 [16:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:42]execute_script... [16:13:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:42]POST & json_proto [16:13:42]process_json_proto [16:13:42]json parsed OK: [16:13:42]protocol is kg_v1.0 [16:13:42]action value=close_receipt [16:13:42]process_action close_receipt [16:13:42]cmd_close_receipt [16:13:42]MH_GetDate [16:13:42]Write to MH i2c: F0 00 00 9F 05 93 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: F0 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: F0 09 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: F0 09 00 9F 05 00 37 89 12 67 F1 C7 6B 64 5C [16:13:42]GetLastDocTimeStamp 1729267721 [16:13:42]current date 1729268023 [16:13:42]FM_GetShiftState [16:13:42]SAM_PROTO_GetShiftState [16:13:42]wFMCommunicate request_size=4 [16:13:42]MH_SAM_APDU [16:13:42]CAPDU: 80 13 01 00 [16:13:42]Write to MH i2c: E2 08 00 A0 05 80 13 01 00 00 00 00 00 22 [16:13:42]Write i2c OK [16:13:42]MH_I2C_Read... [16:13:42]OFD Sender: No OFD packet to send [16:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:42]Read from MH i2c: E2 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0E 00 [16:13:42]MH_I2C_Read... [16:13:42]Read from MH i2c: E2 0E 00 A0 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F4 [16:13:42]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:13:42]wFMCommunicate OK [16:13:42]SAM_PROTO_GetShiftState done [16:13:42]FM_GetShiftState done [16:13:42]opened in 1729212319 [16:13:42]opened+sec_in_day 1729298719 [16:13:42]quantity*price = 100015 [16:13:42]sum+1 = 100017 [16:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 106 18.10.2024 16:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82397 ФПД: 254105171085037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161343&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82397&fm=254105171085037&tin=02508201610067®Number=0000000000091680&sum=100000 [16:13:43]StoreToDocumentArchive [16:13:43]shift 526 fd 82397 [16:13:43]save to /storage/0526/doc_00082397 [16:13:43]save last doc name /storage/0526/doc_00082397 to /storage/kkm_last_doc_name [16:13:43]save OK [16:13:43]Clear old archive folders... [16:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:43]tlvbuf is 00DAA1E0 [16:13:43]SAM_PROTO_ClearQueue [16:13:43]wFMCommunicate request_size=4 [16:13:43]MH_SAM_APDU [16:13:43]CAPDU: 80 09 00 00 [16:13:43]Write to MH i2c: E2 08 00 AD 05 80 09 00 00 00 00 00 00 24 [16:13:43]Write i2c OK [16:13:43]MH_I2C_Read... [16:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:43]Read from MH i2c: E2 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: E2 03 00 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [16:13:43]RAPDU: 90 00 [16:13:43]wFMCommunicate OK [16:13:43]SAM_PROTO_ClearQueue done [16:13:43]KKMCreateOFDPacket [16:13:43]OFDProtocolAddRootSTLVToBuf [16:13:43]FM_MakeSignedData [16:13:43]FM_MakeSignedData [16:13:43]SAM_PROTO_SignData [16:13:43]wFMCommunicate request_size=4 [16:13:43]MH_SAM_APDU [16:13:43]CAPDU: 80 0D 01 02 [16:13:43]Write to MH i2c: E2 08 00 AE 05 80 0D 01 02 00 00 00 00 2C [16:13:43]Write i2c OK [16:13:43]MH_I2C_Read... [16:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:43]Read from MH i2c: E2 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: E2 03 00 [16:13:43]MH_I2C_Read... [16:13:43]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [16:13:43]RAPDU: 90 00 [16:13:43]wFMCommunicate OK [16:13:43]wFMCommunicate request_size=255 [16:13:43]MH_SAM_APDU [16:13:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 37 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 41 01 00 35 04 06 00 E7 [16:13:43]Write to MH i2c: E2 02 01 AF 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 37 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 41 01 00 35 04 06 00 E7 00 00 6B [16:13:43]Write i2c OK [16:13:43]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [16:13:44]RAPDU: 90 00 [16:13:44]wFMCommunicate OK [16:13:44]wFMCommunicate request_size=10 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 0D 02 02 05 1B 78 75 46 ED [16:13:44]Write to MH i2c: E2 0D 00 B0 05 80 0D 02 02 05 00 1B 78 75 46 ED 00 00 74 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [16:13:44]RAPDU: 90 00 [16:13:44]wFMCommunicate OK [16:13:44]wFMCommunicate request_size=4 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 0D 03 02 [16:13:44]Write to MH i2c: E2 08 00 B1 05 80 0D 03 02 00 00 00 00 31 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 0B 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 0B 00 B1 05 00 DE B9 C9 0D F0 B5 BC BF 90 00 BF [16:13:44]RAPDU: DE B9 C9 0D F0 B5 BC BF 90 00 [16:13:44]wFMCommunicate OK [16:13:44]SAM_PROTO_SignData done [16:13:44]FM_MakeSignedData done [16:13:44]CreateOFDProtocolMessage [16:13:44]wFMCommunicate request_size=4 [16:13:44]MH_SAM_APDU [16:13:44]CAPDU: 80 11 00 00 [16:13:44]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:44]Read from MH i2c: E2 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 17 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 83 [16:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:13:44]wFMCommunicate OK [16:13:44]CreateOFDProtocolMessage done [16:13:44]OFDSenderStorePacket 82397 [16:13:44]StoreOFDPacket docnum=82397 [16:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 55 07 01 18 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 37 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 41 01 00 35 04 06 00 E7 1B 78 75 46 ED DE B9 C9 0D F0 B5 BC BF [16:13:44]CheckFolder [16:13:44]dirname=/storage/ofd_packets [16:13:44]CheckFolder done [16:13:44]ProducePacketName [16:13:44]name=ofd_packets/00082397 [16:13:44]NVStorageSaveData ofd_packets/00082397 [16:13:44]File name is /storage/ofd_packets/00082397 [16:13:44]Write 301 bytes [16:13:44]NVStorageSaveData done [16:13:44]OFDSenderStorePacket done [16:13:44]KKMCreateOFDPacket done [16:13:44]NVStorageSaveData kkm_last_timestamp [16:13:44]File name is /storage/kkm_last_timestamp [16:13:44]Write 4 bytes [16:13:44]NVStorageSaveData done [16:13:44]ExternCall_PrintAddStr [16:13:44]wPrintStart [16:13:44]Write to MH i2c: 01 00 00 B3 05 B8 [16:13:44]Write i2c OK [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: 01 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: 01 07 00 [16:13:44]MH_I2C_Read... [16:13:44]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 FF 0F CD [16:13:44]RasterBufferAndPrint [16:13:44]line Счет N : (1)918889 [16:13:44]line ИНН: 02508201610067 [16:13:44]line Контрольно-Кассовый Чек [16:13:44]line ПРОДАЖА [16:13:44]line ТРК (МРК, ГНК) : 11 [16:13:44]line Товар: 2710124130 [16:13:44]line Аи-92-К-4 [16:13:44]line 14.950 * 66.90 [16:13:44]line = 1000.16 [16:13:44]line НДС 12% НСП 1% [16:13:44]line > о реализуемом товаре [16:13:44]line ОКРУГЛЕНИЕ: -0.16 [16:13:44]line ИТОГО: 1000.00 [16:13:44]line Внесено: 1000.00 [16:13:44]line СДАЧА: 0.00 [16:13:44]line НСП 1% : 8.85 [16:13:44]line НДС 12% : 106.21 [16:13:44]line Наличными: 1000.00 [16:13:44]line Безнал.: 0.00 [16:13:44]line Место: АЗС № 114 "Партнер Нефть" [16:13:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:13:44]line СНО: Общий режим [16:13:44]line Чек 106 18.10.2024 16:13 [16:13:44]line Смена: 526 ФФД: 1.0 [16:13:44]line ЗНМ: 0300000086 [16:13:44]line РНМ: 0000000000091680 [16:13:44]line Версия ККМ: 001 [16:13:44]line ФМ: 0000000000871843 [16:13:44]line ФД: 82397 [16:13:44]line ФПД: 254105171085037 [16:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161343&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82397&fm=254105171085037&tin=02508201610067®Number=0000000000091680&sum=100000 [16:13:44]OFD Sender: Processing packet 82397 [packets to send 254, broken 253] [16:13:44]ProducePacketName [16:13:44]name=ofd_packets/00082397 [16:13:44]OFD Sender: To server: pG, [16:13:44]CommunicateWithHost lk.salyk.kg:30040 [16:13:44]ConnectInit lk.salyk.kg [16:13:44]written 0, free lines is 4095 [16:13:45]Write to MH i2c: 01 00 00 DE 05 E3 [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: 01 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: 01 07 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 D6 0C CC [16:13:45]RasterBufferAndPrint [16:13:45]line [16:13:45]line [16:13:45]line [16:13:45]line [16:13:45]line [16:13:45]written 0, free lines is 3294 [16:13:45]MH_Cut [16:13:45]Write to MH i2c: D1 01 00 E5 05 01 BC [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: D1 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: D1 01 00 [16:13:45]MH_I2C_Read... [16:13:45]Read from MH i2c: D1 01 00 E5 05 00 BB [16:13:45]Write to MH i2c: 01 00 00 E6 05 EB [16:13:45]Write i2c OK [16:13:45]MH_I2C_Read... [16:13:45]Connected sock=7 [16:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 98 55 07 01 18 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 37 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 41 01 00 35 04 06 00 E7 1B 78 75 46 ED DE B9 C9 0D F0 B5 BC BF [16:13:45]*** Cut start [16:13:45]*** Partial cut [16:13:45]*** CUTSNS_PIN = 1 [16:13:45]*** CUTSNS_PIN = 0 [16:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4A 36 47 00 FB 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DD 41 01 00 F4 03 04 00 72 2E 12 67 B6 04 01 00 00 EC FB 38 E9 8A A8 5C 9B [16:13:45]CommunicateWithHost err = 0 [16:13:45]CheckOFDResponse [16:13:45]1017 (14) - 77093643461234 [16:13:45]1041 (16) - 0000000000871843 [16:13:45]1040 (4) - 82397 [16:13:45]1012 (4) - 18.10.2024 09:46 [16:13:45]1206 (1) - 0 [16:13:45]OFD Sender: Remove packet 82397 [16:13:45]ProducePacketName [16:13:45]name=ofd_packets/00082397 [16:13:45]NVStorageDeleteData [16:13:46]*** Brake cut motor [16:13:46]OFD Sender: No OFD packet to send [16:13:46]Read from MH i2c: 01 [16:13:46]MH_I2C_Read... [16:13:46]*** Stop cut motor [16:13:46]*** Cut end [16:13:46]Read from MH i2c: 01 07 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 FF 0F 00 [16:13:46]process_action close_receipt done [16:13:46]requested_data is exist [16:13:46]produce_requested_data [16:13:46]requested_item fm.sn is exist - process it [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 11 00 00 [16:13:46]Write to MH i2c: E2 08 00 E7 05 80 11 00 00 00 00 00 00 66 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 17 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 17 00 E7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B8 [16:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:13:46]wFMCommunicate OK [16:13:46]requested_item fd.num is exist - process it [16:13:46]SAM_PROTO_GetFieldsCounters [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 13 00 00 [16:13:46]Write to MH i2c: E2 08 00 E8 05 80 13 00 00 00 00 00 00 69 [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 62 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 62 00 E8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DD 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DD 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:46]wFMCommunicate OK [16:13:46]SAM_PROTO_GetFieldsCounters done [16:13:46]requested_item shift.num is exist - process it [16:13:46]requested_item shift.opened is exist - process it [16:13:46]req_shift_opened [16:13:46]FM_GetShiftState [16:13:46]SAM_PROTO_GetShiftState [16:13:46]wFMCommunicate request_size=4 [16:13:46]MH_SAM_APDU [16:13:46]CAPDU: 80 13 01 00 [16:13:46]Write to MH i2c: E2 08 00 E9 05 80 13 01 00 00 00 00 00 6B [16:13:46]Write i2c OK [16:13:46]MH_I2C_Read... [16:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:46]Read from MH i2c: E2 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 0E 00 [16:13:46]MH_I2C_Read... [16:13:46]Read from MH i2c: E2 0E 00 E9 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3D [16:13:46]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:13:46]wFMCommunicate OK [16:13:46]SAM_PROTO_GetShiftState done [16:13:46]FM_GetShiftState done [16:13:46]req_shift_opened done [16:13:46]requested_item shift.open_date is exist - process it [16:13:46]req_shift_open_date [16:13:46]req_shift_open_date done [16:13:46]produce_requested_data done [16:13:46]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82397,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:13:46]process_action_free close_receipt [16:13:46]json_value_free [16:13:46]json_value_free done [16:13:46]process_json_proto returns [16:13:46]Send response to host [16:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82397,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:13:46]free response buf [16:13:46]execute_script done [16:13:46]execute_script returns [16:13:46]free content buf [16:13:46]Sock 9.Close socket [16:13:46]Sock 9.Thread stoped [16:13:51]OFD Sender: No OFD packet to send [16:13:54]recv_with_timeout no data received [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:05]recv_with_timeout no data received [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]recv_with_timeout no data received [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:09]accept exits with 10 [16:16:09]New connection [16:16:09]New thread 3066969444 created [16:16:09]Thread 3066826084 joined [16:16:09]Waiting for new connection... [16:16:09] Sock 10.Parse request [16:16:09]Sock 10.Check first char [16:16:09]Sock 10.First char is OK [16:16:09]request: POST /json_proto HTTP/1.0 [16:16:09]Method: POST [16:16:09]URL: /json_proto [16:16:09]Method is POST - this is cgi request [16:16:09]url: /json_proto [16:16:09]query_string will be loaded in cgi processing [16:16:09]execute_cgi json_proto POST (null) [16:16:09]execute_cgi path=json_proto method=POST [16:16:09]POST find Content-Length [16:16:09]Host: 172.17.44.67:8080 [16:16:09]Content-Length: 677 [16:16:09]Content-Type: application/json [16:16:09] [16:16:09]POST finish read [16:16:09]Found Content-Length = 677 [16:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:09]execute_script... [16:16: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)918890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:09]POST & json_proto [16:16:09]process_json_proto [16:16:09]json parsed OK: [16:16:09]protocol is kg_v1.0 [16:16:09]action value=close_receipt [16:16:09]process_action close_receipt [16:16:09]cmd_close_receipt [16:16:09]MH_GetDate [16:16:09]Write to MH i2c: F0 00 00 EA 05 DE [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: F0 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: F0 09 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: F0 09 00 EA 05 00 CA 89 12 67 F1 C7 6B 64 3A [16:16:09]GetLastDocTimeStamp 1729268023 [16:16:09]current date 1729268170 [16:16:09]FM_GetShiftState [16:16:09]SAM_PROTO_GetShiftState [16:16:09]wFMCommunicate request_size=4 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 13 01 00 [16:16:09]Write to MH i2c: E2 08 00 EB 05 80 13 01 00 00 00 00 00 6D [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:09]Read from MH i2c: E2 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 0E 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: E2 0E 00 EB 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3F [16:16:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:16:09]wFMCommunicate OK [16:16:09]SAM_PROTO_GetShiftState done [16:16:09]FM_GetShiftState done [16:16:09]opened in 1729212319 [16:16:09]opened+sec_in_day 1729298719 [16:16:09]quantity*price = 50041 [16:16:09]sum+1 = 50042 [16:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 107 18.10.2024 16:16 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82398 ФПД: 66206229856084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161610&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82398&fm=66206229856084&tin=02508201610067®Number=0000000000091680&sum=50000 [16:16:10]StoreToDocumentArchive [16:16:10]shift 526 fd 82398 [16:16:10]save to /storage/0526/doc_00082398 [16:16:10]save last doc name /storage/0526/doc_00082398 to /storage/kkm_last_doc_name [16:16:10]save OK [16:16:10]Clear old archive folders... [16:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:10]tlvbuf is 00DBB880 [16:16:10]SAM_PROTO_ClearQueue [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 09 00 00 [16:16:10]Write to MH i2c: E2 08 00 F8 05 80 09 00 00 00 00 00 00 6F [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [16:16:10]RAPDU: 90 00 [16:16:10]wFMCommunicate OK [16:16:10]SAM_PROTO_ClearQueue done [16:16:10]KKMCreateOFDPacket [16:16:10]OFDProtocolAddRootSTLVToBuf [16:16:10]FM_MakeSignedData [16:16:10]FM_MakeSignedData [16:16:10]SAM_PROTO_SignData [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 0D 01 02 [16:16:10]Write to MH i2c: E2 08 00 F9 05 80 0D 01 02 00 00 00 00 77 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [16:16:10]RAPDU: 90 00 [16:16:10]wFMCommunicate OK [16:16:10]wFMCommunicate request_size=255 [16:16:10]MH_SAM_APDU [16:16: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 41 01 00 35 04 06 00 3C [16:16:10]Write to MH i2c: E2 02 01 FA 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 41 01 00 35 04 06 00 3C 00 00 A6 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:11]Read from MH i2c: E2 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 03 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [16:16:11]RAPDU: 90 00 [16:16:11]wFMCommunicate OK [16:16:11]wFMCommunicate request_size=10 [16:16:11]MH_SAM_APDU [16:16:11]CAPDU: 80 0D 02 02 05 36 D6 CF FF 54 [16:16:11]Write to MH i2c: E2 0D 00 FB 05 80 0D 02 02 05 00 36 D6 CF FF 54 00 00 B2 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:11]Read from MH i2c: E2 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 03 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [16:16:11]RAPDU: 90 00 [16:16:11]wFMCommunicate OK [16:16:11]wFMCommunicate request_size=4 [16:16:11]MH_SAM_APDU [16:16:11]CAPDU: 80 0D 03 02 [16:16:11]Write to MH i2c: E2 08 00 FC 05 80 0D 03 02 00 00 00 00 7C [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:11]Read from MH i2c: E2 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 0B 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 0B 00 FC 05 00 C9 88 90 E5 05 F5 3B 1F 90 00 97 [16:16:11]RAPDU: C9 88 90 E5 05 F5 3B 1F 90 00 [16:16:11]wFMCommunicate OK [16:16:11]SAM_PROTO_SignData done [16:16:11]FM_MakeSignedData done [16:16:11]CreateOFDProtocolMessage [16:16:11]wFMCommunicate request_size=4 [16:16:11]MH_SAM_APDU [16:16:11]CAPDU: 80 11 00 00 [16:16:11]Write to MH i2c: E2 08 00 FD 05 80 11 00 00 00 00 00 00 7C [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:11]Read from MH i2c: E2 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 17 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: E2 17 00 FD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CE [16:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:16:11]wFMCommunicate OK [16:16:11]CreateOFDProtocolMessage done [16:16:11]OFDSenderStorePacket 82398 [16:16:11]StoreOFDPacket docnum=82398 [16:16:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 24 5B 07 01 65 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 41 01 00 35 04 06 00 3C 36 D6 CF FF 54 C9 88 90 E5 05 F5 3B 1F [16:16:11]CheckFolder [16:16:11]dirname=/storage/ofd_packets [16:16:11]CheckFolder done [16:16:11]ProducePacketName [16:16:11]name=ofd_packets/00082398 [16:16:11]NVStorageSaveData ofd_packets/00082398 [16:16:11]File name is /storage/ofd_packets/00082398 [16:16:11]Write 301 bytes [16:16:11]NVStorageSaveData done [16:16:11]OFDSenderStorePacket done [16:16:11]KKMCreateOFDPacket done [16:16:11]NVStorageSaveData kkm_last_timestamp [16:16:11]File name is /storage/kkm_last_timestamp [16:16:11]Write 4 bytes [16:16:11]NVStorageSaveData done [16:16:11]ExternCall_PrintAddStr [16:16:11]wPrintStart [16:16:11]Write to MH i2c: 01 00 00 FE 05 03 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 07 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 07 00 FE 05 00 00 00 00 00 FF 0F 18 [16:16:11]RasterBufferAndPrint [16:16:11]line Счет N : (1)918890 [16:16:11]line ИНН: 02508201610067 [16:16:11]line Контрольно-Кассовый Чек [16:16:11]line ПРОДАЖА [16:16:11]line ТРК (МРК, ГНК) : 11 [16:16:11]line Товар: 2710124130 [16:16:11]line Аи-92-К-4 [16:16:11]line 7.480 * 66.90 [16:16:11]line = 500.41 [16:16:11]line НДС 12% НСП 1% [16:16:11]line > о реализуемом товаре [16:16:11]line ОКРУГЛЕНИЕ: -0.41 [16:16:11]line ИТОГО: 500.00 [16:16:11]line Внесено: 500.00 [16:16:11]line СДАЧА: 0.00 [16:16:11]line НСП 1% : 4.43 [16:16:11]line НДС 12% : 53.14 [16:16:11]line Наличными: 500.00 [16:16:11]line Безнал.: 0.00 [16:16:11]line Место: АЗС № 114 "Партнер Нефть" [16:16:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:16:11]line СНО: Общий режим [16:16:11]line Чек 107 18.10.2024 16:16 [16:16:11]line Смена: 526 ФФД: 1.0 [16:16:11]line ЗНМ: 0300000086 [16:16:11]line РНМ: 0000000000091680 [16:16:11]line Версия ККМ: 001 [16:16:11]line ФМ: 0000000000871843 [16:16:11]line ФД: 82398 [16:16:11]line ФПД: 66206229856084 [16:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161610&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82398&fm=66206229856084&tin=02508201610067®Number=0000000000091680&sum=50000 [16:16:11]written 0, free lines is 4095 [16:16:11]OFD Sender: Processing packet 82398 [packets to send 254, broken 253] [16:16:11]ProducePacketName [16:16:11]name=ofd_packets/00082398 [16:16:11]OFD Sender: To server: pG, [16:16:11]CommunicateWithHost lk.salyk.kg:30040 [16:16:11]ConnectInit lk.salyk.kg [16:16:11]Write to MH i2c: 01 00 00 29 06 2F [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 07 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 D5 0C 17 [16:16:11]RasterBufferAndPrint [16:16:11]line [16:16:11]line [16:16:11]line [16:16:11]line [16:16:11]line [16:16:11]written 0, free lines is 3292 [16:16:11]MH_Cut [16:16:11]Write to MH i2c: D1 01 00 30 06 01 08 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: D1 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: D1 01 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: D1 01 00 30 06 00 07 [16:16:11]Write to MH i2c: 01 00 00 31 06 37 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:12]*** Cut start [16:16:12]*** Partial cut [16:16:12]*** CUTSNS_PIN = 1 [16:16:12]*** CUTSNS_PIN = 0 [16:16:12]*** Brake cut motor [16:16:13]Read from MH i2c: 01 [16:16:13]MH_I2C_Read... [16:16:13]*** Stop cut motor [16:16:13]*** Cut end [16:16:13]Read from MH i2c: 01 07 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: 01 07 00 31 06 00 00 00 00 00 FF 0F 4C [16:16:13]process_action close_receipt done [16:16:13]requested_data is exist [16:16:13]produce_requested_data [16:16:13]requested_item fm.sn is exist - process it [16:16:13]wFMCommunicate request_size=4 [16:16:13]MH_SAM_APDU [16:16:13]CAPDU: 80 11 00 00 [16:16:13]Write to MH i2c: E2 08 00 32 06 80 11 00 00 00 00 00 00 B2 [16:16:13]Write i2c OK [16:16:13]MH_I2C_Read... [16:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:13]Read from MH i2c: E2 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 17 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 17 00 32 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 04 [16:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:16:13]wFMCommunicate OK [16:16:13]requested_item fd.num is exist - process it [16:16:13]SAM_PROTO_GetFieldsCounters [16:16:13]wFMCommunicate request_size=4 [16:16:13]MH_SAM_APDU [16:16:13]CAPDU: 80 13 00 00 [16:16:13]Write to MH i2c: E2 08 00 33 06 80 13 00 00 00 00 00 00 B5 [16:16:13]Write i2c OK [16:16:13]MH_I2C_Read... [16:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:13]Read from MH i2c: E2 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 62 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 62 00 33 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:13]wFMCommunicate OK [16:16:13]SAM_PROTO_GetFieldsCounters done [16:16:13]requested_item shift.num is exist - process it [16:16:13]requested_item shift.opened is exist - process it [16:16:13]req_shift_opened [16:16:13]FM_GetShiftState [16:16:13]SAM_PROTO_GetShiftState [16:16:13]wFMCommunicate request_size=4 [16:16:13]MH_SAM_APDU [16:16:13]CAPDU: 80 13 01 00 [16:16:13]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [16:16:13]Write i2c OK [16:16:13]MH_I2C_Read... [16:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:13]Read from MH i2c: E2 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 0E 00 [16:16:13]MH_I2C_Read... [16:16:13]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 89 [16:16:13]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:16:13]wFMCommunicate OK [16:16:13]SAM_PROTO_GetShiftState done [16:16:13]FM_GetShiftState done [16:16:13]req_shift_opened done [16:16:13]requested_item shift.open_date is exist - process it [16:16:13]req_shift_open_date [16:16:13]req_shift_open_date done [16:16:13]produce_requested_data done [16:16:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82398,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:16:13]process_action_free close_receipt [16:16:13]json_value_free [16:16:13]json_value_free done [16:16:13]process_json_proto returns [16:16:13]Send response to host [16:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82398,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:16:13]free response buf [16:16:13]execute_script done [16:16:13]execute_script returns [16:16:13]free content buf [16:16:13]Sock 10.Close socket [16:16:13]Sock 10.Thread stoped [16:16:13]Connected sock=11 [16:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 24 5B 07 01 65 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 CA 89 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 41 01 00 35 04 06 00 3C 36 D6 CF FF 54 C9 88 90 E5 05 F5 3B 1F [16:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 96 CB 47 00 34 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DE 41 01 00 F4 03 04 00 06 2F 12 67 B6 04 01 00 00 39 74 FD 6C 95 DC 2C A5 [16:16:14]CommunicateWithHost err = 0 [16:16:14]CheckOFDResponse [16:16:14]1017 (14) - 77093643461234 [16:16:14]1041 (16) - 0000000000871843 [16:16:14]1040 (4) - 82398 [16:16:14]1012 (4) - 18.10.2024 09:48 [16:16:14]1206 (1) - 0 [16:16:14]OFD Sender: Remove packet 82398 [16:16:14]ProducePacketName [16:16:14]name=ofd_packets/00082398 [16:16:14]NVStorageDeleteData [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:23]recv_with_timeout no data received [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]recv_with_timeout no data received [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]recv_with_timeout no data received [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:15]accept exits with 9 [16:19:15]New connection [16:19:15]New thread 3066826084 created [16:19:15]Thread 3066969444 joined [16:19:15]Waiting for new connection... [16:19:15] Sock 9.Parse request [16:19:15]Sock 9.Check first char [16:19:15]Sock 9.First char is OK [16:19:15]request: POST /json_proto HTTP/1.0 [16:19:15]Method: POST [16:19:15]URL: /json_proto [16:19:15]Method is POST - this is cgi request [16:19:15]url: /json_proto [16:19:15]query_string will be loaded in cgi processing [16:19:15]execute_cgi json_proto POST (null) [16:19:15]execute_cgi path=json_proto method=POST [16:19:15]POST find Content-Length [16:19:15]Host: 172.17.44.67:8080 [16:19:15]Content-Length: 766 [16:19:15]Content-Type: application/json [16:19:15] [16:19:15]POST finish read [16:19:15]Found Content-Length = 766 [16:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:15]execute_script... [16:19: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)918891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:15]POST & json_proto [16:19:15]process_json_proto [16:19:15]json parsed OK: [16:19:15]protocol is kg_v1.0 [16:19:15]action value=close_receipt [16:19:15]process_action close_receipt [16:19:15]cmd_close_receipt [16:19:15]MH_GetDate [16:19:15]Write to MH i2c: F0 00 00 35 06 2A [16:19:15]Write i2c OK [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: F0 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: F0 09 00 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: F0 09 00 35 06 00 85 8A 12 67 F1 C7 6B 64 42 [16:19:15]GetLastDocTimeStamp 1729268170 [16:19:15]current date 1729268357 [16:19:15]FM_GetShiftState [16:19:15]SAM_PROTO_GetShiftState [16:19:15]wFMCommunicate request_size=4 [16:19:15]MH_SAM_APDU [16:19:15]CAPDU: 80 13 01 00 [16:19:15]Write to MH i2c: E2 08 00 36 06 80 13 01 00 00 00 00 00 B9 [16:19:15]Write i2c OK [16:19:15]MH_I2C_Read... [16:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:15]Read from MH i2c: E2 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 0E 00 [16:19:15]MH_I2C_Read... [16:19:15]Read from MH i2c: E2 0E 00 36 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8B [16:19:15]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:19:15]wFMCommunicate OK [16:19:15]SAM_PROTO_GetShiftState done [16:19:15]FM_GetShiftState done [16:19:15]opened in 1729212319 [16:19:15]opened+sec_in_day 1729298719 [16:19:15]quantity*price = 40006 [16:19:15]sum+1 = 40007 [16:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 108 18.10.2024 16:19 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82399 ФПД: 219676891470923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161917&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82399&fm=219676891470923&tin=02508201610067®Number=0000000000091680&sum=40006 [16:19:17]StoreToDocumentArchive [16:19:17]shift 526 fd 82399 [16:19:17]save to /storage/0526/doc_00082399 [16:19:17]save last doc name /storage/0526/doc_00082399 to /storage/kkm_last_doc_name [16:19:17]save OK [16:19:17]Clear old archive folders... [16:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:17]tlvbuf is 00DFEDC0 [16:19:17]SAM_PROTO_ClearQueue [16:19:17]wFMCommunicate request_size=4 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 09 00 00 [16:19:17]Write to MH i2c: E2 08 00 43 06 80 09 00 00 00 00 00 00 BB [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [16:19:17]RAPDU: 90 00 [16:19:17]wFMCommunicate OK [16:19:17]SAM_PROTO_ClearQueue done [16:19:17]KKMCreateOFDPacket [16:19:17]OFDProtocolAddRootSTLVToBuf [16:19:17]FM_MakeSignedData [16:19:17]FM_MakeSignedData [16:19:17]SAM_PROTO_SignData [16:19:17]wFMCommunicate request_size=4 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 0D 01 02 [16:19:17]Write to MH i2c: E2 08 00 44 06 80 0D 01 02 00 00 00 00 C3 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [16:19:17]RAPDU: 90 00 [16:19:17]wFMCommunicate OK [16:19:17]wFMCommunicate request_size=255 [16:19:17]MH_SAM_APDU [16:19: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 8A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 41 01 00 35 04 06 00 C7 [16:19:17]Write to MH i2c: E2 02 01 45 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 8A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 41 01 00 35 04 06 00 C7 00 00 16 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [16:19:17]RAPDU: 90 00 [16:19:17]wFMCommunicate OK [16:19:17]wFMCommunicate request_size=10 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 0D 02 02 05 CB 83 14 DC 4B [16:19:17]Write to MH i2c: E2 0D 00 46 06 80 0D 02 02 05 00 CB 83 14 DC 4B 00 00 59 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [16:19:17]RAPDU: 90 00 [16:19:17]wFMCommunicate OK [16:19:17]wFMCommunicate request_size=4 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 0D 03 02 [16:19:17]Write to MH i2c: E2 08 00 47 06 80 0D 03 02 00 00 00 00 C8 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 0B 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 0B 00 47 06 00 97 63 FC 30 FF 2A D5 05 90 00 F2 [16:19:17]RAPDU: 97 63 FC 30 FF 2A D5 05 90 00 [16:19:17]wFMCommunicate OK [16:19:17]SAM_PROTO_SignData done [16:19:17]FM_MakeSignedData done [16:19:17]CreateOFDProtocolMessage [16:19:17]wFMCommunicate request_size=4 [16:19:17]MH_SAM_APDU [16:19:17]CAPDU: 80 11 00 00 [16:19:17]Write to MH i2c: E2 08 00 48 06 80 11 00 00 00 00 00 00 C8 [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:17]Read from MH i2c: E2 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 17 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: E2 17 00 48 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1A [16:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:19:17]wFMCommunicate OK [16:19:17]CreateOFDProtocolMessage done [16:19:17]OFDSenderStorePacket 82399 [16:19:17]StoreOFDPacket docnum=82399 [16:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C9 D5 07 01 1B D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 8A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 41 01 00 35 04 06 00 C7 CB 83 14 DC 4B 97 63 FC 30 FF 2A D5 05 [16:19:17]CheckFolder [16:19:17]dirname=/storage/ofd_packets [16:19:17]CheckFolder done [16:19:17]ProducePacketName [16:19:17]name=ofd_packets/00082399 [16:19:17]NVStorageSaveData ofd_packets/00082399 [16:19:17]File name is /storage/ofd_packets/00082399 [16:19:17]Write 301 bytes [16:19:17]NVStorageSaveData done [16:19:17]OFDSenderStorePacket done [16:19:17]KKMCreateOFDPacket done [16:19:17]NVStorageSaveData kkm_last_timestamp [16:19:17]File name is /storage/kkm_last_timestamp [16:19:17]Write 4 bytes [16:19:17]NVStorageSaveData done [16:19:17]ExternCall_PrintAddStr [16:19:17]wPrintStart [16:19:17]Write to MH i2c: 01 00 00 49 06 4F [16:19:17]Write i2c OK [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: 01 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: 01 07 00 [16:19:17]MH_I2C_Read... [16:19:17]Read from MH i2c: 01 07 00 49 06 00 00 00 00 00 FF 0F 64 [16:19:17]RasterBufferAndPrint [16:19:17]line Счет N : (1)918891 [16:19:17]line ИНН: 02508201610067 [16:19:17]line Контрольно-Кассовый Чек [16:19:17]line ПРОДАЖА [16:19:17]line ТРК (МРК, ГНК) : 22 [16:19:17]line Товар: 2710124130 [16:19:17]line Аи-92-К-4 [16:19:17]line 5.980 * 66.90 [16:19:17]line = 400.06 [16:19:17]line НДС 12% НСП 1% [16:19:17]line > о реализуемом товаре [16:19:17]line ИТОГО: 400.06 [16:19:17]line НСП 1% : 3.54 [16:19:17]line НДС 12% : 42.48 [16:19:17]line Наличными: 0.00 [16:19:17]line Безнал.: 400.06 [16:19:17]line Место: АЗС № 114 "Партнер Нефть" [16:19:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:19:17]line СНО: Общий режим [16:19:17]line Чек 108 18.10.2024 16:19 [16:19:17]line Смена: 526 ФФД: 1.0 [16:19:17]line ЗНМ: 0300000086 [16:19:17]line РНМ: 0000000000091680 [16:19:17]line Версия ККМ: 001 [16:19:17]line Платежная система: Mbank [16:19:17]line ФМ: 0000000000871843 [16:19:17]line ФД: 82399 [16:19:17]line ФПД: 219676891470923 [16:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161917&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82399&fm=219676891470923&tin=02508201610067®Number=0000000000091680&sum=40006 [16:19:17]written 0, free lines is 4095 [16:19:17]OFD Sender: Processing packet 82399 [packets to send 254, broken 253] [16:19:17]ProducePacketName [16:19:17]name=ofd_packets/00082399 [16:19:17]OFD Sender: To server: pG, [16:19:17]CommunicateWithHost lk.salyk.kg:30040 [16:19:17]ConnectInit lk.salyk.kg [16:19:18]Write to MH i2c: 01 00 00 72 06 78 [16:19:18]Write i2c OK [16:19:18]MH_I2C_Read... [16:19:18]Read from MH i2c: 01 [16:19:18]MH_I2C_Read... [16:19:18]Read from MH i2c: 01 07 00 [16:19:18]MH_I2C_Read... [16:19:18]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 03 0D 8F [16:19:18]RasterBufferAndPrint [16:19:18]line [16:19:18]line [16:19:18]line [16:19:18]line [16:19:18]line [16:19:18]Connected sock=7 [16:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C9 D5 07 01 1B D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 85 8A 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 41 01 00 35 04 06 00 C7 CB 83 14 DC 4B 97 63 FC 30 FF 2A D5 05 [16:19:18]written 0, free lines is 3359 [16:19:18]MH_Cut [16:19:18]Write to MH i2c: D1 01 00 79 06 01 51 [16:19:18]Write i2c OK [16:19:18]MH_I2C_Read... [16:19:18]Read from MH i2c: D1 [16:19:18]MH_I2C_Read... [16:19:18]Read from MH i2c: D1 01 00 [16:19:18]MH_I2C_Read... [16:19:18]Read from MH i2c: D1 01 00 79 06 00 50 [16:19:18]Write to MH i2c: 01 00 00 7A 06 80 [16:19:18]Write i2c OK [16:19:18]MH_I2C_Read... [16:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AD C3 47 00 A7 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 DF 41 01 00 F4 03 04 00 BF 2F 12 67 B6 04 01 00 00 80 BE C9 65 3C 86 58 D1 [16:19:18]CommunicateWithHost err = 0 [16:19:18]CheckOFDResponse [16:19:18]1017 (14) - 77093643461234 [16:19:18]1041 (16) - 0000000000871843 [16:19:18]1040 (4) - 82399 [16:19:18]1012 (4) - 18.10.2024 09:51 [16:19:18]1206 (1) - 0 [16:19:18]OFD Sender: Remove packet 82399 [16:19:18]ProducePacketName [16:19:18]name=ofd_packets/00082399 [16:19:18]NVStorageDeleteData [16:19:18]*** Cut start [16:19:18]*** Partial cut [16:19:18]*** CUTSNS_PIN = 1 [16:19:18]*** CUTSNS_PIN = 0 [16:19:19]OFD Sender: No OFD packet to send [16:19:19]*** Brake cut motor [16:19:19]Read from MH i2c: 01 [16:19:19]MH_I2C_Read... [16:19:19]*** Stop cut motor [16:19:19]*** Cut end [16:19:19]Read from MH i2c: 01 07 00 [16:19:19]MH_I2C_Read... [16:19:19]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [16:19:19]process_action close_receipt done [16:19:19]requested_data is exist [16:19:19]produce_requested_data [16:19:19]requested_item fm.sn is exist - process it [16:19:19]wFMCommunicate request_size=4 [16:19:19]MH_SAM_APDU [16:19:19]CAPDU: 80 11 00 00 [16:19:19]Write to MH i2c: E2 08 00 7B 06 80 11 00 00 00 00 00 00 FB [16:19:19]Write i2c OK [16:19:19]MH_I2C_Read... [16:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:19]Read from MH i2c: E2 [16:19:19]MH_I2C_Read... [16:19:19]Read from MH i2c: E2 17 00 [16:19:19]MH_I2C_Read... [16:19:19]Read from MH i2c: E2 17 00 7B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4D [16:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:19:19]wFMCommunicate OK [16:19:19]requested_item fd.num is exist - process it [16:19:19]SAM_PROTO_GetFieldsCounters [16:19:19]wFMCommunicate request_size=4 [16:19:19]MH_SAM_APDU [16:19:19]CAPDU: 80 13 00 00 [16:19:19]Write to MH i2c: E2 08 00 7C 06 80 13 00 00 00 00 00 00 FE [16:19:19]Write i2c OK [16:19:19]MH_I2C_Read... [16:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:19]Read from MH i2c: E2 [16:19:19]MH_I2C_Read... [16:19:19]Read from MH i2c: E2 62 00 [16:19:19]MH_I2C_Read... [16:19:19]Read from MH i2c: E2 62 00 7C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [16:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 DF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:19]wFMCommunicate OK [16:19:19]SAM_PROTO_GetFieldsCounters done [16:19:19]requested_item shift.num is exist - process it [16:19:19]requested_item shift.opened is exist - process it [16:19:19]req_shift_opened [16:19:19]FM_GetShiftState [16:19:19]SAM_PROTO_GetShiftState [16:19:19]wFMCommunicate request_size=4 [16:19:19]MH_SAM_APDU [16:19:19]CAPDU: 80 13 01 00 [16:19:19]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [16:19:19]Write i2c OK [16:19:19]MH_I2C_Read... [16:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:19]Read from MH i2c: E2 [16:19:19]MH_I2C_Read... [16:19:19]Read from MH i2c: E2 0E 00 [16:19:19]MH_I2C_Read... [16:19:19]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D2 [16:19:19]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:19:19]wFMCommunicate OK [16:19:19]SAM_PROTO_GetShiftState done [16:19:19]FM_GetShiftState done [16:19:19]req_shift_opened done [16:19:19]requested_item shift.open_date is exist - process it [16:19:19]req_shift_open_date [16:19:19]req_shift_open_date done [16:19:19]produce_requested_data done [16:19:19]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82399,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:19:19]process_action_free close_receipt [16:19:19]json_value_free [16:19:19]json_value_free done [16:19:19]process_json_proto returns [16:19:19]Send response to host [16:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82399,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:19:19]free response buf [16:19:19]execute_script done [16:19:19]execute_script returns [16:19:19]free content buf [16:19:19]Sock 9.Close socket [16:19:19]Sock 9.Thread stoped [16:19:24]OFD Sender: No OFD packet to send [16:19:27]recv_with_timeout no data received [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:47]recv_with_timeout no data received [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:16]accept exits with 10 [16:24:16]New connection [16:24:16]New thread 3066969444 created [16:24:16]Thread 3066826084 joined [16:24:16]Waiting for new connection... [16:24:16] Sock 10.Parse request [16:24:16]Sock 10.Check first char [16:24:16]Sock 10.First char is OK [16:24:16]request: POST /json_proto HTTP/1.0 [16:24:16]Method: POST [16:24:16]URL: /json_proto [16:24:16]Method is POST - this is cgi request [16:24:16]url: /json_proto [16:24:16]query_string will be loaded in cgi processing [16:24:16]execute_cgi json_proto POST (null) [16:24:16]execute_cgi path=json_proto method=POST [16:24:16]POST find Content-Length [16:24:16]Host: 172.17.44.67:8080 [16:24:16]Content-Length: 772 [16:24:16]Content-Type: application/json [16:24:16] [16:24:16]POST finish read [16:24:16]Found Content-Length = 772 [16:24:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:16]execute_script... [16:24: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)918892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:16]POST & json_proto [16:24:16]process_json_proto [16:24:16]json parsed OK: [16:24:16]protocol is kg_v1.0 [16:24:16]action value=close_receipt [16:24:16]process_action close_receipt [16:24:16]cmd_close_receipt [16:24:16]MH_GetDate [16:24:16]Write to MH i2c: F0 00 00 7E 06 73 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: F0 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: F0 09 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: F0 09 00 7E 06 00 B1 8B 12 67 F1 C7 6B 64 B8 [16:24:16]GetLastDocTimeStamp 1729268357 [16:24:16]current date 1729268657 [16:24:16]FM_GetShiftState [16:24:16]SAM_PROTO_GetShiftState [16:24:16]wFMCommunicate request_size=4 [16:24:16]MH_SAM_APDU [16:24:16]CAPDU: 80 13 01 00 [16:24:16]Write to MH i2c: E2 08 00 7F 06 80 13 01 00 00 00 00 00 02 [16:24:16]Write i2c OK [16:24:16]MH_I2C_Read... [16:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:16]Read from MH i2c: E2 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 0E 00 [16:24:16]MH_I2C_Read... [16:24:16]Read from MH i2c: E2 0E 00 7F 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D4 [16:24:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:24:16]wFMCommunicate OK [16:24:16]SAM_PROTO_GetShiftState done [16:24:16]FM_GetShiftState done [16:24:16]opened in 1729212319 [16:24:16]opened+sec_in_day 1729298719 [16:24:16]quantity*price = 50025 [16:24:16]sum+1 = 50027 [16:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 109 18.10.2024 16:24 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82400 ФПД: 253594078847735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T162417&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82400&fm=253594078847735&tin=02508201610067®Number=0000000000091680&sum=50026 [16:24:17]StoreToDocumentArchive [16:24:17]shift 526 fd 82400 [16:24:17]save to /storage/0526/doc_00082400 [16:24:17]save last doc name /storage/0526/doc_00082400 to /storage/kkm_last_doc_name [16:24:17]save OK [16:24:17]Clear old archive folders... [16:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:24:17]tlvbuf is 00DB3650 [16:24:17]SAM_PROTO_ClearQueue [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 09 00 00 [16:24:17]Write to MH i2c: E2 08 00 8C 06 80 09 00 00 00 00 00 00 04 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [16:24:17]RAPDU: 90 00 [16:24:17]wFMCommunicate OK [16:24:17]SAM_PROTO_ClearQueue done [16:24:17]KKMCreateOFDPacket [16:24:17]OFDProtocolAddRootSTLVToBuf [16:24:17]FM_MakeSignedData [16:24:17]FM_MakeSignedData [16:24:17]SAM_PROTO_SignData [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 0D 01 02 [16:24:17]Write to MH i2c: E2 08 00 8D 06 80 0D 01 02 00 00 00 00 0C [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [16:24:17]RAPDU: 90 00 [16:24:17]wFMCommunicate OK [16:24:17]wFMCommunicate request_size=255 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 8B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 41 01 [16:24:17]Write to MH i2c: E2 02 01 8E 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 8B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 41 01 00 00 5B [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [16:24:17]RAPDU: 90 00 [16:24:17]wFMCommunicate OK [16:24:17]wFMCommunicate request_size=16 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E6 A4 78 FC A2 F7 [16:24:17]Write to MH i2c: E2 13 00 8F 06 80 0D 02 02 0B 00 00 35 04 06 00 E6 A4 78 FC A2 F7 00 00 FB [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [16:24:17]RAPDU: 90 00 [16:24:17]wFMCommunicate OK [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 0D 03 02 [16:24:17]Write to MH i2c: E2 08 00 90 06 80 0D 03 02 00 00 00 00 11 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0B 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0B 00 90 06 00 5C EE 9A 13 48 D6 E0 33 90 00 3A [16:24:17]RAPDU: 5C EE 9A 13 48 D6 E0 33 90 00 [16:24:17]wFMCommunicate OK [16:24:17]SAM_PROTO_SignData done [16:24:17]FM_MakeSignedData done [16:24:17]CreateOFDProtocolMessage [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 11 00 00 [16:24:17]Write to MH i2c: E2 08 00 91 06 80 11 00 00 00 00 00 00 11 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 17 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 17 00 91 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 63 [16:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:24:17]wFMCommunicate OK [16:24:17]CreateOFDProtocolMessage done [16:24:17]OFDSenderStorePacket 82400 [16:24:17]StoreOFDPacket docnum=82400 [16:24:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 00 4E 0D 01 43 E1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 8B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 41 01 00 35 04 06 00 E6 A4 78 FC A2 F7 5C EE 9A 13 48 D6 E0 33 [16:24:17]CheckFolder [16:24:17]dirname=/storage/ofd_packets [16:24:17]CheckFolder done [16:24:17]ProducePacketName [16:24:17]name=ofd_packets/00082400 [16:24:17]NVStorageSaveData ofd_packets/00082400 [16:24:17]File name is /storage/ofd_packets/00082400 [16:24:17]Write 307 bytes [16:24:17]NVStorageSaveData done [16:24:17]OFDSenderStorePacket done [16:24:17]KKMCreateOFDPacket done [16:24:17]NVStorageSaveData kkm_last_timestamp [16:24:17]File name is /storage/kkm_last_timestamp [16:24:17]Write 4 bytes [16:24:17]NVStorageSaveData done [16:24:17]ExternCall_PrintAddStr [16:24:17]wPrintStart [16:24:17]Write to MH i2c: 01 00 00 92 06 98 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: 01 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: 01 07 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: 01 07 00 92 06 00 00 00 00 00 FF 0F AD [16:24:17]RasterBufferAndPrint [16:24:17]line Счет N : (1)918892 [16:24:17]line ИНН: 02508201610067 [16:24:17]line Контрольно-Кассовый Чек [16:24:17]line ПРОДАЖА [16:24:17]line ТРК (МРК, ГНК) : 21 [16:24:17]line Товар: 2710194800 [16:24:17]line D-Energy ДТ-К-2 [16:24:17]line 6.480 * 77.20 [16:24:17]line = 500.26 [16:24:17]line НДС 12% НСП 1% [16:24:17]line > о реализуемом товаре [16:24:17]line ИТОГО: 500.26 [16:24:17]line НСП 1% : 4.43 [16:24:17]line НДС 12% : 53.12 [16:24:17]line Наличными: 0.00 [16:24:17]line Безнал.: 500.26 [16:24:17]line Место: АЗС № 114 "Партнер Нефть" [16:24:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:24:17]line СНО: Общий режим [16:24:17]line Чек 109 18.10.2024 16:24 [16:24:17]line Смена: 526 ФФД: 1.0 [16:24:17]line ЗНМ: 0300000086 [16:24:17]line РНМ: 0000000000091680 [16:24:17]line Версия ККМ: 001 [16:24:17]line Платежная система: Mbank [16:24:17]line ФМ: 0000000000871843 [16:24:17]line ФД: 82400 [16:24:17]line ФПД: 253594078847735 [16:24:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T162417&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82400&fm=253594078847735&tin=02508201610067®Number=0000000000091680&sum=50026 [16:24:18]OFD Sender: Processing packet 82400 [packets to send 254, broken 253] [16:24:18]ProducePacketName [16:24:18]name=ofd_packets/00082400 [16:24:18]OFD Sender: To server: pG, [16:24:18]CommunicateWithHost lk.salyk.kg:30040 [16:24:18]ConnectInit lk.salyk.kg [16:24:18]written 0, free lines is 4095 [16:24:18]Write to MH i2c: 01 00 00 BB 06 C1 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 11 0D E6 [16:24:18]RasterBufferAndPrint [16:24:18]line [16:24:18]line [16:24:18]line [16:24:18]line [16:24:18]line [16:24:18]written 0, free lines is 3351 [16:24:18]MH_Cut [16:24:18]Write to MH i2c: D1 01 00 C2 06 01 9A [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: D1 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: D1 01 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: D1 01 00 C2 06 00 99 [16:24:18]Write to MH i2c: 01 00 00 C3 06 C9 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:19]*** Cut start [16:24:19]*** Partial cut [16:24:19]*** CUTSNS_PIN = 1 [16:24:19]*** CUTSNS_PIN = 0 [16:24:19]*** Brake cut motor [16:24:20]Read from MH i2c: 01 [16:24:20]MH_I2C_Read... [16:24:20]*** Stop cut motor [16:24:20]*** Cut end [16:24:20]Read from MH i2c: 01 07 00 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 FF 0F DE [16:24:20]process_action close_receipt done [16:24:20]requested_data is exist [16:24:20]produce_requested_data [16:24:20]requested_item fm.sn is exist - process it [16:24:20]wFMCommunicate request_size=4 [16:24:20]MH_SAM_APDU [16:24:20]CAPDU: 80 11 00 00 [16:24:20]Write to MH i2c: E2 08 00 C4 06 80 11 00 00 00 00 00 00 44 [16:24:20]Write i2c OK [16:24:20]MH_I2C_Read... [16:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:20]Read from MH i2c: E2 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: E2 17 00 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: E2 17 00 C4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 96 [16:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:24:20]wFMCommunicate OK [16:24:20]requested_item fd.num is exist - process it [16:24:20]SAM_PROTO_GetFieldsCounters [16:24:20]wFMCommunicate request_size=4 [16:24:20]MH_SAM_APDU [16:24:20]CAPDU: 80 13 00 00 [16:24:20]Write to MH i2c: E2 08 00 C5 06 80 13 00 00 00 00 00 00 47 [16:24:20]Write i2c OK [16:24:20]MH_I2C_Read... [16:24:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:20]Read from MH i2c: E2 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: E2 62 00 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: E2 62 00 C5 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:20]wFMCommunicate OK [16:24:20]SAM_PROTO_GetFieldsCounters done [16:24:20]requested_item shift.num is exist - process it [16:24:20]requested_item shift.opened is exist - process it [16:24:20]req_shift_opened [16:24:20]FM_GetShiftState [16:24:20]SAM_PROTO_GetShiftState [16:24:20]wFMCommunicate request_size=4 [16:24:20]MH_SAM_APDU [16:24:20]CAPDU: 80 13 01 00 [16:24:20]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [16:24:20]Write i2c OK [16:24:20]MH_I2C_Read... [16:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:20]Read from MH i2c: E2 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: E2 0E 00 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 1B [16:24:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:24:20]wFMCommunicate OK [16:24:20]SAM_PROTO_GetShiftState done [16:24:20]FM_GetShiftState done [16:24:20]req_shift_opened done [16:24:20]requested_item shift.open_date is exist - process it [16:24:20]req_shift_open_date [16:24:20]req_shift_open_date done [16:24:20]produce_requested_data done [16:24:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82400,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:24:20]process_action_free close_receipt [16:24:20]json_value_free [16:24:20]json_value_free done [16:24:20]process_json_proto returns [16:24:20]Send response to host [16:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82400,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:24:20]free response buf [16:24:20]execute_script done [16:24:20]execute_script returns [16:24:20]free content buf [16:24:20]Sock 10.Close socket [16:24:20]Sock 10.Thread stoped [16:24:22]Connected sock=11 [16:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 00 4E 0D 01 43 E1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B1 8B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 41 01 00 35 04 06 00 E6 A4 78 FC A2 F7 5C EE 9A 13 48 D6 E0 33 [16:24:23]recv_with_timeout no data received [16:24:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2B 97 47 00 7B AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E0 41 01 00 F4 03 04 00 EF 30 12 67 B6 04 01 00 00 18 82 1B D9 1E E4 7E FC [16:24:24]CommunicateWithHost err = 0 [16:24:24]CheckOFDResponse [16:24:24]1017 (14) - 77093643461234 [16:24:24]1041 (16) - 0000000000871843 [16:24:24]1040 (4) - 82400 [16:24:24]1012 (4) - 18.10.2024 09:57 [16:24:24]1206 (1) - 0 [16:24:24]OFD Sender: Remove packet 82400 [16:24:24]ProducePacketName [16:24:24]name=ofd_packets/00082400 [16:24:24]NVStorageDeleteData [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:53]accept exits with 7 [16:27:53]New connection [16:27:53]New thread 3066826084 created [16:27:53]Thread 3066969444 joined [16:27:53]Waiting for new connection... [16:27:53] Sock 7.Parse request [16:27:53]Sock 7.Check first char [16:27:53]Sock 7.First char is OK [16:27:53]request: POST /json_proto HTTP/1.0 [16:27:53]Method: POST [16:27:53]URL: /json_proto [16:27:53]Method is POST - this is cgi request [16:27:53]url: /json_proto [16:27:53]query_string will be loaded in cgi processing [16:27:53]execute_cgi json_proto POST (null) [16:27:53]execute_cgi path=json_proto method=POST [16:27:53]POST find Content-Length [16:27:53]Host: 172.17.44.67:8080 [16:27:53]Content-Length: 678 [16:27:53]Content-Type: application/json [16:27:53] [16:27:53]POST finish read [16:27:53]Found Content-Length = 678 [16:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:53]execute_script... [16:27: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)918893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:53]POST & json_proto [16:27:53]process_json_proto [16:27:53]json parsed OK: [16:27:53]protocol is kg_v1.0 [16:27:53]action value=close_receipt [16:27:53]process_action close_receipt [16:27:53]cmd_close_receipt [16:27:53]MH_GetDate [16:27:53]Write to MH i2c: F0 00 00 C7 06 BC [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 09 00 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 09 00 C7 06 00 8B 8C 12 67 F1 C7 6B 64 DC [16:27:53]GetLastDocTimeStamp 1729268657 [16:27:53]current date 1729268875 [16:27:53]FM_GetShiftState [16:27:53]SAM_PROTO_GetShiftState [16:27:53]wFMCommunicate request_size=4 [16:27:53]MH_SAM_APDU [16:27:53]CAPDU: 80 13 01 00 [16:27:53]Write to MH i2c: E2 08 00 C8 06 80 13 01 00 00 00 00 00 4B [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:54]Read from MH i2c: E2 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 0E 00 [16:27:54]MH_I2C_Read... [16:27:54]Read from MH i2c: E2 0E 00 C8 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 1D [16:27:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:27:54]wFMCommunicate OK [16:27:54]SAM_PROTO_GetShiftState done [16:27:54]FM_GetShiftState done [16:27:54]opened in 1729212319 [16:27:54]opened+sec_in_day 1729298719 [16:27:54]quantity*price = 68037 [16:27:54]sum+1 = 68038 [16:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 110 18.10.2024 16:27 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82401 ФПД: 81938903362150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T162755&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82401&fm=81938903362150&tin=02508201610067®Number=0000000000091680&sum=68000 [16:27:55]StoreToDocumentArchive [16:27:55]shift 526 fd 82401 [16:27:55]save to /storage/0526/doc_00082401 [16:27:55]save last doc name /storage/0526/doc_00082401 to /storage/kkm_last_doc_name [16:27:55]save OK [16:27:55]Clear old archive folders... [16:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:55]tlvbuf is 00DA4220 [16:27:55]SAM_PROTO_ClearQueue [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 09 00 00 [16:27:55]Write to MH i2c: E2 08 00 D5 06 80 09 00 00 00 00 00 00 4D [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_ClearQueue done [16:27:55]KKMCreateOFDPacket [16:27:55]OFDProtocolAddRootSTLVToBuf [16:27:55]FM_MakeSignedData [16:27:55]FM_MakeSignedData [16:27:55]SAM_PROTO_SignData [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 01 02 [16:27:55]Write to MH i2c: E2 08 00 D6 06 80 0D 01 02 00 00 00 00 55 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=255 [16:27:55]MH_SAM_APDU [16:27: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 34 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B 8C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 41 01 00 35 04 06 00 4A [16:27:55]Write to MH i2c: E2 02 01 D7 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 34 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B 8C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 41 01 00 35 04 06 00 4A 00 00 C8 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]OFD Sender: No OFD packet to send [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=10 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 02 02 05 85 E3 3A 6A 66 [16:27:55]Write to MH i2c: E2 0D 00 D8 06 80 0D 02 02 05 00 85 E3 3A 6A 66 00 00 D4 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 03 02 [16:27:55]Write to MH i2c: E2 08 00 D9 06 80 0D 03 02 00 00 00 00 5A [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0B 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0B 00 D9 06 00 A2 66 FD A8 6A D7 56 80 90 00 1F [16:27:55]RAPDU: A2 66 FD A8 6A D7 56 80 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_SignData done [16:27:55]FM_MakeSignedData done [16:27:55]CreateOFDProtocolMessage [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 11 00 00 [16:27:55]Write to MH i2c: E2 08 00 DA 06 80 11 00 00 00 00 00 00 5A [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 17 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 17 00 DA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AC [16:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:27:55]wFMCommunicate OK [16:27:55]CreateOFDProtocolMessage done [16:27:55]OFDSenderStorePacket 82401 [16:27:55]StoreOFDPacket docnum=82401 [16:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E8 DC 07 01 23 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B 8C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 41 01 00 35 04 06 00 4A 85 E3 3A 6A 66 A2 66 FD A8 6A D7 56 80 [16:27:55]CheckFolder [16:27:55]dirname=/storage/ofd_packets [16:27:55]CheckFolder done [16:27:55]ProducePacketName [16:27:55]name=ofd_packets/00082401 [16:27:55]NVStorageSaveData ofd_packets/00082401 [16:27:55]File name is /storage/ofd_packets/00082401 [16:27:55]Write 301 bytes [16:27:55]NVStorageSaveData done [16:27:55]OFDSenderStorePacket done [16:27:55]KKMCreateOFDPacket done [16:27:55]NVStorageSaveData kkm_last_timestamp [16:27:55]File name is /storage/kkm_last_timestamp [16:27:55]Write 4 bytes [16:27:55]NVStorageSaveData done [16:27:55]ExternCall_PrintAddStr [16:27:55]wPrintStart [16:27:55]Write to MH i2c: 01 00 00 DB 06 E1 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 07 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 07 00 DB 06 00 00 00 00 00 FF 0F F6 [16:27:55]RasterBufferAndPrint [16:27:55]line Счет N : (1)918893 [16:27:55]line ИНН: 02508201610067 [16:27:55]line Контрольно-Кассовый Чек [16:27:55]line ПРОДАЖА [16:27:55]line ТРК (МРК, ГНК) : 22 [16:27:55]line Товар: 2710124130 [16:27:55]line Аи-92-К-4 [16:27:55]line 10.170 * 66.90 [16:27:55]line = 680.37 [16:27:55]line НДС 12% НСП 1% [16:27:55]line > о реализуемом товаре [16:27:55]line ОКРУГЛЕНИЕ: -0.37 [16:27:55]line ИТОГО: 680.00 [16:27:55]line Внесено: 680.00 [16:27:55]line СДАЧА: 0.00 [16:27:55]line НСП 1% : 6.02 [16:27:55]line НДС 12% : 72.25 [16:27:55]line Наличными: 680.00 [16:27:55]line Безнал.: 0.00 [16:27:55]line Место: АЗС № 114 "Партнер Нефть" [16:27:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:27:55]line СНО: Общий режим [16:27:55]line Чек 110 18.10.2024 16:27 [16:27:55]line Смена: 526 ФФД: 1.0 [16:27:55]line ЗНМ: 0300000086 [16:27:55]line РНМ: 0000000000091680 [16:27:55]line Версия ККМ: 001 [16:27:55]line ФМ: 0000000000871843 [16:27:55]line ФД: 82401 [16:27:55]line ФПД: 81938903362150 [16:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T162755&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82401&fm=81938903362150&tin=02508201610067®Number=0000000000091680&sum=68000 [16:27:55]OFD Sender: Processing packet 82401 [packets to send 254, broken 253] [16:27:55]ProducePacketName [16:27:55]name=ofd_packets/00082401 [16:27:55]OFD Sender: To server: pG, [16:27:55]CommunicateWithHost lk.salyk.kg:30040 [16:27:55]ConnectInit lk.salyk.kg [16:27:55]written 0, free lines is 4095 [16:27:56]Write to MH i2c: 01 00 00 06 07 0D [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 DA 0C FA [16:27:56]RasterBufferAndPrint [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]written 0, free lines is 3297 [16:27:56]MH_Cut [16:27:56]Write to MH i2c: D1 01 00 0D 07 01 E6 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 01 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 01 00 0D 07 00 E5 [16:27:56]Write to MH i2c: 01 00 00 0E 07 15 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:57]*** Cut start [16:27:57]*** Partial cut [16:27:57]*** CUTSNS_PIN = 1 [16:27:57]*** CUTSNS_PIN = 0 [16:27:57]*** Brake cut motor [16:27:57]Read from MH i2c: 01 [16:27:57]MH_I2C_Read... [16:27:57]*** Stop cut motor [16:27:57]*** Cut end [16:27:57]Read from MH i2c: 01 07 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 FF 0F 2A [16:27:57]process_action close_receipt done [16:27:57]requested_data is exist [16:27:57]produce_requested_data [16:27:57]requested_item fm.sn is exist - process it [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 11 00 00 [16:27:57]Write to MH i2c: E2 08 00 0F 07 80 11 00 00 00 00 00 00 90 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 17 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 17 00 0F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E2 [16:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:27:57]wFMCommunicate OK [16:27:57]requested_item fd.num is exist - process it [16:27:57]SAM_PROTO_GetFieldsCounters [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 13 00 00 [16:27:57]Write to MH i2c: E2 08 00 10 07 80 13 00 00 00 00 00 00 93 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 62 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 62 00 10 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [16:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:58]wFMCommunicate OK [16:27:58]SAM_PROTO_GetFieldsCounters done [16:27:58]requested_item shift.num is exist - process it [16:27:58]requested_item shift.opened is exist - process it [16:27:58]req_shift_opened [16:27:58]FM_GetShiftState [16:27:58]SAM_PROTO_GetShiftState [16:27:58]wFMCommunicate request_size=4 [16:27:58]MH_SAM_APDU [16:27:58]CAPDU: 80 13 01 00 [16:27:58]Write to MH i2c: E2 08 00 11 07 80 13 01 00 00 00 00 00 95 [16:27:58]Write i2c OK [16:27:58]MH_I2C_Read... [16:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:58]Read from MH i2c: E2 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 0E 00 [16:27:58]MH_I2C_Read... [16:27:58]Read from MH i2c: E2 0E 00 11 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 67 [16:27:58]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:27:58]wFMCommunicate OK [16:27:58]SAM_PROTO_GetShiftState done [16:27:58]FM_GetShiftState done [16:27:58]req_shift_opened done [16:27:58]requested_item shift.open_date is exist - process it [16:27:58]req_shift_open_date [16:27:58]req_shift_open_date done [16:27:58]produce_requested_data done [16:27:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82401,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:27:58]process_action_free close_receipt [16:27:58]json_value_free [16:27:58]json_value_free done [16:27:58]process_json_proto returns [16:27:58]Send response to host [16:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82401,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:27:58]free response buf [16:27:58]execute_script done [16:27:58]execute_script returns [16:27:58]free content buf [16:27:58]Sock 7.Close socket [16:27:58]Sock 7.Thread stoped [16:28:00]ConnectInit Can't take IP for lk.salyk.kg [16:28:00]CommunicateWithHost connect error [16:28:00]CommunicateWithHost err = -1 [16:28:00]OFD Sender: Server communicate error [16:28:06]OFD Sender: Processing packet 82401 [packets to send 254, broken 253] [16:28:06]ProducePacketName [16:28:06]name=ofd_packets/00082401 [16:28:06]OFD Sender: To server: pG, [16:28:06]CommunicateWithHost lk.salyk.kg:30040 [16:28:06]ConnectInit lk.salyk.kg [16:28:11]ConnectInit Can't take IP for lk.salyk.kg [16:28:11]CommunicateWithHost connect error [16:28:11]CommunicateWithHost err = -1 [16:28:11]OFD Sender: Server communicate error [16:28:16]OFD Sender: Processing packet 82401 [packets to send 254, broken 253] [16:28:16]ProducePacketName [16:28:16]name=ofd_packets/00082401 [16:28:16]OFD Sender: To server: pG, [16:28:16]CommunicateWithHost lk.salyk.kg:30040 [16:28:16]ConnectInit lk.salyk.kg [16:28:21]ConnectInit Can't take IP for lk.salyk.kg [16:28:21]CommunicateWithHost connect error [16:28:21]CommunicateWithHost err = -1 [16:28:21]OFD Sender: Server communicate error [16:28:26]OFD Sender: Processing packet 82401 [packets to send 254, broken 253] [16:28:26]ProducePacketName [16:28:26]name=ofd_packets/00082401 [16:28:26]OFD Sender: To server: pG, [16:28:26]CommunicateWithHost lk.salyk.kg:30040 [16:28:26]ConnectInit lk.salyk.kg [16:28:29]Connected sock=7 [16: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 31 38 34 33 0F 01 00 00 E8 DC 07 01 23 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8B 8C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 41 01 00 35 04 06 00 4A 85 E3 3A 6A 66 A2 66 FD A8 6A D7 56 80 [16:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E8 31 47 00 07 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E1 41 01 00 F4 03 04 00 E6 31 12 67 B6 04 01 00 00 15 8C 30 BE D1 BA 8F 71 [16:28:29]CommunicateWithHost err = 0 [16:28:29]CheckOFDResponse [16:28:29]1017 (14) - 77093643461234 [16:28:29]1041 (16) - 0000000000871843 [16:28:29]1040 (4) - 82401 [16:28:29]1012 (4) - 18.10.2024 10:01 [16:28:29]1206 (1) - 0 [16:28:29]OFD Sender: Remove packet 82401 [16:28:29]ProducePacketName [16:28:29]name=ofd_packets/00082401 [16:28:29]NVStorageDeleteData [16:28:30]OFD Sender: No OFD packet to send [16:28:32]recv_with_timeout no data received [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:01]recv_with_timeout no data received [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:44]recv_with_timeout no data received [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:05]accept exits with 9 [16:31:05]New connection [16:31:05]New thread 3066969444 created [16:31:05]Thread 3066826084 joined [16:31:05]Waiting for new connection... [16:31:05] Sock 9.Parse request [16:31:05]Sock 9.Check first char [16:31:05]Sock 9.First char is OK [16:31:05]request: POST /json_proto HTTP/1.0 [16:31:05]Method: POST [16:31:05]URL: /json_proto [16:31:05]Method is POST - this is cgi request [16:31:05]url: /json_proto [16:31:05]query_string will be loaded in cgi processing [16:31:05]execute_cgi json_proto POST (null) [16:31:05]execute_cgi path=json_proto method=POST [16:31:05]POST find Content-Length [16:31:05]Host: 172.17.44.67:8080 [16:31:05]Content-Length: 677 [16:31:05]Content-Type: application/json [16:31:05] [16:31:05]POST finish read [16:31:05]Found Content-Length = 677 [16:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918894", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:05]execute_script... [16:31: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)918894", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:05]POST & json_proto [16:31:05]process_json_proto [16:31:05]json parsed OK: [16:31:05]protocol is kg_v1.0 [16:31:05]action value=close_receipt [16:31:05]process_action close_receipt [16:31:05]cmd_close_receipt [16:31:05]MH_GetDate [16:31:05]Write to MH i2c: F0 00 00 12 07 08 [16:31:05]Write i2c OK [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: F0 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: F0 09 00 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: F0 09 00 12 07 00 4A 8D 12 67 F1 C7 6B 64 E8 [16:31:05]GetLastDocTimeStamp 1729268875 [16:31:05]current date 1729269066 [16:31:05]FM_GetShiftState [16:31:05]SAM_PROTO_GetShiftState [16:31:05]wFMCommunicate request_size=4 [16:31:05]MH_SAM_APDU [16:31:05]CAPDU: 80 13 01 00 [16:31:05]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [16:31:05]Write i2c OK [16:31:05]MH_I2C_Read... [16:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:05]Read from MH i2c: E2 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 0E 00 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 69 [16:31:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:31:05]wFMCommunicate OK [16:31:05]SAM_PROTO_GetShiftState done [16:31:05]FM_GetShiftState done [16:31:05]opened in 1729212319 [16:31:05]opened+sec_in_day 1729298719 [16:31:05]quantity*price = 30051 [16:31:05]sum+1 = 30052 [16:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 111 18.10.2024 16:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82402 ФПД: 265338043339231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T163107&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82402&fm=265338043339231&tin=02508201610067®Number=0000000000091680&sum=30000 [16:31:06]StoreToDocumentArchive [16:31:06]shift 526 fd 82402 [16:31:06]save to /storage/0526/doc_00082402 [16:31:06]save last doc name /storage/0526/doc_00082402 to /storage/kkm_last_doc_name [16:31:06]save OK [16:31:06]Clear old archive folders... [16:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:06]tlvbuf is 00DFE230 [16:31:06]SAM_PROTO_ClearQueue [16:31:06]wFMCommunicate request_size=4 [16:31:06]MH_SAM_APDU [16:31:06]CAPDU: 80 09 00 00 [16:31:06]Write to MH i2c: E2 08 00 20 07 80 09 00 00 00 00 00 00 99 [16:31:06]Write i2c OK [16:31:06]MH_I2C_Read... [16:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:06]Read from MH i2c: E2 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 03 00 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [16:31:06]RAPDU: 90 00 [16:31:06]wFMCommunicate OK [16:31:06]SAM_PROTO_ClearQueue done [16:31:06]KKMCreateOFDPacket [16:31:06]OFDProtocolAddRootSTLVToBuf [16:31:06]FM_MakeSignedData [16:31:06]FM_MakeSignedData [16:31:06]SAM_PROTO_SignData [16:31:06]wFMCommunicate request_size=4 [16:31:06]MH_SAM_APDU [16:31:06]CAPDU: 80 0D 01 02 [16:31:06]Write to MH i2c: E2 08 00 21 07 80 0D 01 02 00 00 00 00 A1 [16:31:06]Write i2c OK [16:31:06]MH_I2C_Read... [16:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:06]Read from MH i2c: E2 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 03 00 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [16:31:06]RAPDU: 90 00 [16:31:06]wFMCommunicate OK [16:31:06]wFMCommunicate request_size=255 [16:31:06]MH_SAM_APDU [16:31: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4B 8D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 41 01 00 35 04 06 00 F1 [16:31:06]Write to MH i2c: E2 02 01 22 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4B 8D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 41 01 00 35 04 06 00 F1 00 00 3B [16:31:06]Write i2c OK [16:31:06]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=10 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 02 02 05 52 D3 D1 91 DF [16:31:07]Write to MH i2c: E2 0D 00 23 07 80 0D 02 02 05 00 52 D3 D1 91 DF 00 00 14 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 03 02 [16:31:07]Write to MH i2c: E2 08 00 24 07 80 0D 03 02 00 00 00 00 A6 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 0B 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 0B 00 24 07 00 D3 1C CC 37 D8 E8 96 29 90 00 18 [16:31:07]RAPDU: D3 1C CC 37 D8 E8 96 29 90 00 [16:31:07]wFMCommunicate OK [16:31:07]SAM_PROTO_SignData done [16:31:07]FM_MakeSignedData done [16:31:07]CreateOFDProtocolMessage [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 11 00 00 [16:31:07]Write to MH i2c: E2 08 00 25 07 80 11 00 00 00 00 00 00 A6 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 17 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 17 00 25 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F8 [16:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:31:07]wFMCommunicate OK [16:31:07]CreateOFDProtocolMessage done [16:31:07]OFDSenderStorePacket 82402 [16:31:07]StoreOFDPacket docnum=82402 [16:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B6 14 07 01 B0 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4B 8D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 41 01 00 35 04 06 00 F1 52 D3 D1 91 DF D3 1C CC 37 D8 E8 96 29 [16:31:07]CheckFolder [16:31:07]dirname=/storage/ofd_packets [16:31:07]CheckFolder done [16:31:07]ProducePacketName [16:31:07]name=ofd_packets/00082402 [16:31:07]NVStorageSaveData ofd_packets/00082402 [16:31:07]File name is /storage/ofd_packets/00082402 [16:31:07]Write 301 bytes [16:31:07]NVStorageSaveData done [16:31:07]OFDSenderStorePacket done [16:31:07]KKMCreateOFDPacket done [16:31:07]NVStorageSaveData kkm_last_timestamp [16:31:07]File name is /storage/kkm_last_timestamp [16:31:07]Write 4 bytes [16:31:07]NVStorageSaveData done [16:31:07]ExternCall_PrintAddStr [16:31:07]wPrintStart [16:31:07]Write to MH i2c: 01 00 00 26 07 2D [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: 01 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: 01 07 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 FF 0F 42 [16:31:07]RasterBufferAndPrint [16:31:07]line Счет N : (1)918894 [16:31:07]line ИНН: 02508201610067 [16:31:07]line Контрольно-Кассовый Чек [16:31:07]line ПРОДАЖА [16:31:07]line ТРК (МРК, ГНК) : 12 [16:31:07]line Товар: 2710124500 [16:31:07]line Аи-95-К-5 [16:31:07]line 4.050 * 74.20 [16:31:07]line = 300.51 [16:31:07]line НДС 12% НСП 1% [16:31:07]line > о реализуемом товаре [16:31:07]line ОКРУГЛЕНИЕ: -0.51 [16:31:07]line ИТОГО: 300.00 [16:31:07]line Внесено: 300.00 [16:31:07]line СДАЧА: 0.00 [16:31:07]line НСП 1% : 2.66 [16:31:07]line НДС 12% : 31.91 [16:31:07]line Наличными: 300.00 [16:31:07]line Безнал.: 0.00 [16:31:07]line Место: АЗС № 114 "Партнер Нефть" [16:31:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:31:07]line СНО: Общий режим [16:31:07]line Чек 111 18.10.2024 16:31 [16:31:07]line Смена: 526 ФФД: 1.0 [16:31:07]line ЗНМ: 0300000086 [16:31:07]line РНМ: 0000000000091680 [16:31:07]line Версия ККМ: 001 [16:31:07]line ФМ: 0000000000871843 [16:31:07]line ФД: 82402 [16:31:07]line ФПД: 265338043339231 [16:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T163107&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82402&fm=265338043339231&tin=02508201610067®Number=0000000000091680&sum=30000 [16:31:07]OFD Sender: Processing packet 82402 [packets to send 254, broken 253] [16:31:07]ProducePacketName [16:31:07]name=ofd_packets/00082402 [16:31:07]OFD Sender: To server: pG, [16:31:07]CommunicateWithHost lk.salyk.kg:30040 [16:31:07]ConnectInit lk.salyk.kg [16:31:07]written 0, free lines is 4095 [16:31:08]Connected sock=10 [16:31:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B6 14 07 01 B0 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 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 4B 8D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 41 01 00 35 04 06 00 F1 52 D3 D1 91 DF D3 1C CC 37 D8 E8 96 29 [16:31:08]Write to MH i2c: 01 00 00 51 07 58 [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 E4 0C 4F [16:31:08]RasterBufferAndPrint [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]written 0, free lines is 3306 [16:31:08]MH_Cut [16:31:08]Write to MH i2c: D1 01 00 58 07 01 31 [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 01 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 01 00 58 07 00 30 [16:31:08]Write to MH i2c: 01 00 00 59 07 60 [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7D D6 47 00 13 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E2 41 01 00 F4 03 04 00 85 32 12 67 B6 04 01 00 00 08 FC E1 54 9E 90 3B A2 [16:31:08]CommunicateWithHost err = 0 [16:31:08]CheckOFDResponse [16:31:08]1017 (14) - 77093643461234 [16:31:08]1041 (16) - 0000000000871843 [16:31:08]1040 (4) - 82402 [16:31:08]1012 (4) - 18.10.2024 10:03 [16:31:08]1206 (1) - 0 [16:31:08]OFD Sender: Remove packet 82402 [16:31:08]ProducePacketName [16:31:08]name=ofd_packets/00082402 [16:31:08]NVStorageDeleteData [16:31:08]int [16:31:08]*** FLAG_PRN_PAP2 set [16:31:08]*** Cut start [16:31:08]*** Partial cut [16:31:08]*** CUTSNS_PIN = 1 [16:31:08]*** CUTSNS_PIN = 0 [16:31:08]*** Brake cut motor [16:31:09]OFD Sender: No OFD packet to send [16:31:09]Read from MH i2c: 01 [16:31:09]MH_I2C_Read... [16:31:09]*** Stop cut motor [16:31:09]*** Cut end [16:31:09]Read from MH i2c: 01 07 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: 01 07 00 59 07 00 02 00 00 00 FF 0F 77 [16:31:09]process_action close_receipt done [16:31:09]requested_data is exist [16:31:09]produce_requested_data [16:31:09]requested_item fm.sn is exist - process it [16:31:09]wFMCommunicate request_size=4 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 11 00 00 [16:31:09]Write to MH i2c: E2 08 00 5A 07 80 11 00 00 00 00 00 00 DB [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:09]Read from MH i2c: E2 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 17 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 17 00 5A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2D [16:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:31:09]wFMCommunicate OK [16:31:09]requested_item fd.num is exist - process it [16:31:09]SAM_PROTO_GetFieldsCounters [16:31:09]wFMCommunicate request_size=4 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 13 00 00 [16:31:09]Write to MH i2c: E2 08 00 5B 07 80 13 00 00 00 00 00 00 DE [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:09]Read from MH i2c: E2 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 62 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 62 00 5B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [16:31:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:09]wFMCommunicate OK [16:31:09]SAM_PROTO_GetFieldsCounters done [16:31:09]requested_item shift.num is exist - process it [16:31:09]requested_item shift.opened is exist - process it [16:31:09]req_shift_opened [16:31:09]FM_GetShiftState [16:31:09]SAM_PROTO_GetShiftState [16:31:09]wFMCommunicate request_size=4 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 13 01 00 [16:31:09]Write to MH i2c: 01 00 00 5C 07 63 [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: 01 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: 01 07 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: 01 07 00 5C 07 00 02 00 00 00 FF 0F 7A [16:31:09]state=0 [16:31:09]Cover opened [16:31:09]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:09]Read from MH i2c: E2 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 0E 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B3 [16:31:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:31:09]wFMCommunicate OK [16:31:09]SAM_PROTO_GetShiftState done [16:31:09]FM_GetShiftState done [16:31:09]req_shift_opened done [16:31:09]requested_item shift.open_date is exist - process it [16:31:09]req_shift_open_date [16:31:09]req_shift_open_date done [16:31:09]produce_requested_data done [16:31:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82402,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:31:09]process_action_free close_receipt [16:31:09]json_value_free [16:31:09]json_value_free done [16:31:09]process_json_proto returns [16:31:09]Send response to host [16:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82402,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:31:09]free response buf [16:31:09]execute_script done [16:31:09]execute_script returns [16:31:09]free content buf [16:31:09]Sock 9.Close socket [16:31:09]Sock 9.Thread stoped [16:31:14]OFD Sender: No OFD packet to send [16:31:14]Write to MH i2c: 01 00 00 5E 07 65 [16:31:14]Write i2c OK [16:31:14]MH_I2C_Read... [16:31:14]Read from MH i2c: 01 [16:31:14]MH_I2C_Read... [16:31:14]Read from MH i2c: 01 07 00 [16:31:14]MH_I2C_Read... [16:31:14]Read from MH i2c: 01 07 00 5E 07 00 02 00 00 00 FF 0F 7C [16:31:14]state=3 [16:31:14]Cover opened [16:31:19]OFD Sender: No OFD packet to send [16:31:19]Write to MH i2c: 01 00 00 5F 07 66 [16:31:19]Write i2c OK [16:31:19]MH_I2C_Read... [16:31:19]Read from MH i2c: 01 [16:31:19]MH_I2C_Read... [16:31:19]Read from MH i2c: 01 07 00 [16:31:19]MH_I2C_Read... [16:31:19]Read from MH i2c: 01 07 00 5F 07 00 02 00 00 00 FF 0F 7D [16:31:19]state=3 [16:31:19]Cover opened [16:31:24]OFD Sender: No OFD packet to send [16:31:24]Write to MH i2c: 01 00 00 60 07 67 [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 60 07 00 02 00 00 00 FF 0F 7E [16:31:24]state=3 [16:31:24]Cover opened [16:31:29]OFD Sender: No OFD packet to send [16:31:29]Write to MH i2c: 01 00 00 61 07 68 [16:31:29]Write i2c OK [16:31:29]MH_I2C_Read... [16:31:29]Read from MH i2c: 01 [16:31:29]MH_I2C_Read... [16:31:29]Read from MH i2c: 01 07 00 [16:31:29]MH_I2C_Read... [16:31:29]Read from MH i2c: 01 07 00 61 07 00 02 00 00 00 FF 0F 7F [16:31:29]state=3 [16:31:29]Cover opened [16:31:34]OFD Sender: No OFD packet to send [16:31:34]recv_with_timeout no data received [16:31:34]Write to MH i2c: 01 00 00 62 07 69 [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: 01 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: 01 07 00 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: 01 07 00 62 07 00 02 00 00 00 FF 0F 80 [16:31:34]state=3 [16:31:34]Cover opened [16:31:39]OFD Sender: No OFD packet to send [16:31:39]Write to MH i2c: 01 00 00 63 07 6A [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: 01 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: 01 07 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: 01 07 00 63 07 00 02 00 00 00 FF 0F 81 [16:31:39]state=3 [16:31:39]Cover opened [16:31:44]OFD Sender: No OFD packet to send [16:31:44]Write to MH i2c: 01 00 00 64 07 6B [16:31:44]Write i2c OK [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: 01 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: 01 07 00 [16:31:44]MH_I2C_Read... [16:31:44]Read from MH i2c: 01 07 00 64 07 00 02 00 00 00 FF 0F 82 [16:31:44]state=3 [16:31:44]Cover opened [16:31:49]OFD Sender: No OFD packet to send [16:31:49]Write to MH i2c: 01 00 00 65 07 6C [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: 01 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: 01 07 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: 01 07 00 65 07 00 02 00 00 00 FF 0F 83 [16:31:49]state=3 [16:31:49]Cover opened [16:31:54]OFD Sender: No OFD packet to send [16:31:54]Write to MH i2c: 01 00 00 66 07 6D [16:31:54]Write i2c OK [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: 01 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: 01 07 00 [16:31:54]MH_I2C_Read... [16:31:54]Read from MH i2c: 01 07 00 66 07 00 02 00 00 00 FF 0F 84 [16:31:54]state=3 [16:31:54]Cover opened [16:31:59]OFD Sender: No OFD packet to send [16:31:59]Write to MH i2c: 01 00 00 67 07 6E [16:31:59]Write i2c OK [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: 01 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: 01 07 00 [16:31:59]MH_I2C_Read... [16:31:59]Read from MH i2c: 01 07 00 67 07 00 02 00 00 00 FF 0F 85 [16:31:59]state=3 [16:31:59]Cover opened [16:32:04]OFD Sender: No OFD packet to send [16:32:04]Write to MH i2c: 01 00 00 68 07 6F [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: 01 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: 01 07 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: 01 07 00 68 07 00 02 00 00 00 FF 0F 86 [16:32:04]state=3 [16:32:04]Cover opened [16:32:09]OFD Sender: No OFD packet to send [16:32:09]Write to MH i2c: 01 00 00 69 07 70 [16:32:09]Write i2c OK [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 07 00 [16:32:09]MH_I2C_Read... [16:32:09]Read from MH i2c: 01 07 00 69 07 00 02 00 00 00 FF 0F 87 [16:32:09]state=3 [16:32:09]Cover opened [16:32:14]OFD Sender: No OFD packet to send [16:32:14]Write to MH i2c: 01 00 00 6A 07 71 [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 07 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 07 00 6A 07 00 02 00 00 00 FF 0F 88 [16:32:14]state=3 [16:32:14]Cover opened [16:32:19]OFD Sender: No OFD packet to send [16:32:19]Write to MH i2c: 01 00 00 6B 07 72 [16:32:19]Write i2c OK [16:32:19]MH_I2C_Read... [16:32:19]Read from MH i2c: 01 [16:32:19]MH_I2C_Read... [16:32:19]Read from MH i2c: 01 07 00 [16:32:19]MH_I2C_Read... [16:32:19]Read from MH i2c: 01 07 00 6B 07 00 02 00 00 00 FF 0F 89 [16:32:19]state=3 [16:32:19]Cover opened [16:32:21]recv_with_timeout no data received [16:32:24]OFD Sender: No OFD packet to send [16:32:24]Write to MH i2c: 01 00 00 6C 07 73 [16:32:24]Write i2c OK [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: 01 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: 01 07 00 [16:32:24]MH_I2C_Read... [16:32:24]Read from MH i2c: 01 07 00 6C 07 00 02 00 00 00 FF 0F 8A [16:32:24]state=3 [16:32:24]Cover opened [16:32:29]OFD Sender: No OFD packet to send [16:32:29]Write to MH i2c: 01 00 00 6D 07 74 [16:32:29]Write i2c OK [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: 01 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: 01 07 00 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: 01 07 00 6D 07 00 02 00 00 00 FF 0F 8B [16:32:29]state=3 [16:32:29]Cover opened [16:32:34]OFD Sender: No OFD packet to send [16:32:34]Write to MH i2c: 01 00 00 6E 07 75 [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: 01 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: 01 07 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: 01 07 00 6E 07 00 02 00 00 00 FF 0F 8C [16:32:34]state=3 [16:32:34]Cover opened [16:32:39]OFD Sender: No OFD packet to send [16:32:39]Write to MH i2c: 01 00 00 6F 07 76 [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: 01 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: 01 07 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: 01 07 00 6F 07 00 02 00 00 00 FF 0F 8D [16:32:39]state=3 [16:32:39]Cover opened [16:32:44]OFD Sender: No OFD packet to send [16:32:44]Write to MH i2c: 01 00 00 70 07 77 [16:32:44]Write i2c OK [16:32:44]MH_I2C_Read... [16:32:44]Read from MH i2c: 01 [16:32:44]MH_I2C_Read... [16:32:44]Read from MH i2c: 01 07 00 [16:32:44]MH_I2C_Read... [16:32:44]Read from MH i2c: 01 07 00 70 07 00 02 00 00 00 FF 0F 8E [16:32:44]state=3 [16:32:44]Cover opened [16:32:49]OFD Sender: No OFD packet to send [16:32:49]Write to MH i2c: 01 00 00 71 07 78 [16:32:49]Write i2c OK [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: 01 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: 01 07 00 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: 01 07 00 71 07 00 02 00 00 00 FF 0F 8F [16:32:49]state=3 [16:32:49]Cover opened [16:32:54]OFD Sender: No OFD packet to send [16:32:54]Write to MH i2c: 01 00 00 72 07 79 [16:32:54]Write i2c OK [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: 01 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: 01 07 00 [16:32:54]MH_I2C_Read... [16:32:54]Read from MH i2c: 01 07 00 72 07 00 02 00 00 00 FF 0F 90 [16:32:54]state=3 [16:32:54]Cover opened [16:32:59]OFD Sender: No OFD packet to send [16:32:59]Write to MH i2c: 01 00 00 73 07 7A [16:32:59]Write i2c OK [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: 01 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: 01 07 00 [16:32:59]MH_I2C_Read... [16:32:59]Read from MH i2c: 01 07 00 73 07 00 02 00 00 00 FF 0F 91 [16:32:59]state=3 [16:32:59]Cover opened [16:33:04]OFD Sender: No OFD packet to send [16:33:04]Write to MH i2c: 01 00 00 74 07 7B [16:33:04]Write i2c OK [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: 01 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: 01 07 00 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: 01 07 00 74 07 00 02 00 00 00 FF 0F 92 [16:33:04]state=3 [16:33:04]Cover opened [16:33:09]OFD Sender: No OFD packet to send [16:33:09]Write to MH i2c: 01 00 00 75 07 7C [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 07 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 07 00 75 07 00 02 00 00 00 FF 0F 93 [16:33:09]state=3 [16:33:09]Cover opened [16:33:14]OFD Sender: No OFD packet to send [16:33:14]Write to MH i2c: 01 00 00 76 07 7D [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 07 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 07 00 76 07 00 02 00 00 00 FF 0F 94 [16:33:14]state=3 [16:33:14]Cover opened [16:33:19]OFD Sender: No OFD packet to send [16:33:19]Write to MH i2c: 01 00 00 77 07 7E [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 77 07 00 02 00 00 00 FF 0F 95 [16:33:19]state=3 [16:33:19]Cover opened [16:33:24]OFD Sender: No OFD packet to send [16:33:24]Write to MH i2c: 01 00 00 78 07 7F [16:33:24]Write i2c OK [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: 01 [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: 01 07 00 [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: 01 07 00 78 07 00 02 00 00 00 FF 0F 96 [16:33:24]state=3 [16:33:24]Cover opened [16:33:29]OFD Sender: No OFD packet to send [16:33:29]Write to MH i2c: 01 00 00 79 07 80 [16:33:29]Write i2c OK [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: 01 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: 01 07 00 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: 01 07 00 79 07 00 02 00 00 00 FF 0F 97 [16:33:29]state=3 [16:33:29]Cover opened [16:33:34]OFD Sender: No OFD packet to send [16:33:34]Write to MH i2c: 01 00 00 7A 07 81 [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: 01 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: 01 07 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: 01 07 00 7A 07 00 02 00 00 00 FF 0F 98 [16:33:34]state=3 [16:33:34]Cover opened [16:33:39]OFD Sender: No OFD packet to send [16:33:39]Write to MH i2c: 01 00 00 7B 07 82 [16:33:39]Write i2c OK [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: 01 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: 01 07 00 [16:33:39]MH_I2C_Read... [16:33:39]Read from MH i2c: 01 07 00 7B 07 00 02 00 00 00 FF 0F 99 [16:33:39]state=3 [16:33:39]Cover opened [16:33:44]OFD Sender: No OFD packet to send [16:33:44]Write to MH i2c: 01 00 00 7C 07 83 [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 07 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 07 00 7C 07 00 02 00 00 00 FF 0F 9A [16:33:44]state=3 [16:33:44]Cover opened [16:33:49]OFD Sender: No OFD packet to send [16:33:49]Write to MH i2c: 01 00 00 7D 07 84 [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: 01 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: 01 07 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: 01 07 00 7D 07 00 02 00 00 00 FF 0F 9B [16:33:49]state=3 [16:33:49]Cover opened [16:33:54]OFD Sender: No OFD packet to send [16:33:54]Write to MH i2c: 01 00 00 7E 07 85 [16:33:54]Write i2c OK [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 [16:33:54]MH_I2C_Read... [16:33:54]Read from MH i2c: 01 07 00 7E 07 00 02 00 00 00 FF 0F 9C [16:33:54]state=3 [16:33:54]Cover opened [16:33:59]OFD Sender: No OFD packet to send [16:33:59]Write to MH i2c: 01 00 00 7F 07 86 [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 7F 07 00 02 00 00 00 FF 0F 9D [16:33:59]state=3 [16:33:59]Cover opened [16:34:04]OFD Sender: No OFD packet to send [16:34:04]Write to MH i2c: 01 00 00 80 07 87 [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 07 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: 01 07 00 80 07 00 02 00 00 00 FF 0F 9E [16:34:04]state=3 [16:34:04]Cover opened [16:34:09]OFD Sender: No OFD packet to send [16:34:09]Write to MH i2c: 01 00 00 81 07 88 [16:34:09]Write i2c OK [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 07 00 [16:34:09]MH_I2C_Read... [16:34:09]Read from MH i2c: 01 07 00 81 07 00 02 00 00 00 FF 0F 9F [16:34:09]state=3 [16:34:09]Cover opened [16:34:12]recv_with_timeout no data received [16:34:14]OFD Sender: No OFD packet to send [16:34:14]Write to MH i2c: 01 00 00 82 07 89 [16:34:14]Write i2c OK [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 07 00 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 07 00 82 07 00 02 00 00 00 FF 0F A0 [16:34:14]state=3 [16:34:14]Cover opened [16:34:19]OFD Sender: No OFD packet to send [16:34:19]Write to MH i2c: 01 00 00 83 07 8A [16:34:19]Write i2c OK [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: 01 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: 01 07 00 [16:34:19]MH_I2C_Read... [16:34:19]Read from MH i2c: 01 07 00 83 07 00 02 00 00 00 FF 0F A1 [16:34:19]state=3 [16:34:19]Cover opened [16:34:24]OFD Sender: No OFD packet to send [16:34:24]Write to MH i2c: 01 00 00 84 07 8B [16:34:24]Write i2c OK [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: 01 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: 01 07 00 [16:34:24]MH_I2C_Read... [16:34:24]Read from MH i2c: 01 07 00 84 07 00 02 00 00 00 FF 0F A2 [16:34:24]state=3 [16:34:24]Cover opened [16:34:29]OFD Sender: No OFD packet to send [16:34:29]Write to MH i2c: 01 00 00 85 07 8C [16:34:29]Write i2c OK [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: 01 [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: 01 07 00 [16:34:29]MH_I2C_Read... [16:34:29]Read from MH i2c: 01 07 00 85 07 00 02 00 00 00 FF 0F A3 [16:34:29]state=3 [16:34:29]Cover opened [16:34:34]OFD Sender: No OFD packet to send [16:34:34]Write to MH i2c: 01 00 00 86 07 8D [16:34:34]Write i2c OK [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: 01 [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: 01 07 00 [16:34:34]MH_I2C_Read... [16:34:34]Read from MH i2c: 01 07 00 86 07 00 02 00 00 00 FF 0F A4 [16:34:34]state=3 [16:34:34]Cover opened [16:34:39]OFD Sender: No OFD packet to send [16:34:39]Write to MH i2c: 01 00 00 87 07 8E [16:34:39]Write i2c OK [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 07 00 [16:34:39]MH_I2C_Read... [16:34:39]Read from MH i2c: 01 07 00 87 07 00 02 00 00 00 FF 0F A5 [16:34:39]state=3 [16:34:39]Cover opened [16:34:44]OFD Sender: No OFD packet to send [16:34:44]Write to MH i2c: 01 00 00 88 07 8F [16:34:44]Write i2c OK [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 [16:34:44]MH_I2C_Read... [16:34:44]Read from MH i2c: 01 07 00 88 07 00 02 00 00 00 FF 0F A6 [16:34:44]state=3 [16:34:44]Cover opened [16:34:49]OFD Sender: No OFD packet to send [16:34:49]Write to MH i2c: 01 00 00 89 07 90 [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: 01 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: 01 07 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: 01 07 00 89 07 00 02 00 00 00 FF 0F A7 [16:34:49]state=3 [16:34:49]Cover opened [16:34:54]OFD Sender: No OFD packet to send [16:34:54]Write to MH i2c: 01 00 00 8A 07 91 [16:34:54]Write i2c OK [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 07 00 [16:34:54]MH_I2C_Read... [16:34:54]Read from MH i2c: 01 07 00 8A 07 00 02 00 00 00 FF 0F A8 [16:34:54]state=3 [16:34:54]Cover opened [16:34:59]OFD Sender: No OFD packet to send [16:34:59]Write to MH i2c: 01 00 00 8B 07 92 [16:34:59]Write i2c OK [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 07 00 [16:34:59]MH_I2C_Read... [16:34:59]Read from MH i2c: 01 07 00 8B 07 00 02 00 00 00 FF 0F A9 [16:34:59]state=3 [16:34:59]Cover opened [16:35:04]OFD Sender: No OFD packet to send [16:35:04]Write to MH i2c: 01 00 00 8C 07 93 [16:35:04]Write i2c OK [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: 01 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: 01 07 00 [16:35:04]MH_I2C_Read... [16:35:04]Read from MH i2c: 01 07 00 8C 07 00 02 00 00 00 FF 0F AA [16:35:04]state=3 [16:35:04]Cover opened [16:35:09]OFD Sender: No OFD packet to send [16:35:09]Write to MH i2c: 01 00 00 8D 07 94 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 8D 07 00 02 00 00 00 FF 0F AB [16:35:09]state=3 [16:35:09]Cover opened [16:35:14]OFD Sender: No OFD packet to send [16:35:14]Write to MH i2c: 01 00 00 8E 07 95 [16:35:14]Write i2c OK [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: 01 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: 01 07 00 [16:35:14]MH_I2C_Read... [16:35:14]Read from MH i2c: 01 07 00 8E 07 00 02 00 00 00 FF 0F AC [16:35:14]state=3 [16:35:14]Cover opened [16:35:19]OFD Sender: No OFD packet to send [16:35:19]Write to MH i2c: 01 00 00 8F 07 96 [16:35:19]Write i2c OK [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: 01 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: 01 07 00 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: 01 07 00 8F 07 00 02 00 00 00 FF 0F AD [16:35:19]state=3 [16:35:19]Cover opened [16:35:24]OFD Sender: No OFD packet to send [16:35:24]Write to MH i2c: 01 00 00 90 07 97 [16:35:24]Write i2c OK [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: 01 [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: 01 07 00 [16:35:24]MH_I2C_Read... [16:35:24]Read from MH i2c: 01 07 00 90 07 00 02 00 00 00 FF 0F AE [16:35:24]state=3 [16:35:24]Cover opened [16:35:29]OFD Sender: No OFD packet to send [16:35:29]Write to MH i2c: 01 00 00 91 07 98 [16:35:29]Write i2c OK [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: 01 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: 01 07 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: 01 07 00 91 07 00 02 00 00 00 FF 0F AF [16:35:29]state=3 [16:35:29]Cover opened [16:35:34]OFD Sender: No OFD packet to send [16:35:34]Write to MH i2c: 01 00 00 92 07 99 [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: 01 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: 01 07 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: 01 07 00 92 07 00 02 00 00 00 FF 0F B0 [16:35:34]state=3 [16:35:34]Cover opened [16:35:39]OFD Sender: No OFD packet to send [16:35:39]Write to MH i2c: 01 00 00 93 07 9A [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: 01 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: 01 07 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: 01 07 00 93 07 00 02 00 00 00 FF 0F B1 [16:35:39]state=3 [16:35:39]Cover opened [16:35:44]OFD Sender: No OFD packet to send [16:35:44]Write to MH i2c: 01 00 00 94 07 9B [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 94 07 00 02 00 00 00 FF 0F B2 [16:35:44]state=3 [16:35:44]Cover opened [16:35:49]OFD Sender: No OFD packet to send [16:35:49]Write to MH i2c: 01 00 00 95 07 9C [16:35:49]Write i2c OK [16:35:49]MH_I2C_Read... [16:35:49]Read from MH i2c: 01 [16:35:49]MH_I2C_Read... [16:35:49]Read from MH i2c: 01 07 00 [16:35:49]MH_I2C_Read... [16:35:49]Read from MH i2c: 01 07 00 95 07 00 02 00 00 00 FF 0F B3 [16:35:49]state=3 [16:35:49]Cover opened [16:35:54]OFD Sender: No OFD packet to send [16:35:54]Write to MH i2c: 01 00 00 96 07 9D [16:35:54]Write i2c OK [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: 01 [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: 01 07 00 [16:35:54]MH_I2C_Read... [16:35:54]Read from MH i2c: 01 07 00 96 07 00 02 00 00 00 FF 0F B4 [16:35:54]state=3 [16:35:54]Cover opened [16:35:59]OFD Sender: No OFD packet to send [16:35:59]Write to MH i2c: 01 00 00 97 07 9E [16:35:59]Write i2c OK [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: 01 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: 01 07 00 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: 01 07 00 97 07 00 02 00 00 00 FF 0F B5 [16:35:59]state=3 [16:35:59]Cover opened [16:36:04]OFD Sender: No OFD packet to send [16:36:04]Write to MH i2c: 01 00 00 98 07 9F [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 07 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: 01 07 00 98 07 00 02 00 00 00 FF 0F B6 [16:36:04]state=3 [16:36:04]Cover opened [16:36:09]OFD Sender: No OFD packet to send [16:36:09]Write to MH i2c: 01 00 00 99 07 A0 [16:36:09]Write i2c OK [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: 01 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: 01 07 00 [16:36:09]MH_I2C_Read... [16:36:09]Read from MH i2c: 01 07 00 99 07 00 02 00 00 00 FF 0F B7 [16:36:09]state=3 [16:36:09]Cover opened [16:36:14]OFD Sender: No OFD packet to send [16:36:14]Write to MH i2c: 01 00 00 9A 07 A1 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 9A 07 00 02 00 00 00 FF 0F B8 [16:36:14]state=3 [16:36:14]Cover opened [16:36:19]OFD Sender: No OFD packet to send [16:36:19]Write to MH i2c: 01 00 00 9B 07 A2 [16:36:19]Write i2c OK [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: 01 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: 01 07 00 [16:36:19]MH_I2C_Read... [16:36:19]Read from MH i2c: 01 07 00 9B 07 00 02 00 00 00 FF 0F B9 [16:36:19]state=3 [16:36:19]Cover opened [16:36:24]OFD Sender: No OFD packet to send [16:36:24]Write to MH i2c: 01 00 00 9C 07 A3 [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: 01 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: 01 07 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: 01 07 00 9C 07 00 02 00 00 00 FF 0F BA [16:36:24]state=3 [16:36:24]Cover opened [16:36:29]OFD Sender: No OFD packet to send [16:36:29]Write to MH i2c: 01 00 00 9D 07 A4 [16:36:29]Write i2c OK [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: 01 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: 01 07 00 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: 01 07 00 9D 07 00 02 00 00 00 FF 0F BB [16:36:29]state=3 [16:36:29]Cover opened [16:36:34]OFD Sender: No OFD packet to send [16:36:34]Write to MH i2c: 01 00 00 9E 07 A5 [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: 01 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: 01 07 00 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: 01 07 00 9E 07 00 02 00 00 00 FF 0F BC [16:36:34]state=3 [16:36:34]Cover opened [16:36:39]OFD Sender: No OFD packet to send [16:36:39]Write to MH i2c: 01 00 00 9F 07 A6 [16:36:39]Write i2c OK [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: 01 [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: 01 07 00 [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: 01 07 00 9F 07 00 02 00 00 00 FF 0F BD [16:36:39]state=3 [16:36:39]Cover opened [16:36:44]OFD Sender: No OFD packet to send [16:36:44]Write to MH i2c: 01 00 00 A0 07 A7 [16:36:44]Write i2c OK [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 07 00 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 07 00 A0 07 00 02 00 00 00 FF 0F BE [16:36:44]state=3 [16:36:44]Cover opened [16:36:46]int [16:36:46]Write to MH i2c: 01 00 00 A1 07 A8 [16:36:46]*** FLAG_PRN_PAP1 set [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 A1 07 00 03 00 00 00 FF 0F C0 [16:36:46]state=3 [16:36:46]No paper [16:36:46]Cover opened [16:36:49]OFD Sender: No OFD packet to send [16:36:51]Write to MH i2c: 01 00 00 A2 07 A9 [16:36:51]Write i2c OK [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: 01 [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: 01 07 00 [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: 01 07 00 A2 07 00 03 00 00 00 FF 0F C1 [16:36:51]state=3 [16:36:51]No paper [16:36:51]Cover opened [16:36:54]OFD Sender: No OFD packet to send [16:36:55]int [16:36:55]Write to MH i2c: 01 00 00 A3 07 AA [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: 01 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: 01 07 00 [16:36:55]MH_I2C_Read... [16:36:55]*** FLAG_PRN_PAP1 reset [16:36:55]*** FLAG_PRN_PAP2 reset [16:36:55]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [16:36:55]state=3 [16:36:55]Cover closed [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:46]accept exits with 7 [16:37:46]New connection [16:37:46]New thread 3066826084 created [16:37:46]Thread 3066969444 joined [16:37:46]Waiting for new connection... [16:37:46] Sock 7.Parse request [16:37:46]Sock 7.Check first char [16:37:46]Sock 7.First char is OK [16:37:46]request: POST /json_proto HTTP/1.0 [16:37:46]Method: POST [16:37:46]URL: /json_proto [16:37:46]Method is POST - this is cgi request [16:37:46]url: /json_proto [16:37:46]query_string will be loaded in cgi processing [16:37:46]execute_cgi json_proto POST (null) [16:37:46]execute_cgi path=json_proto method=POST [16:37:46]POST find Content-Length [16:37:46]Host: 172.17.44.67:8080 [16:37:46]Content-Length: 754 [16:37:46]Content-Type: application/json [16:37:46] [16:37:46]POST finish read [16:37:46]Found Content-Length = 754 [16:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:46]execute_script... [16:37: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)918895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:46]POST & json_proto [16:37:46]process_json_proto [16:37:46]json parsed OK: [16:37:46]protocol is kg_v1.0 [16:37:46]action value=close_receipt [16:37:46]process_action close_receipt [16:37:46]cmd_close_receipt [16:37:46]MH_GetDate [16:37:46]Write to MH i2c: F0 00 00 A4 07 9A [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: F0 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: F0 09 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: F0 09 00 A4 07 00 DB 8E 12 67 F1 C7 6B 64 0C [16:37:46]GetLastDocTimeStamp 1729269067 [16:37:46]current date 1729269467 [16:37:46]FM_GetShiftState [16:37:46]SAM_PROTO_GetShiftState [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 13 01 00 [16:37:46]Write to MH i2c: E2 08 00 A5 07 80 13 01 00 00 00 00 00 29 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0E 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0E 00 A5 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FB [16:37:46]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:37:46]wFMCommunicate OK [16:37:46]SAM_PROTO_GetShiftState done [16:37:46]FM_GetShiftState done [16:37:46]opened in 1729212319 [16:37:46]opened+sec_in_day 1729298719 [16:37:46]quantity*price = 0 [16:37:46]sum+1 = 1 [16:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 112 18.10.2024 16:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30085957 ФМ: 0000000000871843 ФД: 82403 ФПД: 267666794990655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T163747&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82403&fm=267666794990655&tin=02508201610067®Number=0000000000091680&sum=0 [16:37:47]StoreToDocumentArchive [16:37:47]shift 526 fd 82403 [16:37:47]save to /storage/0526/doc_00082403 [16:37:47]save last doc name /storage/0526/doc_00082403 to /storage/kkm_last_doc_name [16:37:47]save OK [16:37:47]Clear old archive folders... [16:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:47]tlvbuf is 00DBDC60 [16:37:47]SAM_PROTO_ClearQueue [16:37:47]wFMCommunicate request_size=4 [16:37:47]MH_SAM_APDU [16:37:47]CAPDU: 80 09 00 00 [16:37:47]Write to MH i2c: E2 08 00 B2 07 80 09 00 00 00 00 00 00 2B [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [16:37:47]RAPDU: 90 00 [16:37:47]wFMCommunicate OK [16:37:47]SAM_PROTO_ClearQueue done [16:37:47]KKMCreateOFDPacket [16:37:47]OFDProtocolAddRootSTLVToBuf [16:37:47]FM_MakeSignedData [16:37:47]FM_MakeSignedData [16:37:47]SAM_PROTO_SignData [16:37:47]wFMCommunicate request_size=4 [16:37:47]MH_SAM_APDU [16:37:47]CAPDU: 80 0D 01 02 [16:37:47]Write to MH i2c: E2 08 00 B3 07 80 0D 01 02 00 00 00 00 33 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [16:37:47]RAPDU: 90 00 [16:37:47]wFMCommunicate OK [16:37:47]wFMCommunicate request_size=255 [16:37:47]MH_SAM_APDU [16:37: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DB 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 41 01 00 35 04 06 00 F3 [16:37:47]Write to MH i2c: E2 02 01 B4 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DB 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 41 01 00 35 04 06 00 F3 00 00 22 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [16:37:47]RAPDU: 90 00 [16:37:47]wFMCommunicate OK [16:37:47]wFMCommunicate request_size=10 [16:37:47]MH_SAM_APDU [16:37:47]CAPDU: 80 0D 02 02 05 71 08 3B CC 3F [16:37:47]Write to MH i2c: E2 0D 00 B5 07 80 0D 02 02 05 00 71 08 3B CC 3F 00 00 FF [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [16:37:47]RAPDU: 90 00 [16:37:47]wFMCommunicate OK [16:37:47]wFMCommunicate request_size=4 [16:37:47]MH_SAM_APDU [16:37:47]CAPDU: 80 0D 03 02 [16:37:47]Write to MH i2c: E2 08 00 B6 07 80 0D 03 02 00 00 00 00 38 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 0B 00 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 0B 00 B6 07 00 A8 EA 91 9E B3 F1 45 A6 90 00 89 [16:37:47]RAPDU: A8 EA 91 9E B3 F1 45 A6 90 00 [16:37:47]wFMCommunicate OK [16:37:47]SAM_PROTO_SignData done [16:37:47]FM_MakeSignedData done [16:37:47]CreateOFDProtocolMessage [16:37:47]wFMCommunicate request_size=4 [16:37:47]MH_SAM_APDU [16:37:47]CAPDU: 80 11 00 00 [16:37:47]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [16:37:47]Write i2c OK [16:37:47]MH_I2C_Read... [16:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:47]Read from MH i2c: E2 [16:37:47]MH_I2C_Read... [16:37:47]Read from MH i2c: E2 17 00 [16:37:47]MH_I2C_Read... [16:37:48]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8A [16:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:37:48]wFMCommunicate OK [16:37:48]CreateOFDProtocolMessage done [16:37:48]OFDSenderStorePacket 82403 [16:37:48]StoreOFDPacket docnum=82403 [16:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DE C4 07 01 B5 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DB 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 41 01 00 35 04 06 00 F3 71 08 3B CC 3F A8 EA 91 9E B3 F1 45 A6 [16:37:48]CheckFolder [16:37:48]dirname=/storage/ofd_packets [16:37:48]CheckFolder done [16:37:48]ProducePacketName [16:37:48]name=ofd_packets/00082403 [16:37:48]NVStorageSaveData ofd_packets/00082403 [16:37:48]File name is /storage/ofd_packets/00082403 [16:37:48]Write 301 bytes [16:37:48]NVStorageSaveData done [16:37:48]OFDSenderStorePacket done [16:37:48]KKMCreateOFDPacket done [16:37:48]NVStorageSaveData kkm_last_timestamp [16:37:48]File name is /storage/kkm_last_timestamp [16:37:48]Write 4 bytes [16:37:48]NVStorageSaveData done [16:37:48]ExternCall_PrintAddStr [16:37:48]wPrintStart [16:37:48]Write to MH i2c: 01 00 00 B8 07 BF [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 B8 07 00 00 00 00 00 FF 0F D4 [16:37:48]RasterBufferAndPrint [16:37:48]line Счет N : (1)918895 [16:37:48]line ИНН: 02508201610067 [16:37:48]line Контрольно-Кассовый Чек [16:37:48]line ПРОДАЖА [16:37:48]line ТРК (МРК, ГНК) : 22 [16:37:48]line Товар: 2710124130 [16:37:48]line Аи-92-К-4 [16:37:48]line 20.000 * 0.00 [16:37:48]line = 0.00 [16:37:48]line НДС 12% НСП 1% [16:37:48]line > о реализуемом товаре [16:37:48]line ИТОГО: 0.00 [16:37:48]line НСП 1% : 0.00 [16:37:48]line НДС 12% : 0.00 [16:37:48]line Наличными: 0.00 [16:37:48]line Безнал.: 0.00 [16:37:48]line Место: АЗС № 114 "Партнер Нефть" [16:37:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:37:48]line СНО: Общий режим [16:37:48]line Чек 112 18.10.2024 16:37 [16:37:48]line Смена: 526 ФФД: 1.0 [16:37:48]line ЗНМ: 0300000086 [16:37:48]line РНМ: 0000000000091680 [16:37:48]line Версия ККМ: 001 [16:37:48]line Талоны: ТК ГПНА Online [16:37:48]line 30085957 [16:37:48]line ФМ: 0000000000871843 [16:37:48]line ФД: 82403 [16:37:48]line ФПД: 267666794990655 [16:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T163747&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82403&fm=267666794990655&tin=02508201610067®Number=0000000000091680&sum=0 [16:37:48]OFD Sender: Processing packet 82403 [packets to send 254, broken 253] [16:37:48]ProducePacketName [16:37:48]name=ofd_packets/00082403 [16:37:48]OFD Sender: To server: pG, [16:37:48]CommunicateWithHost lk.salyk.kg:30040 [16:37:48]ConnectInit lk.salyk.kg [16:37:48]written 0, free lines is 4095 [16:37:48]Write to MH i2c: 01 00 00 E2 07 E9 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: 01 07 00 E2 07 00 00 00 00 00 E6 0C E2 [16:37:48]RasterBufferAndPrint [16:37:48]line [16:37:48]line [16:37:48]line [16:37:48]line [16:37:48]line [16:37:48]written 0, free lines is 3305 [16:37:48]MH_Cut [16:37:48]Write to MH i2c: D1 01 00 E9 07 01 C2 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: D1 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: D1 01 00 [16:37:48]MH_I2C_Read... [16:37:48]Read from MH i2c: D1 01 00 E9 07 00 C1 [16:37:48]Write to MH i2c: 01 00 00 EA 07 F1 [16:37:48]Write i2c OK [16:37:48]MH_I2C_Read... [16:37:49]*** Cut start [16:37:49]*** Partial cut [16:37:49]*** CUTSNS_PIN = 1 [16:37:49]*** CUTSNS_PIN = 0 [16:37:49]*** Brake cut motor [16:37:50]Read from MH i2c: 01 [16:37:50]MH_I2C_Read... [16:37:50]*** Stop cut motor [16:37:50]*** Cut end [16:37:50]Read from MH i2c: 01 07 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 FF 0F 06 [16:37:50]process_action close_receipt done [16:37:50]requested_data is exist [16:37:50]produce_requested_data [16:37:50]requested_item fm.sn is exist - process it [16:37:50]wFMCommunicate request_size=4 [16:37:50]MH_SAM_APDU [16:37:50]CAPDU: 80 11 00 00 [16:37:50]Write to MH i2c: E2 08 00 EB 07 80 11 00 00 00 00 00 00 6C [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:50]Read from MH i2c: E2 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 17 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 17 00 EB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BE [16:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:37:50]wFMCommunicate OK [16:37:50]requested_item fd.num is exist - process it [16:37:50]SAM_PROTO_GetFieldsCounters [16:37:50]wFMCommunicate request_size=4 [16:37:50]MH_SAM_APDU [16:37:50]CAPDU: 80 13 00 00 [16:37:50]Write to MH i2c: E2 08 00 EC 07 80 13 00 00 00 00 00 00 6F [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:50]Read from MH i2c: E2 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 62 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 62 00 EC 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [16:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:50]wFMCommunicate OK [16:37:50]SAM_PROTO_GetFieldsCounters done [16:37:50]requested_item shift.num is exist - process it [16:37:50]requested_item shift.opened is exist - process it [16:37:50]req_shift_opened [16:37:50]FM_GetShiftState [16:37:50]SAM_PROTO_GetShiftState [16:37:50]wFMCommunicate request_size=4 [16:37:50]MH_SAM_APDU [16:37:50]CAPDU: 80 13 01 00 [16:37:50]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:50]Read from MH i2c: E2 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 0E 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 43 [16:37:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:37:50]wFMCommunicate OK [16:37:50]SAM_PROTO_GetShiftState done [16:37:50]FM_GetShiftState done [16:37:50]req_shift_opened done [16:37:50]requested_item shift.open_date is exist - process it [16:37:50]req_shift_open_date [16:37:50]req_shift_open_date done [16:37:50]produce_requested_data done [16:37:50]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82403,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:37:50]process_action_free close_receipt [16:37:50]json_value_free [16:37:50]json_value_free done [16:37:50]process_json_proto returns [16:37:50]Send response to host [16:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82403,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:37:50]free response buf [16:37:50]execute_script done [16:37:50]execute_script returns [16:37:50]free content buf [16:37:50]Sock 7.Close socket [16:37:50]Sock 7.Thread stoped [16:37:50]Connected sock=11 [16:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DE C4 07 01 B5 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DB 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E3 41 01 00 35 04 06 00 F3 71 08 3B CC 3F A8 EA 91 9E B3 F1 45 A6 [16:37:50]accept exits with 9 [16:37:50]New connection [16:37:50]New thread 3066969444 created [16:37:50]Thread 3066826084 joined [16:37:50]Waiting for new connection... [16:37:50] Sock 9.Parse request [16:37:50]Sock 9.Check first char [16:37:50]Sock 9.First char is OK [16:37:50]request: POST /json_proto HTTP/1.0 [16:37:50]Method: POST [16:37:50]URL: /json_proto [16:37:50]Method is POST - this is cgi request [16:37:50]url: /json_proto [16:37:50]query_string will be loaded in cgi processing [16:37:50]execute_cgi json_proto POST (null) [16:37:50]execute_cgi path=json_proto method=POST [16:37:50]POST find Content-Length [16:37:50]Host: 172.17.44.67:8080 [16:37:50]Content-Length: 754 [16:37:50]Content-Type: application/json [16:37:50] [16:37:50]POST finish read [16:37:50]Found Content-Length = 754 [16:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:50]execute_script... [16:37: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)918896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:50]POST & json_proto [16:37:50]process_json_proto [16:37:50]json parsed OK: [16:37:50]protocol is kg_v1.0 [16:37:50]action value=close_receipt [16:37:50]process_action close_receipt [16:37:50]cmd_close_receipt [16:37:50]MH_GetDate [16:37:50]Write to MH i2c: F0 00 00 EE 07 E4 [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: F0 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: F0 09 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: F0 09 00 EE 07 00 E0 8E 12 67 F1 C7 6B 64 5B [16:37:50]GetLastDocTimeStamp 1729269467 [16:37:50]current date 1729269472 [16:37:50]FM_GetShiftState [16:37:50]SAM_PROTO_GetShiftState [16:37:50]wFMCommunicate request_size=4 [16:37:50]MH_SAM_APDU [16:37:50]CAPDU: 80 13 01 00 [16:37:50]Write to MH i2c: E2 08 00 EF 07 80 13 01 00 00 00 00 00 73 [16:37:50]Write i2c OK [16:37:50]MH_I2C_Read... [16:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:50]Read from MH i2c: E2 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 0E 00 [16:37:50]MH_I2C_Read... [16:37:50]Read from MH i2c: E2 0E 00 EF 07 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 45 [16:37:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:37:50]wFMCommunicate OK [16:37:50]SAM_PROTO_GetShiftState done [16:37:50]FM_GetShiftState done [16:37:50]opened in 1729212319 [16:37:50]opened+sec_in_day 1729298719 [16:37:50]quantity*price = 0 [16:37:50]sum+1 = 1 [16:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 113 18.10.2024 16:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30085957 ФМ: 0000000000871843 ФД: 82404 ФПД: 15515236006486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T163752&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82404&fm=15515236006486&tin=02508201610067®Number=0000000000091680&sum=0 [16:37:52]StoreToDocumentArchive [16:37:52]shift 526 fd 82404 [16:37:52]save to /storage/0526/doc_00082404 [16:37:52]save last doc name /storage/0526/doc_00082404 to /storage/kkm_last_doc_name [16:37:52]save OK [16:37:52]Clear old archive folders... [16:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:52]tlvbuf is B6F5C660 [16:37:52]SAM_PROTO_ClearQueue [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 09 00 00 [16:37:52]Write to MH i2c: E2 08 00 FC 07 80 09 00 00 00 00 00 00 75 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_ClearQueue done [16:37:52]KKMCreateOFDPacket [16:37:52]OFDProtocolAddRootSTLVToBuf [16:37:52]FM_MakeSignedData [16:37:52]FM_MakeSignedData [16:37:52]SAM_PROTO_SignData [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 0D 01 02 [16:37:52]Write to MH i2c: E2 08 00 FD 07 80 0D 01 02 00 00 00 00 7D [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]wFMCommunicate request_size=255 [16:37:52]MH_SAM_APDU [16:37: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 41 01 00 35 04 06 00 0E [16:37:52]Write to MH i2c: E2 02 01 FE 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 41 01 00 35 04 06 00 0E 00 00 C0 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]wFMCommunicate request_size=10 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 0D 02 02 05 1C 6C 21 7A 56 [16:37:52]Write to MH i2c: E2 0D 00 FF 07 80 0D 02 02 05 00 1C 6C 21 7A 56 00 00 03 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 0D 03 02 [16:37:52]Write to MH i2c: E2 08 00 00 08 80 0D 03 02 00 00 00 00 83 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0B 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0B 00 00 08 00 AC 0C 5C 3B FA 23 77 51 90 00 B8 [16:37:52]RAPDU: AC 0C 5C 3B FA 23 77 51 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_SignData done [16:37:52]FM_MakeSignedData done [16:37:52]CreateOFDProtocolMessage [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 11 00 00 [16:37:52]Write to MH i2c: E2 08 00 01 08 80 11 00 00 00 00 00 00 83 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 17 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 17 00 01 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D5 [16:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:37:53]wFMCommunicate OK [16:37:53]CreateOFDProtocolMessage done [16:37:53]OFDSenderStorePacket 82404 [16:37:53]StoreOFDPacket docnum=82404 [16:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C4 18 07 01 BE 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 41 01 00 35 04 06 00 0E 1C 6C 21 7A 56 AC 0C 5C 3B FA 23 77 51 [16:37:53]CheckFolder [16:37:53]dirname=/storage/ofd_packets [16:37:53]CheckFolder done [16:37:53]ProducePacketName [16:37:53]name=ofd_packets/00082404 [16:37:53]NVStorageSaveData ofd_packets/00082404 [16:37:53]File name is /storage/ofd_packets/00082404 [16:37:53]Write 301 bytes [16:37:53]NVStorageSaveData done [16:37:53]OFDSenderStorePacket done [16:37:53]KKMCreateOFDPacket done [16:37:53]NVStorageSaveData kkm_last_timestamp [16:37:53]File name is /storage/kkm_last_timestamp [16:37:53]Write 4 bytes [16:37:53]NVStorageSaveData done [16:37:53]ExternCall_PrintAddStr [16:37:53]wPrintStart [16:37:53]Write to MH i2c: 01 00 00 02 08 0A [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [16:37:53]RasterBufferAndPrint [16:37:53]line Счет N : (1)918896 [16:37:53]line ИНН: 02508201610067 [16:37:53]line Контрольно-Кассовый Чек [16:37:53]line ПРОДАЖА [16:37:53]line ТРК (МРК, ГНК) : 11 [16:37:53]line Товар: 2710124130 [16:37:53]line Аи-92-К-4 [16:37:53]line 14.950 * 0.00 [16:37:53]line = 0.00 [16:37:53]line НДС 12% НСП 1% [16:37:53]line > о реализуемом товаре [16:37:53]line ИТОГО: 0.00 [16:37:53]line НСП 1% : 0.00 [16:37:53]line НДС 12% : 0.00 [16:37:53]line Наличными: 0.00 [16:37:53]line Безнал.: 0.00 [16:37:53]line Место: АЗС № 114 "Партнер Нефть" [16:37:53]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:37:53]line СНО: Общий режим [16:37:53]recv_with_timeout no data received [16:37:53]line Чек 113 18.10.2024 16:37 [16:37:53]line Смена: 526 ФФД: 1.0 [16:37:53]line ЗНМ: 0300000086 [16:37:53]line РНМ: 0000000000091680 [16:37:53]line Версия ККМ: 001 [16:37:53]line Талоны: ТК ГПНА Online [16:37:53]line 30085957 [16:37:53]line ФМ: 0000000000871843 [16:37:53]line ФД: 82404 [16:37:53]line ФПД: 15515236006486 [16:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T163752&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82404&fm=15515236006486&tin=02508201610067®Number=0000000000091680&sum=0 [16:37:53]OFD Sender: Processing packet 82404 [packets to send 254, broken 253] [16:37:53]ProducePacketName [16:37:53]name=ofd_packets/00082404 [16:37:53]OFD Sender: To server: pG, [16:37:53]CommunicateWithHost lk.salyk.kg:30040 [16:37:53]ConnectInit lk.salyk.kg [16:37:53]written 0, free lines is 4095 [16:37:53]Write to MH i2c: 01 00 00 2C 08 34 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 E6 0C 2D [16:37:53]RasterBufferAndPrint [16:37:53]line [16:37:53]line [16:37:53]line [16:37:53]line [16:37:53]line [16:37:53]written 0, free lines is 3315 [16:37:53]MH_Cut [16:37:53]Write to MH i2c: D1 01 00 33 08 01 0D [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: D1 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: D1 01 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: D1 01 00 33 08 00 0C [16:37:53]Write to MH i2c: 01 00 00 34 08 3C [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:54]Connected sock=10 [16:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C4 18 07 01 BE 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E0 8E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 41 01 00 35 04 06 00 0E 1C 6C 21 7A 56 AC 0C 5C 3B FA 23 77 51 [16:37:54]*** Cut start [16:37:54]*** Partial cut [16:37:54]*** CUTSNS_PIN = 1 [16:37:54]*** CUTSNS_PIN = 0 [16:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F4 3A 47 00 C1 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E4 41 01 00 F4 03 04 00 1B 34 12 67 B6 04 01 00 00 34 84 94 EB 94 A6 19 93 [16:37:54]CommunicateWithHost err = 0 [16:37:54]CheckOFDResponse [16:37:54]1017 (14) - 77093643461234 [16:37:54]1041 (16) - 0000000000871843 [16:37:54]1040 (4) - 82404 [16:37:54]1012 (4) - 18.10.2024 10:10 [16:37:54]1206 (1) - 0 [16:37:54]OFD Sender: Remove packet 82404 [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00082404 [16:37:54]NVStorageDeleteData [16:37:54]*** Brake cut motor [16:37:55]Read from MH i2c: 01 [16:37:55]MH_I2C_Read... [16:37:55]*** Stop cut motor [16:37:55]*** Cut end [16:37:55]Read from MH i2c: 01 07 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [16:37:55]process_action close_receipt done [16:37:55]requested_data is exist [16:37:55]produce_requested_data [16:37:55]requested_item fm.sn is exist - process it [16:37:55]wFMCommunicate request_size=4 [16:37:55]MH_SAM_APDU [16:37:55]CAPDU: 80 11 00 00 [16:37:55]Write to MH i2c: E2 08 00 35 08 80 11 00 00 00 00 00 00 B7 [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:55]Read from MH i2c: E2 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 17 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 17 00 35 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 09 [16:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:37:55]wFMCommunicate OK [16:37:55]requested_item fd.num is exist - process it [16:37:55]SAM_PROTO_GetFieldsCounters [16:37:55]wFMCommunicate request_size=4 [16:37:55]MH_SAM_APDU [16:37:55]CAPDU: 80 13 00 00 [16:37:55]Write to MH i2c: E2 08 00 36 08 80 13 00 00 00 00 00 00 BA [16:37:55]OFD Sender: No OFD packet to send [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:55]Read from MH i2c: E2 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 62 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 62 00 36 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [16:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:55]wFMCommunicate OK [16:37:55]SAM_PROTO_GetFieldsCounters done [16:37:55]requested_item shift.num is exist - process it [16:37:55]requested_item shift.opened is exist - process it [16:37:55]req_shift_opened [16:37:55]FM_GetShiftState [16:37:55]SAM_PROTO_GetShiftState [16:37:55]wFMCommunicate request_size=4 [16:37:55]MH_SAM_APDU [16:37:55]CAPDU: 80 13 01 00 [16:37:55]Write to MH i2c: E2 08 00 37 08 80 13 01 00 00 00 00 00 BC [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:55]Read from MH i2c: E2 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 0E 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: E2 0E 00 37 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8E [16:37:55]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:37:55]wFMCommunicate OK [16:37:55]SAM_PROTO_GetShiftState done [16:37:55]FM_GetShiftState done [16:37:55]req_shift_opened done [16:37:55]requested_item shift.open_date is exist - process it [16:37:55]req_shift_open_date [16:37:55]req_shift_open_date done [16:37:55]produce_requested_data done [16:37:55]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82404,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:37:55]process_action_free close_receipt [16:37:55]json_value_free [16:37:55]json_value_free done [16:37:55]process_json_proto returns [16:37:55]Send response to host [16:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82404,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:37:55]free response buf [16:37:55]execute_script done [16:37:55]execute_script returns [16:37:55]free content buf [16:37:55]Sock 9.Close socket [16:37:55]Sock 9.Thread stoped [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:28]recv_with_timeout no data received [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:53]recv_with_timeout no data received [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]accept exits with 7 [16:41:10]New connection [16:41:10]New thread 3066826084 created [16:41:10]Thread 3066969444 joined [16:41:10]Waiting for new connection... [16:41:10] Sock 7.Parse request [16:41:10]Sock 7.Check first char [16:41:10]Sock 7.First char is OK [16:41:10]request: POST /json_proto HTTP/1.0 [16:41:10]Method: POST [16:41:10]URL: /json_proto [16:41:10]Method is POST - this is cgi request [16:41:10]url: /json_proto [16:41:10]query_string will be loaded in cgi processing [16:41:10]execute_cgi json_proto POST (null) [16:41:10]execute_cgi path=json_proto method=POST [16:41:10]POST find Content-Length [16:41:10]Host: 172.17.44.67:8080 [16:41:10]Content-Length: 682 [16:41:10]Content-Type: application/json [16:41:10] [16:41:10]POST finish read [16:41:10]Found Content-Length = 682 [16:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:10]execute_script... [16:41: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)918897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:10]POST & json_proto [16:41:10]process_json_proto [16:41:10]json parsed OK: [16:41:10]protocol is kg_v1.0 [16:41:10]action value=close_receipt [16:41:10]process_action close_receipt [16:41:10]cmd_close_receipt [16:41:10]MH_GetDate [16:41:10]Write to MH i2c: F0 00 00 38 08 2F [16:41:10]Write i2c OK [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: F0 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: F0 09 00 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: F0 09 00 38 08 00 A7 8F 12 67 F1 C7 6B 64 6E [16:41:10]GetLastDocTimeStamp 1729269472 [16:41:10]current date 1729269671 [16:41:10]FM_GetShiftState [16:41:10]SAM_PROTO_GetShiftState [16:41:10]wFMCommunicate request_size=4 [16:41:10]MH_SAM_APDU [16:41:10]CAPDU: 80 13 01 00 [16:41:10]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [16:41:10]Write i2c OK [16:41:10]MH_I2C_Read... [16:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:10]Read from MH i2c: E2 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: E2 0E 00 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 90 [16:41:10]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:41:10]wFMCommunicate OK [16:41:10]SAM_PROTO_GetShiftState done [16:41:10]FM_GetShiftState done [16:41:10]opened in 1729212319 [16:41:10]opened+sec_in_day 1729298719 [16:41:10]quantity*price = 100015 [16:41:10]sum+1 = 100017 [16:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 114 18.10.2024 16:41 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82405 ФПД: 183956427787730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164111&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82405&fm=183956427787730&tin=02508201610067®Number=0000000000091680&sum=100000 [16:41:11]StoreToDocumentArchive [16:41:11]shift 526 fd 82405 [16:41:11]save to /storage/0526/doc_00082405 [16:41:11]save last doc name /storage/0526/doc_00082405 to /storage/kkm_last_doc_name [16:41:11]save OK [16:41:11]Clear old archive folders... [16:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:11]tlvbuf is 00DAAAD0 [16:41:11]SAM_PROTO_ClearQueue [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 09 00 00 [16:41:11]Write to MH i2c: E2 08 00 46 08 80 09 00 00 00 00 00 00 C0 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]SAM_PROTO_ClearQueue done [16:41:11]KKMCreateOFDPacket [16:41:11]OFDProtocolAddRootSTLVToBuf [16:41:11]FM_MakeSignedData [16:41:11]FM_MakeSignedData [16:41:11]SAM_PROTO_SignData [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 0D 01 02 [16:41:11]Write to MH i2c: E2 08 00 47 08 80 0D 01 02 00 00 00 00 C8 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]wFMCommunicate request_size=255 [16:41:11]MH_SAM_APDU [16:41: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A7 8F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 41 01 00 35 04 06 00 A7 [16:41:11]Write to MH i2c: E2 02 01 48 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A7 8F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 41 01 00 35 04 06 00 A7 00 00 4D [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]wFMCommunicate request_size=10 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 0D 02 02 05 4E B1 88 4D D2 [16:41:11]Write to MH i2c: E2 0D 00 49 08 80 0D 02 02 05 00 4E B1 88 4D D2 00 00 7B [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [16:41:11]RAPDU: 90 00 [16:41:11]wFMCommunicate OK [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 0D 03 02 [16:41:11]Write to MH i2c: E2 08 00 4A 08 80 0D 03 02 00 00 00 00 CD [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 0B 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 0B 00 4A 08 00 F1 0E F4 14 B8 13 0D 14 90 00 C1 [16:41:11]RAPDU: F1 0E F4 14 B8 13 0D 14 90 00 [16:41:11]wFMCommunicate OK [16:41:11]SAM_PROTO_SignData done [16:41:11]FM_MakeSignedData done [16:41:11]CreateOFDProtocolMessage [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 11 00 00 [16:41:11]Write to MH i2c: E2 08 00 4B 08 80 11 00 00 00 00 00 00 CD [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 17 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 17 00 4B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1F [16:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:41:11]wFMCommunicate OK [16:41:11]CreateOFDProtocolMessage done [16:41:11]OFDSenderStorePacket 82405 [16:41:11]StoreOFDPacket docnum=82405 [16:41:15]1017 (14) - 77093643461234 [16:41:15]1041 (16) - 0000000000871843 [16:41:15]1040 (4) - 82405 [16:41:15]1012 (4) - 18.10.2024 10:13 [16:41:15]1206 (1) - 0 [16:41:15]OFD Sender: Remove packet 82405 [16:41:15]ProducePacketName [16:41:15]name=ofd_packets/00082405 [16:41:15]NVStorageDeleteData [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:28]recv_with_timeout no data received [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:39]recv_with_timeout no data received [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:52]recv_with_timeout no data received [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:05]recv_with_timeout no data received [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:48]accept exits with 10 [16:42:48]New connection [16:42:48]New thread 3066969444 created [16:42:48]Thread 3066826084 joined [16:42:48]Waiting for new connection... [16:42:48] Sock 10.Parse request [16:42:48]Sock 10.Check first char [16:42:48]Sock 10.First char is OK [16:42:48]request: POST /json_proto HTTP/1.0 [16:42:48]Method: POST [16:42:48]URL: /json_proto [16:42:48]Method is POST - this is cgi request [16:42:48]url: /json_proto [16:42:48]query_string will be loaded in cgi processing [16:42:48]execute_cgi json_proto POST (null) [16:42:48]execute_cgi path=json_proto method=POST [16:42:48]POST find Content-Length [16:42:48]Host: 172.17.44.67:8080 [16:42:48]Content-Length: 805 [16:42:48]Content-Type: application/json [16:42:48] [16:42:48]POST finish read [16:42:48]Found Content-Length = 805 [16:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466388", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:48]execute_script... [16:42:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466388", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:48]POST & json_proto [16:42:48]process_json_proto [16:42:48]json parsed OK: [16:42:48]protocol is kg_v1.0 [16:42:48]action value=close_receipt [16:42:48]process_action close_receipt [16:42:48]cmd_close_receipt [16:42:48]MH_GetDate [16:42:48]Write to MH i2c: F0 00 00 83 08 7A [16:42:48]Write i2c OK [16:42:48]MH_I2C_Read... [16:42:48]Read from MH i2c: F0 [16:42:48]MH_I2C_Read... [16:42:48]Read from MH i2c: F0 09 00 [16:42:48]MH_I2C_Read... [16:42:48]Read from MH i2c: F0 09 00 83 08 00 09 90 12 67 F1 C7 6B 64 1C [16:42:48]GetLastDocTimeStamp 1729269671 [16:42:48]current date 1729269769 [16:42:48]FM_GetShiftState [16:42:48]SAM_PROTO_GetShiftState [16:42:48]wFMCommunicate request_size=4 [16:42:48]MH_SAM_APDU [16:42:48]CAPDU: 80 13 01 00 [16:42:48]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [16:42:48]Write i2c OK [16:42:48]MH_I2C_Read... [16:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:48]Read from MH i2c: E2 [16:42:48]MH_I2C_Read... [16:42:48]Read from MH i2c: E2 0E 00 [16:42:48]MH_I2C_Read... [16:42:48]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DB [16:42:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:42:48]wFMCommunicate OK [16:42:48]SAM_PROTO_GetShiftState done [16:42:48]FM_GetShiftState done [16:42:48]opened in 1729212319 [16:42:48]opened+sec_in_day 1729298719 [16:42:48]quantity*price = 0 [16:42:48]sum+1 = 1 [16:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 115 18.10.2024 16:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4466388 ФМ: 0000000000871843 ФД: 82406 ФПД: 27755399333952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164249&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82406&fm=27755399333952&tin=02508201610067®Number=0000000000091680&sum=0 [16:42:49]StoreToDocumentArchive [16:42:49]shift 526 fd 82406 [16:42:49]save to /storage/0526/doc_00082406 [16:42:49]save last doc name /storage/0526/doc_00082406 to /storage/kkm_last_doc_name [16:42:49]save OK [16:42:49]Clear old archive folders... [16:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:42:49]tlvbuf is 00DB2E00 [16:42:49]SAM_PROTO_ClearQueue [16:42:49]wFMCommunicate request_size=4 [16:42:49]MH_SAM_APDU [16:42:49]CAPDU: 80 09 00 00 [16:42:49]Write to MH i2c: E2 08 00 91 08 80 09 00 00 00 00 00 00 0B [16:42:49]Write i2c OK [16:42:49]MH_I2C_Read... [16:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:49]Read from MH i2c: E2 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [16:42:49]RAPDU: 90 00 [16:42:49]wFMCommunicate OK [16:42:49]SAM_PROTO_ClearQueue done [16:42:49]KKMCreateOFDPacket [16:42:49]OFDProtocolAddRootSTLVToBuf [16:42:49]FM_MakeSignedData [16:42:49]FM_MakeSignedData [16:42:49]SAM_PROTO_SignData [16:42:49]wFMCommunicate request_size=4 [16:42:49]MH_SAM_APDU [16:42:49]CAPDU: 80 0D 01 02 [16:42:49]Write to MH i2c: E2 08 00 92 08 80 0D 01 02 00 00 00 00 13 [16:42:49]Write i2c OK [16:42:49]MH_I2C_Read... [16:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:49]Read from MH i2c: E2 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [16:42:49]RAPDU: 90 00 [16:42:49]wFMCommunicate OK [16:42:49]wFMCommunicate request_size=255 [16:42:49]MH_SAM_APDU [16:42:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 09 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 41 01 00 35 04 06 00 [16:42:49]Write to MH i2c: E2 02 01 93 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 09 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 41 01 00 35 04 06 00 00 00 4A [16:42:49]Write i2c OK [16:42:49]MH_I2C_Read... [16:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:49]Read from MH i2c: E2 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [16:42:49]RAPDU: 90 00 [16:42:49]wFMCommunicate OK [16:42:49]wFMCommunicate request_size=11 [16:42:49]MH_SAM_APDU [16:42:49]CAPDU: 80 0D 02 02 06 19 3E 4E B7 C8 40 [16:42:49]Write to MH i2c: E2 0E 00 94 08 80 0D 02 02 06 00 19 3E 4E B7 C8 40 00 00 86 [16:42:49]Write i2c OK [16:42:49]MH_I2C_Read... [16:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:49]Read from MH i2c: E2 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 [16:42:49]MH_I2C_Read... [16:42:49]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [16:42:49]RAPDU: 90 00 [16:42:49]wFMCommunicate OK [16:42:49]wFMCommunicate request_size=4 [16:42:49]MH_SAM_APDU [16:42:49]CAPDU: 80 0D 03 02 [16:42:49]Write to MH i2c: E2 08 00 95 08 80 0D 03 02 00 00 00 00 18 [16:42:49]Write i2c OK [16:42:49]MH_I2C_Read... [16:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:50]Read from MH i2c: E2 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: E2 0B 00 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: E2 0B 00 95 08 00 0E 19 B9 B2 35 93 64 5C 90 00 33 [16:42:50]RAPDU: 0E 19 B9 B2 35 93 64 5C 90 00 [16:42:50]wFMCommunicate OK [16:42:50]SAM_PROTO_SignData done [16:42:50]FM_MakeSignedData done [16:42:50]CreateOFDProtocolMessage [16:42:50]wFMCommunicate request_size=4 [16:42:50]MH_SAM_APDU [16:42:50]CAPDU: 80 11 00 00 [16:42:50]Write to MH i2c: E2 08 00 96 08 80 11 00 00 00 00 00 00 18 [16:42:50]Write i2c OK [16:42:50]MH_I2C_Read... [16:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:50]Read from MH i2c: E2 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: E2 17 00 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: E2 17 00 96 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6A [16:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:42:50]wFMCommunicate OK [16:42:50]CreateOFDProtocolMessage done [16:42:50]OFDSenderStorePacket 82406 [16:42:50]StoreOFDPacket docnum=82406 [16:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 DB 90 08 01 63 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 09 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 41 01 00 35 04 06 00 19 3E 4E B7 C8 40 0E 19 B9 B2 35 93 64 5C [16:42:50]CheckFolder [16:42:50]dirname=/storage/ofd_packets [16:42:50]CheckFolder done [16:42:50]ProducePacketName [16:42:50]name=ofd_packets/00082406 [16:42:50]NVStorageSaveData ofd_packets/00082406 [16:42:50]File name is /storage/ofd_packets/00082406 [16:42:50]Write 302 bytes [16:42:50]NVStorageSaveData done [16:42:50]OFDSenderStorePacket done [16:42:50]KKMCreateOFDPacket done [16:42:50]NVStorageSaveData kkm_last_timestamp [16:42:50]File name is /storage/kkm_last_timestamp [16:42:50]Write 4 bytes [16:42:50]NVStorageSaveData done [16:42:50]ExternCall_PrintAddStr [16:42:50]wPrintStart [16:42:50]Write to MH i2c: 01 00 00 97 08 9F [16:42:50]Write i2c OK [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: 01 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: 01 07 00 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [16:42:50]RasterBufferAndPrint [16:42:50]line Счет N : (1)918898 [16:42:50]line ИНН: 02508201610067 [16:42:50]line Контрольно-Кассовый Чек [16:42:50]line ПРОДАЖА [16:42:50]line ТРК (МРК, ГНК) : 31 [16:42:50]line Товар: 2710194210 [16:42:50]line ДТ(л)-К-5 [16:42:50]line 10.000 * 0.00 [16:42:50]line = 0.00 [16:42:50]line НДС 12% НСП 1% [16:42:50]line > о реализуемом товаре [16:42:50]line ИТОГО: 0.00 [16:42:50]line НСП 1% : 0.00 [16:42:50]line НДС 12% : 0.00 [16:42:50]line Наличными: 0.00 [16:42:50]line Безнал.: 0.00 [16:42:50]line Место: АЗС № 114 "Партнер Нефть" [16:42:50]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:42:50]line СНО: Общий режим [16:42:50]line Чек 115 18.10.2024 16:42 [16:42:50]line Смена: 526 ФФД: 1.0 [16:42:50]line ЗНМ: 0300000086 [16:42:50]line РНМ: 0000000000091680 [16:42:50]line Версия ККМ: 001 [16:42:50]line Талоны: Топливные Талоны [16:42:50]line 4466388 [16:42:50]line ФМ: 0000000000871843 [16:42:50]line ФД: 82406 [16:42:50]line ФПД: 27755399333952 [16:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164249&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82406&fm=27755399333952&tin=02508201610067®Number=0000000000091680&sum=0 [16:42:50]OFD Sender: Processing packet 82406 [packets to send 254, broken 253] [16:42:50]ProducePacketName [16:42:50]name=ofd_packets/00082406 [16:42:50]OFD Sender: To server: pG, [16:42:50]CommunicateWithHost lk.salyk.kg:30040 [16:42:50]ConnectInit lk.salyk.kg [16:42:50]written 0, free lines is 4095 [16:42:50]Write to MH i2c: 01 00 00 C1 08 C9 [16:42:50]Write i2c OK [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: 01 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: 01 07 00 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 E8 0C C4 [16:42:50]RasterBufferAndPrint [16:42:50]line [16:42:50]line [16:42:50]line [16:42:50]line [16:42:50]line [16:42:50]written 0, free lines is 3308 [16:42:50]MH_Cut [16:42:50]Write to MH i2c: D1 01 00 C8 08 01 A2 [16:42:50]Write i2c OK [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: D1 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: D1 01 00 [16:42:50]MH_I2C_Read... [16:42:50]Read from MH i2c: D1 01 00 C8 08 00 A1 [16:42:50]Write to MH i2c: 01 00 00 C9 08 D1 [16:42:50]Write i2c OK [16:42:50]MH_I2C_Read... [16:42:51]*** Cut start [16:42:51]*** Partial cut [16:42:51]*** CUTSNS_PIN = 1 [16:42:51]*** CUTSNS_PIN = 0 [16:42:51]*** Brake cut motor [16:42:52]Read from MH i2c: 01 [16:42:52]MH_I2C_Read... [16:42:52]*** Stop cut motor [16:42:52]*** Cut end [16:42:52]Read from MH i2c: 01 07 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [16:42:52]process_action close_receipt done [16:42:52]requested_data is exist [16:42:52]produce_requested_data [16:42:52]requested_item fm.sn is exist - process it [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 11 00 00 [16:42:52]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]Connected sock=11 [16:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 DB 90 08 01 63 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 09 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 41 01 00 35 04 06 00 19 3E 4E B7 C8 40 0E 19 B9 B2 35 93 64 5C [16:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 17 00 [16:42:52]MH_I2C_Read... [16:42:52]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 31 38 34 33 90 00 9E [16:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:42:52]wFMCommunicate OK [16:42:52]requested_item fd.num is exist - process it [16:42:52]SAM_PROTO_GetFieldsCounters [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 13 00 00 [16:42:52]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 62 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 62 00 CB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:42:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:52]wFMCommunicate OK [16:42:52]SAM_PROTO_GetFieldsCounters done [16:42:52]requested_item shift.num is exist - process it [16:42:52]requested_item shift.opened is exist - process it [16:42:52]req_shift_opened [16:42:52]FM_GetShiftState [16:42:52]SAM_PROTO_GetShiftState [16:42:52]wFMCommunicate request_size=4 [16:42:52]MH_SAM_APDU [16:42:52]CAPDU: 80 13 01 00 [16:42:52]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [16:42:52]Write i2c OK [16:42:52]MH_I2C_Read... [16:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:52]Read from MH i2c: E2 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 0E 00 [16:42:52]MH_I2C_Read... [16:42:52]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 23 [16:42:52]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:42:52]wFMCommunicate OK [16:42:52]SAM_PROTO_GetShiftState done [16:42:52]FM_GetShiftState done [16:42:52]req_shift_opened done [16:42:52]requested_item shift.open_date is exist - process it [16:42:52]req_shift_open_date [16:42:52]req_shift_open_date done [16:42:52]produce_requested_data done [16:42:52]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82406,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:42:52]process_action_free close_receipt [16:42:52]json_value_free [16:42:52]json_value_free done [16:42:52]process_json_proto returns [16:42:52]Send response to host [16:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82406,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:42:52]free response buf [16:42:52]execute_script done [16:42:52]execute_script returns [16:42:52]free content buf [16:42:52]Sock 10.Close socket [16:42:52]Sock 10.Thread stoped [16:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 56 DC 47 00 96 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E6 41 01 00 F4 03 04 00 45 35 12 67 B6 04 01 00 00 52 8A 94 A9 F3 61 1F 71 [16:42:52]CommunicateWithHost err = 0 [16:42:52]CheckOFDResponse [16:42:52]1017 (14) - 77093643461234 [16:42:52]1041 (16) - 0000000000871843 [16:42:52]1040 (4) - 82406 [16:42:52]1012 (4) - 18.10.2024 10:15 [16:42:52]1206 (1) - 0 [16:42:52]OFD Sender: Remove packet 82406 [16:42:52]ProducePacketName [16:42:52]name=ofd_packets/00082406 [16:42:52]NVStorageDeleteData [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:15]recv_with_timeout no data received [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [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:04]accept exits with 7 [16:45:04]New connection [16:45:04]New thread 3066826084 created [16:45:04]Thread 3066969444 joined [16:45:04]Waiting for new connection... [16:45:04] Sock 7.Parse request [16:45:04]Sock 7.Check first char [16:45:04]Sock 7.First char is OK [16:45:04]request: POST /json_proto HTTP/1.0 [16:45:04]Method: POST [16:45:04]URL: /json_proto [16:45:04]Method is POST - this is cgi request [16:45:04]url: /json_proto [16:45:04]query_string will be loaded in cgi processing [16:45:04]execute_cgi json_proto POST (null) [16:45:04]execute_cgi path=json_proto method=POST [16:45:04]POST find Content-Length [16:45:04]Host: 172.17.44.67:8080 [16:45:04]Content-Length: 687 [16:45:04]Content-Type: application/json [16:45:04] [16:45:04]POST finish read [16:45:04]Found Content-Length = 687 [16:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:04]execute_script... [16:45:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:04]POST & json_proto [16:45:04]process_json_proto [16:45:04]json parsed OK: [16:45:04]protocol is kg_v1.0 [16:45:04]action value=close_receipt [16:45:04]process_action close_receipt [16:45:04]cmd_close_receipt [16:45:04]MH_GetDate [16:45:04]Write to MH i2c: F0 00 00 CD 08 C4 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: F0 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: F0 09 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: F0 09 00 CD 08 00 91 90 12 67 F1 C7 6B 64 EE [16:45:04]GetLastDocTimeStamp 1729269769 [16:45:04]current date 1729269905 [16:45:04]FM_GetShiftState [16:45:04]SAM_PROTO_GetShiftState [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 13 01 00 [16:45:04]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 0E 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 25 [16:45:04]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:45:04]wFMCommunicate OK [16:45:04]SAM_PROTO_GetShiftState done [16:45:04]FM_GetShiftState done [16:45:04]opened in 1729212319 [16:45:04]opened+sec_in_day 1729298719 [16:45:04]quantity*price = 130073 [16:45:04]sum+1 = 130074 [16:45:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 116 18.10.2024 16:45 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82407 ФПД: 79030259244121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164505&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82407&fm=79030259244121&tin=02508201610067®Number=0000000000091680&sum=130000 [16:45:05]StoreToDocumentArchive [16:45:05]shift 526 fd 82407 [16:45:05]save to /storage/0526/doc_00082407 [16:45:05]save last doc name /storage/0526/doc_00082407 to /storage/kkm_last_doc_name [16:45:05]save OK [16:45:05]Clear old archive folders... [16:45:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:45:05]tlvbuf is 00DC27F0 [16:45:05]SAM_PROTO_ClearQueue [16:45:05]wFMCommunicate request_size=4 [16:45:05]MH_SAM_APDU [16:45:05]CAPDU: 80 09 00 00 [16:45:05]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:05]Read from MH i2c: E2 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [16:45:05]RAPDU: 90 00 [16:45:05]wFMCommunicate OK [16:45:05]SAM_PROTO_ClearQueue done [16:45:05]KKMCreateOFDPacket [16:45:05]OFDProtocolAddRootSTLVToBuf [16:45:05]FM_MakeSignedData [16:45:05]FM_MakeSignedData [16:45:05]SAM_PROTO_SignData [16:45:05]wFMCommunicate request_size=4 [16:45:05]MH_SAM_APDU [16:45:05]CAPDU: 80 0D 01 02 [16:45:05]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:05]Read from MH i2c: E2 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [16:45:05]RAPDU: 90 00 [16:45:05]wFMCommunicate OK [16:45:05]wFMCommunicate request_size=255 [16:45:05]MH_SAM_APDU [16:45:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 91 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 41 01 00 35 04 06 00 [16:45:05]Write to MH i2c: E2 02 01 DD 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 91 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 41 01 00 35 04 06 00 00 00 13 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:05]Read from MH i2c: E2 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [16:45:05]RAPDU: 90 00 [16:45:05]wFMCommunicate OK [16:45:05]wFMCommunicate request_size=11 [16:45:05]MH_SAM_APDU [16:45:05]CAPDU: 80 0D 02 02 06 47 E0 AA 87 5C 59 [16:45:05]Write to MH i2c: E2 0E 00 DE 08 80 0D 02 02 06 00 47 E0 AA 87 5C 59 00 00 79 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:05]Read from MH i2c: E2 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [16:45:05]RAPDU: 90 00 [16:45:05]wFMCommunicate OK [16:45:05]wFMCommunicate request_size=4 [16:45:05]MH_SAM_APDU [16:45:05]CAPDU: 80 0D 03 02 [16:45:05]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:05]Read from MH i2c: E2 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 0B 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 0B 00 DF 08 00 C4 AD B4 5D 76 3A 03 25 90 00 BD [16:45:05]RAPDU: C4 AD B4 5D 76 3A 03 25 90 00 [16:45:05]wFMCommunicate OK [16:45:05]SAM_PROTO_SignData done [16:45:05]FM_MakeSignedData done [16:45:05]CreateOFDProtocolMessage [16:45:05]wFMCommunicate request_size=4 [16:45:05]MH_SAM_APDU [16:45:05]CAPDU: 80 11 00 00 [16:45:05]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:05]Read from MH i2c: E2 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 17 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B4 [16:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:45:05]wFMCommunicate OK [16:45:05]CreateOFDProtocolMessage done [16:45:05]OFDSenderStorePacket 82407 [16:45:05]StoreOFDPacket docnum=82407 [16:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3F 0A 08 01 14 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 91 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 41 01 00 35 04 06 00 47 E0 AA 87 5C 59 C4 AD B4 5D 76 3A 03 25 [16:45:05]CheckFolder [16:45:05]dirname=/storage/ofd_packets [16:45:05]CheckFolder done [16:45:05]ProducePacketName [16:45:05]name=ofd_packets/00082407 [16:45:05]NVStorageSaveData ofd_packets/00082407 [16:45:05]File name is /storage/ofd_packets/00082407 [16:45:05]Write 302 bytes [16:45:05]NVStorageSaveData done [16:45:05]OFDSenderStorePacket done [16:45:05]KKMCreateOFDPacket done [16:45:05]NVStorageSaveData kkm_last_timestamp [16:45:05]File name is /storage/kkm_last_timestamp [16:45:05]Write 4 bytes [16:45:05]NVStorageSaveData done [16:45:05]ExternCall_PrintAddStr [16:45:05]wPrintStart [16:45:05]Write to MH i2c: 01 00 00 E1 08 E9 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: 01 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: 01 07 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [16:45:05]RasterBufferAndPrint [16:45:05]line Счет N : (1)918900 [16:45:05]line ИНН: 02508201610067 [16:45:05]line Контрольно-Кассовый Чек [16:45:05]line ПРОДАЖА [16:45:05]line ТРК (МРК, ГНК) : 31 [16:45:05]line Товар: 2710194210 [16:45:05]line ДТ(л)-К-5 [16:45:05]line 17.070 * 76.20 [16:45:05]line = 1300.73 [16:45:05]line НДС 12% НСП 1% [16:45:05]line > о реализуемом товаре [16:45:05]line ОКРУГЛЕНИЕ: -0.73 [16:45:05]line ИТОГО: 1300.00 [16:45:05]line Внесено: 1300.00 [16:45:05]line СДАЧА: 0.00 [16:45:05]line НСП 1% : 11.51 [16:45:05]line НДС 12% : 138.13 [16:45:05]line Наличными: 1300.00 [16:45:05]line Безнал.: 0.00 [16:45:05]line Место: АЗС № 114 "Партнер Нефть" [16:45:05]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:45:05]line СНО: Общий режим [16:45:05]line Чек 116 18.10.2024 16:45 [16:45:05]line Смена: 526 ФФД: 1.0 [16:45:05]line ЗНМ: 0300000086 [16:45:05]line РНМ: 0000000000091680 [16:45:05]line Версия ККМ: 001 [16:45:05]line ФМ: 0000000000871843 [16:45:05]line ФД: 82407 [16:45:05]line ФПД: 79030259244121 [16:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164505&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82407&fm=79030259244121&tin=02508201610067®Number=0000000000091680&sum=130000 [16:45:05]written 0, free lines is 4095 [16:45:05]OFD Sender: Processing packet 82407 [packets to send 254, broken 253] [16:45:05]ProducePacketName [16:45:05]name=ofd_packets/00082407 [16:45:05]OFD Sender: To server: pG, [16:45:05]CommunicateWithHost lk.salyk.kg:30040 [16:45:05]ConnectInit lk.salyk.kg [16:45:06]Write to MH i2c: 01 00 00 0C 09 15 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: 01 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: 01 07 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 D8 0C 00 [16:45:06]RasterBufferAndPrint [16:45:06]line [16:45:06]line [16:45:06]line [16:45:06]line [16:45:06]line [16:45:06]written 0, free lines is 3296 [16:45:06]MH_Cut [16:45:06]Write to MH i2c: D1 01 00 13 09 01 EE [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: D1 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: D1 01 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: D1 01 00 13 09 00 ED [16:45:06]Write to MH i2c: 01 00 00 14 09 1D [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]Connected sock=9 [16:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 3F 0A 08 01 14 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 91 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 41 01 00 35 04 06 00 47 E0 AA 87 5C 59 C4 AD B4 5D 76 3A 03 25 [16:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8A 1D 47 00 68 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E7 41 01 00 F4 03 04 00 CB 35 12 67 B6 04 01 00 00 D5 C6 C1 93 A7 D4 80 12 [16:45:06]CommunicateWithHost err = 0 [16:45:06]CheckOFDResponse [16:45:06]1017 (14) - 77093643461234 [16:45:06]1041 (16) - 0000000000871843 [16:45:06]1040 (4) - 82407 [16:45:06]1012 (4) - 18.10.2024 10:17 [16:45:06]1206 (1) - 0 [16:45:06]OFD Sender: Remove packet 82407 [16:45:06]ProducePacketName [16:45:06]name=ofd_packets/00082407 [16:45:06]NVStorageDeleteData [16:45:06]*** Cut start [16:45:06]*** Partial cut [16:45:06]*** CUTSNS_PIN = 1 [16:45:07]*** CUTSNS_PIN = 0 [16:45:07]*** Brake cut motor [16:45:07]OFD Sender: No OFD packet to send [16:45:07]Read from MH i2c: 01 [16:45:07]MH_I2C_Read... [16:45:07]*** Stop cut motor [16:45:07]*** Cut end [16:45:07]Read from MH i2c: 01 07 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 FF 0F 32 [16:45:07]process_action close_receipt done [16:45:07]requested_data is exist [16:45:07]produce_requested_data [16:45:07]requested_item fm.sn is exist - process it [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 11 00 00 [16:45:07]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 17 00 [16:45:07]MH_I2C_Read... [16:45:07]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 31 38 34 33 90 00 EA [16:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:45:07]wFMCommunicate OK [16:45:07]requested_item fd.num is exist - process it [16:45:07]SAM_PROTO_GetFieldsCounters [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 13 00 00 [16:45:07]Write to MH i2c: E2 08 00 16 09 80 13 00 00 00 00 00 00 9B [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 62 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 62 00 16 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [16:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:07]wFMCommunicate OK [16:45:07]SAM_PROTO_GetFieldsCounters done [16:45:07]requested_item shift.num is exist - process it [16:45:07]requested_item shift.opened is exist - process it [16:45:07]req_shift_opened [16:45:07]FM_GetShiftState [16:45:07]SAM_PROTO_GetShiftState [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 13 01 00 [16:45:07]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:07]Read from MH i2c: E2 0E 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6F [16:45:07]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:45:07]wFMCommunicate OK [16:45:07]SAM_PROTO_GetShiftState done [16:45:07]FM_GetShiftState done [16:45:07]req_shift_opened done [16:45:07]requested_item shift.open_date is exist - process it [16:45:07]req_shift_open_date [16:45:07]req_shift_open_date done [16:45:07]produce_requested_data done [16:45:07]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82407,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:45:07]process_action_free close_receipt [16:45:07]json_value_free [16:45:07]json_value_free done [16:45:07]process_json_proto returns [16:45:07]Send response to host [16:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82407,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:45:07]free response buf [16:45:07]execute_script done [16:45:07]execute_script returns [16:45:07]free content buf [16:45:07]Sock 7.Close socket [16:45:07]Sock 7.Thread stoped [16:45:12]OFD Sender: No OFD packet to send [16:45:15]recv_with_timeout no data received [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:26]recv_with_timeout no data received [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:37]recv_with_timeout no data received [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:21]accept exits with 10 [16:46:21]New connection [16:46:21]New thread 3066969444 created [16:46:21]Thread 3066826084 joined [16:46:21]Waiting for new connection... [16:46:21] Sock 10.Parse request [16:46:21]Sock 10.Check first char [16:46:21]Sock 10.First char is OK [16:46:21]request: POST /json_proto HTTP/1.0 [16:46:21]Method: POST [16:46:21]URL: /json_proto [16:46:21]Method is POST - this is cgi request [16:46:21]url: /json_proto [16:46:21]query_string will be loaded in cgi processing [16:46:21]execute_cgi json_proto POST (null) [16:46:21]execute_cgi path=json_proto method=POST [16:46:21]POST find Content-Length [16:46:21]Host: 172.17.44.67:8080 [16:46:21]Content-Length: 803 [16:46:21]Content-Type: application/json [16:46:21] [16:46:21]POST finish read [16:46:21]Found Content-Length = 803 [16:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918899", "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" : 74.20, "quantity" : 49.870, "sum" : 3700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3700.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:21]execute_script... [16:46: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)918899", "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" : 74.20, "quantity" : 49.870, "sum" : 3700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3700.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:21]POST & json_proto [16:46:21]process_json_proto [16:46:21]json parsed OK: [16:46:21]protocol is kg_v1.0 [16:46:21]action value=close_receipt [16:46:21]process_action close_receipt [16:46:21]cmd_close_receipt [16:46:21]MH_GetDate [16:46:21]Write to MH i2c: F0 00 00 18 09 10 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: F0 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: F0 09 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: F0 09 00 18 09 00 DE 90 12 67 F1 C7 6B 64 87 [16:46:21]GetLastDocTimeStamp 1729269905 [16:46:21]current date 1729269982 [16:46:21]FM_GetShiftState [16:46:21]SAM_PROTO_GetShiftState [16:46:21]wFMCommunicate request_size=4 [16:46:21]MH_SAM_APDU [16:46:21]CAPDU: 80 13 01 00 [16:46:21]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:21]Read from MH i2c: E2 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 0E 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 71 [16:46:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:46:21]wFMCommunicate OK [16:46:21]SAM_PROTO_GetShiftState done [16:46:21]FM_GetShiftState done [16:46:21]opened in 1729212319 [16:46:21]opened+sec_in_day 1729298719 [16:46:21]quantity*price = 370035 [16:46:21]sum+1 = 370036 [16:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3700.35 НСП 1% : 32.75 НДС 12% : 392.96 Наличными: 0.00 Безнал.: 3700.35 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 117 18.10.2024 16:46 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82408 ФПД: 178058781296736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164622&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82408&fm=178058781296736&tin=02508201610067®Number=0000000000091680&sum=370035 [16:46:22]StoreToDocumentArchive [16:46:22]shift 526 fd 82408 [16:46:22]save to /storage/0526/doc_00082408 [16:46:22]save last doc name /storage/0526/doc_00082408 to /storage/kkm_last_doc_name [16:46:22]save OK [16:46:22]Clear old archive folders... [16:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:22]tlvbuf is 00DC3AD0 [16:46:22]SAM_PROTO_ClearQueue [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 09 00 00 [16:46:22]Write to MH i2c: E2 08 00 26 09 80 09 00 00 00 00 00 00 A1 [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [16:46:22]RAPDU: 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_ClearQueue done [16:46:22]KKMCreateOFDPacket [16:46:22]OFDProtocolAddRootSTLVToBuf [16:46:22]FM_MakeSignedData [16:46:22]FM_MakeSignedData [16:46:22]SAM_PROTO_SignData [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 0D 01 02 [16:46:22]Write to MH i2c: E2 08 00 27 09 80 0D 01 02 00 00 00 00 A9 [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [16:46:22]RAPDU: 90 00 [16:46:22]wFMCommunicate OK [16:46:22]wFMCommunicate request_size=255 [16:46:22]MH_SAM_APDU [16:46: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 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 A5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DE 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 41 01 00 35 04 06 00 A1 [16:46:22]Write to MH i2c: E2 02 01 28 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 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 A5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DE 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 41 01 00 35 04 06 00 A1 00 00 DB [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]OFD Sender: No OFD packet to send [16:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [16:46:22]RAPDU: 90 00 [16:46:22]wFMCommunicate OK [16:46:22]wFMCommunicate request_size=10 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 0D 02 02 05 F1 8A 68 88 60 [16:46:22]Write to MH i2c: E2 0D 00 29 09 80 0D 02 02 05 00 F1 8A 68 88 60 00 00 81 [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [16:46:22]RAPDU: 90 00 [16:46:22]wFMCommunicate OK [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 0D 03 02 [16:46:22]Write to MH i2c: E2 08 00 2A 09 80 0D 03 02 00 00 00 00 AE [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0B 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0B 00 2A 09 00 74 BC B9 F6 16 4D 96 E6 90 00 6D [16:46:22]RAPDU: 74 BC B9 F6 16 4D 96 E6 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_SignData done [16:46:22]FM_MakeSignedData done [16:46:22]CreateOFDProtocolMessage [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 2B 09 80 11 00 00 00 00 00 00 AE [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 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 00 [16:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:46:22]wFMCommunicate OK [16:46:22]CreateOFDProtocolMessage done [16:46:22]OFDSenderStorePacket 82408 [16:46:22]StoreOFDPacket docnum=82408 [16:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8B 8F 07 01 D2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 A5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DE 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 41 01 00 35 04 06 00 A1 F1 8A 68 88 60 74 BC B9 F6 16 4D 96 E6 [16:46:22]CheckFolder [16:46:22]dirname=/storage/ofd_packets [16:46:22]CheckFolder done [16:46:22]ProducePacketName [16:46:22]name=ofd_packets/00082408 [16:46:22]NVStorageSaveData ofd_packets/00082408 [16:46:22]File name is /storage/ofd_packets/00082408 [16:46:22]Write 301 bytes [16:46:22]NVStorageSaveData done [16:46:22]OFDSenderStorePacket done [16:46:22]KKMCreateOFDPacket done [16:46:22]NVStorageSaveData kkm_last_timestamp [16:46:22]File name is /storage/kkm_last_timestamp [16:46:22]Write 4 bytes [16:46:22]NVStorageSaveData done [16:46:22]ExternCall_PrintAddStr [16:46:22]wPrintStart [16:46:22]Write to MH i2c: 01 00 00 2C 09 35 [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: 01 [16:46:22]MH_I2C_Read... [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 2C 09 00 00 00 00 00 FF 0F 4A [16:46:22]RasterBufferAndPrint [16:46:22]line Счет N : (1)918899 [16:46:22]line ИНН: 02508201610067 [16:46:22]line Контрольно-Кассовый Чек [16:46:22]line ПРОДАЖА [16:46:22]line ТРК (МРК, ГНК) : 12 [16:46:22]line Товар: 2710124500 [16:46:22]line Аи-95-К-5 [16:46:22]line 49.870 * 74.20 [16:46:22]line = 3700.35 [16:46:22]line НДС 12% НСП 1% [16:46:22]line > о реализуемом товаре [16:46:22]line ИТОГО: 3700.35 [16:46:22]line НСП 1% : 32.75 [16:46:22]line НДС 12% : 392.96 [16:46:22]line Наличными: 0.00 [16:46:22]line Безнал.: 3700.35 [16:46:22]line Место: АЗС № 114 "Партнер Нефть" [16:46:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:46:22]line СНО: Общий режим [16:46:22]line Чек 117 18.10.2024 16:46 [16:46:22]line Смена: 526 ФФД: 1.0 [16:46:22]line ЗНМ: 0300000086 [16:46:22]line РНМ: 0000000000091680 [16:46:22]line Версия ККМ: 001 [16:46:22]line Платежная система: O! деньги [16:46:22]line ФМ: 0000000000871843 [16:46:22]line ФД: 82408 [16:46:22]line ФПД: 178058781296736 [16:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164622&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82408&fm=178058781296736&tin=02508201610067®Number=0000000000091680&sum=370035 [16:46:23]OFD Sender: Processing packet 82408 [packets to send 254, broken 253] [16:46:23]ProducePacketName [16:46:23]name=ofd_packets/00082408 [16:46:23]OFD Sender: To server: pG, [16:46:23]CommunicateWithHost lk.salyk.kg:30040 [16:46:23]ConnectInit lk.salyk.kg [16:46:23]written 0, free lines is 4095 [16:46:23]Write to MH i2c: 01 00 00 56 09 5F [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 07 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 07 00 56 09 00 00 00 00 00 F3 0C 65 [16:46:23]RasterBufferAndPrint [16:46:23]line [16:46:23]line [16:46:23]line [16:46:23]line [16:46:23]line [16:46:23]written 0, free lines is 3318 [16:46:23]MH_Cut [16:46:23]Write to MH i2c: D1 01 00 5D 09 01 38 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: D1 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: D1 01 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: D1 01 00 5D 09 00 37 [16:46:23]Write to MH i2c: 01 00 00 5E 09 67 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:24]*** Cut start [16:46:24]*** Partial cut [16:46:24]*** CUTSNS_PIN = 1 [16:46:24]*** CUTSNS_PIN = 0 [16:46:24]*** Brake cut motor [16:46:25]Read from MH i2c: 01 [16:46:25]MH_I2C_Read... [16:46:25]*** Stop cut motor [16:46:25]*** Cut end [16:46:25]Read from MH i2c: 01 07 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: 01 07 00 5E 09 00 00 00 00 00 FF 0F 7C [16:46:25]process_action close_receipt done [16:46:25]requested_data is exist [16:46:25]produce_requested_data [16:46:25]requested_item fm.sn is exist - process it [16:46:25]wFMCommunicate request_size=4 [16:46:25]MH_SAM_APDU [16:46:25]CAPDU: 80 11 00 00 [16:46:25]Write to MH i2c: E2 08 00 5F 09 80 11 00 00 00 00 00 00 E2 [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:25]Read from MH i2c: E2 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 17 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 17 00 5F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 34 [16:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:46:25]wFMCommunicate OK [16:46:25]requested_item fd.num is exist - process it [16:46:25]SAM_PROTO_GetFieldsCounters [16:46:25]wFMCommunicate request_size=4 [16:46:25]MH_SAM_APDU [16:46:25]CAPDU: 80 13 00 00 [16:46:25]Write to MH i2c: E2 08 00 60 09 80 13 00 00 00 00 00 00 E5 [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:25]Read from MH i2c: E2 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 62 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 62 00 60 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:25]wFMCommunicate OK [16:46:25]SAM_PROTO_GetFieldsCounters done [16:46:25]requested_item shift.num is exist - process it [16:46:25]requested_item shift.opened is exist - process it [16:46:25]req_shift_opened [16:46:25]FM_GetShiftState [16:46:25]SAM_PROTO_GetShiftState [16:46:25]wFMCommunicate request_size=4 [16:46:25]MH_SAM_APDU [16:46:25]CAPDU: 80 13 01 00 [16:46:25]Write to MH i2c: E2 08 00 61 09 80 13 01 00 00 00 00 00 E7 [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:25]Read from MH i2c: E2 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 0E 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 0E 00 61 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B9 [16:46:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:46:25]wFMCommunicate OK [16:46:25]SAM_PROTO_GetShiftState done [16:46:25]FM_GetShiftState done [16:46:25]req_shift_opened done [16:46:25]requested_item shift.open_date is exist - process it [16:46:25]req_shift_open_date [16:46:25]req_shift_open_date done [16:46:25]produce_requested_data done [16:46:25]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82408,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:46:25]process_action_free close_receipt [16:46:25]json_value_free [16:46:25]json_value_free done [16:46:25]process_json_proto returns [16:46:25]Send response to host [16:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82408,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:46:25]free response buf [16:46:25]execute_script done [16:46:25]execute_script returns [16:46:25]free content buf [16:46:25]Sock 10.Close socket [16:46:25]Sock 10.Thread stoped [16:46:25]Connected sock=11 [16:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8B 8F 07 01 D2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 A5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DE 90 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 41 01 00 35 04 06 00 A1 F1 8A 68 88 60 74 BC B9 F6 16 4D 96 E6 [16:46:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4D 31 47 00 0E BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E8 41 01 00 F4 03 04 00 1A 36 12 67 B6 04 01 00 00 96 4B F8 E9 5E 69 B6 2D [16:46:26]CommunicateWithHost err = 0 [16:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F6 EC 07 01 DC 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A7 8F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E5 41 01 00 35 04 06 00 A7 4E B1 88 4D D2 F1 0E F4 14 B8 13 0D 14 [16:41:11]CheckFolder [16:41:11]dirname=/storage/ofd_packets [16:41:11]CheckFolder done [16:41:11]ProducePacketName [16:41:11]name=ofd_packets/00082405 [16:41:11]NVStorageSaveData ofd_packets/00082405 [16:41:11]File name is /storage/ofd_packets/00082405 [16:41:11]Write 301 bytes [16:41:11]NVStorageSaveData done [16:41:11]OFDSenderStorePacket done [16:41:11]KKMCreateOFDPacket done [16:41:11]NVStorageSaveData kkm_last_timestamp [16:41:11]File name is /storage/kkm_last_timestamp [16:41:11]Write 4 bytes [16:41:11]NVStorageSaveData done [16:41:11]ExternCall_PrintAddStr [16:41:11]wPrintStart [16:41:11]Write to MH i2c: 01 00 00 4C 08 54 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: 01 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: 01 07 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: 01 07 00 4C 08 00 00 00 00 00 FF 0F 69 [16:41:11]RasterBufferAndPrint [16:41:11]line Счет N : (1)918897 [16:41:11]line ИНН: 02508201610067 [16:41:11]line Контрольно-Кассовый Чек [16:41:11]line ПРОДАЖА [16:41:11]line ТРК (МРК, ГНК) : 22 [16:41:11]line Товар: 2710124130 [16:41:11]line Аи-92-К-4 [16:41:11]line 14.950 * 66.90 [16:41:11]line = 1000.16 [16:41:11]line НДС 12% НСП 1% [16:41:11]line > о реализуемом товаре [16:41:11]line ОКРУГЛЕНИЕ: -0.16 [16:41:11]line ИТОГО: 1000.00 [16:41:11]line Внесено: 1000.00 [16:41:11]line СДАЧА: 0.00 [16:41:11]line НСП 1% : 8.85 [16:41:11]line НДС 12% : 106.21 [16:41:11]line Наличными: 1000.00 [16:41:11]line Безнал.: 0.00 [16:41:11]line Место: АЗС № 114 "Партнер Нефть" [16:41:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:41:11]line СНО: Общий режим [16:41:11]line Чек 114 18.10.2024 16:41 [16:41:11]line Смена: 526 ФФД: 1.0 [16:41:11]line ЗНМ: 0300000086 [16:41:11]line РНМ: 0000000000091680 [16:41:11]line Версия ККМ: 001 [16:41:11]line ФМ: 0000000000871843 [16:41:11]line ФД: 82405 [16:41:11]line ФПД: 183956427787730 [16:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164111&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82405&fm=183956427787730&tin=02508201610067®Number=0000000000091680&sum=100000 [16:41:12]OFD Sender: Processing packet 82405 [packets to send 254, broken 253] [16:41:12]ProducePacketName [16:41:12]name=ofd_packets/00082405 [16:41:12]OFD Sender: To server: pG, [16:41:12]CommunicateWithHost lk.salyk.kg:30040 [16:41:12]ConnectInit lk.salyk.kg [16:41:12]written 0, free lines is 4095 [16:41:12]Write to MH i2c: 01 00 00 77 08 7F [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 DD 0C 6F [16:41:12]RasterBufferAndPrint [16:41:12]line [16:41:12]line [16:41:12]line [16:41:12]line [16:41:12]line [16:41:12]written 0, free lines is 3299 [16:41:12]MH_Cut [16:41:12]Write to MH i2c: D1 01 00 7E 08 01 58 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: D1 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: D1 01 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: D1 01 00 7E 08 00 57 [16:41:12]Write to MH i2c: 01 00 00 7F 08 87 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:13]*** Cut start [16:41:13]*** Partial cut [16:41:13]*** CUTSNS_PIN = 1 [16:41:13]*** CUTSNS_PIN = 0 [16:41:13]*** Brake cut motor [16:41:14]Read from MH i2c: 01 [16:41:14]MH_I2C_Read... [16:41:14]*** Stop cut motor [16:41:14]*** Cut end [16:41:14]Read from MH i2c: 01 07 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [16:41:14]process_action close_receipt done [16:41:14]requested_data is exist [16:41:14]produce_requested_data [16:41:14]requested_item fm.sn is exist - process it [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 11 00 00 [16:41:14]Write to MH i2c: E2 08 00 80 08 80 11 00 00 00 00 00 00 02 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 17 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 17 00 80 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 54 [16:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:41:14]wFMCommunicate OK [16:41:14]requested_item fd.num is exist - process it [16:41:14]SAM_PROTO_GetFieldsCounters [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 13 00 00 [16:41:14]Write to MH i2c: E2 08 00 81 08 80 13 00 00 00 00 00 00 05 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 62 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 62 00 81 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [16:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_GetFieldsCounters done [16:41:14]requested_item shift.num is exist - process it [16:41:14]requested_item shift.opened is exist - process it [16:41:14]req_shift_opened [16:41:14]FM_GetShiftState [16:41:14]SAM_PROTO_GetShiftState [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 13 01 00 [16:41:14]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 0E 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D9 [16:41:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_GetShiftState done [16:41:14]FM_GetShiftState done [16:41:14]req_shift_opened done [16:41:14]requested_item shift.open_date is exist - process it [16:41:14]req_shift_open_date [16:41:14]req_shift_open_date done [16:41:14]produce_requested_data done [16:41:14]produce_requested_data return {"[16:46:26]CheckOFDResponse [16:46:26]1017 (14) - 77093643461234 [16:46:26]1041 (16) - 0000000000871843 [16:46:26]1040 (4) - 82408 [16:46:26]1012 (4) - 18.10.2024 10:19 [16:46:26]1206 (1) - 0 [16:46:26]OFD Sender: Remove packet 82408 [16:46:26]ProducePacketName [16:46:26]name=ofd_packets/00082408 [16:46:26]NVStorageDeleteData [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:38]recv_with_timeout no data received [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:28]accept exits with 7 [16:47:28]New connection [16:47:28]New thread 3066826084 created [16:47:28]Thread 3066969444 joined [16:47:28]Waiting for new connection... [16:47:28] Sock 7.Parse request [16:47:28]Sock 7.Check first char [16:47:28]Sock 7.First char is OK [16:47:28]request: POST /json_proto HTTP/1.0 [16:47:28]Method: POST [16:47:28]URL: /json_proto [16:47:28]Method is POST - this is cgi request [16:47:28]url: /json_proto [16:47:28]query_string will be loaded in cgi processing [16:47:28]execute_cgi json_proto POST (null) [16:47:28]execute_cgi path=json_proto method=POST [16:47:28]POST find Content-Length [16:47:28]Host: 172.17.44.67:8080 [16:47:28]Content-Length: 803 [16:47:28]Content-Type: application/json [16:47:28] [16:47:28]POST finish read [16:47:28]Found Content-Length = 803 [16:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:28]execute_script... [16:47:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:28]POST & json_proto [16:47:28]process_json_proto [16:47:28]json parsed OK: [16:47:28]protocol is kg_v1.0 [16:47:28]action value=close_receipt [16:47:28]process_action close_receipt [16:47:28]cmd_close_receipt [16:47:28]MH_GetDate [16:47:28]Write to MH i2c: F0 00 00 62 09 5A [16:47:28]Write i2c OK [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: F0 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: F0 09 00 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: F0 09 00 62 09 00 21 91 12 67 F1 C7 6B 64 15 [16:47:28]GetLastDocTimeStamp 1729269982 [16:47:28]current date 1729270049 [16:47:28]FM_GetShiftState [16:47:28]SAM_PROTO_GetShiftState [16:47:28]wFMCommunicate request_size=4 [16:47:28]MH_SAM_APDU [16:47:28]CAPDU: 80 13 01 00 [16:47:28]Write to MH i2c: E2 08 00 63 09 80 13 01 00 00 00 00 00 E9 [16:47:28]Write i2c OK [16:47:28]MH_I2C_Read... [16:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:28]Read from MH i2c: E2 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: E2 0E 00 [16:47:28]MH_I2C_Read... [16:47:28]Read from MH i2c: E2 0E 00 63 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 BB [16:47:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:47:28]wFMCommunicate OK [16:47:28]SAM_PROTO_GetShiftState done [16:47:28]FM_GetShiftState done [16:47:28]opened in 1729212319 [16:47:28]opened+sec_in_day 1729298719 [16:47:28]quantity*price = 120018 [16:47:28]sum+1 = 120020 [16:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 118 18.10.2024 16:47 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82409 ФПД: 254295094904600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164729&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82409&fm=254295094904600&tin=02508201610067®Number=0000000000091680&sum=120019 [16:47:29]StoreToDocumentArchive [16:47:29]shift 526 fd 82409 [16:47:29]save to /storage/0526/doc_00082409 [16:47:29]save last doc name /storage/0526/doc_00082409 to /storage/kkm_last_doc_name [16:47:29]save OK [16:47:29]Clear old archive folders... [16:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:29]tlvbuf is 00DEA470 [16:47:29]SAM_PROTO_ClearQueue [16:47:29]wFMCommunicate request_size=4 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 09 00 00 [16:47:29]Write to MH i2c: E2 08 00 70 09 80 09 00 00 00 00 00 00 EB [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [16:47:29]RAPDU: 90 00 [16:47:29]wFMCommunicate OK [16:47:29]SAM_PROTO_ClearQueue done [16:47:29]KKMCreateOFDPacket [16:47:29]OFDProtocolAddRootSTLVToBuf [16:47:29]FM_MakeSignedData [16:47:29]FM_MakeSignedData [16:47:29]SAM_PROTO_SignData [16:47:29]wFMCommunicate request_size=4 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 0D 01 02 [16:47:29]Write to MH i2c: E2 08 00 71 09 80 0D 01 02 00 00 00 00 F3 [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [16:47:29]RAPDU: 90 00 [16:47:29]wFMCommunicate OK [16:47:29]wFMCommunicate request_size=255 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 41 01 00 35 04 06 00 E7 [16:47:29]Write to MH i2c: E2 02 01 72 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 41 01 00 35 04 06 00 E7 00 00 6F [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [16:47:29]RAPDU: 90 00 [16:47:29]wFMCommunicate OK [16:47:29]wFMCommunicate request_size=10 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 0D 02 02 05 47 B0 CC C7 18 [16:47:29]Write to MH i2c: E2 0D 00 73 09 80 0D 02 02 05 00 47 B0 CC C7 18 00 00 A2 [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [16:47:29]RAPDU: 90 00 [16:47:29]wFMCommunicate OK [16:47:29]wFMCommunicate request_size=4 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 0D 03 02 [16:47:29]Write to MH i2c: E2 08 00 74 09 80 0D 03 02 00 00 00 00 F8 [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 0B 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 0B 00 74 09 00 6C C8 AC A2 14 C9 D8 73 90 00 A3 [16:47:29]RAPDU: 6C C8 AC A2 14 C9 D8 73 90 00 [16:47:29]wFMCommunicate OK [16:47:29]SAM_PROTO_SignData done [16:47:29]FM_MakeSignedData done [16:47:29]CreateOFDProtocolMessage [16:47:29]wFMCommunicate request_size=4 [16:47:29]MH_SAM_APDU [16:47:29]CAPDU: 80 11 00 00 [16:47:29]Write to MH i2c: E2 08 00 75 09 80 11 00 00 00 00 00 00 F8 [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:29]Read from MH i2c: E2 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 17 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: E2 17 00 75 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 4A [16:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:47:29]wFMCommunicate OK [16:47:29]CreateOFDProtocolMessage done [16:47:29]OFDSenderStorePacket 82409 [16:47:29]StoreOFDPacket docnum=82409 [16:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 22 CD 07 01 A9 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 41 01 00 35 04 06 00 E7 47 B0 CC C7 18 6C C8 AC A2 14 C9 D8 73 [16:47:29]CheckFolder [16:47:29]dirname=/storage/ofd_packets [16:47:29]CheckFolder done [16:47:29]ProducePacketName [16:47:29]name=ofd_packets/00082409 [16:47:29]NVStorageSaveData ofd_packets/00082409 [16:47:29]File name is /storage/ofd_packets/00082409 [16:47:29]Write 301 bytes [16:47:29]NVStorageSaveData done [16:47:29]OFDSenderStorePacket done [16:47:29]KKMCreateOFDPacket done [16:47:29]NVStorageSaveData kkm_last_timestamp [16:47:29]File name is /storage/kkm_last_timestamp [16:47:29]Write 4 bytes [16:47:29]NVStorageSaveData done [16:47:29]ExternCall_PrintAddStr [16:47:29]wPrintStart [16:47:29]Write to MH i2c: 01 00 00 76 09 7F [16:47:29]Write i2c OK [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: 01 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: 01 07 00 [16:47:29]MH_I2C_Read... [16:47:29]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 FF 0F 94 [16:47:29]RasterBufferAndPrint [16:47:29]line Счет N : (1)918901 [16:47:29]line ИНН: 02508201610067 [16:47:29]line Контрольно-Кассовый Чек [16:47:29]line ПРОДАЖА [16:47:29]line ТРК (МРК, ГНК) : 11 [16:47:29]line Товар: 2710124130 [16:47:29]line Аи-92-К-4 [16:47:29]line 17.940 * 66.90 [16:47:29]line = 1200.19 [16:47:29]line НДС 12% НСП 1% [16:47:29]line > о реализуемом товаре [16:47:29]line ИТОГО: 1200.19 [16:47:29]line НСП 1% : 10.62 [16:47:29]line НДС 12% : 127.45 [16:47:29]line Наличными: 0.00 [16:47:29]line Безнал.: 1200.19 [16:47:29]line Место: АЗС № 114 "Партнер Нефть" [16:47:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:47:29]line СНО: Общий режим [16:47:29]line Чек 118 18.10.2024 16:47 [16:47:29]line Смена: 526 ФФД: 1.0 [16:47:29]line ЗНМ: 0300000086 [16:47:29]line РНМ: 0000000000091680 [16:47:29]line Версия ККМ: 001 [16:47:29]line Платежная система: O! деньги [16:47:29]line ФМ: 0000000000871843 [16:47:29]line ФД: 82409 [16:47:29]line ФПД: 254295094904600 [16:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164729&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82409&fm=254295094904600&tin=02508201610067®Number=0000000000091680&sum=120019 [16:47:30]written 0, free lines is 4095 [16:47:30]OFD Sender: Processing packet 82409 [packets to send 254, broken 253] [16:47:30]ProducePacketName [16:47:30]name=ofd_packets/00082409 [16:47:30]OFD Sender: To server: pG, [16:47:30]CommunicateWithHost lk.salyk.kg:30040 [16:47:30]ConnectInit lk.salyk.kg [16:47:30]Write to MH i2c: 01 00 00 A0 09 A9 [16:47:30]Write i2c OK [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: 01 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: 01 07 00 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 ED 0C A9 [16:47:30]RasterBufferAndPrint [16:47:30]line [16:47:30]line [16:47:30]line [16:47:30]line [16:47:30]line [16:47:30]written 0, free lines is 3316 [16:47:30]MH_Cut [16:47:30]Write to MH i2c: D1 01 00 A7 09 01 82 [16:47:30]Write i2c OK [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: D1 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: D1 01 00 [16:47:30]MH_I2C_Read... [16:47:30]Read from MH i2c: D1 01 00 A7 09 00 81 [16:47:30]Write to MH i2c: 01 00 00 A8 09 B1 [16:47:30]Write i2c OK [16:47:30]MH_I2C_Read... [16:47:31]*** Cut start [16:47:31]*** Partial cut [16:47:31]*** CUTSNS_PIN = 1 [16:47:31]*** CUTSNS_PIN = 0 [16:47:31]*** Brake cut motor [16:47:32]Read from MH i2c: 01 [16:47:32]MH_I2C_Read... [16:47:32]*** Stop cut motor [16:47:32]*** Cut end [16:47:32]Read from MH i2c: 01 07 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 FF 0F C6 [16:47:32]process_action close_receipt done [16:47:32]requested_data is exist [16:47:32]produce_requested_data [16:47:32]requested_item fm.sn is exist - process it [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 11 00 00 [16:47:32]Write to MH i2c: E2 08 00 A9 09 80 11 00 00 00 00 00 00 2C [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 17 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 17 00 A9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7E [16:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:47:32]wFMCommunicate OK [16:47:32]requested_item fd.num is exist - process it [16:47:32]SAM_PROTO_GetFieldsCounters [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 13 00 00 [16:47:32]Write to MH i2c: E2 08 00 AA 09 80 13 00 00 00 00 00 00 2F [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 62 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 62 00 AA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [16:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 E9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:32]wFMCommunicate OK [16:47:32]SAM_PROTO_GetFieldsCounters done [16:47:32]requested_item shift.num is exist - process it [16:47:32]requested_item shift.opened is exist - process it [16:47:32]req_shift_opened [16:47:32]FM_GetShiftState [16:47:32]SAM_PROTO_GetShiftState [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 13 01 00 [16:47:32]Write to MH i2c: E2 08 00 AB 09 80 13 01 00 00 00 00 00 31 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 0E 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 0E 00 AB 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 03 [16:47:32]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:47:32]wFMCommunicate OK [16:47:32]SAM_PROTO_GetShiftState done [16:47:32]FM_GetShiftState done [16:47:32]req_shift_opened done [16:47:32]requested_item shift.open_date is exist - process it [16:47:32]req_shift_open_date [16:47:32]req_shift_open_date done [16:47:32]produce_requested_data done [16:47:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82409,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:47:32]process_action_free close_receipt [16:47:32]json_value_free [16:47:32]json_value_free done [16:47:32]process_json_proto returns [16:47:32]Send response to host [16:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82409,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:47:32]free response buf [16:47:32]execute_script done [16:47:32]execute_script returns [16:47:32]free content buf [16:47:32]Sock 7.Close socket [16:47:32]Sock 7.Thread stoped [16:47:34]Connected sock=11 [16:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 22 CD 07 01 A9 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 21 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 E9 41 01 00 35 04 06 00 E7 47 B0 CC C7 18 6C C8 AC A2 14 C9 D8 73 [16:47:35]recv_with_timeout no data received [16:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 41 20 47 00 CB 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 31 38 34 33 10 04 04 00 E9 41 01 00 F4 03 04 00 62 36 12 67 B6 04 01 00 00 A7 63 50 DF 38 FB 2B 7E [16:47:37]CommunicateWithHost err = 0 [16:47:37]CheckOFDResponse [16:47:37]1017 (14) - 77093643461234 [16:47:37]1041 (16) - 0000000000871843 [16:47:37]1040 (4) - 82409 [16:47:37]1012 (4) - 18.10.2024 10:20 [16:47:37]1206 (1) - 0 [16:47:37]OFD Sender: Remove packet 82409 [16:47:37]ProducePacketName [16:47:37]name=ofd_packets/00082409 [16:47:37]NVStorageDeleteData [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:56]recv_with_timeout no data received [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:26]accept exits with 9 [16:48:26]New connection [16:48:26]New thread 3066969444 created [16:48:26]Thread 3066826084 joined [16:48:26]Waiting for new connection... [16:48:26] Sock 9.Parse request [16:48:26]Sock 9.Check first char [16:48:26]Sock 9.First char is OK [16:48:26]request: POST /json_proto HTTP/1.0 [16:48:26]Method: POST [16:48:26]URL: /json_proto [16:48:26]Method is POST - this is cgi request [16:48:26]url: /json_proto [16:48:26]query_string will be loaded in cgi processing [16:48:26]execute_cgi json_proto POST (null) [16:48:26]execute_cgi path=json_proto method=POST [16:48:26]POST find Content-Length [16:48:26]Host: 172.17.44.67:8080 [16:48:26]Content-Length: 710 [16:48:26]Content-Type: application/json [16:48:26] [16:48:26]POST finish read [16:48:26]Found Content-Length = 710 [16:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10596", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:26]execute_script... [16:48:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10596", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 3.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:26]POST & json_proto [16:48:26]process_json_proto [16:48:26]json parsed OK: [16:48:26]protocol is kg_v1.0 [16:48:26]action value=close_receipt [16:48:26]process_action close_receipt [16:48:26]cmd_close_receipt [16:48:26]MH_GetDate [16:48:26]Write to MH i2c: F0 00 00 AC 09 A4 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 09 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: F0 09 00 AC 09 00 5B 91 12 67 F1 C7 6B 64 99 [16:48:26]GetLastDocTimeStamp 1729270049 [16:48:26]current date 1729270107 [16:48:26]FM_GetShiftState [16:48:26]SAM_PROTO_GetShiftState [16:48:26]wFMCommunicate request_size=4 [16:48:26]MH_SAM_APDU [16:48:26]CAPDU: 80 13 01 00 [16:48:26]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:26]Read from MH i2c: E2 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 05 [16:48:26]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:48:26]wFMCommunicate OK [16:48:26]SAM_PROTO_GetShiftState done [16:48:26]FM_GetShiftState done [16:48:26]opened in 1729212319 [16:48:26]opened+sec_in_day 1729298719 [16:48:26]quantity*price = 28500 [16:48:26]sum+1 = 28501 [16:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 119 18.10.2024 16:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82410 ФПД: 147042714167752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164827&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82410&fm=147042714167752&tin=02508201610067®Number=0000000000091680&sum=28500 0 [16:48:27]StoreToDocumentArchive [16:48:27]shift 526 fd 82410 [16:48:27]save to /storage/0526/doc_00082410 [16:48:27]save last doc name /storage/0526/doc_00082410 to /storage/kkm_last_doc_name [16:48:27]save OK [16:48:27]Clear old archive folders... [16:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=304 [16:48:27]tlvbuf is 00DC2B60 [16:48:27]SAM_PROTO_ClearQueue [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 09 00 00 [16:48:27]Write to MH i2c: E2 08 00 BA 09 80 09 00 00 00 00 00 00 35 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]SAM_PROTO_ClearQueue done [16:48:27]KKMCreateOFDPacket [16:48:27]OFDProtocolAddRootSTLVToBuf [16:48:27]FM_MakeSignedData [16:48:27]FM_MakeSignedData [16:48:27]SAM_PROTO_SignData [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 01 02 [16:48:27]Write to MH i2c: E2 08 00 BB 09 80 0D 01 02 00 00 00 00 3D [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=255 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 5B 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 [16:48:27]Write to MH i2c: E2 02 01 BC 09 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 5B 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 00 00 5E [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=63 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 41 01 00 35 04 06 00 85 BC 0C BE A9 C8 [16:48:27]Write to MH i2c: E2 42 00 BD 09 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 41 01 00 35 04 06 00 85 BC 0C BE A9 C8 00 00 30 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 03 02 [16:48:27]Write to MH i2c: E2 08 00 BE 09 80 0D 03 02 00 00 00 00 42 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0B 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0B 00 BE 09 00 E4 B8 FE 77 A2 EA 3A FA 90 00 14 [16:48:27]RAPDU: E4 B8 FE 77 A2 EA 3A FA 90 00 [16:48:27]wFMCommunicate OK [16:48:27]SAM_PROTO_SignData done [16:48:27]FM_MakeSignedData done [16:48:27]CreateOFDProtocolMessage [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 11 00 00 [16:48:27]Write to MH i2c: E2 08 00 BF 09 80 11 00 00 00 00 00 00 42 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 17 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 17 00 BF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 94 [16:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:48:27]wFMCommunicate OK [16:48:27]CreateOFDProtocolMessage done [16:48:27]OFDSenderStorePacket 82410 [16:48:27]StoreOFDPacket docnum=82410 [16:48:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 44 01 00 00 C8 21 3C 01 DA 3F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 5B 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 41 01 00 35 04 06 00 85 BC 0C BE A9 C8 E4 B8 FE 77 A2 EA 3A FA [16:48:27]CheckFolder [16:48:27]dirname=/storage/ofd_packets [16:48:27]CheckFolder done [16:48:27]ProducePacketName [16:48:27]name=ofd_packets/00082410 [16:48:27]NVStorageSaveData ofd_packets/00082410 [16:48:27]File name is /storage/ofd_packets/00082410 [16:48:27]Write 354 bytes [16:48:27]NVStorageSaveData done [16:48:27]OFDSenderStorePacket done [16:48:27]KKMCreateOFDPacket done [16:48:27]NVStorageSaveData kkm_last_timestamp [16:48:27]File name is /storage/kkm_last_timestamp [16:48:27]Write 4 bytes [16:48:27]NVStorageSaveData done [16:48:27]ExternCall_PrintAddStr [16:48:27]wPrintStart [16:48:27]Write to MH i2c: 01 00 00 C0 09 C9 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 07 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [16:48:27]RasterBufferAndPrint [16:48:27]line Счет N : (3)10596 [16:48:27]line ИНН: 02508201610067 [16:48:27]line Контрольно-Кассовый Чек [16:48:27]line ПРОДАЖА [16:48:27]line Товар: 4700000480302 [16:48:27]line Напиток энерг Nitro манго-клуб 0.45 ж/б [16:48:27]line 3.000 * 95.00 [16:48:27]line = 285.00 [16:48:27]line НДС 12% НСП 1% [16:48:27]line > о реализуемом товаре [16:48:27]line ИТОГО: 285.00 [16:48:27]line НСП 1% : 2.52 [16:48:27]line НДС 12% : 30.26 [16:48:27]line Наличными: 285.00 [16:48:27]line Безнал.: 0.00 [16:48:27]line Место: АЗС № 114 "Партнер Нефть" [16:48:27]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:48:27]line СНО: Общий режим [16:48:27]line Чек 119 18.10.2024 16:48 [16:48:27]line Смена: 526 ФФД: 1.0 [16:48:27]line ЗНМ: 0300000086 [16:48:27]line РНМ: 0000000000091680 [16:48:27]line Версия ККМ: 001 [16:48:27]line ФМ: 0000000000871843 [16:48:27]line ФД: 82410 [16:48:27]line ФПД: 147042714167752 [16:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164827&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82410&fm=147042714167752&tin=02508201610067®Number=0000000000091680&sum=28500 [16:48:28]line 0 [16:48:28]OFD Sender: Processing packet 82410 [packets to send 254, broken 253] [16:48:28]ProducePacketName [16:48:28]name=ofd_packets/00082410 [16:48:28]OFD Sender: To server: pG, [16:48:28]CommunicateWithHost lk.salyk.kg:30040 [16:48:28]ConnectInit lk.salyk.kg [16:48:28]written 0, free lines is 4095 [16:48:28]Write to MH i2c: 01 00 00 E9 09 F2 [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: 01 07 00 E9 09 00 00 00 00 00 E1 0C E6 [16:48:28]RasterBufferAndPrint [16:48:28]line [16:48:28]line [16:48:28]line [16:48:28]line [16:48:28]line [16:48:28]written 0, free lines is 3303 [16:48:28]MH_Cut [16:48:28]Write to MH i2c: D1 01 00 F0 09 01 CB [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: D1 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: D1 01 00 [16:48:28]MH_I2C_Read... [16:48:28]Read from MH i2c: D1 01 00 F0 09 00 CA [16:48:28]Write to MH i2c: 01 00 00 F1 09 FA [16:48:28]Write i2c OK [16:48:28]MH_I2C_Read... [16:48:29]*** Cut start [16:48:29]*** Partial cut [16:48:29]*** CUTSNS_PIN = 1 [16:48:29]*** CUTSNS_PIN = 0 [16:48:29]*** Brake cut motor [16:48:30]Read from MH i2c: 01 [16:48:30]MH_I2C_Read... [16:48:30]*** Stop cut motor [16:48:30]*** Cut end [16:48:30]Read from MH i2c: 01 07 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: 01 07 00 F1 09 00 00 00 00 00 FF 0F 0F [16:48:30]process_action close_receipt done [16:48:30]requested_data is exist [16:48:30]produce_requested_data [16:48:30]requested_item fm.sn is exist - process it [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 11 00 00 [16:48:30]Write to MH i2c: E2 08 00 F2 09 80 11 00 00 00 00 00 00 75 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]Connected sock=11 [16:48:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 44 01 00 00 C8 21 3C 01 DA 3F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 5B 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 41 01 00 35 04 06 00 85 BC 0C BE A9 C8 E4 B8 FE 77 A2 EA 3A FA [16:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 17 00 F2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [16:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:48:30]wFMCommunicate OK [16:48:30]requested_item fd.num is exist - process it [16:48:30]SAM_PROTO_GetFieldsCounters [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 13 00 00 [16:48:30]Write to MH i2c: E2 08 00 F3 09 80 13 00 00 00 00 00 00 78 [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 62 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 62 00 F3 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [16:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:30]wFMCommunicate OK [16:48:30]SAM_PROTO_GetFieldsCounters done [16:48:30]requested_item shift.num is exist - process it [16:48:30]requested_item shift.opened is exist - process it [16:48:30]req_shift_opened [16:48:30]FM_GetShiftState [16:48:30]SAM_PROTO_GetShiftState [16:48:30]wFMCommunicate request_size=4 [16:48:30]MH_SAM_APDU [16:48:30]CAPDU: 80 13 01 00 [16:48:30]Write to MH i2c: E2 08 00 F4 09 80 13 01 00 00 00 00 00 7A [16:48:30]Write i2c OK [16:48:30]MH_I2C_Read... [16:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:30]Read from MH i2c: E2 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 0E 00 [16:48:30]MH_I2C_Read... [16:48:30]Read from MH i2c: E2 0E 00 F4 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4C [16:48:30]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:48:30]wFMCommunicate OK [16:48:30]SAM_PROTO_GetShiftState done [16:48:30]FM_GetShiftState done [16:48:30]req_shift_opened done [16:48:30]requested_item shift.open_date is exist - process it [16:48:30]req_shift_open_date [16:48:30]req_shift_open_date done [16:48:30]produce_requested_data done [16:48:30]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82410,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:48:30]process_action_free close_receipt [16:48:30]json_value_free [16:48:30]json_value_free done [16:48:30]process_json_proto returns [16:48:30]Send response to host [16:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82410,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:48:30]free response buf [16:48:30]execute_script done [16:48:30]execute_script returns [16:48:30]free content buf [16:48:30]Sock 9.Close socket [16:48:30]Sock 9.Thread stoped [16:48:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E7 34 47 00 4B D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EA 41 01 00 F4 03 04 00 97 36 12 67 B6 04 01 00 00 CE E5 86 4B 59 52 67 D3 [16:48:30]CommunicateWithHost err = 0 [16:48:30]CheckOFDResponse [16:48:30]1017 (14) - 77093643461234 [16:48:30]1041 (16) - 0000000000871843 [16:48:30]1040 (4) - 82410 [16:48:30]1012 (4) - 18.10.2024 10:21 [16:48:30]1206 (1) - 0 [16:48:30]OFD Sender: Remove packet 82410 [16:48:30]ProducePacketName [16:48:30]name=ofd_packets/00082410 [16:48:30]NVStorageDeleteData [16:48:31]OFD Sender: No OFD packet to send [16:48:33]recv_with_timeout no data received [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:43]accept exits with 7 [16:48:43]New connection [16:48:43]New thread 3066826084 created [16:48:43]Thread 3066969444 joined [16:48:43]Waiting for new connection... [16:48:43] Sock 7.Parse request [16:48:43]Sock 7.Check first char [16:48:43]Sock 7.First char is OK [16:48:43]request: POST /json_proto HTTP/1.0 [16:48:43]Method: POST [16:48:43]URL: /json_proto [16:48:43]Method is POST - this is cgi request [16:48:43]url: /json_proto [16:48:43]query_string will be loaded in cgi processing [16:48:43]execute_cgi json_proto POST (null) [16:48:43]execute_cgi path=json_proto method=POST [16:48:43]POST find Content-Length [16:48:43]Host: 172.17.44.67:8080 [16:48:43]Content-Length: 766 [16:48:43]Content-Type: application/json [16:48:43] [16:48:43]POST finish read [16:48:43]Found Content-Length = 766 [16:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 100.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:43]execute_script... [16:48:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 100.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:43]POST & json_proto [16:48:43]process_json_proto [16:48:43]json parsed OK: [16:48:43]protocol is kg_v1.0 [16:48:43]action value=close_receipt [16:48:43]process_action close_receipt [16:48:43]cmd_close_receipt [16:48:43]MH_GetDate [16:48:43]Write to MH i2c: F0 00 00 F5 09 ED [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: F0 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: F0 09 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: F0 09 00 F5 09 00 6D 91 12 67 F1 C7 6B 64 F4 [16:48:43]GetLastDocTimeStamp 1729270107 [16:48:43]current date 1729270125 [16:48:43]FM_GetShiftState [16:48:43]SAM_PROTO_GetShiftState [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 13 01 00 [16:48:43]Write to MH i2c: E2 08 00 F6 09 80 13 01 00 00 00 00 00 7C [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 0E 00 F6 09 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4E [16:48:43]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:48:43]wFMCommunicate OK [16:48:43]SAM_PROTO_GetShiftState done [16:48:43]FM_GetShiftState done [16:48:43]opened in 1729212319 [16:48:43]opened+sec_in_day 1729298719 [16:48:43]quantity*price = 10035 [16:48:43]sum+1 = 10036 [16:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.35 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 0.00 Безнал.: 100.35 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 120 18.10.2024 16:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82411 ФПД: 263074795293974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164845&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82411&fm=263074795293974&tin=02508201610067®Number=0000000000091680&sum=10035 [16:48:44]StoreToDocumentArchive [16:48:44]shift 526 fd 82411 [16:48:44]save to /storage/0526/doc_00082411 [16:48:44]save last doc name /storage/0526/doc_00082411 to /storage/kkm_last_doc_name [16:48:44]save OK [16:48:44]Clear old archive folders... [16:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:44]tlvbuf is 00DE9530 [16:48:44]SAM_PROTO_ClearQueue [16:48:44]wFMCommunicate request_size=4 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 09 00 00 [16:48:44]Write to MH i2c: E2 08 00 03 0A 80 09 00 00 00 00 00 00 7F [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [16:48:44]RAPDU: 90 00 [16:48:44]wFMCommunicate OK [16:48:44]SAM_PROTO_ClearQueue done [16:48:44]KKMCreateOFDPacket [16:48:44]OFDProtocolAddRootSTLVToBuf [16:48:44]FM_MakeSignedData [16:48:44]FM_MakeSignedData [16:48:44]SAM_PROTO_SignData [16:48:44]wFMCommunicate request_size=4 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 0D 01 02 [16:48:44]Write to MH i2c: E2 08 00 04 0A 80 0D 01 02 00 00 00 00 87 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [16:48:44]RAPDU: 90 00 [16:48:44]wFMCommunicate OK [16:48:44]wFMCommunicate request_size=255 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 41 01 00 35 04 06 00 EF [16:48:44]Write to MH i2c: E2 02 01 05 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 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 41 01 00 35 04 06 00 EF 00 00 5B [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:45]recv_with_timeout no data received [16:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [16:48:45]RAPDU: 90 00 [16:48:45]wFMCommunicate OK [16:48:45]wFMCommunicate request_size=10 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 0D 02 02 05 43 DF B9 0D 16 [16:48:45]Write to MH i2c: E2 0D 00 06 0A 80 0D 02 02 05 00 43 DF B9 0D 16 00 00 92 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [16:48:45]RAPDU: 90 00 [16:48:45]wFMCommunicate OK [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 0D 03 02 [16:48:45]Write to MH i2c: E2 08 00 07 0A 80 0D 03 02 00 00 00 00 8C [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0B 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0B 00 07 0A 00 71 AF 68 25 B4 12 20 F7 90 00 17 [16:48:45]RAPDU: 71 AF 68 25 B4 12 20 F7 90 00 [16:48:45]wFMCommunicate OK [16:48:45]SAM_PROTO_SignData done [16:48:45]FM_MakeSignedData done [16:48:45]CreateOFDProtocolMessage [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 11 00 00 [16:48:45]Write to MH i2c: E2 08 00 08 0A 80 11 00 00 00 00 00 00 8C [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 17 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 17 00 08 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DE [16:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:48:45]wFMCommunicate OK [16:48:45]CreateOFDProtocolMessage done [16:48:45]OFDSenderStorePacket 82411 [16:48:45]StoreOFDPacket docnum=82411 [16:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 B8 07 01 DB 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 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 41 01 00 35 04 06 00 EF 43 DF B9 0D 16 71 AF 68 25 B4 12 20 F7 [16:48:45]CheckFolder [16:48:45]dirname=/storage/ofd_packets [16:48:45]CheckFolder done [16:48:45]ProducePacketName [16:48:45]name=ofd_packets/00082411 [16:48:45]NVStorageSaveData ofd_packets/00082411 [16:48:45]File name is /storage/ofd_packets/00082411 [16:48:45]Write 301 bytes [16:48:45]NVStorageSaveData done [16:48:45]OFDSenderStorePacket done [16:48:45]KKMCreateOFDPacket done [16:48:45]NVStorageSaveData kkm_last_timestamp [16:48:45]File name is /storage/kkm_last_timestamp [16:48:45]Write 4 bytes [16:48:45]NVStorageSaveData done [16:48:45]ExternCall_PrintAddStr [16:48:45]wPrintStart [16:48:45]Write to MH i2c: 01 00 00 09 0A 13 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 07 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 FF 0F 28 [16:48:45]RasterBufferAndPrint [16:48:45]line Счет N : (1)918902 [16:48:45]line ИНН: 02508201610067 [16:48:45]line Контрольно-Кассовый Чек [16:48:45]line ПРОДАЖА [16:48:45]line ТРК (МРК, ГНК) : 22 [16:48:45]line Товар: 2710124130 [16:48:45]line Аи-92-К-4 [16:48:45]line 1.500 * 66.90 [16:48:45]line = 100.35 [16:48:45]line НДС 12% НСП 1% [16:48:45]line > о реализуемом товаре [16:48:45]line ИТОГО: 100.35 [16:48:45]line НСП 1% : 0.89 [16:48:45]line НДС 12% : 10.66 [16:48:45]line Наличными: 0.00 [16:48:45]line Безнал.: 100.35 [16:48:45]line Место: АЗС № 114 "Партнер Нефть" [16:48:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [16:48:45]line СНО: Общий режим [16:48:45]line Чек 120 18.10.2024 16:48 [16:48:45]line Смена: 526 ФФД: 1.0 [16:48:45]line ЗНМ: 0300000086 [16:48:45]line РНМ: 0000000000091680 [16:48:45]line Версия ККМ: 001 [16:48:45]line Платежная система: Mbank [16:48:45]line ФМ: 0000000000871843 [16:48:45]line ФД: 82411 [16:48:45]line ФПД: 263074795293974 [16:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T164845&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82411&fm=263074795293974&tin=02508201610067®Number=0000000000091680&sum=10035 [16:48:45]written 0, free lines is 4095 [16:48:45]OFD Sender: Processing packet 82411 [packets to send 254, broken 253] [16:48:45]ProducePacketName [16:48:45]name=ofd_packets/00082411 [16:48:45]OFD Sender: To server: pG, [16:48:45]CommunicateWithHost lk.salyk.kg:30040 [16:48:45]ConnectInit lk.salyk.kg [16:48:45]Write to MH i2c: 01 00 00 32 0A 3C [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 07 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: 01 07 00 32 0A 00 00 00 00 00 07 0D 57 [16:48:45]RasterBufferAndPrint [16:48:45]line [16:48:45]line [16:48:45]line [16:48:45]line [16:48:45]line [16:48:45]written 0, free lines is 3345 [16:48:45]MH_Cut [16:48:45]Write to MH i2c: D1 01 00 39 0A 01 15 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: D1 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: D1 01 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: D1 01 00 39 0A 00 14 [16:48:45]Write to MH i2c: 01 00 00 3A 0A 44 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:46]*** Cut start [16:48:46]*** Partial cut [16:48:46]*** CUTSNS_PIN = 1 [16:48:46]*** CUTSNS_PIN = 0 [16:48:46]*** Brake cut motor [16:48:46]Connected sock=9 [16:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 B8 07 01 DB 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 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 6D 91 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 41 01 00 35 04 06 00 EF 43 DF B9 0D 16 71 AF 68 25 B4 12 20 F7 [16:48:47]Read from MH i2c: 01 [16:48:47]MH_I2C_Read... [16:48:47]*** Stop cut motor [16:48:47]*** Cut end [16:48:47]Read from MH i2c: 01 07 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 07 00 3A 0A 00 00 00 00 00 FF 0F 59 [16:48:47]process_action close_receipt done [16:48:47]requested_data is exist [16:48:47]produce_requested_data [16:48:47]requested_item fm.sn is exist - process it [16:48:47]wFMCommunicate request_size=4 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 11 00 00 [16:48:47]Write to MH i2c: E2 08 00 3B 0A 80 11 00 00 00 00 00 00 BF [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 17 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 17 00 3B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 11 [16:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:48:47]wFMCommunicate OK [16:48:47]requested_item fd.num is exist - process it [16:48:47]SAM_PROTO_GetFieldsCounters [16:48:47]wFMCommunicate request_size=4 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 13 00 00 [16:48:47]Write to MH i2c: E2 08 00 3C 0A 80 13 00 00 00 00 00 00 C2 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 62 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 62 00 3C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:47]wFMCommunicate OK [16:48:47]SAM_PROTO_GetFieldsCounters done [16:48:47]requested_item shift.num is exist - process it [16:48:47]requested_item shift.opened is exist - process it [16:48:47]req_shift_opened [16:48:47]FM_GetShiftState [16:48:47]SAM_PROTO_GetShiftState [16:48:47]wFMCommunicate request_size=4 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 13 01 00 [16:48:47]Write to MH i2c: E2 08 00 3D 0A 80 13 01 00 00 00 00 00 C4 [16:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 8D AB 47 00 C4 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EB 41 01 00 F4 03 04 00 A8 36 12 67 B6 04 01 00 00 BD B4 D8 84 B3 FF 3F 92 [16:48:47]CommunicateWithHost err = 0 [16:48:47]CheckOFDResponse [16:48:47]1017 (14) - 77093643461234 [16:48:47]1041 (16) - 0000000000871843 [16:48:47]1040 (4) - 82411 [16:48:47]1012 (4) - 18.10.2024 10:21 [16:48:47]1206 (1) - 0 [16:48:47]OFD Sender: Remove packet 82411 [16:48:47]ProducePacketName [16:48:47]name=ofd_packets/00082411 [16:48:47]NVStorageDeleteData [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 0E 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 0E 00 3D 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 96 [16:48:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:48:47]wFMCommunicate OK [16:48:47]SAM_PROTO_GetShiftState done [16:48:47]FM_GetShiftState done [16:48:47]req_shift_opened done [16:48:47]requested_item shift.open_date is exist - process it [16:48:47]req_shift_open_date [16:48:47]req_shift_open_date done [16:48:47]produce_requested_data done [16:48:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82411,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [16:48:47]process_action_free close_receipt [16:48:47]json_value_free [16:48:47]json_value_free done [16:48:47]process_json_proto returns [16:48:47]Send response to host [16:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82411,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [16:48:47]free response buf [16:48:47]execute_script done [16:48:47]execute_script returns [16:48:47]free content buf [16:48:47]Sock 7.Close socket [16:48:47]Sock 7.Thread stoped [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:56]recv_with_timeout no data received [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:28]recv_with_timeout no data received [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]accept exits with 10 [16:50:18]New connection [16:50:18]New thread 3066969444 created [16:50:18]Thread 3066826084 joined [16:50:18]Waiting for new connection... [16:50:18] Sock 10.Parse request [16:50:18]Sock 10.Check first char [16:50:18]Sock 10.First char is OK [16:50:18]request: POST /json_proto HTTP/1.0 [16:50:18]Method: POST [16:50:18]URL: /json_proto [16:50:18]Method is POST - this is cgi request [16:50:18]url: /json_proto [16:50:18]query_string will be loaded in cgi processing [16:50:18]execute_cgi json_proto POST (null) [16:50:18]execute_cgi path=json_proto method=POST [16:50:18]POST find Content-Length [16:50:18]Host: 172.17.44.67:8080 [16:50:18]Content-Length: 766 [16:50:18]Content-Type: application/json [16:50:18] [16:50:18]POST finish read [16:50:18]Found Content-Length = 766 [16:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.010, "sum" : 134.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 134.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:18]execute_script... [16:50: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)918903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.010, "sum" : 134.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 134.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:18]POST & json_proto [16:50:18]process_json_proto [16:50:18]json parsed OK: [16:50:18]protocol is kg_v1.0 [16:50:18]action value=close_receipt [16:50:18]process_action close_receipt [16:50:18]cmd_close_receipt [16:50:18]MH_GetDate [16:50:18]Write to MH i2c: F0 00 00 3E 0A 37 [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: F0 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: F0 09 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: F0 09 00 3E 0A 00 CB 91 12 67 F1 C7 6B 64 9C [16:50:18]GetLastDocTimeStamp 1729270125 [16:50:18]current date 1729270219 [16:50:18]FM_GetShiftState [16:50:18]SAM_PROTO_GetShiftState [16:50:18]wFMCommunicate request_size=4 [16:50:18]MH_SAM_APDU [16:50:18]CAPDU: 80 13 01 00 [16:50:18]Write to MH i2c: E2 08 00 3F 0A 80 13 01 00 00 00 00 00 C6 [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]OFD Sender: No OFD packet to send [16:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 0E 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 0E 00 3F 0A 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 98 [16:50:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [16:50:18]wFMCommunicate OK [16:50:18]SAM_PROTO_GetShiftState done [16:50:18]FM_GetShiftState done [16:50:18]opened in 1729212319 [16:50:18]opened+sec_in_day 1729298719 [16:50:18]quantity*price = 13446 [16:50:18]sum+1 = 13448 [16:50:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 122 18.10.2024 16:55 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82413 ФПД: 69248548354322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T165554&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82413&fm=69248548354322&tin=02508201610067®Number=0000000000091680&sum=50011 [16:55:54]StoreToDocumentArchive [16:55:54]shift 526 fd 82413 [16:55:54]save to /storage/0526/doc_00082413 [16:55:54]save last doc name /storage/0526/doc_00082413 to /storage/kkm_last_doc_name [16:55:54]save OK [16:55:54]Clear old archive folders... [16:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:54]tlvbuf is 00DAEA70 [16:55:54]SAM_PROTO_ClearQueue [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 09 00 00 [16:55:54]Write to MH i2c: E2 08 00 95 0A 80 09 00 00 00 00 00 00 11 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [16:55:54]RAPDU: 90 00 [16:55:54]wFMCommunicate OK [16:55:54]SAM_PROTO_ClearQueue done [16:55:54]KKMCreateOFDPacket [16:55:54]OFDProtocolAddRootSTLVToBuf [16:55:54]FM_MakeSignedData [16:55:54]FM_MakeSignedData [16:55:54]SAM_PROTO_SignData [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 0D 01 02 [16:55:54]Write to MH i2c: E2 08 00 96 0A 80 0D 01 02 00 00 00 00 19 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [16:55:54]RAPDU: 90 00 [16:55:54]wFMCommunicate OK [16:55:54]wFMCommunicate request_size=255 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1A 93 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 41 01 00 35 04 06 00 3E [16:55:54]Write to MH i2c: E2 02 01 97 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1A 93 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 41 01 00 35 04 06 00 3E 00 00 B1 [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [16:55:54]RAPDU: 90 00 [16:55:54]wFMCommunicate OK [16:55:54]wFMCommunicate request_size=10 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 0D 02 02 05 FB 2F 20 39 12 [16:55:54]Write to MH i2c: E2 0D 00 98 0A 80 0D 02 02 05 00 FB 2F 20 39 12 00 00 BB [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [16:55:54]RAPDU: 90 00 [16:55:54]wFMCommunicate OK [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 0D 03 02 [16:55:54]Write to MH i2c: E2 08 00 99 0A 80 0D 03 02 00 00 00 00 1E [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0B 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 0B 00 99 0A 00 2A 77 D0 65 71 00 8B 5E 90 00 4F [16:55:54]RAPDU: 2A 77 D0 65 71 00 8B 5E 90 00 [16:55:54]wFMCommunicate OK [16:55:54]SAM_PROTO_SignData done [16:55:54]FM_MakeSignedData done [16:55:54]CreateOFDProtocolMessage [16:55:54]wFMCommunicate request_size=4 [16:55:54]MH_SAM_APDU [16:55:54]CAPDU: 80 11 00 00 [16:55:54]Write to MH i2c: E2 08 00 9A 0A 80 11 00 00 00 00 00 00 1E [16:55:54]Write i2c OK [16:55:54]MH_I2C_Read... [16:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:54]Read from MH i2c: E2 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 17 00 [16:55:54]MH_I2C_Read... [16:55:54]Read from MH i2c: E2 17 00 9A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 70 [16:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [16:55:54]wFMCommunicate OK [16:55:54]CreateOFDProtocolMessage done [16:55:54]OFDSenderStorePacket 82413 [16:55:54]StoreOFDPacket docnum=82413 [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [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 54000000005725AE (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: 44485888+1684785137=1729271025 [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [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 F1 94 12 67 F1 C7 6B 64 84 [17:03:45]Current date/time: 18.10.2024 17:03 [17:03:45]FM_Init [17:03:45]wFMConnect [17:03:45]MH_SAM_On [17:03:45]Write to MH i2c: E0 00 00 08 00 E7 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_init finished! [17:03:45]*** atr: [17:03:45]*** 0F 3B D5 18 FF 81 91 FE [17:03:45]*** 1F C3 80 73 C8 21 10 0A [17:03:45]*** 00 00 00 00 00 00 00 00 [17:03:45]*** 00 00 00 00 00 00 00 00 [17:03:45]*** 00 00 00 00 00 00 00 00 [17:03:45]*** 00 00 00 00 00 00 00 00 [17:03:45]*** 00 00 00 00 00 00 00 00 [17:03:45]*** 00 00 00 00 00 00 00 00 [17:03:45]Read from MH i2c: E0 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E0 10 00 [17:03:45]MH_I2C_Read... [17:03:45]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 [17:03:45]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:03:45]wFMCommunicate request_size=10 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:03:45]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 11 00 00 [17:03:45]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [17:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:03:45]wFMCommunicate OK [17:03:45]Detected FM SN is 0000000000871843 [17:03:45]Stored FM SN is 0000000000871843 [17:03:45]wFMCommunicate request_size=9 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 16 00 00 04 C3 A3 00 00 [17:03:45]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]FM PIN OK [17:03:45]wFMCommunicate request_size=8 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 14 04 00 03 02 00 01 [17:03:45]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]wFMCommunicate request_size=13 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:03:45]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 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:03:45]RAPDU: 90 00 [17:03:45]wFMCommunicate OK [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 11 00 00 [17:03:45]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:45]Read from MH i2c: E2 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [17:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:03:45]wFMCommunicate OK [17:03:45]DocumentArchiveInit [17:03:45]Start Httpd... [17:03:45]Httpd thread 3067604324 created [17:03:45]Write to MH i2c: 01 00 00 0F 00 0F [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 [17:03:45]MH_I2C_Read... [17:03:45]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:03:45]MH Int Process started [17:03:45]Allocated Socket 8 [17:03:45]Bind OK [17:03:45]Listen OK [17:03:45]httpd running on port 8080 [17:03:45]Waiting for new connection... [17:03:45]OFD Sender: Processing packet 82413 [packets to send 254, broken 253] [17:03:45]ProducePacketName [17:03:45]name=ofd_packets/00082413 [17:03:45]OFD Sender: To server: pG, [17:03:45]CommunicateWithHost lk.salyk.kg:30040 [17:03:45]ConnectInit lk.salyk.kg [17:03:46]Connected sock=6 [17:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D8 1A 07 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1A 93 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 41 01 00 35 04 06 00 3E FB 2F 20 39 12 2A 77 D0 65 71 00 8B 5E [17:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4D 7A 47 00 1D 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 ED 41 01 00 F4 03 04 00 2B 3A 12 67 B6 04 01 00 00 CC CB 89 11 95 36 23 B8 [17:03:47]CommunicateWithHost err = 0 [17:03:47]CheckOFDResponse [17:03:47]1017 (14) - 77093643461234 [17:03:47]1041 (16) - 0000000000871843 [17:03:47]1040 (4) - 82413 [17:03:47]1012 (4) - 18.10.2024 10:36 [17:03:47]1206 (1) - 0 [17:03:47]OFD Sender: Remove packet 82413 [17:03:47]ProducePacketName [17:03:47]name=ofd_packets/00082413 [17:03:47]NVStorageDeleteData [17:03:47]accept exits with 9 [17:03:47]New connection [17:03:47]New thread 3067317604 created [17:03:47]Waiting for new connection... [17:03:47] Sock 9.Parse request [17:03:47]Sock 9.Check first char [17:03:47]Sock 9.First char is OK [17:03:47]request: POST /json_proto HTTP/1.0 [17:03:47]Method: POST [17:03:47]URL: /json_proto [17:03:47]Method is POST - this is cgi request [17:03:47]url: /json_proto [17:03:47]query_string will be loaded in cgi processing [17:03:47]execute_cgi json_proto POST (null) [17:03:47]execute_cgi path=json_proto method=POST [17:03:47]POST find Content-Length [17:03:47]Host: 172.17.44.67:8080 [17:03:47]Content-Length: 215 [17:03:47]Content-Type: application/json [17:03:47] [17:03:47]POST finish read [17:03:47]Found Content-Length = 215 [17:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:47]execute_script... [17:03:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:47]POST & json_proto [17:03:47]process_json_proto [17:03:47]json parsed OK: [17:03:47]protocol is kg_v1.0 [17:03:47]action value=get_value [17:03:47]process_action get_value [17:03:47]cmd_get_value [17:03:47]process_action get_value done [17:03:47]requested_data is exist [17:03:47]produce_requested_data [17:03:47]requested_item kkm.sn is exist - process it [17:03:47]requested_item kkm.ver is exist - process it [17:03:47]requested_item fm.sn is exist - process it [17:03:47]wFMCommunicate request_size=4 [17:03:47]MH_SAM_APDU [17:03:47]CAPDU: 80 11 00 00 [17:03:47]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 17 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [17:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:03:48]wFMCommunicate OK [17:03:48]requested_item fd.num is exist - process it [17:03:48]SAM_PROTO_GetFieldsCounters [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 13 00 00 [17:03:48]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]OFD Sender: No OFD packet to send [17:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 62 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 ED 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [17:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 ED 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:48]wFMCommunicate OK [17:03:48]SAM_PROTO_GetFieldsCounters done [17:03:48]requested_item shift.num is exist - process it [17:03:48]requested_item shift.opened is exist - process it [17:03:48]req_shift_opened [17:03:48]FM_GetShiftState [17:03:48]SAM_PROTO_GetShiftState [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 13 01 00 [17:03:48]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 0E 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 61 [17:03:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:03:48]wFMCommunicate OK [17:03:48]SAM_PROTO_GetShiftState done [17:03:48]FM_GetShiftState done [17:03:48]req_shift_opened done [17:03:48]requested_item shift.open_date is exist - process it [17:03:48]req_shift_open_date [17:03:48]req_shift_open_date done [17:03:48]produce_requested_data done [17:03:48]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82413,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:03:48]process_action_free get_value [17:03:48]json_value_free [17:03:48]json_value_free done [17:03:48]process_json_proto returns [17:03:48]Send response to host [17:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82413,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:03:48]free response buf [17:03:48]execute_script done [17:03:48]execute_script returns [17:03:48]free content buf [17:03:48]Sock 9.Close socket [17:03:48]Sock 9.Thread stoped [17:03:48]accept exits with 6 [17:03:48]New connection [17:03:48]New thread 3067174244 created [17:03:48]Thread 3067317604 joined [17:03:48]Waiting for new connection... [17:03:48] Sock 6.Parse request [17:03:48]Sock 6.Check first char [17:03:48]Sock 6.First char is OK [17:03:48]request: POST /json_proto HTTP/1.0 [17:03:48]Method: POST [17:03:48]URL: /json_proto [17:03:48]Method is POST - this is cgi request [17:03:48]url: /json_proto [17:03:48]query_string will be loaded in cgi processing [17:03:48]execute_cgi json_proto POST (null) [17:03:48]execute_cgi path=json_proto method=POST [17:03:48]POST find Content-Length [17:03:48]Host: 172.17.44.67:8080 [17:03:48]Content-Length: 331 [17:03:48]Content-Type: application/json [17:03:48] [17:03:48]POST finish read [17:03:48]Found Content-Length = 331 [17:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:03:48]execute_script... [17:03:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:03:48]POST & json_proto [17:03:48]process_json_proto [17:03:48]json parsed OK: [17:03:48]protocol is kg_v1.0 [17:03:48]action value=get_value [17:03:48]process_action get_value [17:03:48]cmd_get_value [17:03:48]process_action get_value done [17:03:48]requested_data is exist [17:03:48]produce_requested_data [17:03:48]requested_item fm.sale.total is exist - process it [17:03:48]SAM_PROTO_GetFMData [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 13 03 00 [17:03:48]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 FD 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 D1 3D 01 00 69 04 A3 00 6F 04 04 00 36 3B 01 00 B1 04 05 00 8C CE B6 7B 01 70 04 05 00 F0 71 56 41 01 72 04 04 00 9C 5C 60 3A 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 16 59 56 28 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 21 74 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 AD [17:03:48]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 D1 3D 01 00 69 04 A3 00 6F 04 04 00 36 3B 01 00 B1 04 05 00 8C CE B6 7B 01 70 04 05 00 F0 71 56 41 01 72 04 04 00 9C 5C 60 3A 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 16 59 56 28 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 21 74 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [17:03:48]wFMCommunicate OK [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 17 00 00 [17:03:48]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 FD 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 FD 00 14 00 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [17:03:48]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:03:49]wFMCommunicate OK [17:03:49]wFMCommunicate request_size=4 [17:03:49]MH_SAM_APDU [17:03:49]CAPDU: 80 17 00 00 [17:03:49]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:03:49]Write i2c OK [17:03:49]MH_I2C_Read... [17:03:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:03:49]Read from MH i2c: E2 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 FD 00 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [17:03:49]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:03:49]wFMCommunicate OK [17:03:49]wFMCommunicate request_size=4 [17:03:49]MH_SAM_APDU [17:03:49]CAPDU: 80 17 00 00 [17:03:49]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:03:49]Write i2c OK [17:03:49]MH_I2C_Read... [17:03:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:03:49]Read from MH i2c: E2 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 FD 00 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [17:03:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:03:49]wFMCommunicate OK [17:03:49]wFMCommunicate request_size=4 [17:03:49]MH_SAM_APDU [17:03:49]CAPDU: 80 17 00 00 [17:03:49]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:03:49]Write i2c OK [17:03:49]MH_I2C_Read... [17:03:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [17:03:49]Read from MH i2c: E2 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 E4 00 [17:03:49]MH_I2C_Read... [17:03:49]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [17:03:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:03:49]wFMCommunicate OK [17:03:49]SAM_PROTO_GetFMData done [17:03:49]requested_item fm.sale_refund.total is exist - process it [17:03:49]requested_item fm.buy.total is exist - process it [17:03:49]requested_item shift.sale.total is exist - process it [17:03:49]SAM_PROTO_GetShiftData [17:03:49]wFMCommunicate request_size=4 [17:03:49]MH_SAM_APDU [17:03:49]CAPDU: 80 13 02 00 [17:03:49]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:03:49]Write i2c OK [17:03:49]MH_I2C_Read... [17:03:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:03:50]Read from MH i2c: E2 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 FD 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 7A 00 00 00 69 04 9B 00 6F 04 04 00 77 00 00 00 B1 04 03 00 F1 65 5A 70 04 03 00 D0 13 30 72 04 03 00 21 52 2A 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 2A 9A 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 DB CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F8 [17:03:50]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 7A 00 00 00 69 04 9B 00 6F 04 04 00 77 00 00 00 B1 04 03 00 F1 65 5A 70 04 03 00 D0 13 30 72 04 03 00 21 52 2A 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 2A 9A 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 DB CC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [17:03:50]wFMCommunicate OK [17:03:50]wFMCommunicate request_size=4 [17:03:50]MH_SAM_APDU [17:03:50]CAPDU: 80 17 00 00 [17:03:50]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:03:50]Write i2c OK [17:03:50]MH_I2C_Read... [17:03:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:03:50]Read from MH i2c: E2 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 FD 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 7D [17:03:50]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [17:03:50]wFMCommunicate OK [17:03:50]wFMCommunicate request_size=4 [17:03:50]MH_SAM_APDU [17:03:50]CAPDU: 80 17 00 00 [17:03:50]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:03:50]Write i2c OK [17:03:50]MH_I2C_Read... [17:03:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:03:50]Read from MH i2c: E2 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 FD 00 [17:03:50]MH_I2C_Read... [17:03:50]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [17:03:50]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [17:03:50]wFMCommunicate OK [17:03:50]wFMCommunicate request_size=4 [17:03:50]MH_SAM_APDU [17:03:50]CAPDU: 80 17 00 00 [17:03:50]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:03:50]Write i2c OK [17:03:50]MH_I2C_Read... [17:03:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:03:51]Read from MH i2c: E2 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: E2 FD 00 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 24 [17:03:51]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [17:03:51]wFMCommunicate OK [17:03:51]wFMCommunicate request_size=4 [17:03:51]MH_SAM_APDU [17:03:51]CAPDU: 80 17 00 00 [17:03:51]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:03:51]Write i2c OK [17:03:51]MH_I2C_Read... [17:03:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [17:03:51]Read from MH i2c: E2 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: E2 D5 00 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:03:51]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:03:51]wFMCommunicate OK [17:03:51]SAM_PROTO_GetShiftData done [17:03:51]requested_item shift.sale.total_cash is exist - process it [17:03:51]requested_item shift.sale_refund.total is exist - process it [17:03:51]requested_item shift.sale_refund.total_cash is exist - process it [17:03:51]requested_item shift.buy.total is exist - process it [17:03:51]requested_item shift.buy.total_cash is exist - process it [17:03:51]produce_requested_data done [17:03:51]produce_requested_data return {"fm.sale.total":63705452.92,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":59243.37,"shift.sale.total_cash":31508.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:03:51]process_action_free get_value [17:03:51]json_value_free [17:03:51]json_value_free done [17:03:51]process_json_proto returns [17:03:51]Send response to host [17:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63705452.92,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":59243.37,"shift.sale.total_cash":31508.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:03:51]free response buf [17:03:51]execute_script done [17:03:51]execute_script returns [17:03:51]free content buf [17:03:51]Sock 6.Close socket [17:03:51]Sock 6.Thread stoped [17:03:51]accept exits with 9 [17:03:51]New connection [17:03:51]New thread 3067317604 created [17:03:51]Thread 3067174244 joined [17:03:51]Waiting for new connection... [17:03:51] Sock 9.Parse request [17:03:51]Sock 9.Check first char [17:03:51]Sock 9.First char is OK [17:03:51]request: POST /json_proto HTTP/1.0 [17:03:51]Method: POST [17:03:51]URL: /json_proto [17:03:51]Method is POST - this is cgi request [17:03:51]url: /json_proto [17:03:51]query_string will be loaded in cgi processing [17:03:51]execute_cgi json_proto POST (null) [17:03:51]execute_cgi path=json_proto method=POST [17:03:51]POST find Content-Length [17:03:51]Host: 172.17.44.67:8080 [17:03:51]Content-Length: 753 [17:03:51]Content-Type: application/json [17:03:51] [17:03:51]POST finish read [17:03:51]Found Content-Length = 753 [17:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.050, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:51]execute_script... [17:03:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.050, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085957", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:51]POST & json_proto [17:03:51]process_json_proto [17:03:51]json parsed OK: [17:03:51]protocol is kg_v1.0 [17:03:51]action value=close_receipt [17:03:51]process_action close_receipt [17:03:51]cmd_close_receipt [17:03:51]MH_GetDate [17:03:51]Write to MH i2c: F0 00 00 1D 00 0C [17:03:51]Write i2c OK [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: F0 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: F0 09 00 [17:03:51]MH_I2C_Read... [17:03:51]Read from MH i2c: F0 09 00 1D 00 00 F8 94 12 67 F1 C7 6B 64 A1 [17:03:51]GetLastDocTimeStamp 1729270554 [17:03:51]current date 1729271032 [17:03:51]FM_GetShiftState [17:03:51]SAM_PROTO_GetShiftState [17:03:51]wFMCommunicate request_size=4 [17:03:51]MH_SAM_APDU [17:03:51]CAPDU: 80 13 01 00 [17:03:51]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:03:51]Write i2c OK [17:03:51]MH_I2C_Read... [17:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:52]Read from MH i2c: E2 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 0E 00 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6D [17:03:52]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:03:52]wFMCommunicate OK [17:03:52]SAM_PROTO_GetShiftState done [17:03:52]FM_GetShiftState done [17:03:52]opened in 1729212319 [17:03:52]opened+sec_in_day 1729298719 [17:03:52]quantity*price = 0 [17:03:52]sum+1 = 1 [17:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 123 18.10.2024 17:03 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30085957 ФМ: 0000000000871843 ФД: 82414 ФПД: 34772751336903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T170352&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82414&fm=34772751336903&tin=02508201610067®Number=0000000000091680&sum=0 [17:03:53]StoreToDocumentArchive [17:03:53]shift 526 fd 82414 [17:03:53]save to /storage/0526/doc_00082414 [17:03:53]save last doc name /storage/0526/doc_00082414 to /storage/kkm_last_doc_name [17:03:53]save OK [17:03:53]Clear old archive folders... [17:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:53]tlvbuf is 006300E0 [17:03:53]SAM_PROTO_ClearQueue [17:03:53]wFMCommunicate request_size=4 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 09 00 00 [17:03:53]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:03:53]OFD Sender: No OFD packet to send [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:03:53]RAPDU: 90 00 [17:03:53]wFMCommunicate OK [17:03:53]SAM_PROTO_ClearQueue done [17:03:53]KKMCreateOFDPacket [17:03:53]OFDProtocolAddRootSTLVToBuf [17:03:53]FM_MakeSignedData [17:03:53]FM_MakeSignedData [17:03:53]SAM_PROTO_SignData [17:03:53]wFMCommunicate request_size=4 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 0D 01 02 [17:03:53]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:03:53]RAPDU: 90 00 [17:03:53]wFMCommunicate OK [17:03:53]wFMCommunicate request_size=255 [17:03:53]MH_SAM_APDU [17:03: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 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F8 94 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 41 01 00 35 04 06 00 1F [17:03:53]Write to MH i2c: E2 02 01 2D 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 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F8 94 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 41 01 00 35 04 06 00 1F 00 00 58 [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:54]Read from MH i2c: E2 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 03 00 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:03:54]RAPDU: 90 00 [17:03:54]wFMCommunicate OK [17:03:54]wFMCommunicate request_size=10 [17:03:54]MH_SAM_APDU [17:03:54]CAPDU: 80 0D 02 02 05 A0 29 7D C5 C7 [17:03:54]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 A0 29 7D C5 C7 00 00 84 [17:03:54]Write i2c OK [17:03:54]MH_I2C_Read... [17:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:54]Read from MH i2c: E2 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 03 00 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:03:54]RAPDU: 90 00 [17:03:54]wFMCommunicate OK [17:03:54]wFMCommunicate request_size=4 [17:03:54]MH_SAM_APDU [17:03:54]CAPDU: 80 0D 03 02 [17:03:54]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:03:54]Write i2c OK [17:03:54]MH_I2C_Read... [17:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:54]Read from MH i2c: E2 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 0B 00 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 0B 00 2F 00 00 CB 1D A1 50 97 A2 28 8A 90 00 6F [17:03:54]RAPDU: CB 1D A1 50 97 A2 28 8A 90 00 [17:03:54]wFMCommunicate OK [17:03:54]SAM_PROTO_SignData done [17:03:54]FM_MakeSignedData done [17:03:54]CreateOFDProtocolMessage [17:03:54]wFMCommunicate request_size=4 [17:03:54]MH_SAM_APDU [17:03:54]CAPDU: 80 11 00 00 [17:03:54]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:03:54]Write i2c OK [17:03:54]MH_I2C_Read... [17:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:54]Read from MH i2c: E2 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 17 00 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [17:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:03:54]wFMCommunicate OK [17:03:54]CreateOFDProtocolMessage done [17:03:54]OFDSenderStorePacket 82414 [17:03:54]StoreOFDPacket docnum=82414 [17:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BC 17 07 01 2F 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F8 94 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 41 01 00 35 04 06 00 1F A0 29 7D C5 C7 CB 1D A1 50 97 A2 28 8A [17:03:54]CheckFolder [17:03:54]dirname=/storage/ofd_packets [17:03:54]CheckFolder done [17:03:54]ProducePacketName [17:03:54]name=ofd_packets/00082414 [17:03:54]NVStorageSaveData ofd_packets/00082414 [17:03:54]File name is /storage/ofd_packets/00082414 [17:03:54]Write 301 bytes [17:03:54]NVStorageSaveData done [17:03:54]OFDSenderStorePacket done [17:03:54]KKMCreateOFDPacket done [17:03:54]NVStorageSaveData kkm_last_timestamp [17:03:54]File name is /storage/kkm_last_timestamp [17:03:54]Write 4 bytes [17:03:54]NVStorageSaveData done [17:03:54]ExternCall_PrintAddStr [17:03:54]wPrintStart [17:03:54]Write to MH i2c: 01 00 00 31 00 31 [17:03:54]OFD Sender: Processing packet 82414 [packets to send 254, broken 253] [17:03:54]ProducePacketName [17:03:54]name=ofd_packets/00082414 [17:03:54]OFD Sender: To server: pG, [17:03:54]CommunicateWithHost lk.salyk.kg:30040 [17:03:54]ConnectInit lk.salyk.kg [17:03:54]Write i2c OK [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: 01 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: 01 07 00 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:03:54]RasterBufferAndPrint [17:03:54]line Счет N : (1)918905 [17:03:54]line ИНН: 02508201610067 [17:03:54]line Контрольно-Кассовый Чек [17:03:54]line ПРОДАЖА [17:03:54]line ТРК (МРК, ГНК) : 22 [17:03:54]line Товар: 2710124130 [17:03:54]line Аи-92-К-4 [17:03:54]line 5.050 * 0.00 [17:03:54]line = 0.00 [17:03:54]line НДС 12% НСП 1% [17:03:54]line > о реализуемом товаре [17:03:54]line ИТОГО: 0.00 [17:03:54]line НСП 1% : 0.00 [17:03:54]line НДС 12% : 0.00 [17:03:54]line Наличными: 0.00 [17:03:54]line Безнал.: 0.00 [17:03:54]line Место: АЗС № 114 "Партнер Нефть" [17:03:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:03:54]line СНО: Общий режим [17:03:54]line Чек 123 18.10.2024 17:03 [17:03:54]line Смена: 526 ФФД: 1.0 [17:03:54]line ЗНМ: 0300000086 [17:03:54]line РНМ: 0000000000091680 [17:03:54]line Версия ККМ: 001 [17:03:54]line Талоны: ТК ГПНА Online [17:03:54]line 30085957 [17:03:54]line ФМ: 0000000000871843 [17:03:54]line ФД: 82414 [17:03:54]line ФПД: 34772751336903 [17:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T170352&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82414&fm=34772751336903&tin=02508201610067®Number=0000000000091680&sum=0 [17:03:54]written 0, free lines is 4095 [17:03:54]Connected sock=10 [17:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BC 17 07 01 2F 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 F8 94 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 41 01 00 35 04 06 00 1F A0 29 7D C5 C7 CB 1D A1 50 97 A2 28 8A [17:03:55]Write to MH i2c: 01 00 00 5B 00 5B [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: 01 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: 01 07 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 D1 0D 40 [17:03:55]RasterBufferAndPrint [17:03:55]line [17:03:55]line [17:03:55]line [17:03:55]line [17:03:55]line [17:03:55]written 0, free lines is 3556 [17:03:55]MH_Cut [17:03:55]Write to MH i2c: D1 01 00 62 00 01 34 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: D1 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: D1 01 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: D1 01 00 62 00 00 33 [17:03:55]Write to MH i2c: 01 00 00 63 00 63 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0D C9 47 00 D4 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EE 41 01 00 F4 03 04 00 33 3A 12 67 B6 04 01 00 00 98 10 8C 82 C2 60 07 1D [17:03:55]CommunicateWithHost err = 0 [17:03:55]CheckOFDResponse [17:03:55]1017 (14) - 77093643461234 [17:03:55]1041 (16) - 0000000000871843 [17:03:55]1040 (4) - 82414 [17:03:55]1012 (4) - 18.10.2024 10:36 [17:03:55]1206 (1) - 0 [17:03:55]OFD Sender: Remove packet 82414 [17:03:55]ProducePacketName [17:03:55]name=ofd_packets/00082414 [17:03:55]NVStorageDeleteData [17:03:55]*** Cut start [17:03:55]*** Partial cut [17:03:55]*** CUTSNS_PIN = 1 [17:03:55]*** CUTSNS_PIN = 0 [17:03:55]*** Brake cut motor [17:03:55]OFD Sender: No OFD packet to send [17:03:56]Read from MH i2c: 01 [17:03:56]MH_I2C_Read... [17:03:56]*** Stop cut motor [17:03:56]*** Cut end [17:03:56]Read from MH i2c: 01 07 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [17:03:56]process_action close_receipt done [17:03:56]requested_data is exist [17:03:56]produce_requested_data [17:03:56]requested_item fm.sn is exist - process it [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 11 00 00 [17:03:56]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 17 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [17:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:03:56]wFMCommunicate OK [17:03:56]requested_item fd.num is exist - process it [17:03:56]SAM_PROTO_GetFieldsCounters [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 13 00 00 [17:03:56]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 62 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [17:03:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:56]wFMCommunicate OK [17:03:56]SAM_PROTO_GetFieldsCounters done [17:03:56]requested_item shift.num is exist - process it [17:03:56]requested_item shift.opened is exist - process it [17:03:56]req_shift_opened [17:03:56]FM_GetShiftState [17:03:56]SAM_PROTO_GetShiftState [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 13 01 00 [17:03:56]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 0E 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B5 [17:03:56]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:03:56]wFMCommunicate OK [17:03:56]SAM_PROTO_GetShiftState done [17:03:56]FM_GetShiftState done [17:03:56]req_shift_opened done [17:03:56]requested_item shift.open_date is exist - process it [17:03:56]req_shift_open_date [17:03:56]req_shift_open_date done [17:03:56]produce_requested_data done [17:03:56]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82414,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:03:56]process_action_free close_receipt [17:03:56]json_value_free [17:03:56]json_value_free done [17:03:56]process_json_proto returns [17:03:56]Send response to host [17:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82414,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:03:56]free response buf [17:03:56]execute_script done [17:03:56]execute_script returns [17:03:56]free content buf [17:03:56]Sock 9.Close socket [17:03:56]Sock 9.Thread stoped [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:14]accept exits with 6 [17:04:14]New connection [17:04:14]New thread 3067174244 created [17:04:14]Thread 3067317604 joined [17:04:14]Waiting for new connection... [17:04:14] Sock 6.Parse request [17:04:14]Sock 6.Check first char [17:04:14]Sock 6.First char is OK [17:04:14]request: POST /json_proto HTTP/1.0 [17:04:14]Method: POST [17:04:14]URL: /json_proto [17:04:14]Method is POST - this is cgi request [17:04:14]url: /json_proto [17:04:14]query_string will be loaded in cgi processing [17:04:14]execute_cgi json_proto POST (null) [17:04:14]execute_cgi path=json_proto method=POST [17:04:14]POST find Content-Length [17:04:14]Host: 172.17.44.67:8080 [17:04:14]Content-Length: 677 [17:04:14]Content-Type: application/json [17:04:14] [17:04:14]POST finish read [17:04:14]Found Content-Length = 677 [17:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:14]execute_script... [17:04: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)918907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:14]POST & json_proto [17:04:14]process_json_proto [17:04:14]json parsed OK: [17:04:14]protocol is kg_v1.0 [17:04:14]action value=close_receipt [17:04:14]process_action close_receipt [17:04:14]cmd_close_receipt [17:04:14]MH_GetDate [17:04:14]Write to MH i2c: F0 00 00 67 00 56 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: F0 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: F0 09 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: F0 09 00 67 00 00 0F 95 12 67 F1 C7 6B 64 03 [17:04:14]GetLastDocTimeStamp 1729271032 [17:04:14]current date 1729271055 [17:04:14]FM_GetShiftState [17:04:14]SAM_PROTO_GetShiftState [17:04:14]wFMCommunicate request_size=4 [17:04:14]MH_SAM_APDU [17:04:14]CAPDU: 80 13 01 00 [17:04:14]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 0E 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B7 [17:04:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:04:14]wFMCommunicate OK [17:04:14]SAM_PROTO_GetShiftState done [17:04:14]FM_GetShiftState done [17:04:14]opened in 1729212319 [17:04:14]opened+sec_in_day 1729298719 [17:04:14]quantity*price = 30038 [17:04:14]sum+1 = 30039 [17:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 124 18.10.2024 17:04 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82415 ФПД: 78146258132116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T170415&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82415&fm=78146258132116&tin=02508201610067®Number=0000000000091680&sum=30000 [17:04:15]StoreToDocumentArchive [17:04:15]shift 526 fd 82415 [17:04:15]save to /storage/0526/doc_00082415 [17:04:15]save last doc name /storage/0526/doc_00082415 to /storage/kkm_last_doc_name [17:04:15]save OK [17:04:15]Clear old archive folders... [17:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:15]tlvbuf is 005C8490 [17:04:15]SAM_PROTO_ClearQueue [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 09 00 00 [17:04:15]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]SAM_PROTO_ClearQueue done [17:04:15]KKMCreateOFDPacket [17:04:15]OFDProtocolAddRootSTLVToBuf [17:04:15]FM_MakeSignedData [17:04:15]FM_MakeSignedData [17:04:15]SAM_PROTO_SignData [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 01 02 [17:04:15]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]wFMCommunicate request_size=255 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 0F 95 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 41 01 00 35 04 06 00 47 [17:04:15]Write to MH i2c: E2 02 01 77 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 0F 95 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 41 01 00 35 04 06 00 47 00 00 90 [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]wFMCommunicate request_size=10 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 02 02 05 12 D7 F4 DC 94 [17:04:15]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 12 D7 F4 DC 94 00 00 49 [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:04:15]RAPDU: 90 00 [17:04:15]wFMCommunicate OK [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 0D 03 02 [17:04:15]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [17:04:16]OFD Sender: No OFD packet to send [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:16]Read from MH i2c: E2 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 0B 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 0B 00 79 00 00 89 C8 14 D3 55 54 91 59 90 00 C0 [17:04:16]RAPDU: 89 C8 14 D3 55 54 91 59 90 00 [17:04:16]wFMCommunicate OK [17:04:16]SAM_PROTO_SignData done [17:04:16]FM_MakeSignedData done [17:04:16]CreateOFDProtocolMessage [17:04:16]wFMCommunicate request_size=4 [17:04:16]MH_SAM_APDU [17:04:16]CAPDU: 80 11 00 00 [17:04:16]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:16]Read from MH i2c: E2 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 17 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 46 [17:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:04:16]wFMCommunicate OK [17:04:16]CreateOFDProtocolMessage done [17:04:16]OFDSenderStorePacket 82415 [17:04:16]StoreOFDPacket docnum=82415 [17:04:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 78 4C 07 01 96 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 0F 95 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 41 01 00 35 04 06 00 47 12 D7 F4 DC 94 89 C8 14 D3 55 54 91 59 [17:04:16]CheckFolder [17:04:16]dirname=/storage/ofd_packets [17:04:16]CheckFolder done [17:04:16]ProducePacketName [17:04:16]name=ofd_packets/00082415 [17:04:16]NVStorageSaveData ofd_packets/00082415 [17:04:16]File name is /storage/ofd_packets/00082415 [17:04:16]Write 301 bytes [17:04:16]NVStorageSaveData done [17:04:16]OFDSenderStorePacket done [17:04:16]KKMCreateOFDPacket done [17:04:16]NVStorageSaveData kkm_last_timestamp [17:04:16]File name is /storage/kkm_last_timestamp [17:04:16]Write 4 bytes [17:04:16]NVStorageSaveData done [17:04:16]ExternCall_PrintAddStr [17:04:16]wPrintStart [17:04:16]Write to MH i2c: 01 00 00 7B 00 7B [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 07 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [17:04:16]RasterBufferAndPrint [17:04:16]line Счет N : (1)918907 [17:04:16]line ИНН: 02508201610067 [17:04:16]line Контрольно-Кассовый Чек [17:04:16]line ПРОДАЖА [17:04:16]line ТРК (МРК, ГНК) : 11 [17:04:16]line Товар: 2710124130 [17:04:16]line Аи-92-К-4 [17:04:16]line 4.490 * 66.90 [17:04:16]line = 300.38 [17:04:16]line НДС 12% НСП 1% [17:04:16]line > о реализуемом товаре [17:04:16]line ОКРУГЛЕНИЕ: -0.38 [17:04:16]line ИТОГО: 300.00 [17:04:16]line Внесено: 300.00 [17:04:16]line СДАЧА: 0.00 [17:04:16]line НСП 1% : 2.66 [17:04:16]line НДС 12% : 31.90 [17:04:16]line Наличными: 300.00 [17:04:16]line Безнал.: 0.00 [17:04:16]line Место: АЗС № 114 "Партнер Нефть" [17:04:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:04:16]line СНО: Общий режим [17:04:16]line Чек 124 18.10.2024 17:04 [17:04:16]line Смена: 526 ФФД: 1.0 [17:04:16]line ЗНМ: 0300000086 [17:04:16]line РНМ: 0000000000091680 [17:04:16]line Версия ККМ: 001 [17:04:16]line ФМ: 0000000000871843 [17:04:16]line ФД: 82415 [17:04:16]line ФПД: 78146258132116 [17:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T170415&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82415&fm=78146258132116&tin=02508201610067®Number=0000000000091680&sum=30000 [17:04:16]written 0, free lines is 4095 [17:04:16]OFD Sender: Processing packet 82415 [packets to send 254, broken 253] [17:04:16]ProducePacketName [17:04:16]name=ofd_packets/00082415 [17:04:16]OFD Sender: To server: pG, [17:04:16]CommunicateWithHost lk.salyk.kg:30040 [17:04:16]ConnectInit lk.salyk.kg [17:04:16]Write to MH i2c: 01 00 00 A6 00 A6 [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 07 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 D4 0C 8D [17:04:16]RasterBufferAndPrint [17:04:16]line [17:04:16]line [17:04:16]line [17:04:16]line [17:04:16]line [17:04:16]written 0, free lines is 3302 [17:04:16]MH_Cut [17:04:16]Write to MH i2c: D1 01 00 AD 00 01 7F [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: D1 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: D1 01 00 [17:04:16]MH_I2C_Read... [17:04:16]Read from MH i2c: D1 01 00 AD 00 00 7E [17:04:16]Write to MH i2c: 01 00 00 AE 00 AE [17:04:16]Write i2c OK [17:04:16]MH_I2C_Read... [17:04:17]*** Cut start [17:04:17]*** Partial cut [17:04:17]*** CUTSNS_PIN = 1 [17:04:17]*** CUTSNS_PIN = 0 [17:04:17]*** Brake cut motor [17:04:17]Connected sock=11 [17:04:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 78 4C 07 01 96 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 0F 95 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 41 01 00 35 04 06 00 47 12 D7 F4 DC 94 89 C8 14 D3 55 54 91 59 [17:04:18]Read from MH i2c: 01 [17:04:18]MH_I2C_Read... [17:04:18]*** Stop cut motor [17:04:18]*** Cut end [17:04:18]Read from MH i2c: 01 07 00 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [17:04:18]process_action close_receipt done [17:04:18]requested_data is exist [17:04:18]produce_requested_data [17:04:18]requested_item fm.sn is exist - process it [17:04:18]wFMCommunicate request_size=4 [17:04:18]MH_SAM_APDU [17:04:18]CAPDU: 80 11 00 00 [17:04:18]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [17:04:18]Write i2c OK [17:04:18]MH_I2C_Read... [17:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:18]Read from MH i2c: E2 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: E2 17 00 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [17:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:04:18]wFMCommunicate OK [17:04:18]requested_item fd.num is exist - process it [17:04:18]SAM_PROTO_GetFieldsCounters [17:04:18]wFMCommunicate request_size=4 [17:04:18]MH_SAM_APDU [17:04:18]CAPDU: 80 13 00 00 [17:04:18]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [17:04:18]Write i2c OK [17:04:18]MH_I2C_Read... [17:04:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:18]Read from MH i2c: E2 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: E2 62 00 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [17:04:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 EF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:18]wFMCommunicate OK [17:04:18]SAM_PROTO_GetFieldsCounters done [17:04:18]requested_item shift.num is exist - process it [17:04:18]requested_item shift.opened is exist - process it [17:04:18]req_shift_opened [17:04:18]FM_GetShiftState [17:04:18]SAM_PROTO_GetShiftState [17:04:18]wFMCommunicate request_size=4 [17:04:18]MH_SAM_APDU [17:04:18]CAPDU: 80 13 01 00 [17:04:18]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [17:04:18]Write i2c OK [17:04:18]MH_I2C_Read... [17:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:18]Read from MH i2c: E2 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: E2 0E 00 [17:04:18]MH_I2C_Read... [17:04:18]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 00 [17:04:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:04:18]wFMCommunicate OK [17:04:18]SAM_PROTO_GetShiftState done [17:04:18]FM_GetShiftState done [17:04:18]req_shift_opened done [17:04:18]requested_item shift.open_date is exist - process it [17:04:18]req_shift_open_date [17:04:18]req_shift_open_date done [17:04:18]produce_requested_data done [17:04:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82415,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:04:18]process_action_free close_receipt [17:04:18]json_value_free [17:04:18]json_value_free done [17:04:18]process_json_proto returns [17:04:18]Send response to host [17:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82415,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:04:18]free response buf [17:04:18]execute_script done [17:04:18]execute_script returns [17:04:18]free content buf [17:04:18]Sock 6.Close socket [17:04:18]Sock 6.Thread stoped [17:04:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 EE 23 47 00 CC 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 EF 41 01 00 F4 03 04 00 4A 3A 12 67 B6 04 01 00 00 C9 3A 19 38 EB 27 0D 33 [17:04:18]CommunicateWithHost err = 0 [17:04:18]CheckOFDResponse [17:04:18]1017 (14) - 77093643461234 [17:04:18]1041 (16) - 0000000000871843 [17:04:18]1040 (4) - 82415 [17:04:18]1012 (4) - 18.10.2024 10:36 [17:04:18]1206 (1) - 0 [17:04:18]OFD Sender: Remove packet 82415 [17:04:18]ProducePacketName [17:04:18]name=ofd_packets/00082415 [17:04:18]NVStorageDeleteData [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:07]recv_with_timeout no data received [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:18]recv_with_timeout no data received [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:28]recv_with_timeout no data received [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:33]recv_with_timeout no data received [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:07:59]recv_with_timeout no data received [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:23]recv_with_timeout no data received [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:50]accept exits with 9 [17:08:50]New connection [17:08:50]New thread 3067317604 created [17:08:50]Thread 3067174244 joined [17:08:50]Waiting for new connection... [17:08:50] Sock 9.Parse request [17:08:50]Sock 9.Check first char [17:08:50]Sock 9.First char is OK [17:08:50]request: POST /json_proto HTTP/1.0 [17:08:50]Method: POST [17:08:50]URL: /json_proto [17:08:50]Method is POST - this is cgi request [17:08:50]url: /json_proto [17:08:50]query_string will be loaded in cgi processing [17:08:50]execute_cgi json_proto POST (null) [17:08:50]execute_cgi path=json_proto method=POST [17:08:50]POST find Content-Length [17:08:50]Host: 172.17.44.67:8080 [17:08:50]Content-Length: 677 [17:08:50]Content-Type: application/json [17:08:50] [17:08:50]POST finish read [17:08:50]Found Content-Length = 677 [17:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:50]execute_script... [17:08: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)918908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:50]POST & json_proto [17:08:50]process_json_proto [17:08:50]json parsed OK: [17:08:50]protocol is kg_v1.0 [17:08:50]action value=close_receipt [17:08:50]process_action close_receipt [17:08:50]cmd_close_receipt [17:08:50]MH_GetDate [17:08:50]Write to MH i2c: F0 00 00 B2 00 A1 [17:08:50]Write i2c OK [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: F0 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: F0 09 00 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: F0 09 00 B2 00 00 23 96 12 67 F1 C7 6B 64 63 [17:08:50]GetLastDocTimeStamp 1729271055 [17:08:50]current date 1729271331 [17:08:50]FM_GetShiftState [17:08:50]SAM_PROTO_GetShiftState [17:08:50]wFMCommunicate request_size=4 [17:08:50]MH_SAM_APDU [17:08:50]CAPDU: 80 13 01 00 [17:08:50]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [17:08:50]Write i2c OK [17:08:50]MH_I2C_Read... [17:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:50]Read from MH i2c: E2 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 0E 00 [17:08:50]MH_I2C_Read... [17:08:50]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 02 [17:08:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:08:50]wFMCommunicate OK [17:08:50]SAM_PROTO_GetShiftState done [17:08:50]FM_GetShiftState done [17:08:50]opened in 1729212319 [17:08:50]opened+sec_in_day 1729298719 [17:08:50]quantity*price = 20003 [17:08:50]sum+1 = 20004 [17:08:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 125 18.10.2024 17:08 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82416 ФПД: 39308796973535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T170851&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82416&fm=39308796973535&tin=02508201610067®Number=0000000000091680&sum=20000 [17:08:51]StoreToDocumentArchive [17:08:51]shift 526 fd 82416 [17:08:51]save to /storage/0526/doc_00082416 [17:08:51]save last doc name /storage/0526/doc_00082416 to /storage/kkm_last_doc_name [17:08:51]save OK [17:08:51]Clear old archive folders... [17:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:51]tlvbuf is 0065E490 [17:08:51]SAM_PROTO_ClearQueue [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 09 00 00 [17:08:51]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [17:08:51]RAPDU: 90 00 [17:08:51]wFMCommunicate OK [17:08:51]SAM_PROTO_ClearQueue done [17:08:51]KKMCreateOFDPacket [17:08:51]OFDProtocolAddRootSTLVToBuf [17:08:51]FM_MakeSignedData [17:08:51]FM_MakeSignedData [17:08:51]SAM_PROTO_SignData [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 0D 01 02 [17:08:51]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:08:51]RAPDU: 90 00 [17:08:51]wFMCommunicate OK [17:08:51]wFMCommunicate request_size=255 [17:08:51]MH_SAM_APDU [17:08: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 41 01 00 35 04 06 00 23 [17:08:51]Write to MH i2c: E2 02 01 C2 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 41 01 00 35 04 06 00 23 00 00 9C [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:08:51]RAPDU: 90 00 [17:08:51]wFMCommunicate OK [17:08:51]wFMCommunicate request_size=10 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 0D 02 02 05 C0 4A E1 51 DF [17:08:51]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 C0 4A E1 51 DF 00 00 62 [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [17:08:51]RAPDU: 90 00 [17:08:51]wFMCommunicate OK [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 0D 03 02 [17:08:51]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 0B 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 0B 00 C4 00 00 D4 EE 0B FC 46 E4 6F EF 90 00 91 [17:08:51]RAPDU: D4 EE 0B FC 46 E4 6F EF 90 00 [17:08:51]wFMCommunicate OK [17:08:51]SAM_PROTO_SignData done [17:08:51]FM_MakeSignedData done [17:08:51]CreateOFDProtocolMessage [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 11 00 00 [17:08:51]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 17 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [17:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:08:51]wFMCommunicate OK [17:08:51]CreateOFDProtocolMessage done [17:08:51]OFDSenderStorePacket 82416 [17:08:51]StoreOFDPacket docnum=82416 [17:08:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BD 7C 07 01 B5 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 41 01 00 35 04 06 00 23 C0 4A E1 51 DF D4 EE 0B FC 46 E4 6F EF [17:08:51]CheckFolder [17:08:51]dirname=/storage/ofd_packets [17:08:51]CheckFolder done [17:08:51]ProducePacketName [17:08:51]name=ofd_packets/00082416 [17:08:51]NVStorageSaveData ofd_packets/00082416 [17:08:51]File name is /storage/ofd_packets/00082416 [17:08:51]Write 301 bytes [17:08:51]NVStorageSaveData done [17:08:51]OFDSenderStorePacket done [17:08:51]KKMCreateOFDPacket done [17:08:51]NVStorageSaveData kkm_last_timestamp [17:08:51]File name is /storage/kkm_last_timestamp [17:08:51]Write 4 bytes [17:08:51]NVStorageSaveData done [17:08:51]ExternCall_PrintAddStr [17:08:51]wPrintStart [17:08:51]Write to MH i2c: 01 00 00 C6 00 C6 [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: 01 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: 01 07 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [17:08:51]RasterBufferAndPrint [17:08:51]line Счет N : (1)918908 [17:08:51]line ИНН: 02508201610067 [17:08:51]line Контрольно-Кассовый Чек [17:08:51]line ПРОДАЖА [17:08:51]line ТРК (МРК, ГНК) : 22 [17:08:51]line Товар: 2710124130 [17:08:51]line Аи-92-К-4 [17:08:51]line 2.990 * 66.90 [17:08:51]line = 200.03 [17:08:51]line НДС 12% НСП 1% [17:08:51]line > о реализуемом товаре [17:08:51]line ОКРУГЛЕНИЕ: -0.03 [17:08:51]line ИТОГО: 200.00 [17:08:51]line Внесено: 200.00 [17:08:51]line СДАЧА: 0.00 [17:08:51]line НСП 1% : 1.77 [17:08:51]line НДС 12% : 21.24 [17:08:51]line Наличными: 200.00 [17:08:51]line Безнал.: 0.00 [17:08:51]line Место: АЗС № 114 "Партнер Нефть" [17:08:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:08:51]line СНО: Общий режим [17:08:51]line Чек 125 18.10.2024 17:08 [17:08:51]line Смена: 526 ФФД: 1.0 [17:08:51]line ЗНМ: 0300000086 [17:08:51]line РНМ: 0000000000091680 [17:08:51]line Версия ККМ: 001 [17:08:51]line ФМ: 0000000000871843 [17:08:51]line ФД: 82416 [17:08:51]line ФПД: 39308796973535 [17:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T170851&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82416&fm=39308796973535&tin=02508201610067®Number=0000000000091680&sum=20000 [17:08:52]OFD Sender: Processing packet 82416 [packets to send 254, broken 253] [17:08:52]ProducePacketName [17:08:52]name=ofd_packets/00082416 [17:08:52]OFD Sender: To server: pG, [17:08:52]CommunicateWithHost lk.salyk.kg:30040 [17:08:52]ConnectInit lk.salyk.kg [17:08:52]written 0, free lines is 4095 [17:08:52]Write to MH i2c: 01 00 00 F1 00 F1 [17:08:52]Write i2c OK [17:08:52]MH_I2C_Read... [17:08:52]Read from MH i2c: 01 [17:08:52]MH_I2C_Read... [17:08:52]Read from MH i2c: 01 07 00 [17:08:52]MH_I2C_Read... [17:08:52]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 D4 0C D8 [17:08:52]RasterBufferAndPrint [17:08:52]line [17:08:52]line [17:08:52]line [17:08:52]line [17:08:52]line [17:08:52]written 0, free lines is 3292 [17:08:52]MH_Cut [17:08:52]Write to MH i2c: D1 01 00 F8 00 01 CA [17:08:52]Write i2c OK [17:08:52]MH_I2C_Read... [17:08:52]Read from MH i2c: D1 [17:08:52]MH_I2C_Read... [17:08:52]Read from MH i2c: D1 01 00 [17:08:52]MH_I2C_Read... [17:08:52]Read from MH i2c: D1 01 00 F8 00 00 C9 [17:08:52]Write to MH i2c: 01 00 00 F9 00 F9 [17:08:52]Write i2c OK [17:08:52]MH_I2C_Read... [17:08:52]Connected sock=10 [17:08:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BD 7C 07 01 B5 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 23 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 41 01 00 35 04 06 00 23 C0 4A E1 51 DF D4 EE 0B FC 46 E4 6F EF [17:08:53]*** Cut start [17:08:53]*** Partial cut [17:08:53]*** CUTSNS_PIN = 1 [17:08:53]*** CUTSNS_PIN = 0 [17:08:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5E 5F 47 00 7F 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F0 41 01 00 F4 03 04 00 5D 3B 12 67 B6 04 01 00 00 EF 1E 6B 1E AD 88 8B 83 [17:08:53]CommunicateWithHost err = 0 [17:08:53]CheckOFDResponse [17:08:53]1017 (14) - 77093643461234 [17:08:53]1041 (16) - 0000000000871843 [17:08:53]1040 (4) - 82416 [17:08:53]1012 (4) - 18.10.2024 10:41 [17:08:53]1206 (1) - 0 [17:08:53]OFD Sender: Remove packet 82416 [17:08:53]ProducePacketName [17:08:53]name=ofd_packets/00082416 [17:08:53]NVStorageDeleteData [17:08:53]*** Brake cut motor [17:08:54]Read from MH i2c: 01 [17:08:54]MH_I2C_Read... [17:08:54]*** Stop cut motor [17:08:54]Read from MH i2c: *** Cut end [17:08:54]01 07 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [17:08:54]process_action close_receipt done [17:08:54]requested_data is exist [17:08:54]produce_requested_data [17:08:54]requested_item fm.sn is exist - process it [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 11 00 00 [17:08:54]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 17 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C6 [17:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:08:54]wFMCommunicate OK [17:08:54]requested_item fd.num is exist - process it [17:08:54]SAM_PROTO_GetFieldsCounters [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 13 00 00 [17:08:54]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]OFD Sender: No OFD packet to send [17:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 62 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [17:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F0 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:54]wFMCommunicate OK [17:08:54]SAM_PROTO_GetFieldsCounters done [17:08:54]requested_item shift.num is exist - process it [17:08:54]requested_item shift.opened is exist - process it [17:08:54]req_shift_opened [17:08:54]FM_GetShiftState [17:08:54]SAM_PROTO_GetShiftState [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 13 01 00 [17:08:54]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 0E 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4B [17:08:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:08:54]wFMCommunicate OK [17:08:54]SAM_PROTO_GetShiftState done [17:08:54]FM_GetShiftState done [17:08:54]req_shift_opened done [17:08:54]requested_item shift.open_date is exist - process it [17:08:54]req_shift_open_date [17:08:54]req_shift_open_date done [17:08:54]produce_requested_data done [17:08:54]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82416,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:08:54]process_action_free close_receipt [17:08:54]json_value_free [17:08:54]json_value_free done [17:08:54]process_json_proto returns [17:08:54]Send response to host [17:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82416,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:08:54]free response buf [17:08:54]execute_script done [17:08:54]execute_script returns [17:08:54]free content buf [17:08:54]Sock 9.Close socket [17:08:54]Sock 9.Thread stoped [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:56]accept exits with 7 [17:10:56]New connection [17:10:56]New thread 3067174244 created [17:10:56]Thread 3067317604 joined [17:10:56]Waiting for new connection... [17:10:56] Sock 7.Parse request [17:10:56]Sock 7.Check first char [17:10:56]Sock 7.First char is OK [17:10:56]request: POST /json_proto HTTP/1.0 [17:10:56]Method: POST [17:10:56]URL: /json_proto [17:10:56]Method is POST - this is cgi request [17:10:56]url: /json_proto [17:10:56]query_string will be loaded in cgi processing [17:10:56]execute_cgi json_proto POST (null) [17:10:56]execute_cgi path=json_proto method=POST [17:10:56]POST find Content-Length [17:10:56]Host: 172.17.44.67:8080 [17:10:56]Content-Length: 677 [17:10:56]Content-Type: application/json [17:10:56] [17:10:56]POST finish read [17:10:56]Found Content-Length = 677 [17:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:56]execute_script... [17:10: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)918909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:56]POST & json_proto [17:10:56]process_json_proto [17:10:56]json parsed OK: [17:10:56]protocol is kg_v1.0 [17:10:56]action value=close_receipt [17:10:56]process_action close_receipt [17:10:56]cmd_close_receipt [17:10:56]MH_GetDate [17:10:56]Write to MH i2c: F0 00 00 FD 00 EC [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: F0 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: F0 09 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: F0 09 00 FD 00 00 A1 96 12 67 F1 C7 6B 64 2C [17:10:56]GetLastDocTimeStamp 1729271331 [17:10:56]current date 1729271457 [17:10:56]FM_GetShiftState [17:10:56]SAM_PROTO_GetShiftState [17:10:56]wFMCommunicate request_size=4 [17:10:56]MH_SAM_APDU [17:10:56]CAPDU: 80 13 01 00 [17:10:56]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:56]Read from MH i2c: E2 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0E 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4D [17:10:56]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:10:56]wFMCommunicate OK [17:10:56]SAM_PROTO_GetShiftState done [17:10:56]FM_GetShiftState done [17:10:56]opened in 1729212319 [17:10:56]opened+sec_in_day 1729298719 [17:10:56]quantity*price = 50041 [17:10:56]sum+1 = 50042 [17:10:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 126 18.10.2024 17:10 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82417 ФПД: 65729648681289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171057&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82417&fm=65729648681289&tin=02508201610067®Number=0000000000091680&sum=50000 [17:10:57]StoreToDocumentArchive [17:10:57]shift 526 fd 82417 [17:10:57]save to /storage/0526/doc_00082417 [17:10:57]save last doc name /storage/0526/doc_00082417 to /storage/kkm_last_doc_name [17:10:57]save OK [17:10:57]Clear old archive folders... [17:10:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:57]tlvbuf is 005BF730 [17:10:57]SAM_PROTO_ClearQueue [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 09 00 00 [17:10:57]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_ClearQueue done [17:10:57]KKMCreateOFDPacket [17:10:57]OFDProtocolAddRootSTLVToBuf [17:10:57]FM_MakeSignedData [17:10:57]FM_MakeSignedData [17:10:57]SAM_PROTO_SignData [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 01 02 [17:10:57]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=255 [17:10:57]MH_SAM_APDU [17:10: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A1 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 41 01 00 35 04 06 00 3B [17:10:57]Write to MH i2c: E2 02 01 0D 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A1 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 41 01 00 35 04 06 00 3B 00 00 BE [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=10 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 02 02 05 C7 E0 5C 61 49 [17:10:57]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 C7 E0 5C 61 49 00 00 40 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [17:10:57]RAPDU: 90 00 [17:10:57]wFMCommunicate OK [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 0D 03 02 [17:10:57]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 0B 00 0F 01 00 E8 EA DB 73 BC 62 0E E1 90 00 B9 [17:10:57]RAPDU: E8 EA DB 73 BC 62 0E E1 90 00 [17:10:57]wFMCommunicate OK [17:10:57]SAM_PROTO_SignData done [17:10:57]FM_MakeSignedData done [17:10:57]CreateOFDProtocolMessage [17:10:57]wFMCommunicate request_size=4 [17:10:57]MH_SAM_APDU [17:10:57]CAPDU: 80 11 00 00 [17:10:57]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:57]Read from MH i2c: E2 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DD [17:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:10:57]wFMCommunicate OK [17:10:57]CreateOFDProtocolMessage done [17:10:57]OFDSenderStorePacket 82417 [17:10:57]StoreOFDPacket docnum=82417 [17:10:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A4 05 07 01 9A 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A1 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 41 01 00 35 04 06 00 3B C7 E0 5C 61 49 E8 EA DB 73 BC 62 0E E1 [17:10:57]CheckFolder [17:10:57]dirname=/storage/ofd_packets [17:10:57]CheckFolder done [17:10:57]ProducePacketName [17:10:57]name=ofd_packets/00082417 [17:10:57]NVStorageSaveData ofd_packets/00082417 [17:10:57]File name is /storage/ofd_packets/00082417 [17:10:57]Write 301 bytes [17:10:57]NVStorageSaveData done [17:10:57]OFDSenderStorePacket done [17:10:57]KKMCreateOFDPacket done [17:10:57]NVStorageSaveData kkm_last_timestamp [17:10:57]File name is /storage/kkm_last_timestamp [17:10:57]Write 4 bytes [17:10:57]NVStorageSaveData done [17:10:57]ExternCall_PrintAddStr [17:10:57]wPrintStart [17:10:57]Write to MH i2c: 01 00 00 11 01 12 [17:10:57]Write i2c OK [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 [17:10:57]MH_I2C_Read... [17:10:57]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [17:10:57]RasterBufferAndPrint [17:10:57]line Счет N : (1)918909 [17:10:57]line ИНН: 02508201610067 [17:10:57]line Контрольно-Кассовый Чек [17:10:57]line ПРОДАЖА [17:10:57]line ТРК (МРК, ГНК) : 22 [17:10:57]line Товар: 2710124130 [17:10:57]line Аи-92-К-4 [17:10:57]line 7.480 * 66.90 [17:10:57]line = 500.41 [17:10:57]line НДС 12% НСП 1% [17:10:57]line > о реализуемом товаре [17:10:57]line ОКРУГЛЕНИЕ: -0.41 [17:10:57]line ИТОГО: 500.00 [17:10:57]line Внесено: 500.00 [17:10:57]line СДАЧА: 0.00 [17:10:57]line НСП 1% : 4.43 [17:10:57]line НДС 12% : 53.14 [17:10:57]line Наличными: 500.00 [17:10:57]line Безнал.: 0.00 [17:10:57]line Место: АЗС № 114 "Партнер Нефть" [17:10:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:10:57]line СНО: Общий режим [17:10:57]line Чек 126 18.10.2024 17:10 [17:10:57]line Смена: 526 ФФД: 1.0 [17:10:57]line ЗНМ: 0300000086 [17:10:57]line РНМ: 0000000000091680 [17:10:57]line Версия ККМ: 001 [17:10:57]line ФМ: 0000000000871843 [17:10:57]line ФД: 82417 [17:10:57]line ФПД: 65729648681289 [17:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171057&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82417&fm=65729648681289&tin=02508201610067®Number=0000000000091680&sum=50000 [17:10:58]OFD Sender: Processing packet 82417 [packets to send 254, broken 253] [17:10:58]ProducePacketName [17:10:58]name=ofd_packets/00082417 [17:10:58]OFD Sender: To server: pG, [17:10:58]CommunicateWithHost lk.salyk.kg:30040 [17:10:58]ConnectInit lk.salyk.kg [17:10:58]written 0, free lines is 4095 [17:10:58]Write to MH i2c: 01 00 00 3C 01 3D [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 D0 0C 20 [17:10:58]RasterBufferAndPrint [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]line [17:10:58]written 0, free lines is 3284 [17:10:58]MH_Cut [17:10:58]Write to MH i2c: D1 01 00 43 01 01 16 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D1 01 00 43 01 00 15 [17:10:58]Write to MH i2c: 01 00 00 44 01 45 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:59]*** Cut start [17:10:59]*** Partial cut [17:10:59]*** CUTSNS_PIN = 1 [17:10:59]*** CUTSNS_PIN = 0 [17:10:59]*** Brake cut motor [17:11:00]Read from MH i2c: 01 [17:11:00]MH_I2C_Read... [17:11:00]*** Stop cut motor [17:11:00]*** Cut end [17:11:00]Read from MH i2c: 01 07 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [17:11:00]process_action close_receipt done [17:11:00]requested_data is exist [17:11:00]produce_requested_data [17:11:00]requested_item fm.sn is exist - process it [17:11:00]wFMCommunicate request_size=4 [17:11:00]MH_SAM_APDU [17:11:00]CAPDU: 80 11 00 00 [17:11:00]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 17 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [17:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:11:00]wFMCommunicate OK [17:11:00]requested_item fd.num is exist - process it [17:11:00]SAM_PROTO_GetFieldsCounters [17:11:00]wFMCommunicate request_size=4 [17:11:00]MH_SAM_APDU [17:11:00]CAPDU: 80 13 00 00 [17:11:00]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 62 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [17:11:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F1 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:00]wFMCommunicate OK [17:11:00]SAM_PROTO_GetFieldsCounters done [17:11:00]requested_item shift.num is exist - process it [17:11:00]requested_item shift.opened is exist - process it [17:11:00]req_shift_opened [17:11:00]FM_GetShiftState [17:11:00]SAM_PROTO_GetShiftState [17:11:00]wFMCommunicate request_size=4 [17:11:00]MH_SAM_APDU [17:11:00]CAPDU: 80 13 01 00 [17:11:00]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 97 [17:11:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:11:00]wFMCommunicate OK [17:11:00]SAM_PROTO_GetShiftState done [17:11:00]FM_GetShiftState done [17:11:00]req_shift_opened done [17:11:00]requested_item shift.open_date is exist - process it [17:11:00]req_shift_open_date [17:11:00]req_shift_open_date done [17:11:00]produce_requested_data done [17:11:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82417,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:11:00]process_action_free close_receipt [17:11:00]json_value_free [17:11:00]json_value_free done [17:11:00]process_json_proto returns [17:11:00]Send response to host [17:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82417,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:11:00]free response buf [17:11:00]execute_script done [17:11:00]execute_script returns [17:11:00]free content buf [17:11:00]Sock 7.Close socket [17:11:00]Sock 7.Thread stoped [17:11:04]Connected sock=11 [17:11:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A4 05 07 01 9A 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 A1 96 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 41 01 00 35 04 06 00 3B C7 E0 5C 61 49 E8 EA DB 73 BC 62 0E E1 [17:11:05]recv_with_timeout no data received [17:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AB ED 47 00 5D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F1 41 01 00 F4 03 04 00 E1 3B 12 67 B6 04 01 00 00 99 B1 CD 53 8D 3F 9C FE [17:11:05]CommunicateWithHost err = 0 [17:11:05]CheckOFDResponse [17:11:05]1017 (14) - 77093643461234 [17:11:05]1041 (16) - 0000000000871843 [17:11:05]1040 (4) - 82417 [17:11:05]1012 (4) - 18.10.2024 10:43 [17:11:05]1206 (1) - 0 [17:11:05]OFD Sender: Remove packet 82417 [17:11:05]ProducePacketName [17:11:05]name=ofd_packets/00082417 [17:11:05]NVStorageDeleteData [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:15]recv_with_timeout no data received [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:26]recv_with_timeout no data received [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:34]accept exits with 9 [17:14:34]New connection [17:14:34]New thread 3067317604 created [17:14:34]Thread 3067174244 joined [17:14:34]Waiting for new connection... [17:14:34] Sock 9.Parse request [17:14:34]Sock 9.Check first char [17:14:34]Sock 9.First char is OK [17:14:34]request: POST /json_proto HTTP/1.0 [17:14:34]Method: POST [17:14:34]URL: /json_proto [17:14:34]Method is POST - this is cgi request [17:14:34]url: /json_proto [17:14:34]query_string will be loaded in cgi processing [17:14:34]execute_cgi json_proto POST (null) [17:14:34]execute_cgi path=json_proto method=POST [17:14:34]POST find Content-Length [17:14:34]Host: 172.17.44.67:8080 [17:14:34]Content-Length: 803 [17:14:34]Content-Type: application/json [17:14:34] [17:14:34]POST finish read [17:14:34]Found Content-Length = 803 [17:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918910", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:34]execute_script... [17:14: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)918910", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:34]POST & json_proto [17:14:34]process_json_proto [17:14:34]json parsed OK: [17:14:34]protocol is kg_v1.0 [17:14:34]action value=close_receipt [17:14:34]process_action close_receipt [17:14:34]cmd_close_receipt [17:14:34]MH_GetDate [17:14:34]Write to MH i2c: F0 00 00 48 01 38 [17:14:34]Write i2c OK [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: F0 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: F0 09 00 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: F0 09 00 48 01 00 7B 97 12 67 F1 C7 6B 64 53 [17:14:34]GetLastDocTimeStamp 1729271457 [17:14:34]current date 1729271675 [17:14:34]FM_GetShiftState [17:14:34]SAM_PROTO_GetShiftState [17:14:34]wFMCommunicate request_size=4 [17:14:34]MH_SAM_APDU [17:14:34]CAPDU: 80 13 01 00 [17:14:34]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [17:14:34]Write i2c OK [17:14:34]MH_I2C_Read... [17:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:34]Read from MH i2c: E2 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: E2 0E 00 [17:14:34]MH_I2C_Read... [17:14:34]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 99 [17:14:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:14:34]wFMCommunicate OK [17:14:34]SAM_PROTO_GetShiftState done [17:14:34]FM_GetShiftState done [17:14:34]opened in 1729212319 [17:14:34]opened+sec_in_day 1729298719 [17:14:34]quantity*price = 200043 [17:14:34]sum+1 = 200044 [17:14:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 127 18.10.2024 17:14 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82418 ФПД: 164245926649115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171435&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82418&fm=164245926649115&tin=02508201610067®Number=0000000000091680&sum=200043 [17:14:35]StoreToDocumentArchive [17:14:35]shift 526 fd 82418 [17:14:35]save to /storage/0526/doc_00082418 [17:14:35]save last doc name /storage/0526/doc_00082418 to /storage/kkm_last_doc_name [17:14:35]save OK [17:14:35]Clear old archive folders... [17:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:35]tlvbuf is 005C1380 [17:14:35]SAM_PROTO_ClearQueue [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 09 00 00 [17:14:35]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [17:14:35]RAPDU: 90 00 [17:14:35]wFMCommunicate OK [17:14:35]SAM_PROTO_ClearQueue done [17:14:35]KKMCreateOFDPacket [17:14:35]OFDProtocolAddRootSTLVToBuf [17:14:35]FM_MakeSignedData [17:14:35]FM_MakeSignedData [17:14:35]SAM_PROTO_SignData [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 0D 01 02 [17:14:35]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [17:14:35]RAPDU: 90 00 [17:14:35]wFMCommunicate OK [17:14:35]wFMCommunicate request_size=255 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 41 01 00 35 04 06 00 95 [17:14:35]Write to MH i2c: E2 02 01 58 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 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 41 01 00 35 04 06 00 95 00 00 3F [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [17:14:36]RAPDU: 90 00 [17:14:36]wFMCommunicate OK [17:14:36]wFMCommunicate request_size=10 [17:14:36]MH_SAM_APDU [17:14:36]CAPDU: 80 0D 02 02 05 61 7C 1D 1D 1B [17:14:36]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 61 7C 1D 1D 1B 00 00 10 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [17:14:36]RAPDU: 90 00 [17:14:36]wFMCommunicate OK [17:14:36]wFMCommunicate request_size=4 [17:14:36]MH_SAM_APDU [17:14:36]CAPDU: 80 0D 03 02 [17:14:36]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 0B 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 0B 00 5A 01 00 91 3E 06 DC 4A 79 D0 89 90 00 A4 [17:14:36]RAPDU: 91 3E 06 DC 4A 79 D0 89 90 00 [17:14:36]wFMCommunicate OK [17:14:36]SAM_PROTO_SignData done [17:14:36]FM_MakeSignedData done [17:14:36]CreateOFDProtocolMessage [17:14:36]wFMCommunicate request_size=4 [17:14:36]MH_SAM_APDU [17:14:36]CAPDU: 80 11 00 00 [17:14:36]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:36]Read from MH i2c: E2 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 17 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 28 [17:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:14:36]wFMCommunicate OK [17:14:36]CreateOFDProtocolMessage done [17:14:36]OFDSenderStorePacket 82418 [17:14:36]StoreOFDPacket docnum=82418 [17:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C2 CA 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 41 01 00 35 04 06 00 95 61 7C 1D 1D 1B 91 3E 06 DC 4A 79 D0 89 [17:14:36]CheckFolder [17:14:36]dirname=/storage/ofd_packets [17:14:36]CheckFolder done [17:14:36]ProducePacketName [17:14:36]name=ofd_packets/00082418 [17:14:36]NVStorageSaveData ofd_packets/00082418 [17:14:36]File name is /storage/ofd_packets/00082418 [17:14:36]Write 301 bytes [17:14:36]NVStorageSaveData done [17:14:36]OFDSenderStorePacket done [17:14:36]KKMCreateOFDPacket done [17:14:36]NVStorageSaveData kkm_last_timestamp [17:14:36]File name is /storage/kkm_last_timestamp [17:14:36]Write 4 bytes [17:14:36]NVStorageSaveData done [17:14:36]ExternCall_PrintAddStr [17:14:36]wPrintStart [17:14:36]Write to MH i2c: 01 00 00 5C 01 5D [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 07 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [17:14:36]RasterBufferAndPrint [17:14:36]line Счет N : (1)918910 [17:14:36]line ИНН: 02508201610067 [17:14:36]line Контрольно-Кассовый Чек [17:14:36]line ПРОДАЖА [17:14:36]line ТРК (МРК, ГНК) : 12 [17:14:36]line Товар: 2710124500 [17:14:36]line Аи-95-К-5 [17:14:36]line 26.960 * 74.20 [17:14:36]line = 2000.43 [17:14:36]line НДС 12% НСП 1% [17:14:36]line > о реализуемом товаре [17:14:36]line ИТОГО: 2000.43 [17:14:36]line НСП 1% : 17.70 [17:14:36]line НДС 12% : 212.43 [17:14:36]line Наличными: 0.00 [17:14:36]line Безнал.: 2000.43 [17:14:36]line Место: АЗС № 114 "Партнер Нефть" [17:14:36]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:14:36]line СНО: Общий режим [17:14:36]line Чек 127 18.10.2024 17:14 [17:14:36]line Смена: 526 ФФД: 1.0 [17:14:36]line ЗНМ: 0300000086 [17:14:36]line РНМ: 0000000000091680 [17:14:36]line Версия ККМ: 001 [17:14:36]line Платежная система: O! деньги [17:14:36]line ФМ: 0000000000871843 [17:14:36]line ФД: 82418 [17:14:36]line ФПД: 164245926649115 [17:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171435&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82418&fm=164245926649115&tin=02508201610067®Number=0000000000091680&sum=200043 [17:14:36]written 0, free lines is 4095 [17:14:36]OFD Sender: Processing packet 82418 [packets to send 254, broken 253] [17:14:36]ProducePacketName [17:14:36]name=ofd_packets/00082418 [17:14:36]OFD Sender: To server: pG, [17:14:36]CommunicateWithHost lk.salyk.kg:30040 [17:14:36]ConnectInit lk.salyk.kg [17:14:36]Write to MH i2c: 01 00 00 86 01 87 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 07 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 E4 0C 7E [17:14:36]RasterBufferAndPrint [17:14:36]line [17:14:36]line [17:14:36]line [17:14:36]line [17:14:36]line [17:14:36]written 0, free lines is 3303 [17:14:36]MH_Cut [17:14:36]Write to MH i2c: D1 01 00 8D 01 01 60 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: D1 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: D1 01 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: D1 01 00 8D 01 00 5F [17:14:36]Write to MH i2c: 01 00 00 8E 01 8F [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:37]*** Cut start [17:14:37]*** Partial cut [17:14:37]*** CUTSNS_PIN = 1 [17:14:37]*** CUTSNS_PIN = 0 [17:14:37]*** Brake cut motor [17:14:38]Read from MH i2c: 01 [17:14:38]MH_I2C_Read... [17:14:38]*** Stop cut motor [17:14:38]*** Cut end [17:14:38]Read from MH i2c: 01 07 00 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [17:14:38]process_action close_receipt done [17:14:38]requested_data is exist [17:14:38]produce_requested_data [17:14:38]requested_item fm.sn is exist - process it [17:14:38]wFMCommunicate request_size=4 [17:14:38]MH_SAM_APDU [17:14:38]CAPDU: 80 11 00 00 [17:14:38]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [17:14:38]Write i2c OK [17:14:38]MH_I2C_Read... [17:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:38]Read from MH i2c: E2 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 17 00 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [17:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:14:38]wFMCommunicate OK [17:14:38]requested_item fd.num is exist - process it [17:14:38]SAM_PROTO_GetFieldsCounters [17:14:38]wFMCommunicate request_size=4 [17:14:38]MH_SAM_APDU [17:14:38]CAPDU: 80 13 00 00 [17:14:38]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [17:14:38]Write i2c OK [17:14:38]MH_I2C_Read... [17:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:38]Read from MH i2c: E2 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 62 00 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:14:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F2 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:38]wFMCommunicate OK [17:14:38]SAM_PROTO_GetFieldsCounters done [17:14:38]requested_item shift.num is exist - process it [17:14:38]requested_item shift.opened is exist - process it [17:14:38]req_shift_opened [17:14:38]FM_GetShiftState [17:14:38]SAM_PROTO_GetShiftState [17:14:38]wFMCommunicate request_size=4 [17:14:38]MH_SAM_APDU [17:14:38]CAPDU: 80 13 01 00 [17:14:38]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [17:14:38]Write i2c OK [17:14:38]MH_I2C_Read... [17:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:38]Read from MH i2c: E2 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 0E 00 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E1 [17:14:38]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:14:38]wFMCommunicate OK [17:14:38]SAM_PROTO_GetShiftState done [17:14:38]FM_GetShiftState done [17:14:38]req_shift_opened done [17:14:38]requested_item shift.open_date is exist - process it [17:14:38]req_shift_open_date [17:14:38]req_shift_open_date done [17:14:38]produce_requested_data done [17:14:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82418,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:14:38]process_action_free close_receipt [17:14:38]json_value_free [17:14:38]json_value_free done [17:14:38]process_json_proto returns [17:14:38]Send response to host [17:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82418,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:14:38]free response buf [17:14:38]execute_script done [17:14:38]execute_script returns [17:14:38]free content buf [17:14:38]Sock 9.Close socket [17:14:38]Sock 9.Thread stoped [17:14:38]Connected sock=11 [17:14:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C2 CA 07 01 B3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 41 01 00 35 04 06 00 95 61 7C 1D 1D 1B 91 3E 06 DC 4A 79 D0 89 [17:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B3 FA 47 00 6D E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F2 41 01 00 F4 03 04 00 B7 3C 12 67 B6 04 01 00 00 A9 64 6D A7 D9 35 D4 E6 [17:14:39]CommunicateWithHost err = 0 [17:14:39]CheckOFDResponse [17:14:39]1017 (14) - 77093643461234 [17:14:39]1041 (16) - 0000000000871843 [17:14:39]1040 (4) - 82418 [17:14:39]1012 (4) - 18.10.2024 10:47 [17:14:39]1206 (1) - 0 [17:14:39]OFD Sender: Remove packet 82418 [17:14:39]ProducePacketName [17:14:39]name=ofd_packets/00082418 [17:14:39]NVStorageDeleteData [17:14:39]OFD Sender: No OFD packet to send [17:14:41]recv_with_timeout no data received [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:52]recv_with_timeout no data received [17:14:54]OFD Sender: No OFD packet to send [17:14:59]accept exits with 7 [17:14:59]New connection [17:14:59]New thread 3067174244 created [17:14:59]Thread 3067317604 joined [17:14:59]Waiting for new connection... [17:14:59] Sock 7.Parse request [17:14:59]Sock 7.Check first char [17:14:59]Sock 7.First char is OK [17:14:59]request: POST /json_proto HTTP/1.0 [17:14:59]Method: POST [17:14:59]URL: /json_proto [17:14:59]Method is POST - this is cgi request [17:14:59]url: /json_proto [17:14:59]query_string will be loaded in cgi processing [17:14:59]execute_cgi json_proto POST (null) [17:14:59]execute_cgi path=json_proto method=POST [17:14:59]POST find Content-Length [17:14:59]Host: 172.17.44.67:8080 [17:14:59]Content-Length: 677 [17:14:59]Content-Type: application/json [17:14:59] [17:14:59]POST finish read [17:14:59]Found Content-Length = 677 [17:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:59]execute_script... [17:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:59]POST & json_proto [17:14:59]process_json_proto [17:14:59]json parsed OK: [17:14:59]protocol is kg_v1.0 [17:14:59]action value=close_receipt [17:14:59]process_action close_receipt [17:14:59]cmd_close_receipt [17:14:59]MH_GetDate [17:14:59]Write to MH i2c: F0 00 00 92 01 82 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: F0 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: F0 09 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: F0 09 00 92 01 00 93 97 12 67 F1 C7 6B 64 B5 [17:14:59]GetLastDocTimeStamp 1729271675 [17:14:59]current date 1729271699 [17:14:59]FM_GetShiftState [17:14:59]SAM_PROTO_GetShiftState [17:14:59]wFMCommunicate request_size=4 [17:14:59]MH_SAM_APDU [17:14:59]CAPDU: 80 13 01 00 [17:14:59]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:59]Read from MH i2c: E2 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 0E 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E3 [17:14:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:14:59]wFMCommunicate OK [17:14:59]SAM_PROTO_GetShiftState done [17:14:59]FM_GetShiftState done [17:14:59]opened in 1729212319 [17:14:59]opened+sec_in_day 1729298719 [17:14:59]quantity*price = 30038 [17:14:59]sum+1 = 30039 [17:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 128 18.10.2024 17:15 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82419 ФПД: 237307727826101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171500&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82419&fm=237307727826101&tin=02508201610067®Number=0000000000091680&sum=30000 [17:15:00]StoreToDocumentArchive [17:15:00]shift 526 fd 82419 [17:15:00]save to /storage/0526/doc_00082419 [17:15:00]save last doc name /storage/0526/doc_00082419 to /storage/kkm_last_doc_name [17:15:00]save OK [17:15:00]Clear old archive folders... [17:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:00]tlvbuf is 005C1600 [17:15:00]SAM_PROTO_ClearQueue [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 09 00 00 [17:15:00]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]SAM_PROTO_ClearQueue done [17:15:00]KKMCreateOFDPacket [17:15:00]OFDProtocolAddRootSTLVToBuf [17:15:00]FM_MakeSignedData [17:15:00]FM_MakeSignedData [17:15:00]SAM_PROTO_SignData [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 01 02 [17:15:00]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]wFMCommunicate request_size=255 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 94 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 41 01 00 35 04 06 00 D7 [17:15:00]Write to MH i2c: E2 02 01 A2 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 94 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 41 01 00 35 04 06 00 D7 00 00 DB [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]wFMCommunicate request_size=10 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 02 02 05 D4 82 D1 CC B5 [17:15:00]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 D4 82 D1 CC B5 00 00 D0 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [17:15:00]RAPDU: 90 00 [17:15:00]wFMCommunicate OK [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 0D 03 02 [17:15:00]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 0B 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 0B 00 A4 01 00 17 E7 49 74 7B 7B 4F FD 90 00 1E [17:15:00]RAPDU: 17 E7 49 74 7B 7B 4F FD 90 00 [17:15:00]wFMCommunicate OK [17:15:00]SAM_PROTO_SignData done [17:15:00]FM_MakeSignedData done [17:15:00]CreateOFDProtocolMessage [17:15:00]wFMCommunicate request_size=4 [17:15:00]MH_SAM_APDU [17:15:00]CAPDU: 80 11 00 00 [17:15:00]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:00]Read from MH i2c: E2 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 17 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 72 [17:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:15:00]wFMCommunicate OK [17:15:00]CreateOFDProtocolMessage done [17:15:00]OFDSenderStorePacket 82419 [17:15:00]StoreOFDPacket docnum=82419 [17:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 96 E3 07 01 38 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 94 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 41 01 00 35 04 06 00 D7 D4 82 D1 CC B5 17 E7 49 74 7B 7B 4F FD [17:15:00]CheckFolder [17:15:00]dirname=/storage/ofd_packets [17:15:00]CheckFolder done [17:15:00]ProducePacketName [17:15:00]name=ofd_packets/00082419 [17:15:00]NVStorageSaveData ofd_packets/00082419 [17:15:00]File name is /storage/ofd_packets/00082419 [17:15:00]Write 301 bytes [17:15:00]NVStorageSaveData done [17:15:00]OFDSenderStorePacket done [17:15:00]KKMCreateOFDPacket done [17:15:00]NVStorageSaveData kkm_last_timestamp [17:15:00]File name is /storage/kkm_last_timestamp [17:15:00]Write 4 bytes [17:15:00]NVStorageSaveData done [17:15:00]ExternCall_PrintAddStr [17:15:00]wPrintStart [17:15:00]Write to MH i2c: 01 00 00 A6 01 A7 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 07 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [17:15:00]RasterBufferAndPrint [17:15:00]line Счет N : (1)918911 [17:15:00]line ИНН: 02508201610067 [17:15:00]line Контрольно-Кассовый Чек [17:15:00]line ПРОДАЖА [17:15:00]line ТРК (МРК, ГНК) : 22 [17:15:00]line Товар: 2710124130 [17:15:00]line Аи-92-К-4 [17:15:00]line 4.490 * 66.90 [17:15:00]line = 300.38 [17:15:00]line НДС 12% НСП 1% [17:15:00]line > о реализуемом товаре [17:15:00]line ОКРУГЛЕНИЕ: -0.38 [17:15:00]line ИТОГО: 300.00 [17:15:00]line Внесено: 300.00 [17:15:00]line СДАЧА: 0.00 [17:15:00]line НСП 1% : 2.66 [17:15:00]line НДС 12% : 31.90 [17:15:00]line Наличными: 300.00 [17:15:00]line Безнал.: 0.00 [17:15:00]line Место: АЗС № 114 "Партнер Нефть" [17:15:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:15:00]line СНО: Общий режим [17:15:00]line Чек 128 18.10.2024 17:15 [17:15:00]line Смена: 526 ФФД: 1.0 [17:15:00]line ЗНМ: 0300000086 [17:15:00]line РНМ: 0000000000091680 [17:15:00]line Версия ККМ: 001 [17:15:00]line ФМ: 0000000000871843 [17:15:00]line ФД: 82419 [17:15:00]line ФПД: 237307727826101 [17:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171500&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82419&fm=237307727826101&tin=02508201610067®Number=0000000000091680&sum=30000 [17:15:01]OFD Sender: Processing packet 82419 [packets to send 254, broken 253] [17:15:01]ProducePacketName [17:15:01]name=ofd_packets/00082419 [17:15:01]OFD Sender: To server: pG, [17:15:01]CommunicateWithHost lk.salyk.kg:30040 [17:15:01]ConnectInit lk.salyk.kg [17:15:01]written 0, free lines is 4095 [17:15:01]Write to MH i2c: 01 00 00 D1 01 D2 [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: 01 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: 01 07 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 DA 0C BF [17:15:01]RasterBufferAndPrint [17:15:01]line [17:15:01]line [17:15:01]line [17:15:01]line [17:15:01]line [17:15:01]written 0, free lines is 3298 [17:15:01]MH_Cut [17:15:01]Write to MH i2c: D1 01 00 D8 01 01 AB [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: D1 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: D1 01 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: D1 01 00 D8 01 00 AA [17:15:01]Write to MH i2c: 01 00 00 D9 01 DA [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:02]*** Cut start [17:15:02]*** Partial cut [17:15:02]*** CUTSNS_PIN = 1 [17:15:02]*** CUTSNS_PIN = 0 [17:15:02]*** Brake cut motor [17:15:02]Read from MH i2c: 01 [17:15:02]MH_I2C_Read... [17:15:02]*** Stop cut motor [17:15:02]*** Cut end [17:15:02]Read from MH i2c: 01 07 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [17:15:02]process_action close_receipt done [17:15:02]requested_data is exist [17:15:02]produce_requested_data [17:15:02]requested_item fm.sn is exist - process it [17:15:02]wFMCommunicate request_size=4 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 11 00 00 [17:15:02]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:02]Read from MH i2c: E2 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 17 00 [17:15:02]MH_I2C_Read... [17:15:02]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A7 [17:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:15:02]wFMCommunicate OK [17:15:02]requested_item fd.num is exist - process it [17:15:02]SAM_PROTO_GetFieldsCounters [17:15:02]wFMCommunicate request_size=4 [17:15:02]MH_SAM_APDU [17:15:02]CAPDU: 80 13 00 00 [17:15:02]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [17:15:02]Write i2c OK [17:15:02]MH_I2C_Read... [17:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:03]Read from MH i2c: E2 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 62 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [17:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F3 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:03]wFMCommunicate OK [17:15:03]SAM_PROTO_GetFieldsCounters done [17:15:03]requested_item shift.num is exist - process it [17:15:03]requested_item shift.opened is exist - process it [17:15:03]req_shift_opened [17:15:03]FM_GetShiftState [17:15:03]SAM_PROTO_GetShiftState [17:15:03]wFMCommunicate request_size=4 [17:15:03]MH_SAM_APDU [17:15:03]CAPDU: 80 13 01 00 [17:15:03]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [17:15:03]Write i2c OK [17:15:03]MH_I2C_Read... [17:15:03]recv_with_timeout no data received [17:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:03]Read from MH i2c: E2 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 0E 00 [17:15:03]MH_I2C_Read... [17:15:03]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2C [17:15:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:15:03]wFMCommunicate OK [17:15:03]SAM_PROTO_GetShiftState done [17:15:03]FM_GetShiftState done [17:15:03]req_shift_opened done [17:15:03]requested_item shift.open_date is exist - process it [17:15:03]req_shift_open_date [17:15:03]req_shift_open_date done [17:15:03]produce_requested_data done [17:15:03]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82419,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:15:03]process_action_free close_receipt [17:15:03]json_value_free [17:15:03]json_value_free done [17:15:03]process_json_proto returns [17:15:03]Send response to host [17:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82419,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:15:03]free response buf [17:15:03]execute_script done [17:15:03]execute_script returns [17:15:03]free content buf [17:15:03]Sock 7.Close socket [17:15:03]Sock 7.Thread stoped [17:15:04]Connected sock=11 [17:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 96 E3 07 01 38 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 94 97 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 41 01 00 35 04 06 00 D7 D4 82 D1 CC B5 17 E7 49 74 7B 7B 4F FD [17:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 71 29 47 00 F7 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F3 41 01 00 F4 03 04 00 D1 3C 12 67 B6 04 01 00 00 46 A4 C9 4D 9E FB 81 C8 [17:15:05]CommunicateWithHost err = 0 [17:15:05]CheckOFDResponse [17:15:05]1017 (14) - 77093643461234 [17:15:05]1041 (16) - 0000000000871843 [17:15:05]1040 (4) - 82419 [17:15:05]1012 (4) - 18.10.2024 10:47 [17:15:05]1206 (1) - 0 [17:15:05]OFD Sender: Remove packet 82419 [17:15:05]ProducePacketName [17:15:05]name=ofd_packets/00082419 [17:15:05]NVStorageDeleteData [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:23]recv_with_timeout no data received [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:19]accept exits with 10 [17:17:19]New connection [17:17:19]New thread 3067317604 created [17:17:19]Thread 3067174244 joined [17:17:19]Waiting for new connection... [17:17:19] Sock 10.Parse request [17:17:19]Sock 10.Check first char [17:17:19]Sock 10.First char is OK [17:17:19]request: POST /json_proto HTTP/1.0 [17:17:19]Method: POST [17:17:19]URL: /json_proto [17:17:19]Method is POST - this is cgi request [17:17:19]url: /json_proto [17:17:19]query_string will be loaded in cgi processing [17:17:19]execute_cgi json_proto POST (null) [17:17:19]execute_cgi path=json_proto method=POST [17:17:19]POST find Content-Length [17:17:19]Host: 172.17.44.67:8080 [17:17:19]Content-Length: 677 [17:17:19]Content-Type: application/json [17:17:19] [17:17:19]POST finish read [17:17:19]Found Content-Length = 677 [17:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "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" ] } } [17:17:19]execute_script... [17: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)918912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "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" ] } } [17:17:19]POST & json_proto [17:17:19]process_json_proto [17:17:19]json parsed OK: [17:17:19]protocol is kg_v1.0 [17:17:19]action value=close_receipt [17:17:19]process_action close_receipt [17:17:19]cmd_close_receipt [17:17:19]MH_GetDate [17:17:19]Write to MH i2c: F0 00 00 DD 01 CD [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: F0 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: F0 09 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: F0 09 00 DD 01 00 20 98 12 67 F1 C7 6B 64 8E [17:17:19]GetLastDocTimeStamp 1729271700 [17:17:19]current date 1729271840 [17:17:19]FM_GetShiftState [17:17:19]SAM_PROTO_GetShiftState [17:17:19]wFMCommunicate request_size=4 [17:17:19]MH_SAM_APDU [17:17:19]CAPDU: 80 13 01 00 [17:17:19]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:19]Read from MH i2c: E2 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 0E 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2E [17:17:19]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:17:19]wFMCommunicate OK [17:17:19]SAM_PROTO_GetShiftState done [17:17:19]FM_GetShiftState done [17:17:19]opened in 1729212319 [17:17:19]opened+sec_in_day 1729298719 [17:17:19]quantity*price = 12042 [17:17:19]sum+1 = 12043 [17:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 129 18.10.2024 17:17 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82420 ФПД: 65441162785703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171720&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82420&fm=65441162785703&tin=02508201610067®Number=0000000000091680&sum=12000 [17:17:21]StoreToDocumentArchive [17:17:21]shift 526 fd 82420 [17:17:21]save to /storage/0526/doc_00082420 [17:17:21]save last doc name /storage/0526/doc_00082420 to /storage/kkm_last_doc_name [17:17:21]save OK [17:17:21]Clear old archive folders... [17:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:21]tlvbuf is 00654320 [17:17:21]SAM_PROTO_ClearQueue [17:17:21]wFMCommunicate request_size=4 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 09 00 00 [17:17:21]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [17:17:21]RAPDU: 90 00 [17:17:21]wFMCommunicate OK [17:17:21]SAM_PROTO_ClearQueue done [17:17:21]KKMCreateOFDPacket [17:17:21]OFDProtocolAddRootSTLVToBuf [17:17:21]FM_MakeSignedData [17:17:21]FM_MakeSignedData [17:17:21]SAM_PROTO_SignData [17:17:21]wFMCommunicate request_size=4 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 0D 01 02 [17:17:21]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [17:17:21]RAPDU: 90 00 [17:17:21]wFMCommunicate OK [17:17:21]wFMCommunicate request_size=255 [17:17:21]MH_SAM_APDU [17: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 34 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 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 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 20 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 41 01 00 35 04 06 00 3B [17:17:21]Write to MH i2c: E2 02 01 ED 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 34 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 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 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 20 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 41 01 00 35 04 06 00 3B 00 00 AE [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [17:17:21]RAPDU: 90 00 [17:17:21]wFMCommunicate OK [17:17:21]wFMCommunicate request_size=10 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 0D 02 02 05 84 B5 42 F3 A7 [17:17:21]Write to MH i2c: E2 0D 00 EE 01 80 0D 02 02 05 00 84 B5 42 F3 A7 00 00 88 [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [17:17:21]RAPDU: 90 00 [17:17:21]wFMCommunicate OK [17:17:21]wFMCommunicate request_size=4 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 0D 03 02 [17:17:21]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 0B 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 0B 00 EF 01 00 A7 0E C6 24 5D 12 BD 6E 90 00 A5 [17:17:21]RAPDU: A7 0E C6 24 5D 12 BD 6E 90 00 [17:17:21]wFMCommunicate OK [17:17:21]SAM_PROTO_SignData done [17:17:21]FM_MakeSignedData done [17:17:21]CreateOFDProtocolMessage [17:17:21]wFMCommunicate request_size=4 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 11 00 00 [17:17:21]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 17 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BD [17:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:17:21]wFMCommunicate OK [17:17:21]CreateOFDProtocolMessage done [17:17:21]OFDSenderStorePacket 82420 [17:17:21]StoreOFDPacket docnum=82420 [17:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 64 07 01 1A A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 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 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 20 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 41 01 00 35 04 06 00 3B 84 B5 42 F3 A7 A7 0E C6 24 5D 12 BD 6E [17:17:21]CheckFolder [17:17:21]dirname=/storage/ofd_packets [17:17:21]CheckFolder done [17:17:21]ProducePacketName [17:17:21]name=ofd_packets/00082420 [17:17:21]NVStorageSaveData ofd_packets/00082420 [17:17:21]File name is /storage/ofd_packets/00082420 [17:17:21]Write 301 bytes [17:17:21]NVStorageSaveData done [17:17:21]OFDSenderStorePacket done [17:17:21]KKMCreateOFDPacket done [17:17:21]NVStorageSaveData kkm_last_timestamp [17:17:21]File name is /storage/kkm_last_timestamp [17:17:21]Write 4 bytes [17:17:21]NVStorageSaveData done [17:17:21]OFD Sender: Processing packet 82420 [packets to send 254, broken 253] [17:17:21]ProducePacketName [17:17:21]name=ofd_packets/00082420 [17:17:21]OFD Sender: To server: pG, [17:17:21]CommunicateWithHost lk.salyk.kg:30040 [17:17:21]ConnectInit lk.salyk.kg [17:17:21]ExternCall_PrintAddStr [17:17:21]wPrintStart [17:17:21]Write to MH i2c: 01 00 00 F1 01 F2 [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 07 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [17:17:21]RasterBufferAndPrint [17:17:21]line Счет N : (1)918912 [17:17:21]line ИНН: 02508201610067 [17:17:21]line Контрольно-Кассовый Чек [17:17:21]line ПРОДАЖА [17:17:21]line ТРК (МРК, ГНК) : 22 [17:17:21]line Товар: 2710124130 [17:17:21]line Аи-92-К-4 [17:17:21]line 1.800 * 66.90 [17:17:21]line = 120.42 [17:17:21]line НДС 12% НСП 1% [17:17:21]line > о реализуемом товаре [17:17:21]line ОКРУГЛЕНИЕ: -0.42 [17:17:21]line ИТОГО: 120.00 [17:17:21]line Внесено: 120.00 [17:17:21]line СДАЧА: 0.00 [17:17:21]line НСП 1% : 1.07 [17:17:21]line НДС 12% : 12.79 [17:17:21]line Наличными: 120.00 [17:17:21]line Безнал.: 0.00 [17:17:21]line Место: АЗС № 114 "Партнер Нефть" [17:17:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:17:21]line СНО: Общий режим [17:17:21]line Чек 129 18.10.2024 17:17 [17:17:21]line Смена: 526 ФФД: 1.0 [17:17:21]line ЗНМ: 0300000086 [17:17:21]line РНМ: 0000000000091680 [17:17:21]line Версия ККМ: 001 [17:17:21]line ФМ: 0000000000871843 [17:17:21]line ФД: 82420 [17:17:21]line ФПД: 65441162785703 [17:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171720&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82420&fm=65441162785703&tin=02508201610067®Number=0000000000091680&sum=12000 [17:17:21]written 0, free lines is 4095 [17:17:22]Write to MH i2c: 01 00 00 1C 02 1E [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: 01 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: 01 07 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 D3 0C 04 [17:17:22]RasterBufferAndPrint [17:17:22]line [17:17:22]line [17:17:22]line [17:17:22]line [17:17:22]line [17:17:22]written 0, free lines is 3288 [17:17:22]MH_Cut [17:17:22]Write to MH i2c: D1 01 00 23 02 01 F7 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: D1 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: D1 01 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: D1 01 00 23 02 00 F6 [17:17:22]Write to MH i2c: 01 00 00 24 02 26 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]Connected sock=12 [17:17:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1E 64 07 01 1A A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 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 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 20 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 41 01 00 35 04 06 00 3B 84 B5 42 F3 A7 A7 0E C6 24 5D 12 BD 6E [17:17:23]*** Cut start [17:17:23]*** Partial cut [17:17:23]*** CUTSNS_PIN = 1 [17:17:23]*** CUTSNS_PIN = 0 [17:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 73 BD 47 00 1E E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F4 41 01 00 F4 03 04 00 5B 3D 12 67 B6 04 01 00 00 CB C3 FC AB FA 4D 94 94 [17:17:23]CommunicateWithHost err = 0 [17:17:23]CheckOFDResponse [17:17:23]1017 (14) - 77093643461234 [17:17:23]1041 (16) - 0000000000871843 [17:17:23]1040 (4) - 82420 [17:17:23]1012 (4) - 18.10.2024 10:50 [17:17:23]1206 (1) - 0 [17:17:23]OFD Sender: Remove packet 82420 [17:17:23]ProducePacketName [17:17:23]name=ofd_packets/00082420 [17:17:23]NVStorageDeleteData [17:17:23]*** Brake cut motor [17:17:23]Read from MH i2c: 01 [17:17:23]MH_I2C_Read... [17:17:23]*** Stop cut motor [17:17:23]*** Cut end [17:17:23]Read from MH i2c: 01 07 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [17:17:23]process_action close_receipt done [17:17:23]requested_data is exist [17:17:23]produce_requested_data [17:17:23]requested_item fm.sn is exist - process it [17:17:23]wFMCommunicate request_size=4 [17:17:23]MH_SAM_APDU [17:17:23]CAPDU: 80 11 00 00 [17:17:23]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]OFD Sender: No OFD packet to send [17:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:23]Read from MH i2c: E2 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 17 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F3 [17:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:17:23]wFMCommunicate OK [17:17:23]requested_item fd.num is exist - process it [17:17:23]SAM_PROTO_GetFieldsCounters [17:17:23]wFMCommunicate request_size=4 [17:17:23]MH_SAM_APDU [17:17:23]CAPDU: 80 13 00 00 [17:17:23]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 62 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [17:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F4 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_GetFieldsCounters done [17:17:24]requested_item shift.num is exist - process it [17:17:24]requested_item shift.opened is exist - process it [17:17:24]req_shift_opened [17:17:24]FM_GetShiftState [17:17:24]SAM_PROTO_GetShiftState [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 13 01 00 [17:17:24]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 78 [17:17:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_GetShiftState done [17:17:24]FM_GetShiftState done [17:17:24]req_shift_opened done [17:17:24]requested_item shift.open_date is exist - process it [17:17:24]req_shift_open_date [17:17:24]req_shift_open_date done [17:17:24]produce_requested_data done [17:17:24]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82420,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:17:24]process_action_free close_receipt [17:17:24]json_value_free [17:17:24]json_value_free done [17:17:24]process_json_proto returns [17:17:24]Send response to host [17:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82420,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:17:24]free response buf [17:17:24]execute_script done [17:17:24]execute_script returns [17:17:24]free content buf [17:17:24]Sock 10.Close socket [17:17:24]Sock 10.Thread stoped [17:17:28]OFD Sender: No OFD packet to send [17:17:33]recv_with_timeout no data received [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:45]recv_with_timeout no data received [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:56]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:46]accept exits with 9 [17:18:46]New connection [17:18:46]New thread 3067174244 created [17:18:46]Thread 3067317604 joined [17:18:46]Waiting for new connection... [17:18:46] Sock 9.Parse request [17:18:46]Sock 9.Check first char [17:18:46]Sock 9.First char is OK [17:18:46]request: POST /json_proto HTTP/1.0 [17:18:46]Method: POST [17:18:46]URL: /json_proto [17:18:46]Method is POST - this is cgi request [17:18:46]url: /json_proto [17:18:46]query_string will be loaded in cgi processing [17:18:46]execute_cgi json_proto POST (null) [17:18:46]execute_cgi path=json_proto method=POST [17:18:46]POST find Content-Length [17:18:46]Host: 172.17.44.67:8080 [17:18:46]Content-Length: 759 [17:18:46]Content-Type: application/json [17:18:46] [17:18:46]POST finish read [17:18:46]Found Content-Length = 759 [17:18:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:46]execute_script... [17:18: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)918913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:46]POST & json_proto [17:18:46]process_json_proto [17:18:46]json parsed OK: [17:18:46]protocol is kg_v1.0 [17:18:46]action value=close_receipt [17:18:46]process_action close_receipt [17:18:46]cmd_close_receipt [17:18:46]MH_GetDate [17:18:46]Write to MH i2c: F0 00 00 28 02 19 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: F0 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: F0 09 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: F0 09 00 28 02 00 77 98 12 67 F1 C7 6B 64 31 [17:18:46]GetLastDocTimeStamp 1729271840 [17:18:46]current date 1729271927 [17:18:46]FM_GetShiftState [17:18:46]SAM_PROTO_GetShiftState [17:18:46]wFMCommunicate request_size=4 [17:18:46]MH_SAM_APDU [17:18:46]CAPDU: 80 13 01 00 [17:18:46]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [17:18:46]Write i2c OK [17:18:46]MH_I2C_Read... [17:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:46]Read from MH i2c: E2 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 0E 00 [17:18:46]MH_I2C_Read... [17:18:46]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 7A [17:18:46]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:18:46]wFMCommunicate OK [17:18:46]SAM_PROTO_GetShiftState done [17:18:46]FM_GetShiftState done [17:18:46]opened in 1729212319 [17:18:46]opened+sec_in_day 1729298719 [17:18:46]quantity*price = 0 [17:18:46]sum+1 = 1 [17:18:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 130 18.10.2024 17:18 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30137675 ФМ: 0000000000871843 ФД: 82421 ФПД: 223368670701497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171847&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82421&fm=223368670701497&tin=02508201610067®Number=0000000000091680&sum=0 [17:18:47]StoreToDocumentArchive [17:18:47]shift 526 fd 82421 [17:18:47]save to /storage/0526/doc_00082421 [17:18:47]save last doc name /storage/0526/doc_00082421 to /storage/kkm_last_doc_name [17:18:47]save OK [17:18:47]Clear old archive folders... [17:18:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:18:47]tlvbuf is 0066B190 [17:18:47]SAM_PROTO_ClearQueue [17:18:47]wFMCommunicate request_size=4 [17:18:47]MH_SAM_APDU [17:18:47]CAPDU: 80 09 00 00 [17:18:47]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:47]Read from MH i2c: E2 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [17:18:47]RAPDU: 90 00 [17:18:47]wFMCommunicate OK [17:18:47]SAM_PROTO_ClearQueue done [17:18:47]KKMCreateOFDPacket [17:18:47]OFDProtocolAddRootSTLVToBuf [17:18:47]FM_MakeSignedData [17:18:47]FM_MakeSignedData [17:18:47]SAM_PROTO_SignData [17:18:47]wFMCommunicate request_size=4 [17:18:47]MH_SAM_APDU [17:18:47]CAPDU: 80 0D 01 02 [17:18:47]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:47]Read from MH i2c: E2 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [17:18:47]RAPDU: 90 00 [17:18:47]wFMCommunicate OK [17:18:47]wFMCommunicate request_size=255 [17:18:47]MH_SAM_APDU [17:18:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 77 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 41 01 00 35 04 06 00 [17:18:47]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 77 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 41 01 00 35 04 06 00 00 00 B4 [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:47]Read from MH i2c: E2 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [17:18:47]RAPDU: 90 00 [17:18:47]wFMCommunicate OK [17:18:47]wFMCommunicate request_size=11 [17:18:47]MH_SAM_APDU [17:18:47]CAPDU: 80 0D 02 02 06 CB 27 12 45 67 B9 [17:18:47]Write to MH i2c: E2 0E 00 39 02 80 0D 02 02 06 00 CB 27 12 45 67 B9 00 00 2A [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:47]Read from MH i2c: E2 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [17:18:47]RAPDU: 90 00 [17:18:47]wFMCommunicate OK [17:18:47]wFMCommunicate request_size=4 [17:18:47]MH_SAM_APDU [17:18:47]CAPDU: 80 0D 03 02 [17:18:47]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:47]Read from MH i2c: E2 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 0B 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 0B 00 3A 02 00 A3 8B A6 8B DB 2F C1 04 90 00 E6 [17:18:47]RAPDU: A3 8B A6 8B DB 2F C1 04 90 00 [17:18:47]wFMCommunicate OK [17:18:47]SAM_PROTO_SignData done [17:18:47]FM_MakeSignedData done [17:18:47]CreateOFDProtocolMessage [17:18:47]wFMCommunicate request_size=4 [17:18:47]MH_SAM_APDU [17:18:47]CAPDU: 80 11 00 00 [17:18:47]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:47]Read from MH i2c: E2 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 17 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 09 [17:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:18:47]wFMCommunicate OK [17:18:47]CreateOFDProtocolMessage done [17:18:47]OFDSenderStorePacket 82421 [17:18:47]StoreOFDPacket docnum=82421 [17:18:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 16 73 08 01 5E 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 77 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 41 01 00 35 04 06 00 CB 27 12 45 67 B9 A3 8B A6 8B DB 2F C1 04 [17:18:47]CheckFolder [17:18:47]dirname=/storage/ofd_packets [17:18:47]CheckFolder done [17:18:47]ProducePacketName [17:18:47]name=ofd_packets/00082421 [17:18:47]NVStorageSaveData ofd_packets/00082421 [17:18:47]File name is /storage/ofd_packets/00082421 [17:18:47]Write 302 bytes [17:18:47]NVStorageSaveData done [17:18:47]OFDSenderStorePacket done [17:18:47]KKMCreateOFDPacket done [17:18:47]NVStorageSaveData kkm_last_timestamp [17:18:47]File name is /storage/kkm_last_timestamp [17:18:47]Write 4 bytes [17:18:47]NVStorageSaveData done [17:18:47]ExternCall_PrintAddStr [17:18:47]wPrintStart [17:18:47]Write to MH i2c: 01 00 00 3C 02 3E [17:18:47]Write i2c OK [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: 01 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: 01 07 00 [17:18:47]MH_I2C_Read... [17:18:47]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [17:18:47]RasterBufferAndPrint [17:18:47]line Счет N : (1)918913 [17:18:47]line ИНН: 02508201610067 [17:18:47]line Контрольно-Кассовый Чек [17:18:47]line ПРОДАЖА [17:18:47]line ТРК (МРК, ГНК) : 31 [17:18:47]line Товар: 2710194210 [17:18:47]line ДТ(л)-К-5 [17:18:47]line 20.000 * 0.00 [17:18:47]line = 0.00 [17:18:47]line НДС 12% НСП 1% [17:18:47]line > о реализуемом товаре [17:18:47]line ИТОГО: 0.00 [17:18:47]line НСП 1% : 0.00 [17:18:47]line НДС 12% : 0.00 [17:18:47]line Наличными: 0.00 [17:18:47]line Безнал.: 0.00 [17:18:47]line Место: АЗС № 114 "Партнер Нефть" [17:18:47]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:18:47]line СНО: Общий режим [17:18:47]line Чек 130 18.10.2024 17:18 [17:18:47]line Смена: 526 ФФД: 1.0 [17:18:47]line ЗНМ: 0300000086 [17:18:47]line РНМ: 0000000000091680 [17:18:47]line Версия ККМ: 001 [17:18:47]line Талоны: ТК ГПНА Online [17:18:47]line 30137675 [17:18:47]line ФМ: 0000000000871843 [17:18:47]line ФД: 82421 [17:18:47]line ФПД: 223368670701497 [17:18:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T171847&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82421&fm=223368670701497&tin=02508201610067®Number=0000000000091680&sum=0 [17:18:48]written 0, free lines is 4095 [17:18:48]OFD Sender: Processing packet 82421 [packets to send 254, broken 253] [17:18:48]ProducePacketName [17:18:48]name=ofd_packets/00082421 [17:18:48]OFD Sender: To server: pG, [17:18:48]CommunicateWithHost lk.salyk.kg:30040 [17:18:48]ConnectInit lk.salyk.kg [17:18:48]Write to MH i2c: 01 00 00 66 02 68 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 D7 0C 52 [17:18:48]RasterBufferAndPrint [17:18:48]line [17:18:48]line [17:18:48]line [17:18:48]line [17:18:48]line [17:18:48]written 0, free lines is 3293 [17:18:48]MH_Cut [17:18:48]Write to MH i2c: D1 01 00 6D 02 01 41 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: D1 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: D1 01 00 [17:18:48]MH_I2C_Read... [17:18:48]Read from MH i2c: D1 01 00 6D 02 00 40 [17:18:48]Write to MH i2c: 01 00 00 6E 02 70 [17:18:48]Write i2c OK [17:18:48]MH_I2C_Read... [17:18:49]*** Cut start [17:18:49]*** Partial cut [17:18:49]*** CUTSNS_PIN = 1 [17:18:49]*** CUTSNS_PIN = 0 [17:18:49]*** Brake cut motor [17:18:50]Read from MH i2c: 01 [17:18:50]MH_I2C_Read... [17:18:50]*** Stop cut motor [17:18:50]Read from MH i2c: 01 07 00 [17:18:50]MH_I2C_Read... [17:18:50]*** Cut end [17:18:50]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [17:18:50]process_action close_receipt done [17:18:50]requested_data is exist [17:18:50]produce_requested_data [17:18:50]requested_item fm.sn is exist - process it [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 11 00 00 [17:18:50]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 17 00 [17:18:50]MH_I2C_Read... [17:18:50]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 31 38 34 33 90 00 3D [17:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:18:50]wFMCommunicate OK [17:18:50]requested_item fd.num is exist - process it [17:18:50]SAM_PROTO_GetFieldsCounters [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 13 00 00 [17:18:50]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 62 00 [17:18:50]MH_I2C_Read... [17:18:50]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:18:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F5 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:50]wFMCommunicate OK [17:18:50]SAM_PROTO_GetFieldsCounters done [17:18:50]requested_item shift.num is exist - process it [17:18:50]requested_item shift.opened is exist - process it [17:18:50]req_shift_opened [17:18:50]FM_GetShiftState [17:18:50]SAM_PROTO_GetShiftState [17:18:50]wFMCommunicate request_size=4 [17:18:50]MH_SAM_APDU [17:18:50]CAPDU: 80 13 01 00 [17:18:50]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [17:18:50]Write i2c OK [17:18:50]MH_I2C_Read... [17:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:50]Read from MH i2c: E2 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 0E 00 [17:18:50]MH_I2C_Read... [17:18:50]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C2 [17:18:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:18:50]wFMCommunicate OK [17:18:50]SAM_PROTO_GetShiftState done [17:18:50]FM_GetShiftState done [17:18:50]req_shift_opened done [17:18:50]requested_item shift.open_date is exist - process it [17:18:50]req_shift_open_date [17:18:50]req_shift_open_date done [17:18:50]produce_requested_data done [17:18:50]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82421,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:18:50]process_action_free close_receipt [17:18:50]json_value_free [17:18:50]json_value_free done [17:18:50]process_json_proto returns [17:18:50]Send response to host [17:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82421,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:18:50]free response buf [17:18:50]execute_script done [17:18:50]execute_script returns [17:18:50]free content buf [17:18:50]Sock 9.Close socket [17:18:50]Sock 9.Thread stoped [17:18:52]Connected sock=11 [17:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 16 73 08 01 5E 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 77 98 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 41 01 00 35 04 06 00 CB 27 12 45 67 B9 A3 8B A6 8B DB 2F C1 04 [17:18:54]recv_with_timeout no data received [17:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 1A 05 47 00 A3 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F5 41 01 00 F4 03 04 00 B5 3D 12 67 B6 04 01 00 00 65 FD 25 D2 9E 88 EA EB [17:18:54]CommunicateWithHost err = 0 [17:18:54]CheckOFDResponse [17:18:54]1017 (14) - 77093643461234 [17:18:54]1041 (16) - 0000000000871843 [17:18:54]1040 (4) - 82421 [17:18:54]1012 (4) - 18.10.2024 10:51 [17:18:54]1206 (1) - 0 [17:18:54]OFD Sender: Remove packet 82421 [17:18:54]ProducePacketName [17:18:54]name=ofd_packets/00082421 [17:18:54]NVStorageDeleteData [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:08]recv_with_timeout no data received [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:22]recv_with_timeout no data received [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:37]recv_with_timeout no data received [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [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:14]accept exits with 7 [17:22:14]New connection [17:22:14]New thread 3067317604 created [17:22:14]Thread 3067174244 joined [17:22:14]Waiting for new connection... [17:22:14] Sock 7.Parse request [17:22:14]Sock 7.Check first char [17:22:14]Sock 7.First char is OK [17:22:14]request: POST /json_proto HTTP/1.0 [17:22:14]Method: POST [17:22:14]URL: /json_proto [17:22:14]Method is POST - this is cgi request [17:22:14]url: /json_proto [17:22:14]query_string will be loaded in cgi processing [17:22:14]execute_cgi json_proto POST (null) [17:22:14]execute_cgi path=json_proto method=POST [17:22:14]POST find Content-Length [17:22:14]Host: 172.17.44.67:8080 [17:22:14]Content-Length: 677 [17:22:14]Content-Type: application/json [17:22:14] [17:22:14]POST finish read [17:22:14]Found Content-Length = 677 [17:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:14]execute_script... [17:22: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)918914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:14]POST & json_proto [17:22:14]process_json_proto [17:22:14]json parsed OK: [17:22:14]protocol is kg_v1.0 [17:22:14]action value=close_receipt [17:22:14]process_action close_receipt [17:22:14]cmd_close_receipt [17:22:14]MH_GetDate [17:22:14]Write to MH i2c: F0 00 00 72 02 63 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: F0 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: F0 09 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: F0 09 00 72 02 00 47 99 12 67 F1 C7 6B 64 4C [17:22:14]GetLastDocTimeStamp 1729271927 [17:22:14]current date 1729272135 [17:22:14]FM_GetShiftState [17:22:14]SAM_PROTO_GetShiftState [17:22:14]wFMCommunicate request_size=4 [17:22:14]MH_SAM_APDU [17:22:14]CAPDU: 80 13 01 00 [17:22:14]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 0E 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C4 [17:22:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:22:14]wFMCommunicate OK [17:22:14]SAM_PROTO_GetShiftState done [17:22:14]FM_GetShiftState done [17:22:14]opened in 1729212319 [17:22:14]opened+sec_in_day 1729298719 [17:22:14]quantity*price = 20003 [17:22:14]sum+1 = 20004 [17:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 131 18.10.2024 17:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82422 ФПД: 141397839735907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T172215&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82422&fm=141397839735907&tin=02508201610067®Number=0000000000091680&sum=20000 [17:22:15]StoreToDocumentArchive [17:22:15]shift 526 fd 82422 [17:22:15]save to /storage/0526/doc_00082422 [17:22:15]save last doc name /storage/0526/doc_00082422 to /storage/kkm_last_doc_name [17:22:15]save OK [17:22:15]Clear old archive folders... [17:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:15]tlvbuf is 0065C4A0 [17:22:15]SAM_PROTO_ClearQueue [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 09 00 00 [17:22:15]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [17:22:15]RAPDU: 90 00 [17:22:15]wFMCommunicate OK [17:22:15]SAM_PROTO_ClearQueue done [17:22:15]KKMCreateOFDPacket [17:22:15]OFDProtocolAddRootSTLVToBuf [17:22:15]FM_MakeSignedData [17:22:15]FM_MakeSignedData [17:22:15]SAM_PROTO_SignData [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 0D 01 02 [17:22:15]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [17:22:15]RAPDU: 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=255 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 99 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 41 01 00 35 04 06 00 80 [17:22:15]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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 99 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 41 01 00 35 04 06 00 80 00 00 EE [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]OFD Sender: No OFD packet to send [17:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [17:22:15]RAPDU: 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=10 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 0D 02 02 05 99 C0 02 6C 63 [17:22:15]Write to MH i2c: E2 0D 00 83 02 80 0D 02 02 05 00 99 C0 02 6C 63 00 00 33 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [17:22:15]RAPDU: 90 00 [17:22:15]wFMCommunicate OK [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 0D 03 02 [17:22:15]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:15]Read from MH i2c: E2 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 0B 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: E2 0B 00 84 02 00 45 72 DC C3 03 87 01 1F 90 00 02 [17:22:15]RAPDU: 45 72 DC C3 03 87 01 1F 90 00 [17:22:15]wFMCommunicate OK [17:22:15]SAM_PROTO_SignData done [17:22:15]FM_MakeSignedData done [17:22:15]CreateOFDProtocolMessage [17:22:15]wFMCommunicate request_size=4 [17:22:15]MH_SAM_APDU [17:22:15]CAPDU: 80 11 00 00 [17:22:15]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 17 00 [17:22:16]MH_I2C_Read... [17:22:16]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 31 38 34 33 90 00 53 [17:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:22:16]wFMCommunicate OK [17:22:16]CreateOFDProtocolMessage done [17:22:16]OFDSenderStorePacket 82422 [17:22:16]StoreOFDPacket docnum=82422 [17:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D5 6C 07 01 85 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 99 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 41 01 00 35 04 06 00 80 99 C0 02 6C 63 45 72 DC C3 03 87 01 1F [17:22:16]CheckFolder [17:22:16]dirname=/storage/ofd_packets [17:22:16]CheckFolder done [17:22:16]ProducePacketName [17:22:16]name=ofd_packets/00082422 [17:22:16]NVStorageSaveData ofd_packets/00082422 [17:22:16]File name is /storage/ofd_packets/00082422 [17:22:16]Write 301 bytes [17:22:16]NVStorageSaveData done [17:22:16]OFDSenderStorePacket done [17:22:16]KKMCreateOFDPacket done [17:22:16]NVStorageSaveData kkm_last_timestamp [17:22:16]File name is /storage/kkm_last_timestamp [17:22:16]Write 4 bytes [17:22:16]NVStorageSaveData done [17:22:16]ExternCall_PrintAddStr [17:22:16]wPrintStart [17:22:16]Write to MH i2c: 01 00 00 86 02 88 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [17:22:16]RasterBufferAndPrint [17:22:16]line Счет N : (1)918914 [17:22:16]line ИНН: 02508201610067 [17:22:16]line Контрольно-Кассовый Чек [17:22:16]line ПРОДАЖА [17:22:16]line ТРК (МРК, ГНК) : 11 [17:22:16]line Товар: 2710124130 [17:22:16]line Аи-92-К-4 [17:22:16]line 2.990 * 66.90 [17:22:16]line = 200.03 [17:22:16]line НДС 12% НСП 1% [17:22:16]line > о реализуемом товаре [17:22:16]line ОКРУГЛЕНИЕ: -0.03 [17:22:16]line ИТОГО: 200.00 [17:22:16]line Внесено: 200.00 [17:22:16]line СДАЧА: 0.00 [17:22:16]line НСП 1% : 1.77 [17:22:16]line НДС 12% : 21.24 [17:22:16]line Наличными: 200.00 [17:22:16]line Безнал.: 0.00 [17:22:16]line Место: АЗС № 114 "Партнер Нефть" [17:22:16]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:22:16]line СНО: Общий режим [17:22:16]line Чек 131 18.10.2024 17:22 [17:22:16]line Смена: 526 ФФД: 1.0 [17:22:16]line ЗНМ: 0300000086 [17:22:16]line РНМ: 0000000000091680 [17:22:16]line Версия ККМ: 001 [17:22:16]line ФМ: 0000000000871843 [17:22:16]line ФД: 82422 [17:22:16]line ФПД: 141397839735907 [17:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T172215&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82422&fm=141397839735907&tin=02508201610067®Number=0000000000091680&sum=20000 [17:22:16]OFD Sender: Processing packet 82422 [packets to send 254, broken 253] [17:22:16]ProducePacketName [17:22:16]name=ofd_packets/00082422 [17:22:16]OFD Sender: To server: pG, [17:22:16]CommunicateWithHost lk.salyk.kg:30040 [17:22:16]ConnectInit lk.salyk.kg [17:22:16]written 0, free lines is 4095 [17:22:16]Write to MH i2c: 01 00 00 B1 02 B3 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 D3 0C 99 [17:22:16]RasterBufferAndPrint [17:22:16]line [17:22:16]line [17:22:16]line [17:22:16]line [17:22:16]line [17:22:16]written 0, free lines is 3287 [17:22:16]MH_Cut [17:22:16]Write to MH i2c: D1 01 00 B8 02 01 8C [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: D1 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: D1 01 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: D1 01 00 B8 02 00 8B [17:22:16]Write to MH i2c: 01 00 00 B9 02 BB [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:17]Connected sock=10 [17:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D5 6C 07 01 85 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 99 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 41 01 00 35 04 06 00 80 99 C0 02 6C 63 45 72 DC C3 03 87 01 1F [17:22:17]*** Cut start [17:22:17]*** Partial cut [17:22:17]*** CUTSNS_PIN = 1 [17:22:17]*** CUTSNS_PIN = 0 [17:22:17]*** Brake cut motor [17:22:18]Read from MH i2c: 01 [17:22:18]MH_I2C_Read... [17:22:18]*** Stop cut motor [17:22:18]*** Cut end [17:22:18]Read from MH i2c: 01 07 00 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [17:22:18]process_action close_receipt done [17:22:18]requested_data is exist [17:22:18]produce_requested_data [17:22:18]requested_item fm.sn is exist - process it [17:22:18]wFMCommunicate request_size=4 [17:22:18]MH_SAM_APDU [17:22:18]CAPDU: 80 11 00 00 [17:22:18]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [17:22:18]Write i2c OK [17:22:18]MH_I2C_Read... [17:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 05 FB 47 00 64 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F6 41 01 00 F4 03 04 00 82 3E 12 67 B6 04 01 00 00 86 6C 6B 61 64 B4 C2 47 [17:22:18]CommunicateWithHost err = 0 [17:22:18]CheckOFDResponse [17:22:18]1017 (14) - 77093643461234 [17:22:18]1041 (16) - 0000000000871843 [17:22:18]1040 (4) - 82422 [17:22:18]1012 (4) - 18.10.2024 10:54 [17:22:18]1206 (1) - 0 [17:22:18]OFD Sender: Remove packet 82422 [17:22:18]ProducePacketName [17:22:18]name=ofd_packets/00082422 [17:22:18]NVStorageDeleteData [17:22:18]Read from MH i2c: E2 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 17 00 [17:22:18]MH_I2C_Read... [17:22:18]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 31 38 34 33 90 00 88 [17:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:22:18]wFMCommunicate OK [17:22:18]requested_item fd.num is exist - process it [17:22:18]SAM_PROTO_GetFieldsCounters [17:22:18]wFMCommunicate request_size=4 [17:22:18]MH_SAM_APDU [17:22:18]CAPDU: 80 13 00 00 [17:22:18]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [17:22:18]Write i2c OK [17:22:18]MH_I2C_Read... [17:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:18]Read from MH i2c: E2 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 62 00 [17:22:18]MH_I2C_Read... [17:22:18]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [17:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F6 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:18]wFMCommunicate OK [17:22:18]SAM_PROTO_GetFieldsCounters done [17:22:18]requested_item shift.num is exist - process it [17:22:18]requested_item shift.opened is exist - process it [17:22:18]req_shift_opened [17:22:18]FM_GetShiftState [17:22:18]SAM_PROTO_GetShiftState [17:22:18]wFMCommunicate request_size=4 [17:22:18]MH_SAM_APDU [17:22:18]CAPDU: 80 13 01 00 [17:22:18]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [17:22:18]Write i2c OK [17:22:18]MH_I2C_Read... [17:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:18]Read from MH i2c: E2 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 0E 00 [17:22:18]MH_I2C_Read... [17:22:18]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 0D [17:22:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:22:18]wFMCommunicate OK [17:22:18]SAM_PROTO_GetShiftState done [17:22:18]FM_GetShiftState done [17:22:18]req_shift_opened done [17:22:18]requested_item shift.open_date is exist - process it [17:22:18]req_shift_open_date [17:22:18]req_shift_open_date done [17:22:18]produce_requested_data done [17:22:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82422,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:22:18]process_action_free close_receipt [17:22:18]json_value_free [17:22:18]json_value_free done [17:22:18]process_json_proto returns [17:22:18]Send response to host [17:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82422,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:22:18]free response buf [17:22:18]execute_script done [17:22:18]execute_script returns [17:22:18]free content buf [17:22:18]Sock 7.Close socket [17:22:18]Sock 7.Thread stoped [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:31]recv_with_timeout no data received [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:42]recv_with_timeout no data received [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [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:13]recv_with_timeout no data received [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]accept exits with 9 [17:30:29]New connection [17:30:29]New thread 3067174244 created [17:30:29]Thread 3067317604 joined [17:30:29]Waiting for new connection... [17:30:29] Sock 9.Parse request [17:30:29]Sock 9.Check first char [17:30:29]Sock 9.First char is OK [17:30:29]request: POST /json_proto HTTP/1.0 [17:30:29]Method: POST [17:30:29]URL: /json_proto [17:30:29]Method is POST - this is cgi request [17:30:29]url: /json_proto [17:30:29]query_string will be loaded in cgi processing [17:30:29]execute_cgi json_proto POST (null) [17:30:29]execute_cgi path=json_proto method=POST [17:30:29]POST find Content-Length [17:30:29]Host: 172.17.44.67:8080 [17:30:29]Content-Length: 677 [17:30:29]Content-Type: application/json [17:30:29] [17:30:29]POST finish read [17:30:29]Found Content-Length = 677 [17:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:29]execute_script... [17:30: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)918915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:29]POST & json_proto [17:30:29]process_json_proto [17:30:29]json parsed OK: [17:30:29]protocol is kg_v1.0 [17:30:29]action value=close_receipt [17:30:29]process_action close_receipt [17:30:29]cmd_close_receipt [17:30:29]MH_GetDate [17:30:29]Write to MH i2c: F0 00 00 BD 02 AE [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: F0 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: F0 09 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: F0 09 00 BD 02 00 36 9B 12 67 F1 C7 6B 64 88 [17:30:29]GetLastDocTimeStamp 1729272135 [17:30:29]current date 1729272630 [17:30:29]FM_GetShiftState [17:30:29]SAM_PROTO_GetShiftState [17:30:29]wFMCommunicate request_size=4 [17:30:29]MH_SAM_APDU [17:30:29]CAPDU: 80 13 01 00 [17:30:29]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [17:30:29]Write i2c OK [17:30:29]MH_I2C_Read... [17:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:29]Read from MH i2c: E2 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 0E 00 [17:30:29]MH_I2C_Read... [17:30:29]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 0F [17:30:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:30:29]wFMCommunicate OK [17:30:29]SAM_PROTO_GetShiftState done [17:30:29]FM_GetShiftState done [17:30:29]opened in 1729212319 [17:30:29]opened+sec_in_day 1729298719 [17:30:29]quantity*price = 50041 [17:30:29]sum+1 = 50042 [17:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 132 18.10.2024 17:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82423 ФПД: 269636477553662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173030&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82423&fm=269636477553662&tin=02508201610067®Number=0000000000091680&sum=50000 [17:30:30]StoreToDocumentArchive [17:30:30]shift 526 fd 82423 [17:30:30]save to /storage/0526/doc_00082423 [17:30:30]save last doc name /storage/0526/doc_00082423 to /storage/kkm_last_doc_name [17:30:30]save OK [17:30:30]Clear old archive folders... [17:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:30]tlvbuf is 005C0D70 [17:30:30]SAM_PROTO_ClearQueue [17:30:30]wFMCommunicate request_size=4 [17:30:30]MH_SAM_APDU [17:30:30]CAPDU: 80 09 00 00 [17:30:30]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:30]Read from MH i2c: E2 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [17:30:30]RAPDU: 90 00 [17:30:30]wFMCommunicate OK [17:30:30]SAM_PROTO_ClearQueue done [17:30:30]KKMCreateOFDPacket [17:30:30]OFDProtocolAddRootSTLVToBuf [17:30:30]FM_MakeSignedData [17:30:30]FM_MakeSignedData [17:30:30]SAM_PROTO_SignData [17:30:30]wFMCommunicate request_size=4 [17:30:30]MH_SAM_APDU [17:30:30]CAPDU: 80 0D 01 02 [17:30:30]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:30]Read from MH i2c: E2 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [17:30:30]RAPDU: 90 00 [17:30:30]wFMCommunicate OK [17:30:30]wFMCommunicate request_size=255 [17:30:30]MH_SAM_APDU [17:30: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 36 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 41 01 00 35 04 06 00 F5 [17:30:30]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 36 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 41 01 00 35 04 06 00 F5 00 00 DF [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:30]Read from MH i2c: E2 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [17:30:30]RAPDU: 90 00 [17:30:30]wFMCommunicate OK [17:30:30]wFMCommunicate request_size=10 [17:30:30]MH_SAM_APDU [17:30:30]CAPDU: 80 0D 02 02 05 3B A2 76 8B FE [17:30:30]Write to MH i2c: E2 0D 00 CE 02 80 0D 02 02 05 00 3B A2 76 8B FE 00 00 30 [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:30]Read from MH i2c: E2 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:30:30]RAPDU: 90 00 [17:30:30]wFMCommunicate OK [17:30:30]wFMCommunicate request_size=4 [17:30:30]MH_SAM_APDU [17:30:30]CAPDU: 80 0D 03 02 [17:30:30]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:30]Read from MH i2c: E2 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 0B 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 0B 00 CF 02 00 18 7D A0 E6 FB 92 0C 71 90 00 72 [17:30:30]RAPDU: 18 7D A0 E6 FB 92 0C 71 90 00 [17:30:30]wFMCommunicate OK [17:30:30]SAM_PROTO_SignData done [17:30:30]FM_MakeSignedData done [17:30:30]CreateOFDProtocolMessage [17:30:30]wFMCommunicate request_size=4 [17:30:30]MH_SAM_APDU [17:30:30]CAPDU: 80 11 00 00 [17:30:30]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:30]Read from MH i2c: E2 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: E2 17 00 [17:30:30]MH_I2C_Read... [17:30:30]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 31 38 34 33 90 00 9E [17:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:30:30]wFMCommunicate OK [17:30:30]CreateOFDProtocolMessage done [17:30:30]OFDSenderStorePacket 82423 [17:30:30]StoreOFDPacket docnum=82423 [17:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BD 89 07 01 D0 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 36 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 41 01 00 35 04 06 00 F5 3B A2 76 8B FE 18 7D A0 E6 FB 92 0C 71 [17:30:30]CheckFolder [17:30:30]dirname=/storage/ofd_packets [17:30:30]CheckFolder done [17:30:30]ProducePacketName [17:30:30]name=ofd_packets/00082423 [17:30:30]NVStorageSaveData ofd_packets/00082423 [17:30:30]File name is /storage/ofd_packets/00082423 [17:30:30]Write 301 bytes [17:30:30]NVStorageSaveData done [17:30:30]OFDSenderStorePacket done [17:30:30]KKMCreateOFDPacket done [17:30:30]NVStorageSaveData kkm_last_timestamp [17:30:30]File name is /storage/kkm_last_timestamp [17:30:30]Write 4 bytes [17:30:30]NVStorageSaveData done [17:30:30]ExternCall_PrintAddStr [17:30:30]wPrintStart [17:30:30]Write to MH i2c: 01 00 00 D1 02 D3 [17:30:30]Write i2c OK [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: 01 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: 01 07 00 [17:30:30]MH_I2C_Read... [17:30:30]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [17:30:30]RasterBufferAndPrint [17:30:30]line Счет N : (1)918915 [17:30:30]line ИНН: 02508201610067 [17:30:30]line Контрольно-Кассовый Чек [17:30:30]line ПРОДАЖА [17:30:30]line ТРК (МРК, ГНК) : 11 [17:30:30]line Товар: 2710124130 [17:30:30]line Аи-92-К-4 [17:30:30]line 7.480 * 66.90 [17:30:30]line = 500.41 [17:30:30]line НДС 12% НСП 1% [17:30:30]line > о реализуемом товаре [17:30:30]line ОКРУГЛЕНИЕ: -0.41 [17:30:30]line ИТОГО: 500.00 [17:30:30]line Внесено: 500.00 [17:30:30]line СДАЧА: 0.00 [17:30:30]line НСП 1% : 4.43 [17:30:30]line НДС 12% : 53.14 [17:30:30]line Наличными: 500.00 [17:30:30]line Безнал.: 0.00 [17:30:30]line Место: АЗС № 114 "Партнер Нефть" [17:30:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:30:30]line СНО: Общий режим [17:30:30]line Чек 132 18.10.2024 17:30 [17:30:30]line Смена: 526 ФФД: 1.0 [17:30:30]line ЗНМ: 0300000086 [17:30:30]line РНМ: 0000000000091680 [17:30:30]line Версия ККМ: 001 [17:30:30]line ФМ: 0000000000871843 [17:30:30]line ФД: 82423 [17:30:30]line ФПД: 269636477553662 [17:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173030&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82423&fm=269636477553662&tin=02508201610067®Number=0000000000091680&sum=50000 [17:30:31]OFD Sender: Processing packet 82423 [packets to send 254, broken 253] [17:30:31]ProducePacketName [17:30:31]name=ofd_packets/00082423 [17:30:31]OFD Sender: To server: pG, [17:30:31]CommunicateWithHost lk.salyk.kg:30040 [17:30:31]ConnectInit lk.salyk.kg [17:30:31]written 0, free lines is 4095 [17:30:31]Write to MH i2c: 01 00 00 FC 02 FE [17:30:31]Write i2c OK [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: 01 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: 01 07 00 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 D0 0C E1 [17:30:31]RasterBufferAndPrint [17:30:31]line [17:30:31]line [17:30:31]line [17:30:31]line [17:30:31]line [17:30:31]written 0, free lines is 3287 [17:30:31]MH_Cut [17:30:31]Write to MH i2c: D1 01 00 03 03 01 D8 [17:30:31]Write i2c OK [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: D1 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: D1 01 00 [17:30:31]MH_I2C_Read... [17:30:31]Read from MH i2c: D1 01 00 03 03 00 D7 [17:30:31]Write to MH i2c: 01 00 00 04 03 07 [17:30:31]Write i2c OK [17:30:31]MH_I2C_Read... [17:30:31]Connected sock=7 [17:30:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BD 89 07 01 D0 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 36 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 41 01 00 35 04 06 00 F5 3B A2 76 8B FE 18 7D A0 E6 FB 92 0C 71 [17:30:32]*** Cut start [17:30:32]*** Partial cut [17:30:32]*** CUTSNS_PIN = 1 [17:30:32]*** CUTSNS_PIN = 0 [17:30:32]*** Brake cut motor [17:30:32]Read from MH i2c: 01 [17:30:32]MH_I2C_Read... [17:30:32]*** Stop cut motor [17:30:32]*** Cut end [17:30:32]Read from MH i2c: 01 07 00 [17:30:32]MH_I2C_Read... [17:30:32]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [17:30:32]process_action close_receipt done [17:30:32]requested_data is exist [17:30:32]produce_requested_data [17:30:32]requested_item fm.sn is exist - process it [17:30:32]wFMCommunicate request_size=4 [17:30:32]MH_SAM_APDU [17:30:32]CAPDU: 80 11 00 00 [17:30:32]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [17:30:32]Write i2c OK [17:30:32]MH_I2C_Read... [17:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:33]Read from MH i2c: E2 [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: E2 17 00 [17:30:33]MH_I2C_Read... [17:30:33]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 31 38 34 33 90 00 D4 [17:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:30:33]wFMCommunicate OK [17:30:33]requested_item fd.num is exist - process it [17:30:33]SAM_PROTO_GetFieldsCounters [17:30:33]wFMCommunicate request_size=4 [17:30:33]MH_SAM_APDU [17:30:33]CAPDU: 80 13 00 00 [17:30:33]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [17:30:33]Write i2c OK [17:30:33]MH_I2C_Read... [17:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:33]Read from MH i2c: E2 [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: E2 62 00 [17:30:33]MH_I2C_Read... [17:30:33]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [17:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F7 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:33]wFMCommunicate OK [17:30:33]SAM_PROTO_GetFieldsCounters done [17:30:33]requested_item shift.num is exist - process it [17:30:33]requested_item shift.opened is exist - process it [17:30:33]req_shift_opened [17:30:33]FM_GetShiftState [17:30:33]SAM_PROTO_GetShiftState [17:30:33]wFMCommunicate request_size=4 [17:30:33]MH_SAM_APDU [17:30:33]CAPDU: 80 13 01 00 [17:30:33]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [17:30:33]Write i2c OK [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: E2 [17:30:33]MH_I2C_Read... [17:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:33]Read from MH i2c: E2 0E 00 [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 59 [17:30:33]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:30:33]wFMCommunicate OK [17:30:33]SAM_PROTO_GetShiftState done [17:30:33]FM_GetShiftState done [17:30:33]req_shift_opened done [17:30:33]requested_item shift.open_date is exist - process it [17:30:33]req_shift_open_date [17:30:33]req_shift_open_date done [17:30:33]produce_requested_data done [17:30:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82423,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:30:33]process_action_free close_receipt [17:30:33]json_value_free [17:30:33]json_value_free done [17:30:33]process_json_proto returns [17:30:33]Send response to host [17:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82423,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:30:33]free response buf [17:30:33]execute_script done [17:30:33]execute_script returns [17:30:33]free content buf [17:30:33]Sock 9.Close socket [17:30:33]Sock 9.Thread stoped [17:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CF F8 47 00 57 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F7 41 01 00 F4 03 04 00 70 40 12 67 B6 04 01 00 00 E3 4D 2D 8B EC 91 00 97 [17:30:34]CommunicateWithHost err = 0 [17:30:34]CheckOFDResponse [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 17 00 [17:31:04]MH_I2C_Read... [17:31:04]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 31 38 34 33 90 00 EA [17:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:31:04]wFMCommunicate OK [17:31:04]CreateOFDProtocolMessage done [17:31:04]OFDSenderStorePacket 82424 [17:31:04]StoreOFDPacket docnum=82424 [17:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E9 F3 07 01 FF 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 58 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 41 01 00 35 04 06 00 68 75 F0 B8 56 65 7C 9B CE C7 1F 12 50 50 [17:31:04]CheckFolder [17:31:04]dirname=/storage/ofd_packets [17:31:04]CheckFolder done [17:31:04]ProducePacketName [17:31:04]name=ofd_packets/00082424 [17:31:04]NVStorageSaveData ofd_packets/00082424 [17:31:04]File name is /storage/ofd_packets/00082424 [17:31:04]Write 301 bytes [17:31:04]NVStorageSaveData done [17:31:04]OFDSenderStorePacket done [17:31:04]KKMCreateOFDPacket done [17:31:04]NVStorageSaveData kkm_last_timestamp [17:31:04]File name is /storage/kkm_last_timestamp [17:31:04]Write 4 bytes [17:31:04]NVStorageSaveData done [17:31:04]ExternCall_PrintAddStr [17:31:04]wPrintStart [17:31:04]Write to MH i2c: 01 00 00 1C 03 1F [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: 01 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: 01 07 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [17:31:04]RasterBufferAndPrint [17:31:04]line Счет N : (1)918916 [17:31:04]line ИНН: 02508201610067 [17:31:04]line Контрольно-Кассовый Чек [17:31:04]line ПРОДАЖА [17:31:04]line ТРК (МРК, ГНК) : 22 [17:31:04]line Товар: 2710124130 [17:31:04]line Аи-92-К-4 [17:31:04]line 10.470 * 66.90 [17:31:04]line = 700.44 [17:31:04]line НДС 12% НСП 1% [17:31:04]line > о реализуемом товаре [17:31:04]line ОКРУГЛЕНИЕ: -0.44 [17:31:04]line ИТОГО: 700.00 [17:31:04]line Внесено: 700.00 [17:31:04]line СДАЧА: 0.00 [17:31:04]line НСП 1% : 6.20 [17:31:04]line НДС 12% : 74.38 [17:31:04]line Наличными: 700.00 [17:31:04]line Безнал.: 0.00 [17:31:04]line Место: АЗС № 114 "Партнер Нефть" [17:31:04]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:31:04]line СНО: Общий режим [17:31:04]line Чек 133 18.10.2024 17:31 [17:31:04]line Смена: 526 ФФД: 1.0 [17:31:04]line ЗНМ: 0300000086 [17:31:04]line РНМ: 0000000000091680 [17:31:04]line Версия ККМ: 001 [17:31:04]line ФМ: 0000000000871843 [17:31:04]line ФД: 82424 [17:31:04]line ФПД: 114855759074917 [17:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173104&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82424&fm=114855759074917&tin=02508201610067®Number=0000000000091680&sum=70000 [17:31:05]OFD Sender: Processing packet 82424 [packets to send 254, broken 253] [17:31:05]ProducePacketName [17:31:05]name=ofd_packets/00082424 [17:31:05]OFD Sender: To server: pG, [17:31:05]CommunicateWithHost lk.salyk.kg:30040 [17:31:05]ConnectInit lk.salyk.kg [17:31:05]written 0, free lines is 4095 [17:31:05]Write to MH i2c: 01 00 00 47 03 4A [17:31:05]Write i2c OK [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: 01 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: 01 07 00 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 D0 0C 2D [17:31:05]RasterBufferAndPrint [17:31:05]line [17:31:05]line [17:31:05]line [17:31:05]line [17:31:05]line [17:31:05]written 0, free lines is 3288 [17:31:05]MH_Cut [17:31:05]Write to MH i2c: D1 01 00 4E 03 01 23 [17:31:05]Write i2c OK [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: D1 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: D1 01 00 [17:31:05]MH_I2C_Read... [17:31:05]Read from MH i2c: D1 01 00 4E 03 00 22 [17:31:05]Write to MH i2c: 01 00 00 4F 03 52 [17:31:05]Write i2c OK [17:31:05]MH_I2C_Read... [17:31:06]*** Cut start [17:31:06]*** Partial cut [17:31:06]*** CUTSNS_PIN = 1 [17:31:06]*** CUTSNS_PIN = 0 [17:31:06]*** Brake cut motor [17:31:07]Read from MH i2c: 01 [17:31:07]MH_I2C_Read... [17:31:07]*** Stop cut motor [17:31:07]*** Cut end [17:31:07]Read from MH i2c: 01 07 00 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [17:31:07]process_action close_receipt done [17:31:07]requested_data is exist [17:31:07]produce_requested_data [17:31:07]requested_item fm.sn is exist - process it [17:31:07]wFMCommunicate request_size=4 [17:31:07]MH_SAM_APDU [17:31:07]CAPDU: 80 11 00 00 [17:31:07]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [17:31:07]Write i2c OK [17:31:07]MH_I2C_Read... [17:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:07]Read from MH i2c: E2 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 17 00 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 17 00 50 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1F [17:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:31:07]wFMCommunicate OK [17:31:07]requested_item fd.num is exist - process it [17:31:07]SAM_PROTO_GetFieldsCounters [17:31:07]wFMCommunicate request_size=4 [17:31:07]MH_SAM_APDU [17:31:07]CAPDU: 80 13 00 00 [17:31:07]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [17:31:07]Write i2c OK [17:31:07]MH_I2C_Read... [17:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:07]Read from MH i2c: E2 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 62 00 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 62 00 51 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [17:31:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:07]wFMCommunicate OK [17:31:07]SAM_PROTO_GetFieldsCounters done [17:31:07]requested_item shift.num is exist - process it [17:31:07]requested_item shift.opened is exist - process it [17:31:07]req_shift_opened [17:31:07]FM_GetShiftState [17:31:07]SAM_PROTO_GetShiftState [17:31:07]wFMCommunicate request_size=4 [17:31:07]MH_SAM_APDU [17:31:07]CAPDU: 80 13 01 00 [17:31:07]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [17:31:07]Write i2c OK [17:31:07]MH_I2C_Read... [17:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:07]Read from MH i2c: E2 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 0E 00 [17:31:07]MH_I2C_Read... [17:31:07]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A4 [17:31:07]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:31:07]wFMCommunicate OK [17:31:07]SAM_PROTO_GetShiftState done [17:31:07]FM_GetShiftState done [17:31:07]req_shift_opened done [17:31:07]requested_item shift.open_date is exist - process it [17:31:07]req_shift_open_date [17:31:07]req_shift_open_date done [17:31:07]produce_requested_data done [17:31:07]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82424,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:31:07]process_action_free close_receipt [17:31:07]json_value_free [17:31:07]json_value_free done [17:31:07]process_json_proto returns [17:31:07]Send response to host [17:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82424,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:31:07]free response buf [17:31:07]execute_script done [17:31:07]execute_script returns [17:31:07]free content buf [17:31:07]Sock 10.Close socket [17:31:07]Sock 10.Thread stoped [17:31:14]recv_with_timeout no data received [17:31:25]recv_with_timeout no data received [17:31:44]recv_with_timeout no data received [17:31:03]wFMCommunicate OK [17:31:03]wFMCommunicate request_size=11 [17:31:03]MH_SAM_APDU [17:31:03]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [17:31:03]Write to MH i2c: E2 0E 00 11 03 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 C6 [17:31:03]Write i2c OK [17:31:03]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [17:31:04]RAPDU: 90 00 [17:31:04]wFMCommunicate OK [17:31:04]wFMCommunicate request_size=13 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 15 02 00 08 F4 03 04 00 58 9B 12 67 [17:31:04]Write to MH i2c: E2 10 00 12 03 80 15 02 00 08 00 F4 03 04 00 58 9B 12 67 00 00 0C [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [17:31:04]RAPDU: 90 00 [17:31:04]wFMCommunicate OK [17:31:04]wFMCommunicate request_size=25 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [17:31:04]Write to MH i2c: E2 1C 00 13 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 F7 [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [17:31:04]RAPDU: 90 00 [17:31:04]wFMCommunicate OK [17:31:04]wFMCommunicate request_size=4 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 15 03 00 [17:31:04]Write to MH i2c: E2 08 00 14 03 80 15 03 00 00 00 00 00 98 [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 40 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 40 00 14 03 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 85 00 00 00 35 04 06 00 68 75 F0 B8 56 65 90 00 9C [17:31:04]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 85 00 00 00 35 04 06 00 68 75 F0 B8 56 65 90 00 [17:31:04]wFMCommunicate OK [17:31:04]SAM_PROTO_ProcessDocument answer len = 59 [17:31:04]SAM_PROTO_ProcessDocument done [17:31:04]SetTLVBufToDocument [17:31:04]Processing tag 1209 (04B9) [17:31:04]Malloc new data [17:31:04]Processing tag 1041 (0411) [17:31:04]Processing tag 1040 (0410) [17:31:04]Malloc new data [17:31:04]Processing tag 1038 (040E) [17:31:04]Malloc new data [17:31:04]Processing tag 1042 (0412) [17:31:04]Malloc new data [17:31:04]Processing tag 1077 (0435) [17:31:04]Malloc new data [17:31:04]SetTLVBufToDocument err=0 [17:31:04]KKMLoadAndSignReceiptData store KKM data [17:31:04]KKMLoadAndSignReceiptData err=0 [17:31:04]wFMCommunicate request_size=4 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 11 00 00 [17:31:04]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 17 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E4 [17:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:31:04]wFMCommunicate OK [17:31:04]Счет N : (1)918916 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 22 Товар: 2710124130 Аи-92-К-4 10.470 * 66.90 = 700.44 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 133 18.10.2024 17:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82424 ФПД: 114855759074917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173104&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82424&fm=114855759074917&tin=02508201610067®Number=0000000000091680&sum=70000 [17:31:04]StoreToDocumentArchive [17:31:04]shift 526 fd 82424 [17:31:04]save to /storage/0526/doc_00082424 [17:31:04]save last doc name /storage/0526/doc_00082424 to /storage/kkm_last_doc_name [17:31:04]save OK [17:31:04]Clear old archive folders... [17:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:04]tlvbuf is 005C29A0 [17:31:04]SAM_PROTO_ClearQueue [17:31:04]wFMCommunicate request_size=4 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 09 00 00 [17:31:04]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [17:31:04]RAPDU: 90 00 [17:31:04]wFMCommunicate OK [17:31:04]SAM_PROTO_ClearQueue done [17:31:04]KKMCreateOFDPacket [17:31:04]OFDProtocolAddRootSTLVToBuf [17:31:04]FM_MakeSignedData [17:31:04]FM_MakeSignedData [17:31:04]SAM_PROTO_SignData [17:31:04]wFMCommunicate request_size=4 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 0D 01 02 [17:31:04]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [17:31:04]RAPDU: 90 00 [17:31:04]wFMCommunicate OK [17:31:04]wFMCommunicate request_size=255 [17:31:04]MH_SAM_APDU [17:31: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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 58 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 41 01 00 35 04 06 00 68 [17:31:04]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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 58 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 41 01 00 35 04 06 00 68 00 00 D2 [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]OFD Sender: No OFD packet to send [17:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [17:31:04]RAPDU: 90 00 [17:31:04]wFMCommunicate OK [17:31:04]wFMCommunicate request_size=10 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 0D 02 02 05 75 F0 B8 56 65 [17:31:04]Write to MH i2c: E2 0D 00 19 03 80 0D 02 02 05 00 75 F0 B8 56 65 00 00 78 [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [17:31:04]RAPDU: 90 00 [17:31:04]wFMCommunicate OK [17:31:04]wFMCommunicate request_size=4 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 0D 03 02 [17:31:04]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [17:31:04]Write i2c OK [17:31:04]MH_I2C_Read... [17:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:04]Read from MH i2c: E2 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 0B 00 [17:31:04]MH_I2C_Read... [17:31:04]Read from MH i2c: E2 0B 00 1A 03 00 7C 9B CE C7 1F 12 50 50 90 00 16 [17:31:04]RAPDU: 7C 9B CE C7 1F 12 50 50 90 00 [17:31:04]wFMCommunicate OK [17:31:04]SAM_PROTO_SignData done [17:31:04]FM_MakeSignedData done [17:31:04]CreateOFDProtocolMessage [17:31:04]wFMCommunicate request_size=4 [17:31:04]MH_SAM_APDU [17:31:04]CAPDU: 80 11 00 00 [17:31:04]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [17:31:04]Write i2c OK [17:33:21]ConnectInit Can't connect to host [17:33:21]CommunicateWithHost connect error [17:33:21]CommunicateWithHost err = -1 [17:33:21]OFD Sender: Server communicate error [17:33:26]OFD Sender: Processing packet 82424 [packets to send 254, broken 253] [17:33:26]ProducePacketName [17:33:26]name=ofd_packets/00082424 [17:33:26]OFD Sender: To server: pG, [17:33:26]CommunicateWithHost lk.salyk.kg:30040 [17:33:26]ConnectInit lk.salyk.kg [17:33:26]Connected sock=9 [17:33:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E9 F3 07 01 FF 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 58 9B 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 41 01 00 35 04 06 00 68 75 F0 B8 56 65 7C 9B CE C7 1F 12 50 50 [17:33:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 15 8E 47 00 50 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F8 41 01 00 F4 03 04 00 1F 41 12 67 B6 04 01 00 00 62 7A A0 75 3D DD 87 7F [17:33:26]CommunicateWithHost err = 0 [17:33:26]CheckOFDResponse [17:33:26]1017 (14) - 77093643461234 [17:33:26]1041 (16) - 0000000000871843 [17:33:26]1040 (4) - 82424 [17:33:26]1012 (4) - 18.10.2024 11:06 [17:33:26]1206 (1) - 0 [17:33:26]OFD Sender: Remove packet 82424 [17:33:26]ProducePacketName [17:33:26]name=ofd_packets/00082424 [17:33:26]NVStorageDeleteData [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:53]accept exits with 7 [17:33:53]New connection [17:33:53]New thread 3067174244 created [17:33:53]Thread 3067317604 joined [17:33:53]Waiting for new connection... [17:33:53] Sock 7.Parse request [17:33:53]Sock 7.Check first char [17:33:53]Sock 7.First char is OK [17:33:53]request: POST /json_proto HTTP/1.0 [17:33:53]Method: POST [17:33:53]URL: /json_proto [17:33:53]Method is POST - this is cgi request [17:33:53]url: /json_proto [17:33:53]query_string will be loaded in cgi processing [17:33:53]execute_cgi json_proto POST (null) [17:33:53]execute_cgi path=json_proto method=POST [17:33:53]POST find Content-Length [17:33:53]Host: 172.17.44.67:8080 [17:33:53]Content-Length: 759 [17:33:53]Content-Type: application/json [17:33:53] [17:33:53]POST finish read [17:33:53]Found Content-Length = 759 [17:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047940", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:53]execute_script... [17:33: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)918917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047940", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:53]POST & json_proto [17:33:53]process_json_proto [17:33:53]json parsed OK: [17:33:53]protocol is kg_v1.0 [17:33:53]action value=close_receipt [17:33:53]process_action close_receipt [17:33:53]cmd_close_receipt [17:33:53]MH_GetDate [17:33:53]Write to MH i2c: F0 00 00 53 03 45 [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 09 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 09 00 53 03 00 02 9C 12 67 F1 C7 6B 64 EC [17:33:53]GetLastDocTimeStamp 1729272664 [17:33:53]current date 1729272834 [17:33:53]FM_GetShiftState [17:33:53]SAM_PROTO_GetShiftState [17:33:53]wFMCommunicate request_size=4 [17:33:53]MH_SAM_APDU [17:33:53]CAPDU: 80 13 01 00 [17:33:53]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:53]Read from MH i2c: E2 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: E2 0E 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A6 [17:33:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:33:53]wFMCommunicate OK [17:33:53]SAM_PROTO_GetShiftState done [17:33:53]FM_GetShiftState done [17:33:53]opened in 1729212319 [17:33:53]opened+sec_in_day 1729298719 [17:33:53]quantity*price = 0 [17:33:53]sum+1 = 1 [17:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 134 18.10.2024 17:33 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30047940 ФМ: 0000000000871843 ФД: 82425 ФПД: 149690828606660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173354&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82425&fm=149690828606660&tin=02508201610067®Number=0000000000091680&sum=0 [17:33:54]StoreToDocumentArchive [17:33:54]shift 526 fd 82425 [17:33:54]save to /storage/0526/doc_00082425 [17:33:54]save last doc name /storage/0526/doc_00082425 to /storage/kkm_last_doc_name [17:33:54]save OK [17:33:54]Clear old archive folders... [17:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:33:54]tlvbuf is 005C07A0 [17:33:54]SAM_PROTO_ClearQueue [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 09 00 00 [17:33:54]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [17:33:54]RAPDU: 90 00 [17:33:54]wFMCommunicate OK [17:33:54]SAM_PROTO_ClearQueue done [17:33:54]KKMCreateOFDPacket [17:33:54]OFDProtocolAddRootSTLVToBuf [17:33:54]FM_MakeSignedData [17:33:54]FM_MakeSignedData [17:33:54]SAM_PROTO_SignData [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 0D 01 02 [17:33:54]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=255 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 02 9C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 41 01 00 35 04 06 00 [17:33:55]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 02 9C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 41 01 00 35 04 06 00 00 00 77 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=11 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 02 02 06 88 24 9C AA 4C C4 [17:33:55]Write to MH i2c: E2 0E 00 64 03 80 0D 02 02 06 00 88 24 9C AA 4C C4 00 00 EF [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 03 02 [17:33:55]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 65 03 00 F1 51 79 6E 27 69 E8 0B 90 00 90 [17:33:55]RAPDU: F1 51 79 6E 27 69 E8 0B 90 00 [17:33:55]wFMCommunicate OK [17:33:55]SAM_PROTO_SignData done [17:33:55]FM_MakeSignedData done [17:33:55]CreateOFDProtocolMessage [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 11 00 00 [17:33:55]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 17 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 35 [17:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:33:55]wFMCommunicate OK [17:33:55]CreateOFDProtocolMessage done [17:33:55]OFDSenderStorePacket 82425 [17:33:55]StoreOFDPacket docnum=82425 [17:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6C A6 08 01 A5 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 02 9C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 41 01 00 35 04 06 00 88 24 9C AA 4C C4 F1 51 79 6E 27 69 E8 0B [17:33:55]CheckFolder [17:33:55]dirname=/storage/ofd_packets [17:33:55]CheckFolder done [17:33:55]ProducePacketName [17:33:55]name=ofd_packets/00082425 [17:33:55]NVStorageSaveData ofd_packets/00082425 [17:33:55]File name is /storage/ofd_packets/00082425 [17:33:55]Write 302 bytes [17:33:55]NVStorageSaveData done [17:33:55]OFDSenderStorePacket done [17:33:55]KKMCreateOFDPacket done [17:33:55]NVStorageSaveData kkm_last_timestamp [17:33:55]File name is /storage/kkm_last_timestamp [17:33:55]Write 4 bytes [17:33:55]NVStorageSaveData done [17:33:55]ExternCall_PrintAddStr [17:33:55]wPrintStart [17:33:55]Write to MH i2c: 01 00 00 67 03 6A [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [17:33:55]RasterBufferAndPrint [17:33:55]line Счет N : (1)918917 [17:33:55]line ИНН: 02508201610067 [17:33:55]line Контрольно-Кассовый Чек [17:33:55]line ПРОДАЖА [17:33:55]line ТРК (МРК, ГНК) : 31 [17:33:55]line Товар: 2710194210 [17:33:55]line ДТ(л)-К-5 [17:33:55]line 20.000 * 0.00 [17:33:55]line = 0.00 [17:33:55]line НДС 12% НСП 1% [17:33:55]line > о реализуемом товаре [17:33:55]line ИТОГО: 0.00 [17:33:55]line НСП 1% : 0.00 [17:33:55]line НДС 12% : 0.00 [17:33:55]line Наличными: 0.00 [17:33:55]line Безнал.: 0.00 [17:33:55]line Место: АЗС № 114 "Партнер Нефть" [17:33:55]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:33:55]line СНО: Общий режим [17:33:55]line Чек 134 18.10.2024 17:33 [17:33:55]line Смена: 526 ФФД: 1.0 [17:33:55]line ЗНМ: 0300000086 [17:33:55]line РНМ: 0000000000091680 [17:33:55]line Версия ККМ: 001 [17:33:55]line Талоны: ТК ГПНА Online [17:33:55]line 30047940 [17:33:55]line ФМ: 0000000000871843 [17:33:55]line ФД: 82425 [17:33:55]line ФПД: 149690828606660 [17:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173354&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82425&fm=149690828606660&tin=02508201610067®Number=0000000000091680&sum=0 [17:33:55]written 0, free lines is 4095 [17:33:55]OFD Sender: Processing packet 82425 [packets to send 254, broken 253] [17:33:55]ProducePacketName [17:33:55]name=ofd_packets/00082425 [17:33:55]OFD Sender: To server: pG, [17:33:55]CommunicateWithHost lk.salyk.kg:30040 [17:33:55]ConnectInit lk.salyk.kg [17:33:56]Connected sock=11 [17:33:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6C A6 08 01 A5 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 02 9C 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 41 01 00 35 04 06 00 88 24 9C AA 4C C4 F1 51 79 6E 27 69 E8 0B [17:33:56]Write to MH i2c: 01 00 00 91 03 94 [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 E7 0C 8E [17:33:56]RasterBufferAndPrint [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]written 0, free lines is 3310 [17:33:56]MH_Cut [17:33:56]Write to MH i2c: D1 01 00 98 03 01 6D [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 98 03 00 6C [17:33:56]Write to MH i2c: 01 00 00 99 03 9C [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 37 1D 47 00 CE A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 F9 41 01 00 F4 03 04 00 3C 41 12 67 B6 04 01 00 00 D4 E7 6B 2C BC 9A 97 BD [17:33:56]CommunicateWithHost err = 0 [17:33:56]CheckOFDResponse [17:33:56]1017 (14) - 77093643461234 [17:33:56]1041 (16) - 0000000000871843 [17:33:56]1040 (4) - 82425 [17:33:56]1012 (4) - 18.10.2024 11:06 [17:33:56]1206 (1) - 0 [17:33:56]OFD Sender: Remove packet 82425 [17:33:56]ProducePacketName [17:33:56]name=ofd_packets/00082425 [17:33:56]NVStorageDeleteData [17:33:57]*** Cut start [17:33:57]*** Partial cut [17:33:57]*** CUTSNS_PIN = 1 [17:33:57]*** CUTSNS_PIN = 0 [17:33:57]*** Brake cut motor [17:33:57]OFD Sender: No OFD packet to send [17:33:57]Read from MH i2c: 01 [17:33:57]MH_I2C_Read... [17:33:57]*** Stop cut motor [17:33:57]*** Cut end [17:33:57]Read from MH i2c: 01 07 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [17:33:57]process_action close_receipt done [17:33:57]requested_data is exist [17:33:57]produce_requested_data [17:33:57]requested_item fm.sn is exist - process it [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 11 00 00 [17:33:57]Write to MH i2c: E2 08 00 9A 03 80 11 00 00 00 00 00 00 17 [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 17 00 [17:33:57]MH_I2C_Read... [17:33:57]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 31 38 34 33 90 00 69 [17:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:33:57]wFMCommunicate OK [17:33:57]requested_item fd.num is exist - process it [17:33:57]SAM_PROTO_GetFieldsCounters [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 13 00 00 [17:33:57]Write to MH i2c: E2 08 00 9B 03 80 13 00 00 00 00 00 00 1A [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 62 00 [17:33:57]MH_I2C_Read... [17:33:57]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 F9 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:57]wFMCommunicate OK [17:33:57]SAM_PROTO_GetFieldsCounters done [17:33:57]requested_item shift.num is exist - process it [17:33:57]requested_item shift.opened is exist - process it [17:33:57]req_shift_opened [17:33:57]FM_GetShiftState [17:33:57]SAM_PROTO_GetShiftState [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 13 01 00 [17:33:57]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 0E 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EE [17:33:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:33:57]wFMCommunicate OK [17:33:57]SAM_PROTO_GetShiftState done [17:33:57]FM_GetShiftState done [17:33:57]req_shift_opened done [17:33:57]requested_item shift.open_date is exist - process it [17:33:57]req_shift_open_date [17:33:57]req_shift_open_date done [17:33:57]produce_requested_data done [17:33:57]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82425,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:33:57]process_action_free close_receipt [17:33:57]json_value_free [17:33:57]json_value_free done [17:33:57]process_json_proto returns [17:33:57]Send response to host [17:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82425,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:33:57]free response buf [17:33:57]execute_script done [17:33:57]execute_script returns [17:33:57]free content buf [17:33:57]Sock 7.Close socket [17:33:57]Sock 7.Thread stoped [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:30:34]1017 (14) - 77093643461234 [17:30:34]1041 (16) - 0000000000871843 [17:30:34]1040 (4) - 82423 [17:30:34]1012 (4) - 18.10.2024 11:03 [17:30:34]1206 (1) - 0 [17:30:34]OFD Sender: Remove packet 82423 [17:30:34]ProducePacketName [17:30:34]name=ofd_packets/00082423 [17:30:34]NVStorageDeleteData [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:49]recv_with_timeout no data received [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:02]recv_with_timeout no data received [17:31:03]accept exits with 10 [17:31:03]New connection [17:31:03]New thread 3067317604 created [17:31:03]Thread 3067174244 joined [17:31:03]Waiting for new connection... [17:31:03] Sock 10.Parse request [17:31:03]Sock 10.Check first char [17:31:03]Sock 10.First char is OK [17:31:03]request: POST /json_proto HTTP/1.0 [17:31:03]Method: POST [17:31:03]URL: /json_proto [17:31:03]Method is POST - this is cgi request [17:31:03]url: /json_proto [17:31:03]query_string will be loaded in cgi processing [17:31:03]execute_cgi json_proto POST (null) [17:31:03]execute_cgi pat[17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:14]accept exits with 9 [17:38:14]New connection [17:38:14]New thread 3067317604 created [17:38:14]Thread 3067174244 joined [17:38:14]Waiting for new connection... [17:38:14] Sock 9.Parse request [17:38:14]Sock 9.Check first char [17:38:14]Sock 9.First char is OK [17:38:14]request: POST /json_proto HTTP/1.0 [17:38:14]Method: POST [17:38:14]URL: /json_proto [17:38:14]Method is POST - this is cgi request [17:38:14]url: /json_proto [17:38:14]query_string will be loaded in cgi processing [17:38:14]execute_cgi json_proto POST (null) [17:38:14]execute_cgi path=json_proto method=POST [17:38:14]POST find Content-Length [17:38:14]Host: 172.17.44.67:8080 [17:38:14]Content-Length: 677 [17:38:14]Content-Type: application/json [17:38:14] [17:38:14]POST finish read [17:38:14]Found Content-Length = 677 [17:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:14]execute_script... [17:38:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:14]POST & json_proto [17:38:14]process_json_proto [17:38:14]json parsed OK: [17:38:14]protocol is kg_v1.0 [17:38:14]action value=close_receipt [17:38:14]process_action close_receipt [17:38:14]cmd_close_receipt [17:38:14]MH_GetDate [17:38:14]Write to MH i2c: F0 00 00 9D 03 8F [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: F0 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: F0 09 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: F0 09 00 9D 03 00 07 9D 12 67 F1 C7 6B 64 3C [17:38:14]GetLastDocTimeStamp 1729272834 [17:38:14]current date 1729273095 [17:38:14]FM_GetShiftState [17:38:14]SAM_PROTO_GetShiftState [17:38:14]wFMCommunicate request_size=4 [17:38:14]MH_SAM_APDU [17:38:14]CAPDU: 80 13 01 00 [17:38:14]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [17:38:14]Write i2c OK [17:38:14]MH_I2C_Read... [17:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:14]Read from MH i2c: E2 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 0E 00 [17:38:14]MH_I2C_Read... [17:38:14]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F0 [17:38:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:38:14]wFMCommunicate OK [17:38:14]SAM_PROTO_GetShiftState done [17:38:14]FM_GetShiftState done [17:38:14]opened in 1729212319 [17:38:14]opened+sec_in_day 1729298719 [17:38:14]quantity*price = 50041 [17:38:14]sum+1 = 50042 [17:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 135 18.10.2024 17:38 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82426 ФПД: 142246048783144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173815&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82426&fm=142246048783144&tin=02508201610067®Number=0000000000091680&sum=50000 [17:38:15]StoreToDocumentArchive [17:38:15]shift 526 fd 82426 [17:38:15]save to /storage/0526/doc_00082426 [17:38:15]save last doc name /storage/0526/doc_00082426 to /storage/kkm_last_doc_name [17:38:15]save OK [17:38:15]Clear old archive folders... [17:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:15]tlvbuf is 00673050 [17:38:15]SAM_PROTO_ClearQueue [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 09 00 00 [17:38:15]Write to MH i2c: E2 08 00 AB 03 80 09 00 00 00 00 00 00 20 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]SAM_PROTO_ClearQueue done [17:38:15]KKMCreateOFDPacket [17:38:15]OFDProtocolAddRootSTLVToBuf [17:38:15]FM_MakeSignedData [17:38:15]FM_MakeSignedData [17:38:15]SAM_PROTO_SignData [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 01 02 [17:38:15]Write to MH i2c: E2 08 00 AC 03 80 0D 01 02 00 00 00 00 28 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]wFMCommunicate request_size=255 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 41 01 00 35 04 06 00 81 [17:38:15]Write to MH i2c: E2 02 01 AD 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 41 01 00 35 04 06 00 81 00 00 25 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]wFMCommunicate request_size=10 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 02 02 05 5F 3D 35 5B 28 [17:38:15]Write to MH i2c: E2 0D 00 AE 03 80 0D 02 02 05 00 5F 3D 35 5B 28 00 00 89 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [17:38:15]RAPDU: 90 00 [17:38:15]wFMCommunicate OK [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 0D 03 02 [17:38:15]Write to MH i2c: E2 08 00 AF 03 80 0D 03 02 00 00 00 00 2D [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 0B 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 0B 00 AF 03 00 80 7F 42 EC DE 64 E0 5E 90 00 DB [17:38:15]RAPDU: 80 7F 42 EC DE 64 E0 5E 90 00 [17:38:15]wFMCommunicate OK [17:38:15]SAM_PROTO_SignData done [17:38:15]FM_MakeSignedData done [17:38:15]CreateOFDProtocolMessage [17:38:15]wFMCommunicate request_size=4 [17:38:15]MH_SAM_APDU [17:38:15]CAPDU: 80 11 00 00 [17:38:15]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:15]Read from MH i2c: E2 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: E2 17 00 [17:38:15]MH_I2C_Read... [17:38:15]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 31 38 34 33 90 00 7F [17:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:38:15]wFMCommunicate OK [17:38:15]CreateOFDProtocolMessage done [17:38:15]OFDSenderStorePacket 82426 [17:38:15]StoreOFDPacket docnum=82426 [17:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 96 07 01 BA 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 41 01 00 35 04 06 00 81 5F 3D 35 5B 28 80 7F 42 EC DE 64 E0 5E [17:38:15]CheckFolder [17:38:15]dirname=/storage/ofd_packets [17:38:15]CheckFolder done [17:38:15]ProducePacketName [17:38:15]name=ofd_packets/00082426 [17:38:15]NVStorageSaveData ofd_packets/00082426 [17:38:15]File name is /storage/ofd_packets/00082426 [17:38:15]Write 301 bytes [17:38:15]NVStorageSaveData done [17:38:15]OFDSenderStorePacket done [17:38:15]KKMCreateOFDPacket done [17:38:15]NVStorageSaveData kkm_last_timestamp [17:38:15]File name is /storage/kkm_last_timestamp [17:38:15]Write 4 bytes [17:38:15]NVStorageSaveData done [17:38:15]ExternCall_PrintAddStr [17:38:15]wPrintStart [17:38:15]Write to MH i2c: 01 00 00 B1 03 B4 [17:38:15]Write i2c OK [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 07 00 [17:38:15]MH_I2C_Read... [17:38:15]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [17:38:15]RasterBufferAndPrint [17:38:15]line Счет N : (1)918918 [17:38:15]line ИНН: 02508201610067 [17:38:15]line Контрольно-Кассовый Чек [17:38:15]line ПРОДАЖА [17:38:15]line ТРК (МРК, ГНК) : 22 [17:38:15]line Товар: 2710124130 [17:38:15]line Аи-92-К-4 [17:38:15]line 7.480 * 66.90 [17:38:15]line = 500.41 [17:38:15]line НДС 12% НСП 1% [17:38:15]line > о реализуемом товаре [17:38:15]line ОКРУГЛЕНИЕ: -0.41 [17:38:15]line ИТОГО: 500.00 [17:38:15]line Внесено: 500.00 [17:38:15]line СДАЧА: 0.00 [17:38:15]line НСП 1% : 4.43 [17:38:15]line НДС 12% : 53.14 [17:38:15]line Наличными: 500.00 [17:38:15]line Безнал.: 0.00 [17:38:15]line Место: АЗС № 114 "Партнер Нефть" [17:38:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:38:15]line СНО: Общий режим [17:38:15]line Чек 135 18.10.2024 17:38 [17:38:15]line Смена: 526 ФФД: 1.0 [17:38:15]line ЗНМ: 0300000086 [17:38:15]line РНМ: 0000000000091680 [17:38:15]line Версия ККМ: 001 [17:38:15]line ФМ: 0000000000871843 [17:38:15]line ФД: 82426 [17:38:15]line ФПД: 142246048783144 [17:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T173815&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82426&fm=142246048783144&tin=02508201610067®Number=0000000000091680&sum=50000 [17:38:16]OFD Sender: Processing packet 82426 [packets to send 254, broken 253] [17:38:16]ProducePacketName [17:38:16]name=ofd_packets/00082426 [17:38:16]OFD Sender: To server: pG, [17:38:16]CommunicateWithHost lk.salyk.kg:30040 [17:38:16]ConnectInit lk.salyk.kg [17:38:16]written 0, free lines is 4095 [17:38:16]Write to MH i2c: 01 00 00 DC 03 DF [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 07 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 CD 0C BF [17:38:16]RasterBufferAndPrint [17:38:16]line [17:38:16]line [17:38:16]line [17:38:16]line [17:38:16]line [17:38:16]written 0, free lines is 3283 [17:38:16]MH_Cut [17:38:16]Write to MH i2c: D1 01 00 E3 03 01 B8 [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: D1 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: D1 01 00 [17:38:16]MH_I2C_Read... [17:38:16]Read from MH i2c: D1 01 00 E3 03 00 B7 [17:38:16]Write to MH i2c: 01 00 00 E4 03 E7 [17:38:16]Write i2c OK [17:38:16]MH_I2C_Read... [17:38:17]Connected sock=10 [17:38:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 20 96 07 01 BA 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 07 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 41 01 00 35 04 06 00 81 5F 3D 35 5B 28 80 7F 42 EC DE 64 E0 5E [17:38:17]*** Cut start [17:38:17]*** Partial cut [17:38:17]*** CUTSNS_PIN = 1 [17:38:17]*** CUTSNS_PIN = 0 [17:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 95 19 47 00 C6 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FA 41 01 00 F4 03 04 00 41 42 12 67 B6 04 01 00 00 E6 07 7B 76 1C A7 4B B0 [17:38:17]CommunicateWithHost err = 0 [17:38:17]CheckOFDResponse [17:38:17]1017 (14) - 77093643461234 [17:38:17]1041 (16) - 0000000000871843 [17:38:17]1040 (4) - 82426 [17:38:17]1012 (4) - 18.10.2024 11:10 [17:38:17]1206 (1) - 0 [17:38:17]OFD Sender: Remove packet 82426 [17:38:17]ProducePacketName [17:38:17]name=ofd_packets/00082426 [17:38:17]NVStorageDeleteData [17:38:17]*** Brake cut motor [17:38:18]Read from MH i2c: 01 [17:38:18]MH_I2C_Read... [17:38:18]*** Stop cut motor [17:38:18]*** Cut end [17:38:18]Read from MH i2c: 01 07 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [17:38:18]process_action close_receipt done [17:38:18]requested_data is exist [17:38:18]produce_requested_data [17:38:18]requested_item fm.sn is exist - process it [17:38:18]wFMCommunicate request_size=4 [17:38:18]MH_SAM_APDU [17:38:18]CAPDU: 80 11 00 00 [17:38:18]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]OFD Sender: No OFD packet to send [17:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:18]Read from MH i2c: E2 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 17 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 17 00 E5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B4 [17:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:38:18]wFMCommunicate OK [17:38:18]requested_item fd.num is exist - process it [17:38:18]SAM_PROTO_GetFieldsCounters [17:38:18]wFMCommunicate request_size=4 [17:38:18]MH_SAM_APDU [17:38:18]CAPDU: 80 13 00 00 [17:38:18]Write to MH i2c: E2 08 00 E6 03 80 13 00 00 00 00 00 00 65 [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:18]Read from MH i2c: E2 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 62 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 62 00 E6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:38:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FA 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:18]wFMCommunicate OK [17:38:18]SAM_PROTO_GetFieldsCounters done [17:38:18]requested_item shift.num is exist - process it [17:38:18]requested_item shift.opened is exist - process it [17:38:18]req_shift_opened [17:38:18]FM_GetShiftState [17:38:18]SAM_PROTO_GetShiftState [17:38:18]wFMCommunicate request_size=4 [17:38:18]MH_SAM_APDU [17:38:18]CAPDU: 80 13 01 00 [17:38:18]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [17:38:18]Write i2c OK [17:38:18]MH_I2C_Read... [17:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:18]Read from MH i2c: E2 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 0E 00 [17:38:18]MH_I2C_Read... [17:38:18]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 39 [17:38:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:38:18]wFMCommunicate OK [17:38:18]SAM_PROTO_GetShiftState done [17:38:18]FM_GetShiftState done [17:38:18]req_shift_opened done [17:38:18]requested_item shift.open_date is exist - process it [17:38:18]req_shift_open_date [17:38:18]req_shift_open_date done [17:38:18]produce_requested_data done [17:38:18]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82426,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:38:18]process_action_free close_receipt [17:38:18]json_value_free [17:38:18]json_value_free done [17:38:18]process_json_proto returns [17:38:18]Send response to host [17:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82426,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:38:18]free response buf [17:38:18]execute_script done [17:38:18]execute_script returns [17:38:18]free content buf [17:38:18]Sock 9.Close socket [17:38:18]Sock 9.Thread stoped [17:38:23]OFD Sender: No OFD packet to send [17:38:24]recv_with_timeout no data received [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:34]recv_with_timeout no data received [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:18]accept exits with 7 [17:42:18]New connection [17:42:18]New thread 3067174244 created [17:42:18]Thread 3067317604 joined [17:42:18]Waiting for new connection... [17:42:18] Sock 7.Parse request [17:42:18]Sock 7.Check first char [17:42:18]Sock 7.First char is OK [17:42:18]request: POST /json_proto HTTP/1.0 [17:42:18]Method: POST [17:42:18]URL: /json_proto [17:42:18]Method is POST - this is cgi request [17:42:18]url: /json_proto [17:42:18]query_string will be loaded in cgi processing [17:42:18]execute_cgi json_proto POST (null) [17:42:18]execute_cgi path=json_proto method=POST [17:42:18]POST find Content-Length [17:42:18]Host: 172.17.44.67:8080 [17:42:18]Content-Length: 806 [17:42:18]Content-Type: application/json [17:42:18] [17:42:18]POST finish read [17:42:18]Found Content-Length = 806 [17:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202705", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:18]execute_script... [17:42: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)918919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202705", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:18]POST & json_proto [17:42:18]process_json_proto [17:42:18]json parsed OK: [17:42:18]protocol is kg_v1.0 [17:42:18]action value=close_receipt [17:42:18]process_action close_receipt [17:42:18]cmd_close_receipt [17:42:18]MH_GetDate [17:42:18]Write to MH i2c: F0 00 00 E8 03 DA [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: F0 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: F0 09 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: F0 09 00 E8 03 00 FB 9D 12 67 F1 C7 6B 64 7B [17:42:18]GetLastDocTimeStamp 1729273095 [17:42:18]current date 1729273339 [17:42:18]FM_GetShiftState [17:42:18]SAM_PROTO_GetShiftState [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 13 01 00 [17:42:18]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3B [17:42:18]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_GetShiftState done [17:42:18]FM_GetShiftState done [17:42:18]opened in 1729212319 [17:42:18]opened+sec_in_day 1729298719 [17:42:18]quantity*price = 0 [17:42:18]sum+1 = 1 [17:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 136 18.10.2024 17:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202705 ФМ: 0000000000871843 ФД: 82427 ФПД: 48113636289623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174219&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82427&fm=48113636289623&tin=02508201610067®Number=0000000000091680&sum=0 [17:42:19]StoreToDocumentArchive [17:42:19]shift 526 fd 82427 [17:42:19]save to /storage/0526/doc_00082427 [17:42:19]save last doc name /storage/0526/doc_00082427 to /storage/kkm_last_doc_name [17:42:19]save OK [17:42:19]Clear old archive folders... [17:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:42:19]tlvbuf is 005C2A10 [17:42:19]SAM_PROTO_ClearQueue [17:42:19]wFMCommunicate request_size=4 [17:42:19]MH_SAM_APDU [17:42:19]CAPDU: 80 09 00 00 [17:42:19]Write to MH i2c: E2 08 00 F6 03 80 09 00 00 00 00 00 00 6B [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:19]Read from MH i2c: E2 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 03 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [17:42:19]RAPDU: 90 00 [17:42:19]wFMCommunicate OK [17:42:19]SAM_PROTO_ClearQueue done [17:42:19]KKMCreateOFDPacket [17:42:19]OFDProtocolAddRootSTLVToBuf [17:42:19]FM_MakeSignedData [17:42:19]FM_MakeSignedData [17:42:19]SAM_PROTO_SignData [17:42:19]wFMCommunicate request_size=4 [17:42:19]MH_SAM_APDU [17:42:19]CAPDU: 80 0D 01 02 [17:42:19]Write to MH i2c: E2 08 00 F7 03 80 0D 01 02 00 00 00 00 73 [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:19]Read from MH i2c: E2 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 03 00 [17:42:19]MH_I2C_Read... [17:42:19]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [17:42:19]RAPDU: 90 00 [17:42:19]wFMCommunicate OK [17:42:19]wFMCommunicate request_size=255 [17:42:19]MH_SAM_APDU [17:42:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FB 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 41 01 [17:42:19]Write to MH i2c: E2 02 01 F8 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FB 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 41 01 00 00 C5 [17:42:19]Write i2c OK [17:42:19]MH_I2C_Read... [17:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:20]Read from MH i2c: E2 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 03 00 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [17:42:20]RAPDU: 90 00 [17:42:20]wFMCommunicate OK [17:42:20]wFMCommunicate request_size=16 [17:42:20]MH_SAM_APDU [17:42:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2B C2 54 33 2C 57 [17:42:20]Write to MH i2c: E2 13 00 F9 03 80 0D 02 02 0B 00 00 35 04 06 00 2B C2 54 33 2C 57 00 00 C2 [17:42:20]Write i2c OK [17:42:20]MH_I2C_Read... [17:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:20]Read from MH i2c: E2 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 03 00 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [17:42:20]RAPDU: 90 00 [17:42:20]wFMCommunicate OK [17:42:20]wFMCommunicate request_size=4 [17:42:20]MH_SAM_APDU [17:42:20]CAPDU: 80 0D 03 02 [17:42:20]Write to MH i2c: E2 08 00 FA 03 80 0D 03 02 00 00 00 00 78 [17:42:20]Write i2c OK [17:42:20]MH_I2C_Read... [17:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:20]Read from MH i2c: E2 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 0B 00 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 0B 00 FA 03 00 66 EF C7 C9 12 09 7A 71 90 00 64 [17:42:20]RAPDU: 66 EF C7 C9 12 09 7A 71 90 00 [17:42:20]wFMCommunicate OK [17:42:20]SAM_PROTO_SignData done [17:42:20]FM_MakeSignedData done [17:42:20]CreateOFDProtocolMessage [17:42:20]wFMCommunicate request_size=4 [17:42:20]MH_SAM_APDU [17:42:20]CAPDU: 80 11 00 00 [17:42:20]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [17:42:20]Write i2c OK [17:42:20]MH_I2C_Read... [17:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:20]Read from MH i2c: E2 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 17 00 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 CA [17:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:42:20]wFMCommunicate OK [17:42:20]CreateOFDProtocolMessage done [17:42:20]OFDSenderStorePacket 82427 [17:42:20]StoreOFDPacket docnum=82427 [17:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 84 39 0D 01 19 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FB 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 41 01 00 35 04 06 00 2B C2 54 33 2C 57 66 EF C7 C9 12 09 7A 71 [17:42:20]CheckFolder [17:42:20]dirname=/storage/ofd_packets [17:42:20]CheckFolder done [17:42:20]ProducePacketName [17:42:20]name=ofd_packets/00082427 [17:42:20]NVStorageSaveData ofd_packets/00082427 [17:42:20]File name is /storage/ofd_packets/00082427 [17:42:20]Write 307 bytes [17:42:20]NVStorageSaveData done [17:42:20]OFDSenderStorePacket done [17:42:20]KKMCreateOFDPacket done [17:42:20]NVStorageSaveData kkm_last_timestamp [17:42:20]File name is /storage/kkm_last_timestamp [17:42:20]Write 4 bytes [17:42:20]NVStorageSaveData done [17:42:20]ExternCall_PrintAddStr [17:42:20]wPrintStart [17:42:20]Write to MH i2c: 01 00 00 FC 03 FF [17:42:20]Write i2c OK [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: 01 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: 01 07 00 [17:42:20]MH_I2C_Read... [17:42:20]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [17:42:20]RasterBufferAndPrint [17:42:20]line Счет N : (1)918919 [17:42:20]line ИНН: 02508201610067 [17:42:20]line Контрольно-Кассовый Чек [17:42:20]line ПРОДАЖА [17:42:20]line ТРК (МРК, ГНК) : 21 [17:42:20]line Товар: 2710194800 [17:42:20]line D-Energy ДТ-К-2 [17:42:20]line 10.000 * 0.00 [17:42:20]line = 0.00 [17:42:20]line НДС 12% НСП 1% [17:42:20]line > о реализуемом товаре [17:42:20]line ИТОГО: 0.00 [17:42:20]line НСП 1% : 0.00 [17:42:20]line НДС 12% : 0.00 [17:42:20]line Наличными: 0.00 [17:42:20]line Безнал.: 0.00 [17:42:20]line Место: АЗС № 114 "Партнер Нефть" [17:42:20]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:42:20]line СНО: Общий режим [17:42:20]line Чек 136 18.10.2024 17:42 [17:42:20]line Смена: 526 ФФД: 1.0 [17:42:20]line ЗНМ: 0300000086 [17:42:20]line РНМ: 0000000000091680 [17:42:20]line Версия ККМ: 001 [17:42:20]line Талоны: Топливные Талоны [17:42:20]line 2202705 [17:42:20]line ФМ: 0000000000871843 [17:42:20]line ФД: 82427 [17:42:20]line ФПД: 48113636289623 [17:42:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174219&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82427&fm=48113636289623&tin=02508201610067®Number=0000000000091680&sum=0 [17:42:20]OFD Sender: Processing packet 82427 [packets to send 254, broken 253] [17:42:20]ProducePacketName [17:42:20]name=ofd_packets/00082427 [17:42:20]OFD Sender: To server: pG, [17:42:20]CommunicateWithHost lk.salyk.kg:30040 [17:42:20]ConnectInit lk.salyk.kg [17:42:20]written 0, free lines is 4095 [17:42:21]Write to MH i2c: 01 00 00 26 04 2A [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: 01 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: 01 07 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 F6 0C 33 [17:42:21]RasterBufferAndPrint [17:42:21]line [17:42:21]line [17:42:21]line [17:42:21]line [17:42:21]line [17:42:21]written 0, free lines is 3324 [17:42:21]MH_Cut [17:42:21]Write to MH i2c: D1 01 00 2D 04 01 03 [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: D1 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: D1 01 00 [17:42:21]MH_I2C_Read... [17:42:21]Read from MH i2c: D1 01 00 2D 04 00 02 [17:42:21]Write to MH i2c: 01 00 00 2E 04 32 [17:42:21]Write i2c OK [17:42:21]MH_I2C_Read... [17:42:21]Connected sock=10 [17:42:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 84 39 0D 01 19 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 FB 9D 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 41 01 00 35 04 06 00 2B C2 54 33 2C 57 66 EF C7 C9 12 09 7A 71 [17:42:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7B 8F 47 00 AE 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FB 41 01 00 F4 03 04 00 35 43 12 67 B6 04 01 00 00 C2 DB 64 C2 6D F6 CB 37 [17:42:21]CommunicateWithHost err = 0 [17:42:21]CheckOFDResponse [17:42:21]1017 (14) - 77093643461234 [17:42:21]1041 (16) - 0000000000871843 [17:42:21]1040 (4) - 82427 [17:42:21]1012 (4) - 18.10.2024 11:15 [17:42:21]1206 (1) - 0 [17:42:21]OFD Sender: Remove packet 82427 [17:42:21]ProducePacketName [17:42:21]name=ofd_packets/00082427 [17:42:21]NVStorageDeleteData [17:42:21]*** Cut start [17:42:21]*** Partial cut [17:42:21]*** CUTSNS_PIN = 1 [17:42:21]*** CUTSNS_PIN = 0 [17:42:22]*** Brake cut motor [17:42:22]OFD Sender: No OFD packet to send [17:42:22]Read from MH i2c: 01 [17:42:22]MH_I2C_Read... [17:42:22]*** Stop cut motor [17:42:22]*** Cut end [17:42:22]Read from MH i2c: 01 07 00 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [17:42:22]process_action close_receipt done [17:42:22]requested_data is exist [17:42:22]produce_requested_data [17:42:22]requested_item fm.sn is exist - process it [17:42:22]wFMCommunicate request_size=4 [17:42:22]MH_SAM_APDU [17:42:22]CAPDU: 80 11 00 00 [17:42:22]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [17:42:22]Write i2c OK [17:42:22]MH_I2C_Read... [17:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:22]Read from MH i2c: E2 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 17 00 [17:42:22]MH_I2C_Read... [17:42:22]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 31 38 34 33 90 00 FF [17:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:42:22]wFMCommunicate OK [17:42:22]requested_item fd.num is exist - process it [17:42:22]SAM_PROTO_GetFieldsCounters [17:42:22]wFMCommunicate request_size=4 [17:42:22]MH_SAM_APDU [17:42:22]CAPDU: 80 13 00 00 [17:42:22]Write to MH i2c: E2 08 00 30 04 80 13 00 00 00 00 00 00 B0 [17:42:22]Write i2c OK [17:42:22]MH_I2C_Read... [17:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:22]Read from MH i2c: E2 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 62 00 [17:42:22]MH_I2C_Read... [17:42:22]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FB 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:22]wFMCommunicate OK [17:42:22]SAM_PROTO_GetFieldsCounters done [17:42:22]requested_item shift.num is exist - process it [17:42:22]requested_item shift.opened is exist - process it [17:42:22]req_shift_opened [17:42:22]FM_GetShiftState [17:42:22]SAM_PROTO_GetShiftState [17:42:22]wFMCommunicate request_size=4 [17:42:22]MH_SAM_APDU [17:42:22]CAPDU: 80 13 01 00 [17:42:22]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [17:42:22]Write i2c OK [17:42:22]MH_I2C_Read... [17:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:22]Read from MH i2c: E2 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 0E 00 [17:42:22]MH_I2C_Read... [17:42:22]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 84 [17:42:22]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:42:22]wFMCommunicate OK [17:42:22]SAM_PROTO_GetShiftState done [17:42:22]FM_GetShiftState done [17:42:22]req_shift_opened done [17:42:22]requested_item shift.open_date is exist - process it [17:42:22]req_shift_open_date [17:42:22]req_shift_open_date done [17:42:22]produce_requested_data done [17:42:22]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82427,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:42:22]process_action_free close_receipt [17:42:22]json_value_free [17:42:22]json_value_free done [17:42:22]process_json_proto returns [17:42:22]Send response to host [17:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82427,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:42:22]free response buf [17:42:22]execute_script done [17:42:22]execute_script returns [17:42:22]free content buf [17:42:22]Sock 7.Close socket [17:42:22]Sock 7.Thread stoped [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:38]recv_with_timeout no data received [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:50]recv_with_timeout no data received [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:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:23]accept exits with 9 [17:43:23]New connection [17:43:23]New thread 3067317604 created [17:43:23]Thread 3067174244 joined [17:43:23]Waiting for new connection... [17:43:23] Sock 9.Parse request [17:43:23]Sock 9.Check first char [17:43:23]Sock 9.First char is OK [17:43:23]request: POST /json_proto HTTP/1.0 [17:43:23]Method: POST [17:43:23]URL: /json_proto [17:43:23]Method is POST - this is cgi request [17:43:23]url: /json_proto [17:43:23]query_string will be loaded in cgi processing [17:43:23]execute_cgi json_proto POST (null) [17:43:23]execute_cgi path=json_proto method=POST [17:43:23]POST find Content-Length [17:43:23]Host: 172.17.44.67:8080 [17:43:23]Content-Length: 767 [17:43:23]Content-Type: application/json [17:43:23] [17:43:23]POST finish read [17:43:23]Found Content-Length = 767 [17:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:23]execute_script... [17:43: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)918920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:23]POST & json_proto [17:43:23]process_json_proto [17:43:23]json parsed OK: [17:43:23]protocol is kg_v1.0 [17:43:23]action value=close_receipt [17:43:23]process_action close_receipt [17:43:23]cmd_close_receipt [17:43:23]MH_GetDate [17:43:23]Write to MH i2c: F0 00 00 32 04 25 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: F0 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: F0 09 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: F0 09 00 32 04 00 3C 9E 12 67 F1 C7 6B 64 08 [17:43:23]GetLastDocTimeStamp 1729273339 [17:43:23]current date 1729273404 [17:43:23]FM_GetShiftState [17:43:23]SAM_PROTO_GetShiftState [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 13 01 00 [17:43:23]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0E 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 86 [17:43:23]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:43:23]wFMCommunicate OK [17:43:23]SAM_PROTO_GetShiftState done [17:43:23]FM_GetShiftState done [17:43:23]opened in 1729212319 [17:43:23]opened+sec_in_day 1729298719 [17:43:23]quantity*price = 70044 [17:43:23]sum+1 = 70045 [17:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 137 18.10.2024 17:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82428 ФПД: 208355011772651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174324&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82428&fm=208355011772651&tin=02508201610067®Number=0000000000091680&sum=70044 [17:43:24]StoreToDocumentArchive [17:43:24]shift 526 fd 82428 [17:43:24]save to /storage/0526/doc_00082428 [17:43:24]save last doc name /storage/0526/doc_00082428 to /storage/kkm_last_doc_name [17:43:24]save OK [17:43:24]Clear old archive folders... [17:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:24]tlvbuf is 00666640 [17:43:24]SAM_PROTO_ClearQueue [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 09 00 00 [17:43:24]Write to MH i2c: E2 08 00 40 04 80 09 00 00 00 00 00 00 B6 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]SAM_PROTO_ClearQueue done [17:43:24]KKMCreateOFDPacket [17:43:24]OFDProtocolAddRootSTLVToBuf [17:43:24]FM_MakeSignedData [17:43:24]FM_MakeSignedData [17:43:24]SAM_PROTO_SignData [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 01 02 [17:43:24]Write to MH i2c: E2 08 00 41 04 80 0D 01 02 00 00 00 00 BE [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [17:43:24]RAPDU: 90 00 [17:43:24]wFMCommunicate OK [17:43:24]wFMCommunicate request_size=255 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3C 9E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 41 01 00 35 04 06 00 BD [17:43:24]Write to MH i2c: E2 02 01 42 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3C 9E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 41 01 00 35 04 06 00 BD 00 00 99 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:24]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [17:43:25]RAPDU: 90 00 [17:43:25]wFMCommunicate OK [17:43:25]wFMCommunicate request_size=10 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 0D 02 02 05 7F 6E 76 C0 EB [17:43:25]Write to MH i2c: E2 0D 00 43 04 80 0D 02 02 05 00 7F 6E 76 C0 EB 00 00 D9 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [17:43:25]RAPDU: 90 00 [17:43:25]wFMCommunicate OK [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 0D 03 02 [17:43:25]Write to MH i2c: E2 08 00 44 04 80 0D 03 02 00 00 00 00 C3 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 0B 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 0B 00 44 04 00 D5 E5 C5 FE EA 34 8A 12 90 00 FB [17:43:25]RAPDU: D5 E5 C5 FE EA 34 8A 12 90 00 [17:43:25]wFMCommunicate OK [17:43:25]SAM_PROTO_SignData done [17:43:25]FM_MakeSignedData done [17:43:25]CreateOFDProtocolMessage [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 11 00 00 [17:43:25]Write to MH i2c: E2 08 00 45 04 80 11 00 00 00 00 00 00 C3 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 17 00 [17:43:25]MH_I2C_Read... [17:43:25]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 31 38 34 33 90 00 15 [17:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:43:25]wFMCommunicate OK [17:43:25]CreateOFDProtocolMessage done [17:43:25]OFDSenderStorePacket 82428 [17:43:25]StoreOFDPacket docnum=82428 [17:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 91 82 07 01 B5 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3C 9E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 41 01 00 35 04 06 00 BD 7F 6E 76 C0 EB D5 E5 C5 FE EA 34 8A 12 [17:43:25]CheckFolder [17:43:25]dirname=/storage/ofd_packets [17:43:25]CheckFolder done [17:43:25]ProducePacketName [17:43:25]name=ofd_packets/00082428 [17:43:25]NVStorageSaveData ofd_packets/00082428 [17:43:25]File name is /storage/ofd_packets/00082428 [17:43:25]Write 301 bytes [17:43:25]NVStorageSaveData done [17:43:25]OFDSenderStorePacket done [17:43:25]KKMCreateOFDPacket done [17:43:25]NVStorageSaveData kkm_last_timestamp [17:43:25]File name is /storage/kkm_last_timestamp [17:43:25]Write 4 bytes [17:43:25]NVStorageSaveData done [17:43:25]ExternCall_PrintAddStr [17:43:25]wPrintStart [17:43:25]Write to MH i2c: 01 00 00 46 04 4A [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 46 04 00 00 00 00 00 FF 0F 5F [17:43:25]RasterBufferAndPrint [17:43:25]line Счет N : (1)918920 [17:43:25]line ИНН: 02508201610067 [17:43:25]line Контрольно-Кассовый Чек [17:43:25]line ПРОДАЖА [17:43:25]line ТРК (МРК, ГНК) : 11 [17:43:25]line Товар: 2710124130 [17:43:25]line Аи-92-К-4 [17:43:25]line 10.470 * 66.90 [17:43:25]line = 700.44 [17:43:25]line НДС 12% НСП 1% [17:43:25]line > о реализуемом товаре [17:43:25]line ИТОГО: 700.44 [17:43:25]line НСП 1% : 6.20 [17:43:25]line НДС 12% : 74.38 [17:43:25]line Наличными: 0.00 [17:43:25]line Безнал.: 700.44 [17:43:25]line Место: АЗС № 114 "Партнер Нефть" [17:43:25]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:43:25]line СНО: Общий режим [17:43:25]line Чек 137 18.10.2024 17:43 [17:43:25]line Смена: 526 ФФД: 1.0 [17:43:25]line ЗНМ: 0300000086 [17:43:25]line РНМ: 0000000000091680 [17:43:25]line Версия ККМ: 001 [17:43:25]line Платежная система: Mbank [17:43:25]line ФМ: 0000000000871843 [17:43:25]line ФД: 82428 [17:43:25]line ФПД: 208355011772651 [17:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174324&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82428&fm=208355011772651&tin=02508201610067®Number=0000000000091680&sum=70044 [17:43:25]written 0, free lines is 4095 [17:43:25]OFD Sender: Processing packet 82428 [packets to send 254, broken 253] [17:43:25]ProducePacketName [17:43:25]name=ofd_packets/00082428 [17:43:25]OFD Sender: To server: pG, [17:43:25]CommunicateWithHost lk.salyk.kg:30040 [17:43:25]ConnectInit lk.salyk.kg [17:43:25]Write to MH i2c: 01 00 00 6F 04 73 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 F5 0C 7B [17:43:25]RasterBufferAndPrint [17:43:25]line [17:43:25]line [17:43:25]line [17:43:25]line [17:43:25]line [17:43:25]written 0, free lines is 3324 [17:43:25]MH_Cut [17:43:25]Write to MH i2c: D1 01 00 76 04 01 4C [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: D1 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: D1 01 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: D1 01 00 76 04 00 4B [17:43:25]Write to MH i2c: 01 00 00 77 04 7B [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:26]Connected sock=7 [17:43:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 91 82 07 01 B5 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3C 9E 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 41 01 00 35 04 06 00 BD 7F 6E 76 C0 EB D5 E5 C5 FE EA 34 8A 12 [17:43:26]*** Cut start [17:43:26]*** Partial cut [17:43:26]*** CUTSNS_PIN = 1 [17:43:26]*** CUTSNS_PIN = 0 [17:43:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 95 25 47 00 B1 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FC 41 01 00 F4 03 04 00 76 43 12 67 B6 04 01 00 00 A5 0F D2 FF AC D8 2B 11 [17:43:26]CommunicateWithHost err = 0 [17:43:26]CheckOFDResponse [17:43:26]1017 (14) - 77093643461234 [17:43:26]1041 (16) - 0000000000871843 [17:43:26]1040 (4) - 82428 [17:43:26]1012 (4) - 18.10.2024 11:16 [17:43:26]1206 (1) - 0 [17:43:26]OFD Sender: Remove packet 82428 [17:43:26]ProducePacketName [17:43:26]name=ofd_packets/00082428 [17:43:26]NVStorageDeleteData [17:43:26]*** Brake cut motor [17:43:27]OFD Sender: No OFD packet to send [17:43:27]Read from MH i2c: 01 [17:43:27]MH_I2C_Read... [17:43:27]*** Stop cut motor [17:43:27]*** Cut end [17:43:27]Read from MH i2c: 01 07 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 FF 0F 90 [17:43:27]process_action close_receipt done [17:43:27]requested_data is exist [17:43:27]produce_requested_data [17:43:27]requested_item fm.sn is exist - process it [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 11 00 00 [17:43:27]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 17 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 48 [17:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:43:27]wFMCommunicate OK [17:43:27]requested_item fd.num is exist - process it [17:43:27]SAM_PROTO_GetFieldsCounters [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 13 00 00 [17:43:27]Write to MH i2c: E2 08 00 79 04 80 13 00 00 00 00 00 00 F9 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 79 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [17:43:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FC 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetFieldsCounters done [17:43:27]requested_item shift.num is exist - process it [17:43:27]requested_item shift.opened is exist - process it [17:43:27]req_shift_opened [17:43:27]FM_GetShiftState [17:43:27]SAM_PROTO_GetShiftState [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 13 01 00 [17:43:27]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 0E 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CD [17:43:27]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetShiftState done [17:43:27]FM_GetShiftState done [17:43:27]req_shift_opened done [17:43:27]requested_item shift.open_date is exist - process it [17:43:27]req_shift_open_date [17:43:27]req_shift_open_date done [17:43:27]produce_requested_data done [17:43:27]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82428,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:43:27]process_action_free close_receipt [17:43:27]json_value_free [17:43:27]json_value_free done [17:43:27]process_json_proto returns [17:43:27]Send response to host [17:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82428,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:43:27]free response buf [17:43:27]execute_script done [17:43:27]execute_script returns [17:43:27]free content buf [17:43:27]Sock 9.Close socket [17:43:27]Sock 9.Thread stoped [17:43:32]OFD Sender: No OFD packet to send [17:43:35]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:11]recv_with_timeout no data received [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:50]accept exits with 10 [17:46:50]New connection [17:46:50]New thread 3067174244 created [17:46:50]Thread 3067317604 joined [17:46:50]Waiting for new connection... [17:46:50] Sock 10.Parse request [17:46:50]Sock 10.Check first char [17:46:50]Sock 10.First char is OK [17:46:50]request: POST /json_proto HTTP/1.0 [17:46:50]Method: POST [17:46:50]URL: /json_proto [17:46:50]Method is POST - this is cgi request [17:46:50]url: /json_proto [17:46:50]query_string will be loaded in cgi processing [17:46:50]execute_cgi json_proto POST (null) [17:46:50]execute_cgi path=json_proto method=POST [17:46:50]POST find Content-Length [17:46:50]Host: 172.17.44.67:8080 [17:46:50]Content-Length: 678 [17:46:50]Content-Type: application/json [17:46:50] [17:46:50]POST finish read [17:46:50]Found Content-Length = 678 [17:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:50]execute_script... [17:46: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)918921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:50]POST & json_proto [17:46:50]process_json_proto [17:46:50]json parsed OK: [17:46:50]protocol is kg_v1.0 [17:46:50]action value=close_receipt [17:46:50]process_action close_receipt [17:46:50]cmd_close_receipt [17:46:50]MH_GetDate [17:46:50]Write to MH i2c: F0 00 00 7B 04 6E [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: F0 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: F0 09 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: F0 09 00 7B 04 00 0B 9F 12 67 F1 C7 6B 64 21 [17:46:50]GetLastDocTimeStamp 1729273404 [17:46:50]current date 1729273611 [17:46:50]FM_GetShiftState [17:46:50]SAM_PROTO_GetShiftState [17:46:50]wFMCommunicate request_size=4 [17:46:50]MH_SAM_APDU [17:46:50]CAPDU: 80 13 01 00 [17:46:50]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [17:46:50]Write i2c OK [17:46:50]MH_I2C_Read... [17:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:50]Read from MH i2c: E2 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: E2 0E 00 [17:46:50]MH_I2C_Read... [17:46:50]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CF [17:46:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:46:50]wFMCommunicate OK [17:46:50]SAM_PROTO_GetShiftState done [17:46:50]FM_GetShiftState done [17:46:50]opened in 1729212319 [17:46:50]opened+sec_in_day 1729298719 [17:46:50]quantity*price = 80012 [17:46:50]sum+1 = 80013 [17:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 138 18.10.2024 17:46 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82429 ФПД: 136436322552884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174651&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82429&fm=136436322552884&tin=02508201610067®Number=0000000000091680&sum=80000 [17:46:51]StoreToDocumentArchive [17:46:51]shift 526 fd 82429 [17:46:51]save to /storage/0526/doc_00082429 [17:46:51]save last doc name /storage/0526/doc_00082429 to /storage/kkm_last_doc_name [17:46:51]save OK [17:46:51]Clear old archive folders... [17:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:51]tlvbuf is 00665AD0 [17:46:51]SAM_PROTO_ClearQueue [17:46:51]wFMCommunicate request_size=4 [17:46:51]MH_SAM_APDU [17:46:51]CAPDU: 80 09 00 00 [17:46:51]Write to MH i2c: E2 08 00 89 04 80 09 00 00 00 00 00 00 FF [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [17:46:51]RAPDU: 90 00 [17:46:51]wFMCommunicate OK [17:46:51]SAM_PROTO_ClearQueue done [17:46:51]KKMCreateOFDPacket [17:46:51]OFDProtocolAddRootSTLVToBuf [17:46:51]FM_MakeSignedData [17:46:51]FM_MakeSignedData [17:46:51]SAM_PROTO_SignData [17:46:51]wFMCommunicate request_size=4 [17:46:51]MH_SAM_APDU [17:46:51]CAPDU: 80 0D 01 02 [17:46:51]Write to MH i2c: E2 08 00 8A 04 80 0D 01 02 00 00 00 00 07 [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [17:46:51]RAPDU: 90 00 [17:46:51]wFMCommunicate OK [17:46:51]wFMCommunicate request_size=255 [17:46:51]MH_SAM_APDU [17:46: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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 0B 9F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 41 01 00 35 04 06 00 7C [17:46:51]Write to MH i2c: E2 02 01 8B 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 0B 9F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 41 01 00 35 04 06 00 7C 00 00 F7 [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [17:46:51]RAPDU: 90 00 [17:46:51]wFMCommunicate OK [17:46:51]wFMCommunicate request_size=10 [17:46:51]MH_SAM_APDU [17:46:51]CAPDU: 80 0D 02 02 05 16 8E 8A 4C 34 [17:46:51]Write to MH i2c: E2 0D 00 8C 04 80 0D 02 02 05 00 16 8E 8A 4C 34 00 00 C2 [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [17:46:51]RAPDU: 90 00 [17:46:51]wFMCommunicate OK [17:46:51]wFMCommunicate request_size=4 [17:46:51]MH_SAM_APDU [17:46:51]CAPDU: 80 0D 03 02 [17:46:51]Write to MH i2c: E2 08 00 8D 04 80 0D 03 02 00 00 00 00 0C [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 0B 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 0B 00 8D 04 00 51 45 58 2F 0B 6F 68 15 90 00 21 [17:46:51]RAPDU: 51 45 58 2F 0B 6F 68 15 90 00 [17:46:51]wFMCommunicate OK [17:46:51]SAM_PROTO_SignData done [17:46:51]FM_MakeSignedData done [17:46:51]CreateOFDProtocolMessage [17:46:51]wFMCommunicate request_size=4 [17:46:51]MH_SAM_APDU [17:46:51]CAPDU: 80 11 00 00 [17:46:51]Write to MH i2c: E2 08 00 8E 04 80 11 00 00 00 00 00 00 0C [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 17 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 17 00 8E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5E [17:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:46:51]wFMCommunicate OK [17:46:51]CreateOFDProtocolMessage done [17:46:51]OFDSenderStorePacket 82429 [17:46:51]StoreOFDPacket docnum=82429 [17:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D1 04 07 01 85 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 0B 9F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 41 01 00 35 04 06 00 7C 16 8E 8A 4C 34 51 45 58 2F 0B 6F 68 15 [17:46:51]CheckFolder [17:46:51]dirname=/storage/ofd_packets [17:46:51]CheckFolder done [17:46:51]ProducePacketName [17:46:51]name=ofd_packets/00082429 [17:46:51]NVStorageSaveData ofd_packets/00082429 [17:46:51]File name is /storage/ofd_packets/00082429 [17:46:51]Write 301 bytes [17:46:51]NVStorageSaveData done [17:46:51]OFDSenderStorePacket done [17:46:51]KKMCreateOFDPacket done [17:46:51]NVStorageSaveData kkm_last_timestamp [17:46:51]File name is /storage/kkm_last_timestamp [17:46:51]Write 4 bytes [17:46:51]NVStorageSaveData done [17:46:51]ExternCall_PrintAddStr [17:46:51]wPrintStart [17:46:51]Write to MH i2c: 01 00 00 8F 04 93 [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: 01 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: 01 07 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 FF 0F A8 [17:46:51]RasterBufferAndPrint [17:46:51]line Счет N : (1)918921 [17:46:51]line ИНН: 02508201610067 [17:46:51]line Контрольно-Кассовый Чек [17:46:51]line ПРОДАЖА [17:46:51]line ТРК (МРК, ГНК) : 11 [17:46:51]line Товар: 2710124130 [17:46:51]line Аи-92-К-4 [17:46:51]line 11.960 * 66.90 [17:46:51]line = 800.12 [17:46:51]line НДС 12% НСП 1% [17:46:51]line > о реализуемом товаре [17:46:51]line ОКРУГЛЕНИЕ: -0.12 [17:46:51]line ИТОГО: 800.00 [17:46:51]line Внесено: 800.00 [17:46:51]line СДАЧА: 0.00 [17:46:51]line НСП 1% : 7.08 [17:46:51]line НДС 12% : 84.97 [17:46:51]line Наличными: 800.00 [17:46:51]line Безнал.: 0.00 [17:46:51]line Место: АЗС № 114 "Партнер Нефть" [17:46:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:46:51]line СНО: Общий режим [17:46:51]line Чек 138 18.10.2024 17:46 [17:46:51]line Смена: 526 ФФД: 1.0 [17:46:51]line ЗНМ: 0300000086 [17:46:51]line РНМ: 0000000000091680 [17:46:51]line Версия ККМ: 001 [17:46:51]line ФМ: 0000000000871843 [17:46:51]line ФД: 82429 [17:46:51]line ФПД: 136436322552884 [17:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174651&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82429&fm=136436322552884&tin=02508201610067®Number=0000000000091680&sum=80000 [17:46:52]OFD Sender: Processing packet 82429 [packets to send 254, broken 253] [17:46:52]ProducePacketName [17:46:52]name=ofd_packets/00082429 [17:46:52]OFD Sender: To server: pG, [17:46:52]CommunicateWithHost lk.salyk.kg:30040 [17:46:52]ConnectInit lk.salyk.kg [17:46:52]written 0, free lines is 4095 [17:46:52]Write to MH i2c: 01 00 00 BA 04 BE [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: 01 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: 01 07 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 D7 0C A8 [17:46:52]RasterBufferAndPrint [17:46:52]line [17:46:52]line [17:46:52]line [17:46:52]line [17:46:52]line [17:46:52]written 0, free lines is 3290 [17:46:52]MH_Cut [17:46:52]Write to MH i2c: D1 01 00 C1 04 01 97 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: D1 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: D1 01 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: D1 01 00 C1 04 00 96 [17:46:52]Write to MH i2c: 01 00 00 C2 04 C6 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:53]*** Cut start [17:46:53]*** Partial cut [17:46:53]*** CUTSNS_PIN = 1 [17:46:53]*** CUTSNS_PIN = 0 [17:46:53]*** Brake cut motor [17:46:54]Read from MH i2c: 01 [17:46:54]MH_I2C_Read... [17:46:54]*** Stop cut motor [17:46:54]*** Cut end [17:46:54]Read from MH i2c: 01 07 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [17:46:54]process_action close_receipt done [17:46:54]requested_data is exist [17:46:54]produce_requested_data [17:46:54]requested_item fm.sn is exist - process it [17:46:54]wFMCommunicate request_size=4 [17:46:54]MH_SAM_APDU [17:46:54]CAPDU: 80 11 00 00 [17:46:54]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [17:46:54]Write i2c OK [17:46:54]MH_I2C_Read... [17:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:54]Read from MH i2c: E2 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 17 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 93 [17:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:46:54]wFMCommunicate OK [17:46:54]requested_item fd.num is exist - process it [17:46:54]SAM_PROTO_GetFieldsCounters [17:46:54]wFMCommunicate request_size=4 [17:46:54]MH_SAM_APDU [17:46:54]CAPDU: 80 13 00 00 [17:46:54]Write to MH i2c: E2 08 00 C4 04 80 13 00 00 00 00 00 00 44 [17:46:54]Write i2c OK [17:46:54]MH_I2C_Read... [17:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:54]Read from MH i2c: E2 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 62 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 62 00 C4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FD 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [17:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FD 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:54]wFMCommunicate OK [17:46:54]SAM_PROTO_GetFieldsCounters done [17:46:54]requested_item shift.num is exist - process it [17:46:54]requested_item shift.opened is exist - process it [17:46:54]req_shift_opened [17:46:54]FM_GetShiftState [17:46:54]SAM_PROTO_GetShiftState [17:46:54]wFMCommunicate request_size=4 [17:46:54]MH_SAM_APDU [17:46:54]CAPDU: 80 13 01 00 [17:46:54]Write to MH i2c: E2 08 00 C5 04 80 13 01 00 00 00 00 00 46 [17:46:54]Write i2c OK [17:46:54]MH_I2C_Read... [17:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:54]Read from MH i2c: E2 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 0E 00 [17:46:54]MH_I2C_Read... [17:46:54]Read from MH i2c: E2 0E 00 C5 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 18 [17:46:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:46:54]wFMCommunicate OK [17:46:54]SAM_PROTO_GetShiftState done [17:46:54]FM_GetShiftState done [17:46:54]req_shift_opened done [17:46:54]requested_item shift.open_date is exist - process it [17:46:54]req_shift_open_date [17:46:54]req_shift_open_date done [17:46:54]produce_requested_data done [17:46:54]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82429,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:46:54]process_action_free close_receipt [17:46:54]json_value_free [17:46:54]json_value_free done [17:46:54]process_json_proto returns [17:46:54]Send response to host [17:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82429,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:46:54]free response buf [17:46:54]execute_script done [17:46:54]execute_script returns [17:46:54]free content buf [17:46:54]Sock 10.Close socket [17:46:54]Sock 10.Thread stoped [17:46:56]recv_with_timeout no data received [17:46:57]ConnectInit Can't take IP for lk.salyk.kg [17:46:57]CommunicateWithHost connect error [17:46:57]CommunicateWithHost err = -1 [17:46:57]OFD Sender: Server communicate error [17:47:02]OFD Sender: Processing packet 82429 [packets to send 254, broken 253] [17:47:02]ProducePacketName [17:47:02]name=ofd_packets/00082429 [17:47:02]OFD Sender: To server: pG, [17:47:02]CommunicateWithHost lk.salyk.kg:30040 [17:47:02]ConnectInit lk.salyk.kg [17:47:09]Connected sock=10 [17:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 D1 04 07 01 85 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 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 0B 9F 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 41 01 00 35 04 06 00 7C 16 8E 8A 4C 34 51 45 58 2F 0B 6F 68 15 [17:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 16 9A 47 00 BC A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FD 41 01 00 F4 03 04 00 56 44 12 67 B6 04 01 00 00 2B CD 06 31 89 B7 D4 D4 [17:47:10]CommunicateWithHost err = 0 [17:47:10]CheckOFDResponse [17:47:10]1017 (14) - 77093643461234 [17:47:10]1041 (16) - 0000000000871843 [17:47:10]1040 (4) - 82429 [17:47:10]1012 (4) - 18.10.2024 11:19 [17:47:10]1206 (1) - 0 [17:47:10]OFD Sender: Remove packet 82429 [17:47:10]ProducePacketName [17:47:10]name=ofd_packets/00082429 [17:47:10]NVStorageDeleteData [17:47:10]OFD Sender: No OFD packet to send [17:47:11]recv_with_timeout no data received [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:23]recv_with_timeout no data received [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:35]recv_with_timeout no data received [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:14]recv_with_timeout no data received [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:40]recv_with_timeout no data received [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:05]accept exits with 7 [17:53:05]New connection [17:53:05]New thread 3067317604 created [17:53:05]Thread 3067174244 joined [17:53:05]Waiting for new connection... [17:53:05] Sock 7.Parse request [17:53:05]Sock 7.Check first char [17:53:05]Sock 7.First char is OK [17:53:05]request: POST /json_proto HTTP/1.0 [17:53:05]Method: POST [17:53:05]URL: /json_proto [17:53:05]Method is POST - this is cgi request [17:53:05]url: /json_proto [17:53:05]query_string will be loaded in cgi processing [17:53:05]execute_cgi json_proto POST (null) [17:53:05]execute_cgi path=json_proto method=POST [17:53:05]POST find Content-Length [17:53:05]Host: 172.17.44.67:8080 [17:53:05]Content-Length: 766 [17:53:05]Content-Type: application/json [17:53:05] [17:53:05]POST finish read [17:53:05]Found Content-Length = 766 [17:53:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:05]execute_script... [17:53: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)918922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:05]POST & json_proto [17:53:05]process_json_proto [17:53:05]json parsed OK: [17:53:05]protocol is kg_v1.0 [17:53:05]action value=close_receipt [17:53:05]process_action close_receipt [17:53:05]cmd_close_receipt [17:53:05]MH_GetDate [17:53:05]Write to MH i2c: F0 00 00 C6 04 B9 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: F0 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: F0 09 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: F0 09 00 C6 04 00 83 A0 12 67 F1 C7 6B 64 E5 [17:53:05]GetLastDocTimeStamp 1729273611 [17:53:05]current date 1729273987 [17:53:05]FM_GetShiftState [17:53:05]SAM_PROTO_GetShiftState [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 13 01 00 [17:53:05]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0E 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 1A [17:53:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:53:05]wFMCommunicate OK [17:53:05]SAM_PROTO_GetShiftState done [17:53:05]FM_GetShiftState done [17:53:05]opened in 1729212319 [17:53:05]opened+sec_in_day 1729298719 [17:53:05]quantity*price = 50041 [17:53:05]sum+1 = 50042 [17:53:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 139 18.10.2024 17:53 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82430 ФПД: 11867289315446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T175307&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82430&fm=11867289315446&tin=02508201610067®Number=0000000000091680&sum=50041 [17:53:07]StoreToDocumentArchive [17:53:07]shift 526 fd 82430 [17:53:07]save to /storage/0526/doc_00082430 [17:53:07]save last doc name /storage/0526/doc_00082430 to /storage/kkm_last_doc_name [17:53:07]save OK [17:53:07]Clear old archive folders... [17:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:07]tlvbuf is 00653A90 [17:53:07]SAM_PROTO_ClearQueue [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 09 00 00 [17:53:07]Write to MH i2c: E2 08 00 D4 04 80 09 00 00 00 00 00 00 4A [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [17:53:07]RAPDU: 90 00 [17:53:07]wFMCommunicate OK [17:53:07]SAM_PROTO_ClearQueue done [17:53:07]KKMCreateOFDPacket [17:53:07]OFDProtocolAddRootSTLVToBuf [17:53:07]FM_MakeSignedData [17:53:07]FM_MakeSignedData [17:53:07]SAM_PROTO_SignData [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 0D 01 02 [17:53:07]Write to MH i2c: E2 08 00 D5 04 80 0D 01 02 00 00 00 00 52 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [17:53:07]RAPDU: 90 00 [17:53:07]wFMCommunicate OK [17:53:07]wFMCommunicate request_size=255 [17:53:07]MH_SAM_APDU [17:53: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 83 A0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 41 01 00 35 04 06 00 0A [17:53:07]Write to MH i2c: E2 02 01 D6 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 83 A0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 41 01 00 35 04 06 00 0A 00 00 B1 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [17:53:07]RAPDU: 90 00 [17:53:07]wFMCommunicate OK [17:53:07]wFMCommunicate request_size=10 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 0D 02 02 05 CB 11 90 68 76 [17:53:07]Write to MH i2c: E2 0D 00 D7 04 80 0D 02 02 05 00 CB 11 90 68 76 00 00 A9 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [17:53:07]RAPDU: 90 00 [17:53:07]wFMCommunicate OK [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 0D 03 02 [17:53:07]Write to MH i2c: E2 08 00 D8 04 80 0D 03 02 00 00 00 00 57 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 0B 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 0B 00 D8 04 00 55 E6 DD BB 5E 40 AB F7 90 00 6B [17:53:07]RAPDU: 55 E6 DD BB 5E 40 AB F7 90 00 [17:53:07]wFMCommunicate OK [17:53:07]SAM_PROTO_SignData done [17:53:07]FM_MakeSignedData done [17:53:07]CreateOFDProtocolMessage [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 11 00 00 [17:53:07]Write to MH i2c: E2 08 00 D9 04 80 11 00 00 00 00 00 00 57 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 17 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 17 00 D9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A9 [17:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:53:07]wFMCommunicate OK [17:53:07]CreateOFDProtocolMessage done [17:53:07]OFDSenderStorePacket 82430 [17:53:07]StoreOFDPacket docnum=82430 [17:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0D 84 07 01 CA 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 83 A0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 41 01 00 35 04 06 00 0A CB 11 90 68 76 55 E6 DD BB 5E 40 AB F7 [17:53:07]CheckFolder [17:53:07]dirname=/storage/ofd_packets [17:53:07]CheckFolder done [17:53:07]ProducePacketName [17:53:07]name=ofd_packets/00082430 [17:53:07]NVStorageSaveData ofd_packets/00082430 [17:53:07]File name is /storage/ofd_packets/00082430 [17:53:07]Write 301 bytes [17:53:07]NVStorageSaveData done [17:53:07]OFDSenderStorePacket done [17:53:07]KKMCreateOFDPacket done [17:53:07]NVStorageSaveData kkm_last_timestamp [17:53:07]File name is /storage/kkm_last_timestamp [17:53:07]Write 4 bytes [17:53:07]NVStorageSaveData done [17:53:07]ExternCall_PrintAddStr [17:53:07]wPrintStart [17:53:07]Write to MH i2c: 01 00 00 DA 04 DE [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 07 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 07 00 DA 04 00 00 00 00 00 FF 0F F3 [17:53:07]RasterBufferAndPrint [17:53:07]line Счет N : (1)918922 [17:53:07]line ИНН: 02508201610067 [17:53:07]line Контрольно-Кассовый Чек [17:53:07]line ПРОДАЖА [17:53:07]line ТРК (МРК, ГНК) : 22 [17:53:07]line Товар: 2710124130 [17:53:07]line Аи-92-К-4 [17:53:07]line 7.480 * 66.90 [17:53:07]line = 500.41 [17:53:07]line НДС 12% НСП 1% [17:53:07]line > о реализуемом товаре [17:53:07]line ИТОГО: 500.41 [17:53:07]line НСП 1% : 4.43 [17:53:07]line НДС 12% : 53.14 [17:53:07]line Наличными: 0.00 [17:53:07]line Безнал.: 500.41 [17:53:07]line Место: АЗС № 114 "Партнер Нефть" [17:53:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [17:53:07]line СНО: Общий режим [17:53:07]line Чек 139 18.10.2024 17:53 [17:53:07]line Смена: 526 ФФД: 1.0 [17:53:07]line ЗНМ: 0300000086 [17:53:07]line РНМ: 0000000000091680 [17:53:07]line Версия ККМ: 001 [17:53:07]line Платежная система: Mbank [17:53:07]line ФМ: 0000000000871843 [17:53:07]line ФД: 82430 [17:53:07]line ФПД: 11867289315446 [17:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T175307&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82430&fm=11867289315446&tin=02508201610067®Number=0000000000091680&sum=50041 [17:53:07]written 0, free lines is 4095 [17:53:07]OFD Sender: Processing packet 82430 [packets to send 254, broken 253] [17:53:07]ProducePacketName [17:53:07]name=ofd_packets/00082430 [17:53:07]OFD Sender: To server: pG, [17:53:07]CommunicateWithHost lk.salyk.kg:30040 [17:53:07]ConnectInit lk.salyk.kg [17:53:08]Write to MH i2c: 01 00 00 03 05 08 [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: 01 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: 01 07 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 F8 0C 13 [17:53:08]RasterBufferAndPrint [17:53:08]line [17:53:08]line [17:53:08]line [17:53:08]line [17:53:08]line [17:53:08]written 0, free lines is 3327 [17:53:08]Connected sock=9 [17:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0D 84 07 01 CA 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 83 A0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 41 01 00 35 04 06 00 0A CB 11 90 68 76 55 E6 DD BB 5E 40 AB F7 [17:53:08]MH_Cut [17:53:08]Write to MH i2c: D1 01 00 0A 05 01 E1 [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: D1 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: D1 01 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: D1 01 00 0A 05 00 E0 [17:53:08]Write to MH i2c: 01 00 00 0B 05 10 [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 10 4D 47 00 9D 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FE 41 01 00 F4 03 04 00 BD 45 12 67 B6 04 01 00 00 B8 F5 0C F1 E8 12 8F 2F [17:53:08]CommunicateWithHost err = 0 [17:53:08]CheckOFDResponse [17:53:08]1017 (14) - 77093643461234 [17:53:08]1041 (16) - 0000000000871843 [17:53:08]1040 (4) - 82430 [17:53:08]1012 (4) - 18.10.2024 11:25 [17:53:08]1206 (1) - 0 [17:53:08]OFD Sender: Remove packet 82430 [17:53:08]ProducePacketName [17:53:08]name=ofd_packets/00082430 [17:53:08]NVStorageDeleteData [17:53:09]*** Cut start [17:53:09]*** Partial cut [17:53:09]*** CUTSNS_PIN = 1 [17:53:09]*** CUTSNS_PIN = 0 [17:53:09]OFD Sender: No OFD packet to send [17:53:09]*** Brake cut motor [17:53:09]Read from MH i2c: 01 [17:53:09]MH_I2C_Read... [17:53:09]*** Stop cut motor [17:53:09]*** Cut end [17:53:09]Read from MH i2c: 01 07 00 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [17:53:09]process_action close_receipt done [17:53:09]requested_data is exist [17:53:09]produce_requested_data [17:53:09]requested_item fm.sn is exist - process it [17:53:09]wFMCommunicate request_size=4 [17:53:09]MH_SAM_APDU [17:53:09]CAPDU: 80 11 00 00 [17:53:09]Write to MH i2c: E2 08 00 0C 05 80 11 00 00 00 00 00 00 8B [17:53:09]Write i2c OK [17:53:09]MH_I2C_Read... [17:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:09]Read from MH i2c: E2 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 17 00 [17:53:09]MH_I2C_Read... [17:53:09]Read from MH i2c: E2 17 00 0C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DD [17:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [17:53:09]wFMCommunicate OK [17:53:09]requested_item fd.num is exist - process it [17:53:09]SAM_PROTO_GetFieldsCounters [17:53:09]wFMCommunicate request_size=4 [17:53:09]MH_SAM_APDU [17:53:09]CAPDU: 80 13 00 00 [17:53:09]Write to MH i2c: E2 08 00 0D 05 80 13 00 00 00 00 00 00 8E [17:53:09]Write i2c OK [17:53:09]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 62 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 62 00 0D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [17:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FE 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:10]wFMCommunicate OK [17:53:10]SAM_PROTO_GetFieldsCounters done [17:53:10]requested_item shift.num is exist - process it [17:53:10]requested_item shift.opened is exist - process it [17:53:10]req_shift_opened [17:53:10]FM_GetShiftState [17:53:10]SAM_PROTO_GetShiftState [17:53:10]wFMCommunicate request_size=4 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 13 01 00 [17:53:10]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 0E 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 62 [17:53:10]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [17:53:10]wFMCommunicate OK [17:53:10]SAM_PROTO_GetShiftState done [17:53:10]FM_GetShiftState done [17:53:10]req_shift_opened done [17:53:10]requested_item shift.open_date is exist - process it [17:53:10]req_shift_open_date [17:53:10]req_shift_open_date done [17:53:10]produce_requested_data done [17:53:10]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82430,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [17:53:10]process_action_free close_receipt [17:53:10]json_value_free [17:53:10]json_value_free done [17:53:10]process_json_proto returns [17:53:10]Send response to host [17:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82430,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [17:53:10]free response buf [17:53:10]execute_script done [17:53:10]execute_script returns [17:53:10]free content buf [17:53:10]Sock 7.Close socket [17:53:10]Sock 7.Thread stoped [17:53:14]OFD Sender: No OFD packet to send [17:53:16]recv_with_timeout no data received [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [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:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:31]recv_with_timeout no data received [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:49]accept exits with 10 [18:10:49]New connection [18:10:49]New thread 3067174244 created [18:10:49]Thread 3067317604 joined [18:10:49]Waiting for new connection... [18:10:49] Sock 10.Parse request [18:10:49]Sock 10.Check first char [18:10:49]Sock 10.First char is OK [18:10:49]request: POST /json_proto HTTP/1.0 [18:10:49]Method: POST [18:10:49]URL: /json_proto [18:10:49]Method is POST - this is cgi request [18:10:49]url: /json_proto [18:10:49]query_string will be loaded in cgi processing [18:10:49]execute_cgi json_proto POST (null) [18:10:49]execute_cgi path=json_proto method=POST [18:10:49]POST find Content-Length [18:10:49]Host: 172.17.44.67:8080 [18:10:49]Content-Length: 688 [18:10:49]Content-Type: application/json [18:10:49] [18:10:49]POST finish read [18:10:49]Found Content-Length = 688 [18:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:49]execute_script... [18:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:49]POST & json_proto [18:10:49]process_json_proto [18:10:49]json parsed OK: [18:10:49]protocol is kg_v1.0 [18:10:49]action value=close_receipt [18:10:49]process_action close_receipt [18:10:49]cmd_close_receipt [18:10:49]MH_GetDate [18:10:49]Write to MH i2c: F0 00 00 0F 05 03 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: F0 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: F0 09 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: F0 09 00 0F 05 00 AA A4 12 67 F1 C7 6B 64 5A [18:10:49]GetLastDocTimeStamp 1729273987 [18:10:49]current date 1729275050 [18:10:49]FM_GetShiftState [18:10:49]SAM_PROTO_GetShiftState [18:10:49]wFMCommunicate request_size=4 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 13 01 00 [18:10:49]Write to MH i2c: E2 08 00 10 05 80 13 01 00 00 00 00 00 92 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 0E 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 0E 00 10 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 64 [18:10:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:10:49]wFMCommunicate OK [18:10:49]SAM_PROTO_GetShiftState done [18:10:49]FM_GetShiftState done [18:10:49]opened in 1729212319 [18:10:49]opened+sec_in_day 1729298719 [18:10:49]quantity*price = 100051 [18:10:49]sum+1 = 100052 [18:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 140 18.10.2024 18:10 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82431 ФПД: 172555643047094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181050&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82431&fm=172555643047094&tin=02508201610067®Number=0000000000091680&sum=100000 [18:10:50]StoreToDocumentArchive [18:10:50]shift 526 fd 82431 [18:10:50]save to /storage/0526/doc_00082431 [18:10:50]save last doc name /storage/0526/doc_00082431 to /storage/kkm_last_doc_name [18:10:50]save OK [18:10:50]Clear old archive folders... [18:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:10:50]tlvbuf is 0066C1B0 [18:10:50]SAM_PROTO_ClearQueue [18:10:50]wFMCommunicate request_size=4 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 09 00 00 [18:10:50]Write to MH i2c: E2 08 00 1D 05 80 09 00 00 00 00 00 00 94 [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:50]Read from MH i2c: E2 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [18:10:50]RAPDU: 90 00 [18:10:50]wFMCommunicate OK [18:10:50]SAM_PROTO_ClearQueue done [18:10:50]KKMCreateOFDPacket [18:10:50]OFDProtocolAddRootSTLVToBuf [18:10:50]FM_MakeSignedData [18:10:50]FM_MakeSignedData [18:10:50]SAM_PROTO_SignData [18:10:50]wFMCommunicate request_size=4 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 0D 01 02 [18:10:50]Write to MH i2c: E2 08 00 1E 05 80 0D 01 02 00 00 00 00 9C [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:50]Read from MH i2c: E2 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [18:10:50]RAPDU: 90 00 [18:10:50]wFMCommunicate OK [18:10:50]wFMCommunicate request_size=255 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AA A4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 41 01 [18:10:50]Write to MH i2c: E2 02 01 1F 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AA A4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 41 01 00 00 57 [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:51]OFD Sender: No OFD packet to send [18:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [18:10:51]RAPDU: 90 00 [18:10:51]wFMCommunicate OK [18:10:51]wFMCommunicate request_size=16 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9C F0 3D CE CC B6 [18:10:51]Write to MH i2c: E2 13 00 20 05 80 0D 02 02 0B 00 00 35 04 06 00 9C F0 3D CE CC B6 00 00 0D [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [18:10:51]RAPDU: 90 00 [18:10:51]wFMCommunicate OK [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 0D 03 02 [18:10:51]Write to MH i2c: E2 08 00 21 05 80 0D 03 02 00 00 00 00 A1 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0B 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0B 00 21 05 00 5C 1E B1 D4 DB A3 48 D9 90 00 40 [18:10:51]RAPDU: 5C 1E B1 D4 DB A3 48 D9 90 00 [18:10:51]wFMCommunicate OK [18:10:51]SAM_PROTO_SignData done [18:10:51]FM_MakeSignedData done [18:10:51]CreateOFDProtocolMessage [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 11 00 00 [18:10:51]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 17 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F3 [18:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:10:51]wFMCommunicate OK [18:10:51]CreateOFDProtocolMessage done [18:10:51]OFDSenderStorePacket 82431 [18:10:51]StoreOFDPacket docnum=82431 [18:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 CE 58 0D 01 6C 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AA A4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 41 01 00 35 04 06 00 9C F0 3D CE CC B6 5C 1E B1 D4 DB A3 48 D9 [18:10:51]CheckFolder [18:10:51]dirname=/storage/ofd_packets [18:10:51]CheckFolder done [18:10:51]ProducePacketName [18:10:51]name=ofd_packets/00082431 [18:10:51]NVStorageSaveData ofd_packets/00082431 [18:10:51]File name is /storage/ofd_packets/00082431 [18:10:51]Write 307 bytes [18:10:51]NVStorageSaveData done [18:10:51]OFDSenderStorePacket done [18:10:51]KKMCreateOFDPacket done [18:10:51]NVStorageSaveData kkm_last_timestamp [18:10:51]File name is /storage/kkm_last_timestamp [18:10:51]Write 4 bytes [18:10:51]NVStorageSaveData done [18:10:51]ExternCall_PrintAddStr [18:10:51]wPrintStart [18:10:51]Write to MH i2c: 01 00 00 23 05 28 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 07 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 07 00 23 05 00 00 00 00 00 FF 0F 3D [18:10:51]RasterBufferAndPrint [18:10:51]line Счет N : (1)918923 [18:10:51]line ИНН: 02508201610067 [18:10:51]line Контрольно-Кассовый Чек [18:10:51]line ПРОДАЖА [18:10:51]line ТРК (МРК, ГНК) : 21 [18:10:51]line Товар: 2710194800 [18:10:51]line D-Energy ДТ-К-2 [18:10:51]line 12.960 * 77.20 [18:10:51]line = 1000.51 [18:10:51]line НДС 12% НСП 1% [18:10:51]line > о реализуемом товаре [18:10:51]line ОКРУГЛЕНИЕ: -0.51 [18:10:51]line ИТОГО: 1000.00 [18:10:51]line Внесено: 1000.00 [18:10:51]line СДАЧА: 0.00 [18:10:51]line НСП 1% : 8.85 [18:10:51]line НДС 12% : 106.25 [18:10:51]line Наличными: 1000.00 [18:10:51]line Безнал.: 0.00 [18:10:51]line Место: АЗС № 114 "Партнер Нефть" [18:10:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:10:51]line СНО: Общий режим [18:10:51]line Чек 140 18.10.2024 18:10 [18:10:51]line Смена: 526 ФФД: 1.0 [18:10:51]line ЗНМ: 0300000086 [18:10:51]line РНМ: 0000000000091680 [18:10:51]line Версия ККМ: 001 [18:10:51]line ФМ: 0000000000871843 [18:10:51]line ФД: 82431 [18:10:51]line ФПД: 172555643047094 [18:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181050&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82431&fm=172555643047094&tin=02508201610067®Number=0000000000091680&sum=100000 [18:10:51]OFD Sender: Processing packet 82431 [packets to send 254, broken 253] [18:10:51]ProducePacketName [18:10:51]name=ofd_packets/00082431 [18:10:51]OFD Sender: To server: pG, [18:10:51]CommunicateWithHost lk.salyk.kg:30040 [18:10:51]ConnectInit lk.salyk.kg [18:10:51]written 0, free lines is 4095 [18:10:51]Write to MH i2c: 01 00 00 4E 05 53 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 07 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 DD 0C 43 [18:10:51]RasterBufferAndPrint [18:10:51]line [18:10:51]line [18:10:51]line [18:10:51]line [18:10:51]line [18:10:51]written 0, free lines is 3299 [18:10:51]MH_Cut [18:10:51]Write to MH i2c: D1 01 00 55 05 01 2C [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: D1 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: D1 01 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: D1 01 00 55 05 00 2B [18:10:51]Write to MH i2c: 01 00 00 56 05 5B [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:52]Connected sock=9 [18:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 CE 58 0D 01 6C 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AA A4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 41 01 00 35 04 06 00 9C F0 3D CE CC B6 5C 1E B1 D4 DB A3 48 D9 [18:10:52]*** Cut start [18:10:52]*** Partial cut [18:10:52]*** CUTSNS_PIN = 1 [18:10:52]*** CUTSNS_PIN = 0 [18:10:53]*** Brake cut motor [18:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CD F6 47 00 2C AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 FF 41 01 00 F4 03 04 00 E5 49 12 67 B6 04 01 00 00 B3 1D E3 D2 97 C6 75 DE [18:10:53]CommunicateWithHost err = 0 [18:10:53]CheckOFDResponse [18:10:53]1017 (14) - 77093643461234 [18:10:53]1041 (16) - 0000000000871843 [18:10:53]1040 (4) - 82431 [18:10:53]1012 (4) - 18.10.2024 11:43 [18:10:53]1206 (1) - 0 [18:10:53]OFD Sender: Remove packet 82431 [18:10:53]ProducePacketName [18:10:53]name=ofd_packets/00082431 [18:10:53]NVStorageDeleteData [18:10:53]Read from MH i2c: 01 [18:10:53]MH_I2C_Read... [18:10:53]*** Stop cut motor [18:10:53]*** Cut end [18:10:53]Read from MH i2c: 01 07 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [18:10:53]process_action close_receipt done [18:10:53]requested_data is exist [18:10:53]produce_requested_data [18:10:53]requested_item fm.sn is exist - process it [18:10:53]wFMCommunicate request_size=4 [18:10:53]MH_SAM_APDU [18:10:53]CAPDU: 80 11 00 00 [18:10:53]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:53]Read from MH i2c: E2 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 17 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 28 [18:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:10:53]wFMCommunicate OK [18:10:53]requested_item fd.num is exist - process it [18:10:53]SAM_PROTO_GetFieldsCounters [18:10:53]wFMCommunicate request_size=4 [18:10:53]MH_SAM_APDU [18:10:53]CAPDU: 80 13 00 00 [18:10:53]Write to MH i2c: E2 08 00 58 05 80 13 00 00 00 00 00 00 D9 [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:53]Read from MH i2c: E2 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 62 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 62 00 58 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [18:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 FF 41 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:53]wFMCommunicate OK [18:10:53]SAM_PROTO_GetFieldsCounters done [18:10:53]requested_item shift.num is exist - process it [18:10:53]requested_item shift.opened is exist - process it [18:10:53]req_shift_opened [18:10:53]FM_GetShiftState [18:10:53]SAM_PROTO_GetShiftState [18:10:53]wFMCommunicate request_size=4 [18:10:53]MH_SAM_APDU [18:10:53]CAPDU: 80 13 01 00 [18:10:53]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:53]Read from MH i2c: E2 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 0E 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AD [18:10:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:10:53]wFMCommunicate OK [18:10:53]SAM_PROTO_GetShiftState done [18:10:53]FM_GetShiftState done [18:10:53]req_shift_opened done [18:10:53]requested_item shift.open_date is exist - process it [18:10:53]req_shift_open_date [18:10:53]req_shift_open_date done [18:10:53]produce_requested_data done [18:10:53]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82431,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:10:53]process_action_free close_receipt [18:10:53]json_value_free [18:10:53]json_value_free done [18:10:53]process_json_proto returns [18:10:53]Send response to host [18:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82431,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:10:53]free response buf [18:10:53]execute_script done [18:10:53]execute_script returns [18:10:53]free content buf [18:10:53]Sock 10.Close socket [18:10:53]Sock 10.Thread stoped [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:18]recv_with_timeout no data received [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:22]accept exits with 7 [18:13:22]New connection [18:13:22]New thread 3067317604 created [18:13:22]Thread 3067174244 joined [18:13:22]Waiting for new connection... [18:13:22] Sock 7.Parse request [18:13:22]Sock 7.Check first char [18:13:22]Sock 7.First char is OK [18:13:22]request: POST /json_proto HTTP/1.0 [18:13:22]Method: POST [18:13:22]URL: /json_proto [18:13:22]Method is POST - this is cgi request [18:13:22]url: /json_proto [18:13:22]query_string will be loaded in cgi processing [18:13:22]execute_cgi json_proto POST (null) [18:13:22]execute_cgi path=json_proto method=POST [18:13:22]POST find Content-Length [18:13:22]Host: 172.17.44.67:8080 [18:13:22]Content-Length: 682 [18:13:22]Content-Type: application/json [18:13:22] [18:13:22]POST finish read [18:13:22]Found Content-Length = 682 [18:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "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" ] } } [18:13:22]execute_script... [18:13: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)918925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "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" ] } } [18:13:22]POST & json_proto [18:13:22]process_json_proto [18:13:22]json parsed OK: [18:13:22]protocol is kg_v1.0 [18:13:22]action value=close_receipt [18:13:22]process_action close_receipt [18:13:22]cmd_close_receipt [18:13:22]MH_GetDate [18:13:22]Write to MH i2c: F0 00 00 5A 05 4E [18:13:22]Write i2c OK [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: F0 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: F0 09 00 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: F0 09 00 5A 05 00 43 A5 12 67 F1 C7 6B 64 3F [18:13:22]GetLastDocTimeStamp 1729275050 [18:13:22]current date 1729275203 [18:13:22]FM_GetShiftState [18:13:22]SAM_PROTO_GetShiftState [18:13:22]wFMCommunicate request_size=4 [18:13:22]MH_SAM_APDU [18:13:22]CAPDU: 80 13 01 00 [18:13:22]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [18:13:22]Write i2c OK [18:13:22]MH_I2C_Read... [18:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:22]Read from MH i2c: E2 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 0E 00 [18:13:22]MH_I2C_Read... [18:13:22]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AF [18:13:22]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:13:22]wFMCommunicate OK [18:13:22]SAM_PROTO_GetShiftState done [18:13:22]FM_GetShiftState done [18:13:22]opened in 1729212319 [18:13:22]opened+sec_in_day 1729298719 [18:13:22]quantity*price = 45034 [18:13:22]sum+1 = 45035 [18:13:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.82 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 141 18.10.2024 18:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82432 ФПД: 176191447522245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181323&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82432&fm=176191447522245&tin=02508201610067®Number=0000000000091680&sum=45000 [18:13:23]StoreToDocumentArchive [18:13:23]shift 526 fd 82432 [18:13:23]save to /storage/0526/doc_00082432 [18:13:23]save last doc name /storage/0526/doc_00082432 to /storage/kkm_last_doc_name [18:13:23]save OK [18:13:23]Clear old archive folders... [18:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:13:23]tlvbuf is 00662D40 [18:13:23]SAM_PROTO_ClearQueue [18:13:23]wFMCommunicate request_size=4 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 09 00 00 [18:13:23]Write to MH i2c: E2 08 00 68 05 80 09 00 00 00 00 00 00 DF [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [18:13:23]RAPDU: 90 00 [18:13:23]wFMCommunicate OK [18:13:23]SAM_PROTO_ClearQueue done [18:13:23]KKMCreateOFDPacket [18:13:23]OFDProtocolAddRootSTLVToBuf [18:13:23]FM_MakeSignedData [18:13:23]FM_MakeSignedData [18:13:23]SAM_PROTO_SignData [18:13:23]wFMCommunicate request_size=4 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 0D 01 02 [18:13:23]Write to MH i2c: E2 08 00 69 05 80 0D 01 02 00 00 00 00 E7 [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [18:13:23]RAPDU: 90 00 [18:13:23]wFMCommunicate OK [18:13:23]wFMCommunicate request_size=255 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA 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 AE 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 8D 00 00 00 F4 03 04 00 43 A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 42 01 00 35 04 06 00 [18:13:23]Write to MH i2c: E2 02 01 6A 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA 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 AE 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 8D 00 00 00 F4 03 04 00 43 A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 42 01 00 35 04 06 00 00 00 4F [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [18:13:23]RAPDU: 90 00 [18:13:23]wFMCommunicate OK [18:13:23]wFMCommunicate request_size=11 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 0D 02 02 06 A0 3E C4 A4 5B C5 [18:13:23]Write to MH i2c: E2 0E 00 6B 05 80 0D 02 02 06 00 A0 3E C4 A4 5B C5 00 00 5C [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [18:13:23]RAPDU: 90 00 [18:13:23]wFMCommunicate OK [18:13:23]wFMCommunicate request_size=4 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 0D 03 02 [18:13:23]Write to MH i2c: E2 08 00 6C 05 80 0D 03 02 00 00 00 00 EC [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 0B 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 0B 00 6C 05 00 00 E2 9D E7 8C 64 A0 ED 90 00 D0 [18:13:23]RAPDU: 00 E2 9D E7 8C 64 A0 ED 90 00 [18:13:23]wFMCommunicate OK [18:13:23]SAM_PROTO_SignData done [18:13:23]FM_MakeSignedData done [18:13:23]CreateOFDProtocolMessage [18:13:23]wFMCommunicate request_size=4 [18:13:23]MH_SAM_APDU [18:13:23]CAPDU: 80 11 00 00 [18:13:23]Write to MH i2c: E2 08 00 6D 05 80 11 00 00 00 00 00 00 EC [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:23]Read from MH i2c: E2 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 17 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: E2 17 00 6D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3E [18:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:13:23]wFMCommunicate OK [18:13:23]CreateOFDProtocolMessage done [18:13:23]OFDSenderStorePacket 82432 [18:13:23]StoreOFDPacket docnum=82432 [18:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 C0 81 08 01 50 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA 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 AE 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 8D 00 00 00 F4 03 04 00 43 A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 42 01 00 35 04 06 00 A0 3E C4 A4 5B C5 00 E2 9D E7 8C 64 A0 ED [18:13:23]CheckFolder [18:13:23]dirname=/storage/ofd_packets [18:13:23]CheckFolder done [18:13:23]ProducePacketName [18:13:23]name=ofd_packets/00082432 [18:13:23]NVStorageSaveData ofd_packets/00082432 [18:13:23]File name is /storage/ofd_packets/00082432 [18:13:23]Write 302 bytes [18:13:23]NVStorageSaveData done [18:13:23]OFDSenderStorePacket done [18:13:23]KKMCreateOFDPacket done [18:13:23]NVStorageSaveData kkm_last_timestamp [18:13:23]File name is /storage/kkm_last_timestamp [18:13:23]Write 4 bytes [18:13:23]NVStorageSaveData done [18:13:23]ExternCall_PrintAddStr [18:13:23]wPrintStart [18:13:23]Write to MH i2c: 01 00 00 6E 05 73 [18:13:23]Write i2c OK [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 07 00 [18:13:23]MH_I2C_Read... [18:13:23]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 FF 0F 88 [18:13:23]RasterBufferAndPrint [18:13:23]line Счет N : (1)918925 [18:13:23]line ИНН: 02508201610067 [18:13:23]line Контрольно-Кассовый Чек [18:13:23]line ПРОДАЖА [18:13:23]line ТРК (МРК, ГНК) : 31 [18:13:23]line Товар: 2710194210 [18:13:23]line ДТ(л)-К-5 [18:13:23]line 5.910 * 76.20 [18:13:23]line = 450.34 [18:13:23]line НДС 12% НСП 1% [18:13:23]line > о реализуемом товаре [18:13:23]line ОКРУГЛЕНИЕ: -0.34 [18:13:23]line ИТОГО: 450.00 [18:13:23]line Внесено: 450.00 [18:13:23]line СДАЧА: 0.00 [18:13:23]line НСП 1% : 3.98 [18:13:23]line НДС 12% : 47.82 [18:13:23]line Наличными: 450.00 [18:13:23]line Безнал.: 0.00 [18:13:23]line Место: АЗС № 114 "Партнер Нефть" [18:13:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:13:23]line СНО: Общий режим [18:13:23]line Чек 141 18.10.2024 18:13 [18:13:23]line Смена: 526 ФФД: 1.0 [18:13:23]line ЗНМ: 0300000086 [18:13:23]line РНМ: 0000000000091680 [18:13:23]line Версия ККМ: 001 [18:13:23]line ФМ: 0000000000871843 [18:13:23]line ФД: 82432 [18:13:23]line ФПД: 176191447522245 [18:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181323&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82432&fm=176191447522245&tin=02508201610067®Number=0000000000091680&sum=45000 [18:13:24]OFD Sender: Processing packet 82432 [packets to send 254, broken 253] [18:13:24]ProducePacketName [18:13:24]name=ofd_packets/00082432 [18:13:24]OFD Sender: To server: pG, [18:13:24]CommunicateWithHost lk.salyk.kg:30040 [18:13:24]ConnectInit lk.salyk.kg [18:13:24]written 0, free lines is 4095 [18:13:24]Write to MH i2c: 01 00 00 99 05 9E [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 07 00 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 CD 0C 7E [18:13:24]RasterBufferAndPrint [18:13:24]line [18:13:24]line [18:13:24]line [18:13:24]line [18:13:24]line [18:13:24]written 0, free lines is 3284 [18:13:24]MH_Cut [18:13:24]Write to MH i2c: D1 01 00 A0 05 01 77 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: D1 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: D1 01 00 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: D1 01 00 A0 05 00 76 [18:13:24]Write to MH i2c: 01 00 00 A1 05 A6 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:25]Connected sock=11 [18:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 C0 81 08 01 50 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA 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 AE 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 8D 00 00 00 F4 03 04 00 43 A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 42 01 00 35 04 06 00 A0 3E C4 A4 5B C5 00 E2 9D E7 8C 64 A0 ED [18:13:25]*** Cut start [18:13:25]*** Partial cut [18:13:25]*** CUTSNS_PIN = 1 [18:13:25]*** CUTSNS_PIN = 0 [18:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 87 F7 47 00 D7 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 00 42 01 00 F4 03 04 00 7D 4A 12 67 B6 04 01 00 00 AB 10 DA F1 38 5B 76 C9 [18:13:25]CommunicateWithHost err = 0 [18:13:25]CheckOFDResponse [18:13:25]1017 (14) - 77093643461234 [18:13:25]1041 (16) - 0000000000871843 [18:13:25]1040 (4) - 82432 [18:13:25]1012 (4) - 18.10.2024 11:46 [18:13:25]1206 (1) - 0 [18:13:25]OFD Sender: Remove packet 82432 [18:13:25]ProducePacketName [18:13:25]name=ofd_packets/00082432 [18:13:25]NVStorageDeleteData [18:13:25]*** Brake cut motor [18:13:26]Read from MH i2c: 01 [18:13:26]MH_I2C_Read... [18:13:26]*** Stop cut motor [18:13:26]*** Cut end [18:13:26]Read from MH i2c: 01 07 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 FF 0F BB [18:13:26]process_action close_receipt done [18:13:26]requested_data is exist [18:13:26]produce_requested_data [18:13:26]requested_item fm.sn is exist - process it [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 11 00 00 [18:13:26]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]OFD Sender: No OFD packet to send [18:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 17 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 73 [18:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:13:26]wFMCommunicate OK [18:13:26]requested_item fd.num is exist - process it [18:13:26]SAM_PROTO_GetFieldsCounters [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 13 00 00 [18:13:26]Write to MH i2c: E2 08 00 A3 05 80 13 00 00 00 00 00 00 24 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 62 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 62 00 A3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 00 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 00 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_GetFieldsCounters done [18:13:26]requested_item shift.num is exist - process it [18:13:26]requested_item shift.opened is exist - process it [18:13:26]req_shift_opened [18:13:26]FM_GetShiftState [18:13:26]SAM_PROTO_GetShiftState [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 13 01 00 [18:13:26]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0E 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F8 [18:13:26]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_GetShiftState done [18:13:26]FM_GetShiftState done [18:13:26]req_shift_opened done [18:13:26]requested_item shift.open_date is exist - process it [18:13:26]req_shift_open_date [18:13:26]req_shift_open_date done [18:13:26]produce_requested_data done [18:13:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82432,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:13:26]process_action_free close_receipt [18:13:26]json_value_free [18:13:26]json_value_free done [18:13:26]process_json_proto returns [18:13:26]Send response to host [18:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82432,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:13:26]free response buf [18:13:26]execute_script done [18:13:26]execute_script returns [18:13:26]free content buf [18:13:26]Sock 7.Close socket [18:13:26]Sock 7.Thread stoped [18:13:27]recv_with_timeout no data received [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:55]recv_with_timeout no data received [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:13]accept exits with 9 [18:16:13]New connection [18:16:13]New thread 3067174244 created [18:16:13]Thread 3067317604 joined [18:16:13]Waiting for new connection... [18:16:13] Sock 9.Parse request [18:16:13]Sock 9.Check first char [18:16:13]Sock 9.First char is OK [18:16:13]request: POST /json_proto HTTP/1.0 [18:16:13]Method: POST [18:16:13]URL: /json_proto [18:16:13]Method is POST - this is cgi request [18:16:13]url: /json_proto [18:16:13]query_string will be loaded in cgi processing [18:16:13]execute_cgi json_proto POST (null) [18:16:13]execute_cgi path=json_proto method=POST [18:16:13]POST find Content-Length [18:16:13]Host: 172.17.44.67:8080 [18:16:13]Content-Length: 687 [18:16:13]Content-Type: application/json [18:16:13] [18:16:13]POST finish read [18:16:13]Found Content-Length = 687 [18:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:13]execute_script... [18:16: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)918926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:13]POST & json_proto [18:16:13]process_json_proto [18:16:13]json parsed OK: [18:16:13]protocol is kg_v1.0 [18:16:13]action value=close_receipt [18:16:13]process_action close_receipt [18:16:13]cmd_close_receipt [18:16:13]MH_GetDate [18:16:13]Write to MH i2c: F0 00 00 A5 05 99 [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: F0 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: F0 09 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: F0 09 00 A5 05 00 EE A5 12 67 F1 C7 6B 64 35 [18:16:13]GetLastDocTimeStamp 1729275203 [18:16:13]current date 1729275374 [18:16:13]FM_GetShiftState [18:16:13]SAM_PROTO_GetShiftState [18:16:13]wFMCommunicate request_size=4 [18:16:13]MH_SAM_APDU [18:16:13]CAPDU: 80 13 01 00 [18:16:13]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [18:16:13]Write i2c OK [18:16:13]MH_I2C_Read... [18:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:13]Read from MH i2c: E2 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 0E 00 [18:16:13]MH_I2C_Read... [18:16:13]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FA [18:16:13]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:16:13]wFMCommunicate OK [18:16:13]SAM_PROTO_GetShiftState done [18:16:13]FM_GetShiftState done [18:16:13]opened in 1729212319 [18:16:13]opened+sec_in_day 1729298719 [18:16:13]quantity*price = 100050 [18:16:13]sum+1 = 100052 [18:16:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 142 18.10.2024 18:16 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82433 ФПД: 176607899429747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181614&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82433&fm=176607899429747&tin=02508201610067®Number=0000000000091680&sum=100000 [18:16:14]StoreToDocumentArchive [18:16:14]shift 526 fd 82433 [18:16:14]save to /storage/0526/doc_00082433 [18:16:14]save last doc name /storage/0526/doc_00082433 to /storage/kkm_last_doc_name [18:16:14]save OK [18:16:14]Clear old archive folders... [18:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:16:14]tlvbuf is 00659CB0 [18:16:14]SAM_PROTO_ClearQueue [18:16:14]wFMCommunicate request_size=4 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 09 00 00 [18:16:14]Write to MH i2c: E2 08 00 B3 05 80 09 00 00 00 00 00 00 2A [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:14]Read from MH i2c: E2 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 03 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [18:16:14]RAPDU: 90 00 [18:16:14]wFMCommunicate OK [18:16:14]SAM_PROTO_ClearQueue done [18:16:14]KKMCreateOFDPacket [18:16:14]OFDProtocolAddRootSTLVToBuf [18:16:14]FM_MakeSignedData [18:16:14]FM_MakeSignedData [18:16:14]SAM_PROTO_SignData [18:16:14]wFMCommunicate request_size=4 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 0D 01 02 [18:16:14]Write to MH i2c: E2 08 00 B4 05 80 0D 01 02 00 00 00 00 32 [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:14]Read from MH i2c: E2 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 03 00 [18:16:14]MH_I2C_Read... [18:16:14]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [18:16:14]RAPDU: 90 00 [18:16:14]wFMCommunicate OK [18:16:14]wFMCommunicate request_size=255 [18:16:14]MH_SAM_APDU [18:16:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EE A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 42 01 00 35 04 06 00 [18:16:14]Write to MH i2c: E2 02 01 B5 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EE A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 42 01 00 35 04 06 00 00 00 8B [18:16:14]Write i2c OK [18:16:14]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [18:16:15]RAPDU: 90 00 [18:16:15]wFMCommunicate OK [18:16:15]wFMCommunicate request_size=11 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 0D 02 02 06 A0 9F BB 1C 2B 73 [18:16:15]Write to MH i2c: E2 0E 00 B6 05 80 0D 02 02 06 00 A0 9F BB 1C 2B 73 00 00 F5 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [18:16:15]RAPDU: 90 00 [18:16:15]wFMCommunicate OK [18:16:15]wFMCommunicate request_size=4 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 0D 03 02 [18:16:15]Write to MH i2c: E2 08 00 B7 05 80 0D 03 02 00 00 00 00 37 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 0B 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 0B 00 B7 05 00 2F DF 87 51 79 E1 6E AD 90 00 93 [18:16:15]RAPDU: 2F DF 87 51 79 E1 6E AD 90 00 [18:16:15]wFMCommunicate OK [18:16:15]SAM_PROTO_SignData done [18:16:15]FM_MakeSignedData done [18:16:15]CreateOFDProtocolMessage [18:16:15]wFMCommunicate request_size=4 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 11 00 00 [18:16:15]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 17 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 89 [18:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:16:15]wFMCommunicate OK [18:16:15]CreateOFDProtocolMessage done [18:16:15]OFDSenderStorePacket 82433 [18:16:15]StoreOFDPacket docnum=82433 [18:16:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 04 16 08 01 3C E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EE A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 42 01 00 35 04 06 00 A0 9F BB 1C 2B 73 2F DF 87 51 79 E1 6E AD [18:16:15]CheckFolder [18:16:15]dirname=/storage/ofd_packets [18:16:15]CheckFolder done [18:16:15]ProducePacketName [18:16:15]name=ofd_packets/00082433 [18:16:15]NVStorageSaveData ofd_packets/00082433 [18:16:15]File name is /storage/ofd_packets/00082433 [18:16:15]Write 302 bytes [18:16:15]NVStorageSaveData done [18:16:15]OFDSenderStorePacket done [18:16:15]KKMCreateOFDPacket done [18:16:15]NVStorageSaveData kkm_last_timestamp [18:16:15]File name is /storage/kkm_last_timestamp [18:16:15]Write 4 bytes [18:16:15]NVStorageSaveData done [18:16:15]ExternCall_PrintAddStr [18:16:15]wPrintStart [18:16:15]Write to MH i2c: 01 00 00 B9 05 BE [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [18:16:15]RasterBufferAndPrint [18:16:15]line Счет N : (1)918926 [18:16:15]line ИНН: 02508201610067 [18:16:15]line Контрольно-Кассовый Чек [18:16:15]line ПРОДАЖА [18:16:15]line ТРК (МРК, ГНК) : 31 [18:16:15]line Товар: 2710194210 [18:16:15]line ДТ(л)-К-5 [18:16:15]line 13.130 * 76.20 [18:16:15]line = 1000.51 [18:16:15]line НДС 12% НСП 1% [18:16:15]line > о реализуемом товаре [18:16:15]line ОКРУГЛЕНИЕ: -0.51 [18:16:15]line ИТОГО: 1000.00 [18:16:15]line Внесено: 1000.00 [18:16:15]line СДАЧА: 0.00 [18:16:15]line НСП 1% : 8.85 [18:16:15]line НДС 12% : 106.25 [18:16:15]line Наличными: 1000.00 [18:16:15]line Безнал.: 0.00 [18:16:15]line Место: АЗС № 114 "Партнер Нефть" [18:16:15]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:16:15]line СНО: Общий режим [18:16:15]line Чек 142 18.10.2024 18:16 [18:16:15]line Смена: 526 ФФД: 1.0 [18:16:15]line ЗНМ: 0300000086 [18:16:15]line РНМ: 0000000000091680 [18:16:15]line Версия ККМ: 001 [18:16:15]line ФМ: 0000000000871843 [18:16:15]line ФД: 82433 [18:16:15]line ФПД: 176607899429747 [18:16:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181614&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82433&fm=176607899429747&tin=02508201610067®Number=0000000000091680&sum=100000 [18:16:15]OFD Sender: Processing packet 82433 [packets to send 254, broken 253] [18:16:15]ProducePacketName [18:16:15]name=ofd_packets/00082433 [18:16:15]OFD Sender: To server: pG, [18:16:15]CommunicateWithHost lk.salyk.kg:30040 [18:16:15]ConnectInit lk.salyk.kg [18:16:15]written 0, free lines is 4095 [18:16:15]Write to MH i2c: 01 00 00 E4 05 E9 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 D4 0C D0 [18:16:15]RasterBufferAndPrint [18:16:15]line [18:16:15]line [18:16:15]line [18:16:15]line [18:16:15]line [18:16:15]written 0, free lines is 3288 [18:16:15]MH_Cut [18:16:15]Write to MH i2c: D1 01 00 EB 05 01 C2 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: D1 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: D1 01 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: D1 01 00 EB 05 00 C1 [18:16:15]Write to MH i2c: 01 00 00 EC 05 F1 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:16]*** Cut start [18:16:16]*** Partial cut [18:16:16]*** CUTSNS_PIN = 1 [18:16:16]*** CUTSNS_PIN = 0 [18:16:17]*** Brake cut motor [18:16:17]Read from MH i2c: 01 [18:16:17]MH_I2C_Read... [18:16:17]*** Stop cut motor [18:16:17]*** Cut end [18:16:17]Read from MH i2c: 01 07 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [18:16:17]process_action close_receipt done [18:16:17]requested_data is exist [18:16:17]produce_requested_data [18:16:17]requested_item fm.sn is exist - process it [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 11 00 00 [18:16:17]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 17 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BE [18:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:16:17]wFMCommunicate OK [18:16:17]requested_item fd.num is exist - process it [18:16:17]SAM_PROTO_GetFieldsCounters [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 13 00 00 [18:16:17]Write to MH i2c: E2 08 00 EE 05 80 13 00 00 00 00 00 00 6F [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 62 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 62 00 EE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 01 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [18:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 01 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:17]wFMCommunicate OK [18:16:17]SAM_PROTO_GetFieldsCounters done [18:16:17]requested_item shift.num is exist - process it [18:16:17]requested_item shift.opened is exist - process it [18:16:17]req_shift_opened [18:16:17]FM_GetShiftState [18:16:17]SAM_PROTO_GetShiftState [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 13 01 00 [18:16:17]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 0E 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 43 [18:16:17]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:16:17]wFMCommunicate OK [18:16:17]SAM_PROTO_GetShiftState done [18:16:17]FM_GetShiftState done [18:16:17]req_shift_opened done [18:16:17]requested_item shift.open_date is exist - process it [18:16:17]req_shift_open_date [18:16:17]req_shift_open_date done [18:16:17]produce_requested_data done [18:16:17]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82433,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:16:17]process_action_free close_receipt [18:16:17]json_value_free [18:16:17]json_value_free done [18:16:17]process_json_proto returns [18:16:17]Send response to host [18:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82433,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:16:17]free response buf [18:16:17]execute_script done [18:16:17]execute_script returns [18:16:17]free content buf [18:16:17]Sock 9.Close socket [18:16:17]Sock 9.Thread stoped [18:16:20]ConnectInit Can't take IP for lk.salyk.kg [18:16:20]CommunicateWithHost connect error [18:16:20]CommunicateWithHost err = -1 [18:16:20]OFD Sender: Server communicate error [18:16:25]OFD Sender: Processing packet 82433 [packets to send 254, broken 253] [18:16:25]ProducePacketName [18:16:25]name=ofd_packets/00082433 [18:16:25]OFD Sender: To server: pG, [18:16:25]CommunicateWithHost lk.salyk.kg:30040 [18:16:25]ConnectInit lk.salyk.kg [18:16:30]ConnectInit Can't take IP for lk.salyk.kg [18:16:30]CommunicateWithHost connect error [18:16:30]CommunicateWithHost err = -1 [18:16:30]OFD Sender: Server communicate error [18:16:35]OFD Sender: Processing packet 82433 [packets to send 254, broken 253] [18:16:35]ProducePacketName [18:16:35]name=ofd_packets/00082433 [18:16:35]OFD Sender: To server: pG, [18:16:35]CommunicateWithHost lk.salyk.kg:30040 [18:16:35]ConnectInit lk.salyk.kg [18:16:35]Connected sock=9 [18:16:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 04 16 08 01 3C E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 EE A5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 42 01 00 35 04 06 00 A0 9F BB 1C 2B 73 2F DF 87 51 79 E1 6E AD [18:16:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B6 D4 47 00 75 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 01 42 01 00 F4 03 04 00 3C 4B 12 67 B6 04 01 00 00 71 F5 8B 02 AF F6 D1 0A [18:16:36]CommunicateWithHost err = 0 [18:16:36]CheckOFDResponse [18:16:36]1017 (14) - 77093643461234 [18:16:36]1041 (16) - 0000000000871843 [18:16:36]1040 (4) - 82433 [18:16:36]1012 (4) - 18.10.2024 11:49 [18:16:36]1206 (1) - 0 [18:16:36]OFD Sender: Remove packet 82433 [18:16:36]ProducePacketName [18:16:36]name=ofd_packets/00082433 [18:16:36]NVStorageDeleteData [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:10]recv_with_timeout no data received [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20: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 7 [18:21:45]New connection [18:21:45]New thread 3067317604 created [18:21:45]Thread 3067174244 joined [18:21:45]Waiting for new connection... [18:21:45] Sock 7.Parse request [18:21:45]Sock 7.Check first char [18:21:45]Sock 7.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.44.67:8080 [18:21:45]Content-Length: 803 [18:21:45]Content-Type: application/json [18:21:45] [18:21:45]POST finish read [18:21:45]Found Content-Length = 803 [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)918927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "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)918927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "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 F0 05 E4 [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 F0 05 00 3A A7 12 67 F1 C7 6B 64 CE [18:21:45]GetLastDocTimeStamp 1729275374 [18:21:45]current date 1729275706 [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 F1 05 80 13 01 00 00 00 00 00 73 [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 F1 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 45 [18:21:45]RAPDU: 09 00 01 9F AF 11 67 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 1729212319 [18:21:45]opened+sec_in_day 1729298719 [18:21:45]quantity*price = 100015 [18:21:45]sum+1 = 100017 [18:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 143 18.10.2024 18:21 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82434 ФПД: 269182958350944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T182146&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82434&fm=269182958350944&tin=02508201610067®Number=0000000000091680&sum=100016 [18:21:46]StoreToDocumentArchive [18:21:46]shift 526 fd 82434 [18:21:46]save to /storage/0526/doc_00082434 [18:21:46]save last doc name /storage/0526/doc_00082434 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 00670B70 [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 FE 05 80 09 00 00 00 00 00 00 75 [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 FE 05 00 90 00 77 [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 FF 05 80 0D 01 02 00 00 00 00 7D [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 FF 05 00 90 00 78 [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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 42 01 00 35 04 06 00 F4 [18:21:46]Write to MH i2c: E2 02 01 00 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 42 01 00 35 04 06 00 F4 00 00 56 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 02 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 00 06 00 90 00 7A [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]wFMCommunicate request_size=10 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 0D 02 02 05 D2 0A 9C B2 60 [18:21:46]Write to MH i2c: E2 0D 00 01 06 80 0D 02 02 05 00 D2 0A 9C B2 60 00 00 15 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 02 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 01 06 00 90 00 7B [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 0D 03 02 [18:21:46]Write to MH i2c: E2 08 00 02 06 80 0D 03 02 00 00 00 00 83 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 0B 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 0B 00 02 06 00 F9 37 03 A8 9C 9C 5B 9F 90 00 91 [18:21:46]RAPDU: F9 37 03 A8 9C 9C 5B 9F 90 00 [18:21:46]wFMCommunicate OK [18:21:46]SAM_PROTO_SignData done [18:21:46]FM_MakeSignedData done [18:21:46]CreateOFDProtocolMessage [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 11 00 00 [18:21:46]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 17 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 17 00 03 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D5 [18:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:21:46]wFMCommunicate OK [18:21:46]CreateOFDProtocolMessage done [18:21:46]OFDSenderStorePacket 82434 [18:21:46]StoreOFDPacket docnum=82434 [18:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 4D 19 07 01 4C 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 42 01 00 35 04 06 00 F4 D2 0A 9C B2 60 F9 37 03 A8 9C 9C 5B 9F [18:21:46]CheckFolder [18:21:46]dirname=/storage/ofd_packets [18:21:46]CheckFolder done [18:21:46]ProducePacketName [18:21:46]name=ofd_packets/00082434 [18:21:46]NVStorageSaveData ofd_packets/00082434 [18:21:46]File name is /storage/ofd_packets/00082434 [18:21:46]Write 301 bytes [18:21:46]NVStorageSaveData done [18:21:46]OFDSenderStorePacket done [18:21:46]KKMCreateOFDPacket done [18:21:46]NVStorageSaveData kkm_last_timestamp [18:21:46]File name is /storage/kkm_last_timestamp [18:21:46]Write 4 bytes [18:21:46]NVStorageSaveData done [18:21:46]ExternCall_PrintAddStr [18:21:46]wPrintStart [18:21:46]Write to MH i2c: 01 00 00 04 06 0A [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 04 06 00 00 00 00 00 FF 0F 1F [18:21:46]RasterBufferAndPrint [18:21:46]line Счет N : (1)918927 [18:21:46]line ИНН: 02508201610067 [18:21:46]line Контрольно-Кассовый Чек [18:21:46]line ПРОДАЖА [18:21:46]line ТРК (МРК, ГНК) : 22 [18:21:46]line Товар: 2710124130 [18:21:46]line Аи-92-К-4 [18:21:46]line 14.950 * 66.90 [18:21:46]line = 1000.16 [18:21:46]line НДС 12% НСП 1% [18:21:46]line > о реализуемом товаре [18:21:46]line ИТОГО: 1000.16 [18:21:46]line НСП 1% : 8.85 [18:21:46]line НДС 12% : 106.21 [18:21:46]line Наличными: 0.00 [18:21:46]line Безнал.: 1000.16 [18:21:46]line Место: АЗС № 114 "Партнер Нефть" [18:21:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:21:46]line СНО: Общий режим [18:21:46]line Чек 143 18.10.2024 18:21 [18:21:46]line Смена: 526 ФФД: 1.0 [18:21:46]line ЗНМ: 0300000086 [18:21:46]line РНМ: 0000000000091680 [18:21:46]line Версия ККМ: 001 [18:21:46]line Платежная система: O! деньги [18:21:46]line ФМ: 0000000000871843 [18:21:46]line ФД: 82434 [18:21:46]line ФПД: 269182958350944 [18:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T182146&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82434&fm=269182958350944&tin=02508201610067®Number=0000000000091680&sum=100016 [18:21:47]OFD Sender: Processing packet 82434 [packets to send 254, broken 253] [18:21:47]ProducePacketName [18:21:47]name=ofd_packets/00082434 [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]Write to MH i2c: 01 00 00 2E 06 34 [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 2E 06 00 00 00 00 00 DF 0C 26 [18:21:47]RasterBufferAndPrint [18:21:47]line [18:21:47]line [18:21:47]line [18:21:47]line [18:21:47]line [18:21:47]written 0, free lines is 3302 [18:21:47]MH_Cut [18:21:47]Write to MH i2c: D1 01 00 35 06 01 0D [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: D1 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: D1 01 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: D1 01 00 35 06 00 0C [18:21:47]Write to MH i2c: 01 00 00 36 06 3C [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:48]*** Cut start [18:21:48]*** Partial cut [18:21:48]*** CUTSNS_PIN = 1 [18:21:48]*** CUTSNS_PIN = 0 [18:21:48]*** 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 36 06 00 00 00 00 00 FF 0F 51 [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 37 06 80 11 00 00 00 00 00 00 B7 [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 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 09 [18:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 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 38 06 80 13 00 00 00 00 00 00 BA [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 38 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 02 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 02 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 39 06 80 13 01 00 00 00 00 00 BC [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 39 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8E [18:21:49]RAPDU: 09 00 01 9F AF 11 67 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":"0000000000871843","fd.num":82434,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [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":"0000000000871843","fd.num":82434,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [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 7.Close socket [18:21:49]Sock 7.Thread stoped [18:21:49]Connected sock=11 [18: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 31 38 34 33 0F 01 00 00 4D 19 07 01 4C 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 42 01 00 35 04 06 00 F4 D2 0A 9C B2 60 F9 37 03 A8 9C 9C 5B 9F [18:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 60 02 47 00 CD F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 02 42 01 00 F4 03 04 00 76 4C 12 67 B6 04 01 00 00 5A E8 EA 5B CF 39 A5 A2 [18:21:50]CommunicateWithHost err = 0 [18:21:50]CheckOFDResponse [18:21:50]1017 (14) - 77093643461234 [18:21:50]1041 (16) - 0000000000871843 [18:21:50]1040 (4) - 82434 [18:21:50]1012 (4) - 18.10.2024 11:54 [18:21:50]1206 (1) - 0 [18:21:50]OFD Sender: Remove packet 82434 [18:21:50]ProducePacketName [18:21:50]name=ofd_packets/00082434 [18:21:50]NVStorageDeleteData [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:05]accept exits with 9 [18:22:05]New connection [18:22:05]New thread 3067174244 created [18:22:05]Thread 3067317604 joined [18:22:05]Waiting for new connection... [18:22:05] Sock 9.Parse request [18:22:05]Sock 9.Check first char [18:22:05]Sock 9.First char is OK [18:22:05]request: POST /json_proto HTTP/1.0 [18:22:05]Method: POST [18:22:05]URL: /json_proto [18:22:05]Method is POST - this is cgi request [18:22:05]url: /json_proto [18:22:05]query_string will be loaded in cgi processing [18:22:05]execute_cgi json_proto POST (null) [18:22:05]execute_cgi path=json_proto method=POST [18:22:05]POST find Content-Length [18:22:05]Host: 172.17.44.67:8080 [18:22:05]Content-Length: 766 [18:22:05]Content-Type: application/json [18:22:05] [18:22:05]POST finish read [18:22:05]Found Content-Length = 766 [18:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:05]execute_script... [18:22: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)918928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:05]POST & json_proto [18:22:05]process_json_proto [18:22:05]json parsed OK: [18:22:05]protocol is kg_v1.0 [18:22:05]action value=close_receipt [18:22:05]process_action close_receipt [18:22:05]cmd_close_receipt [18:22:05]MH_GetDate [18:22:05]Write to MH i2c: F0 00 00 3A 06 2F [18:22:05]Write i2c OK [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 09 00 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: F0 09 00 3A 06 00 4E A7 12 67 F1 C7 6B 64 2D [18:22:05]GetLastDocTimeStamp 1729275706 [18:22:05]current date 1729275726 [18:22:05]FM_GetShiftState [18:22:05]SAM_PROTO_GetShiftState [18:22:05]wFMCommunicate request_size=4 [18:22:05]MH_SAM_APDU [18:22:05]CAPDU: 80 13 01 00 [18:22:05]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [18:22:05]Write i2c OK [18:22:05]MH_I2C_Read... [18:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:05]Read from MH i2c: E2 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: E2 0E 00 [18:22:05]MH_I2C_Read... [18:22:05]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 90 [18:22:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:22:05]wFMCommunicate OK [18:22:05]SAM_PROTO_GetShiftState done [18:22:05]FM_GetShiftState done [18:22:05]opened in 1729212319 [18:22:05]opened+sec_in_day 1729298719 [18:22:05]quantity*price = 50041 [18:22:05]sum+1 = 50042 [18:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 144 18.10.2024 18:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82435 ФПД: 233194652668974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T182206&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82435&fm=233194652668974&tin=02508201610067®Number=0000000000091680&sum=50041 [18:22:06]StoreToDocumentArchive [18:22:06]shift 526 fd 82435 [18:22:06]save to /storage/0526/doc_00082435 [18:22:06]save last doc name /storage/0526/doc_00082435 to /storage/kkm_last_doc_name [18:22:06]save OK [18:22:06]Clear old archive folders... [18:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:06]tlvbuf is 006735D0 [18:22:06]SAM_PROTO_ClearQueue [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 09 00 00 [18:22:06]Write to MH i2c: E2 08 00 48 06 80 09 00 00 00 00 00 00 C0 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]SAM_PROTO_ClearQueue done [18:22:06]KKMCreateOFDPacket [18:22:06]OFDProtocolAddRootSTLVToBuf [18:22:06]FM_MakeSignedData [18:22:06]FM_MakeSignedData [18:22:06]SAM_PROTO_SignData [18:22:06]wFMCommunicate request_size=4 [18:22:06]MH_SAM_APDU [18:22:06]CAPDU: 80 0D 01 02 [18:22:06]Write to MH i2c: E2 08 00 49 06 80 0D 01 02 00 00 00 00 C8 [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:06]Read from MH i2c: E2 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 [18:22:06]MH_I2C_Read... [18:22:06]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [18:22:06]RAPDU: 90 00 [18:22:06]wFMCommunicate OK [18:22:06]wFMCommunicate request_size=255 [18:22:06]MH_SAM_APDU [18:22: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4E A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 42 01 00 35 04 06 00 D4 [18:22:06]Write to MH i2c: E2 02 01 4A 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4E A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 42 01 00 35 04 06 00 D4 00 00 CE [18:22:06]Write i2c OK [18:22:06]MH_I2C_Read... [18:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:07]Read from MH i2c: E2 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 03 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [18:22:07]RAPDU: 90 00 [18:22:07]wFMCommunicate OK [18:22:07]wFMCommunicate request_size=10 [18:22:07]MH_SAM_APDU [18:22:07]CAPDU: 80 0D 02 02 05 16 DC 6F 94 2E [18:22:07]Write to MH i2c: E2 0D 00 4B 06 80 0D 02 02 05 00 16 DC 6F 94 2E 00 00 F8 [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:07]Read from MH i2c: E2 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 03 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [18:22:07]RAPDU: 90 00 [18:22:07]wFMCommunicate OK [18:22:07]wFMCommunicate request_size=4 [18:22:07]MH_SAM_APDU [18:22:07]CAPDU: 80 0D 03 02 [18:22:07]Write to MH i2c: E2 08 00 4C 06 80 0D 03 02 00 00 00 00 CD [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:07]Read from MH i2c: E2 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 0B 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 0B 00 4C 06 00 A0 0F 98 4B 93 AE A9 FA 90 00 44 [18:22:07]RAPDU: A0 0F 98 4B 93 AE A9 FA 90 00 [18:22:07]wFMCommunicate OK [18:22:07]SAM_PROTO_SignData done [18:22:07]FM_MakeSignedData done [18:22:07]CreateOFDProtocolMessage [18:22:07]wFMCommunicate request_size=4 [18:22:07]MH_SAM_APDU [18:22:07]CAPDU: 80 11 00 00 [18:22:07]Write to MH i2c: E2 08 00 4D 06 80 11 00 00 00 00 00 00 CD [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:07]Read from MH i2c: E2 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 17 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: E2 17 00 4D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1F [18:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:22:07]wFMCommunicate OK [18:22:07]CreateOFDProtocolMessage done [18:22:07]OFDSenderStorePacket 82435 [18:22:07]StoreOFDPacket docnum=82435 [18:22:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A3 1F 07 01 69 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4E A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 42 01 00 35 04 06 00 D4 16 DC 6F 94 2E A0 0F 98 4B 93 AE A9 FA [18:22:07]CheckFolder [18:22:07]dirname=/storage/ofd_packets [18:22:07]CheckFolder done [18:22:07]ProducePacketName [18:22:07]name=ofd_packets/00082435 [18:22:07]NVStorageSaveData ofd_packets/00082435 [18:22:07]File name is /storage/ofd_packets/00082435 [18:22:07]Write 301 bytes [18:22:07]NVStorageSaveData done [18:22:07]OFDSenderStorePacket done [18:22:07]KKMCreateOFDPacket done [18:22:07]NVStorageSaveData kkm_last_timestamp [18:22:07]File name is /storage/kkm_last_timestamp [18:22:07]Write 4 bytes [18:22:07]NVStorageSaveData done [18:22:07]ExternCall_PrintAddStr [18:22:07]wPrintStart [18:22:07]Write to MH i2c: 01 00 00 4E 06 54 [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 4E 06 00 00 00 00 00 FF 0F 69 [18:22:07]RasterBufferAndPrint [18:22:07]line Счет N : (1)918928 [18:22:07]line ИНН: 02508201610067 [18:22:07]line Контрольно-Кассовый Чек [18:22:07]line ПРОДАЖА [18:22:07]line ТРК (МРК, ГНК) : 11 [18:22:07]line Товар: 2710124130 [18:22:07]line Аи-92-К-4 [18:22:07]line 7.480 * 66.90 [18:22:07]line = 500.41 [18:22:07]line НДС 12% НСП 1% [18:22:07]line > о реализуемом товаре [18:22:07]line ИТОГО: 500.41 [18:22:07]line НСП 1% : 4.43 [18:22:07]line НДС 12% : 53.14 [18:22:07]line Наличными: 0.00 [18:22:07]line Безнал.: 500.41 [18:22:07]line Место: АЗС № 114 "Партнер Нефть" [18:22:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:22:07]line СНО: Общий режим [18:22:07]line Чек 144 18.10.2024 18:22 [18:22:07]line Смена: 526 ФФД: 1.0 [18:22:07]line ЗНМ: 0300000086 [18:22:07]line РНМ: 0000000000091680 [18:22:07]line Версия ККМ: 001 [18:22:07]line Платежная система: Mbank [18:22:07]line ФМ: 0000000000871843 [18:22:07]line ФД: 82435 [18:22:07]line ФПД: 233194652668974 [18:22:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T182206&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82435&fm=233194652668974&tin=02508201610067®Number=0000000000091680&sum=50041 [18:22:07]written 0, free lines is 4095 [18:22:07]OFD Sender: Processing packet 82435 [packets to send 254, broken 253] [18:22:07]ProducePacketName [18:22:07]name=ofd_packets/00082435 [18:22:07]OFD Sender: To server: pG, [18:22:07]CommunicateWithHost lk.salyk.kg:30040 [18:22:07]ConnectInit lk.salyk.kg [18:22:07]Write to MH i2c: 01 00 00 77 06 7D [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 FF 0C 8F [18:22:07]RasterBufferAndPrint [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]line [18:22:07]written 0, free lines is 3333 [18:22:07]MH_Cut [18:22:07]Write to MH i2c: D1 01 00 7E 06 01 56 [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 01 00 [18:22:07]MH_I2C_Read... [18:22:07]Read from MH i2c: D1 01 00 7E 06 00 55 [18:22:07]Write to MH i2c: 01 00 00 7F 06 85 [18:22:07]Write i2c OK [18:22:07]MH_I2C_Read... [18:22:07]Connected sock=11 [18:22:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A3 1F 07 01 69 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 4E A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 42 01 00 35 04 06 00 D4 16 DC 6F 94 2E A0 0F 98 4B 93 AE A9 FA [18:22:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 56 EC 47 00 BC 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 03 42 01 00 F4 03 04 00 88 4C 12 67 B6 04 01 00 00 BA 31 8F 30 EF 3A 04 0E [18:22:08]CommunicateWithHost err = 0 [18:22:08]CheckOFDResponse [18:22:08]1017 (14) - 77093643461234 [18:22:08]1041 (16) - 0000000000871843 [18:22:08]1040 (4) - 82435 [18:22:08]1012 (4) - 18.10.2024 11:54 [18:22:08]1206 (1) - 0 [18:22:08]OFD Sender: Remove packet 82435 [18:22:08]ProducePacketName [18:22:08]name=ofd_packets/00082435 [18:22:08]NVStorageDeleteData [18:22:08]*** Cut start [18:22:08]*** Partial cut [18:22:08]*** CUTSNS_PIN = 1 [18:22:08]*** CUTSNS_PIN = 0 [18:22:08]OFD Sender: No OFD packet to send [18:22:08]*** Brake cut motor [18:22:09]Read from MH i2c: 01 [18:22:09]MH_I2C_Read... [18:22:09]*** Stop cut motor [18:22:09]*** Cut end [18:22:09]Read from MH i2c: 01 07 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 FF 0F 9A [18:22:09]process_action close_receipt done [18:22:09]requested_data is exist [18:22:09]produce_requested_data [18:22:09]requested_item fm.sn is exist - process it [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 11 00 00 [18:22:09]Write to MH i2c: E2 08 00 80 06 80 11 00 00 00 00 00 00 00 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 17 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 17 00 80 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 52 [18:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:22:09]wFMCommunicate OK [18:22:09]requested_item fd.num is exist - process it [18:22:09]SAM_PROTO_GetFieldsCounters [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 13 00 00 [18:22:09]Write to MH i2c: E2 08 00 81 06 80 13 00 00 00 00 00 00 03 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 62 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 62 00 81 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 03 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [18:22:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 03 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_GetFieldsCounters done [18:22:09]requested_item shift.num is exist - process it [18:22:09]requested_item shift.opened is exist - process it [18:22:09]req_shift_opened [18:22:09]FM_GetShiftState [18:22:09]SAM_PROTO_GetShiftState [18:22:09]wFMCommunicate request_size=4 [18:22:09]MH_SAM_APDU [18:22:09]CAPDU: 80 13 01 00 [18:22:09]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [18:22:09]Write i2c OK [18:22:09]MH_I2C_Read... [18:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:09]Read from MH i2c: E2 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0E 00 [18:22:09]MH_I2C_Read... [18:22:09]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D7 [18:22:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:22:09]wFMCommunicate OK [18:22:09]SAM_PROTO_GetShiftState done [18:22:09]FM_GetShiftState done [18:22:09]req_shift_opened done [18:22:09]requested_item shift.open_date is exist - process it [18:22:09]req_shift_open_date [18:22:09]req_shift_open_date done [18:22:09]produce_requested_data done [18:22:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82435,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:22:09]process_action_free close_receipt [18:22:09]json_value_free [18:22:09]json_value_free done [18:22:09]process_json_proto returns [18:22:09]Send response to host [18:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82435,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:22:09]free response buf [18:22:09]execute_script done [18:22:09]execute_script returns [18:22:09]free content buf [18:22:09]Sock 9.Close socket [18:22:09]Sock 9.Thread stoped [18:22:13]OFD Sender: No OFD packet to send [18:22:18]recv_with_timeout no data received [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:05]recv_with_timeout no data received [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:20]accept exits with 10 [18:23:20]New connection [18:23:20]New thread 3067317604 created [18:23:20]Thread 3067174244 joined [18:23:20]Waiting for new connection... [18:23:20] Sock 10.Parse request [18:23:20]Sock 10.Check first char [18:23:20]Sock 10.First char is OK [18:23:20]request: POST /json_proto HTTP/1.0 [18:23:20]Method: POST [18:23:20]URL: /json_proto [18:23:20]Method is POST - this is cgi request [18:23:20]url: /json_proto [18:23:20]query_string will be loaded in cgi processing [18:23:20]execute_cgi json_proto POST (null) [18:23:20]execute_cgi path=json_proto method=POST [18:23:20]POST find Content-Length [18:23:20]Host: 172.17.44.67:8080 [18:23:20]Content-Length: 677 [18:23:20]Content-Type: application/json [18:23:20] [18:23:20]POST finish read [18:23:20]Found Content-Length = 677 [18:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:20]execute_script... [18:23:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:20]POST & json_proto [18:23:20]process_json_proto [18:23:20]json parsed OK: [18:23:20]protocol is kg_v1.0 [18:23:20]action value=close_receipt [18:23:20]process_action close_receipt [18:23:20]cmd_close_receipt [18:23:20]MH_GetDate [18:23:20]Write to MH i2c: F0 00 00 83 06 78 [18:23:20]Write i2c OK [18:23:20]MH_I2C_Read... [18:23:20]Read from MH i2c: F0 [18:23:20]MH_I2C_Read... [18:23:20]Read from MH i2c: F0 09 00 [18:23:20]MH_I2C_Read... [18:23:20]Read from MH i2c: F0 09 00 83 06 00 9A A7 12 67 F1 C7 6B 64 C2 [18:23:20]GetLastDocTimeStamp 1729275726 [18:23:20]current date 1729275802 [18:23:20]FM_GetShiftState [18:23:20]SAM_PROTO_GetShiftState [18:23:20]wFMCommunicate request_size=4 [18:23:20]MH_SAM_APDU [18:23:20]CAPDU: 80 13 01 00 [18:23:20]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [18:23:20]Write i2c OK [18:23:20]MH_I2C_Read... [18:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:21]Read from MH i2c: E2 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: E2 0E 00 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D9 [18:23:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:23:21]wFMCommunicate OK [18:23:21]SAM_PROTO_GetShiftState done [18:23:21]FM_GetShiftState done [18:23:21]opened in 1729212319 [18:23:21]opened+sec_in_day 1729298719 [18:23:21]quantity*price = 50041 [18:23:21]sum+1 = 50042 [18:23:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 145 18.10.2024 18:23 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82436 ФПД: 140185968301812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T182322&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82436&fm=140185968301812&tin=02508201610067®Number=0000000000091680&sum=50000 [18:23:22]StoreToDocumentArchive [18:23:22]shift 526 fd 82436 [18:23:22]save to /storage/0526/doc_00082436 [18:23:22]save last doc name /storage/0526/doc_00082436 to /storage/kkm_last_doc_name [18:23:22]save OK [18:23:22]Clear old archive folders... [18:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:22]tlvbuf is 005D6970 [18:23:22]SAM_PROTO_ClearQueue [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 09 00 00 [18:23:22]Write to MH i2c: E2 08 00 91 06 80 09 00 00 00 00 00 00 09 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]SAM_PROTO_ClearQueue done [18:23:22]KKMCreateOFDPacket [18:23:22]OFDProtocolAddRootSTLVToBuf [18:23:22]FM_MakeSignedData [18:23:22]FM_MakeSignedData [18:23:22]SAM_PROTO_SignData [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 01 02 [18:23:22]Write to MH i2c: E2 08 00 92 06 80 0D 01 02 00 00 00 00 11 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]wFMCommunicate request_size=255 [18:23:22]MH_SAM_APDU [18:23: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 9A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 04 42 01 00 35 04 06 00 7F [18:23:22]Write to MH i2c: E2 02 01 93 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 9A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 04 42 01 00 35 04 06 00 7F 00 00 BE [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]wFMCommunicate request_size=10 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 02 02 05 7F 96 D7 D6 F4 [18:23:22]Write to MH i2c: E2 0D 00 94 06 80 0D 02 02 05 00 7F 96 D7 D6 F4 00 00 D4 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 03 02 [18:23:22]Write to MH i2c: E2 08 00 95 06 80 0D 03 02 00 00 00 00 16 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 0B 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 0B 00 95 06 00 70 F4 4E 7E 93 68 16 5D 90 00 B5 [18:23:22]RAPDU: 70 F4 4E 7E 93 68 16 5D 90 00 [18:23:22]wFMCommunicate OK [18:23:22]SAM_PROTO_SignData done [18:23:22]FM_MakeSignedData done [18:23:22]CreateOFDProtocolMessage [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 11 00 00 [18:23:22]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 17 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 68 [18:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:23:22]wFMCommunicate OK [18:23:22]CreateOFDProtocolMessage done [18:23:22]OFDSenderStorePacket 82436 [18:23:22]StoreOFDPacket docnum=82436 [18:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E6 A6 07 01 E5 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 9A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 04 42 01 00 35 04 06 00 7F 7F 96 D7 D6 F4 70 F4 4E 7E 93 68 16 5D [18:23:22]CheckFolder [18:23:22]dirname=/storage/ofd_packets [18:23:22]CheckFolder done [18:23:22]ProducePacketName [18:23:22]name=ofd_packets/00082436 [18:23:22]NVStorageSaveData ofd_packets/00082436 [18:23:22]File name is /storage/ofd_packets/00082436 [18:23:22]Write 301 bytes [18:23:22]NVStorageSaveData done [18:23:22]OFDSenderStorePacket done [18:23:22]KKMCreateOFDPacket done [18:23:22]NVStorageSaveData kkm_last_timestamp [18:23:22]File name is /storage/kkm_last_timestamp [18:23:22]Write 4 bytes [18:23:22]NVStorageSaveData done [18:23:22]ExternCall_PrintAddStr [18:23:22]wPrintStart [18:23:22]Write to MH i2c: 01 00 00 97 06 9D [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: 01 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: 01 07 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 FF 0F B2 [18:23:22]RasterBufferAndPrint [18:23:22]line Счет N : (1)918929 [18:23:22]line ИНН: 02508201610067 [18:23:22]line Контрольно-Кассовый Чек [18:23:22]line ПРОДАЖА [18:23:22]line ТРК (МРК, ГНК) : 22 [18:23:22]line Товар: 2710124130 [18:23:22]line Аи-92-К-4 [18:23:22]line 7.480 * 66.90 [18:23:22]line = 500.41 [18:23:22]line НДС 12% НСП 1% [18:23:22]line > о реализуемом товаре [18:23:22]line ОКРУГЛЕНИЕ: -0.41 [18:23:22]line ИТОГО: 500.00 [18:23:22]line Внесено: 500.00 [18:23:22]line СДАЧА: 0.00 [18:23:22]line НСП 1% : 4.43 [18:23:22]line НДС 12% : 53.14 [18:23:22]line Наличными: 500.00 [18:23:22]line Безнал.: 0.00 [18:23:22]line Место: АЗС № 114 "Партнер Нефть" [18:23:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:23:22]line СНО: Общий режим [18:23:22]line Чек 145 18.10.2024 18:23 [18:23:22]line Смена: 526 ФФД: 1.0 [18:23:22]line ЗНМ: 0300000086 [18:23:22]line РНМ: 0000000000091680 [18:23:22]line Версия ККМ: 001 [18:23:22]line ФМ: 0000000000871843 [18:23:22]line ФД: 82436 [18:23:22]line ФПД: 140185968301812 [18:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T182322&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82436&fm=140185968301812&tin=02508201610067®Number=0000000000091680&sum=50000 [18:23:23]OFD Sender: Processing packet 82436 [packets to send 254, broken 253] [18:23:23]ProducePacketName [18:23:23]name=ofd_packets/00082436 [18:23:23]OFD Sender: To server: pG, [18:23:23]CommunicateWithHost lk.salyk.kg:30040 [18:23:23]ConnectInit lk.salyk.kg [18:23:23]written 0, free lines is 4095 [18:23:23]Write to MH i2c: 01 00 00 C2 06 C8 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 07 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 D8 0C B3 [18:23:23]RasterBufferAndPrint [18:23:23]line [18:23:23]line [18:23:23]line [18:23:23]line [18:23:23]line [18:23:23]written 0, free lines is 3296 [18:23:23]MH_Cut [18:23:23]Write to MH i2c: D1 01 00 C9 06 01 A1 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: D1 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: D1 01 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: D1 01 00 C9 06 00 A0 [18:23:23]Write to MH i2c: 01 00 00 CA 06 D0 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]Connected sock=9 [18:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E6 A6 07 01 E5 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 9A A7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 04 42 01 00 35 04 06 00 7F 7F 96 D7 D6 F4 70 F4 4E 7E 93 68 16 5D [18:23:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B7 B5 47 00 F8 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 04 42 01 00 F4 03 04 00 D4 4C 12 67 B6 04 01 00 00 82 BA 75 61 97 C0 3A 80 [18:23:24]CommunicateWithHost err = 0 [18:23:24]CheckOFDResponse [18:23:24]1017 (14) - 77093643461234 [18:23:24]1041 (16) - 0000000000871843 [18:23:24]1040 (4) - 82436 [18:23:24]1012 (4) - 18.10.2024 11:56 [18:23:24]1206 (1) - 0 [18:23:24]OFD Sender: Remove packet 82436 [18:23:24]ProducePacketName [18:23:24]name=ofd_packets/00082436 [18:23:24]NVStorageDeleteData [18:23:24]*** Cut start [18:23:24]*** Partial cut [18:23:24]*** CUTSNS_PIN = 1 [18:23:24]*** CUTSNS_PIN = 0 [18:23:24]*** Brake cut motor [18:23:24]OFD Sender: No OFD packet to send [18:23:24]Read from MH i2c: 01 [18:23:24]MH_I2C_Read... [18:23:24]*** Stop cut motor [18:23:24]*** Cut end [18:23:24]Read from MH i2c: 01 07 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 FF 0F E5 [18:23:24]process_action close_receipt done [18:23:24]requested_data is exist [18:23:24]produce_requested_data [18:23:24]requested_item fm.sn is exist - process it [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 11 00 00 [18:23:24]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9D [18:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:23:24]wFMCommunicate OK [18:23:24]requested_item fd.num is exist - process it [18:23:24]SAM_PROTO_GetFieldsCounters [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 13 00 00 [18:23:24]Write to MH i2c: E2 08 00 CC 06 80 13 00 00 00 00 00 00 4E [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:25]Read from MH i2c: E2 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 62 00 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 62 00 CC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 04 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [18:23:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 04 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:25]wFMCommunicate OK [18:23:25]SAM_PROTO_GetFieldsCounters done [18:23:25]requested_item shift.num is exist - process it [18:23:25]requested_item shift.opened is exist - process it [18:23:25]req_shift_opened [18:23:25]FM_GetShiftState [18:23:25]SAM_PROTO_GetShiftState [18:23:25]wFMCommunicate request_size=4 [18:23:25]MH_SAM_APDU [18:23:25]CAPDU: 80 13 01 00 [18:23:25]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [18:23:25]Write i2c OK [18:23:25]MH_I2C_Read... [18:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:25]Read from MH i2c: E2 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 0E 00 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 22 [18:23:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:23:25]wFMCommunicate OK [18:23:25]SAM_PROTO_GetShiftState done [18:23:25]FM_GetShiftState done [18:23:25]req_shift_opened done [18:23:25]requested_item shift.open_date is exist - process it [18:23:25]req_shift_open_date [18:23:25]req_shift_open_date done [18:23:25]produce_requested_data done [18:23:25]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82436,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:23:25]process_action_free close_receipt [18:23:25]json_value_free [18:23:25]json_value_free done [18:23:25]process_json_proto returns [18:23:25]Send response to host [18:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82436,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:23:25]free response buf [18:23:25]execute_script done [18:23:25]execute_script returns [18:23:25]free content buf [18:23:25]Sock 10.Close socket [18:23:25]Sock 10.Thread stoped [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:34]recv_with_timeout no data received [18:27:35]OFD Sender: No OFD packet to send [18:27:36]accept exits with 7 [18:27:36]New connection [18:27:36]New thread 3067174244 created [18:27:36]Thread 3067317604 joined [18:27:36]Waiting for new connection... [18:27:36] Sock 7.Parse request [18:27:36]Sock 7.Check first char [18:27:36]Sock 7.First char is OK [18:27:36]request: POST /json_proto HTTP/1.0 [18:27:36]Method: POST [18:27:36]URL: /json_proto [18:27:36]Method is POST - this is cgi request [18:27:36]url: /json_proto [18:27:36]query_string will be loaded in cgi processing [18:27:36]execute_cgi json_proto POST (null) [18:27:36]execute_cgi path=json_proto method=POST [18:27:36]POST find Content-Length [18:27:36]Host: 172.17.44.67:8080 [18:27:36]Content-Length: 806 [18:27:36]Content-Type: application/json [18:27:36] [18:27:36]POST finish read [18:27:36]Found Content-Length = 806 [18:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202731", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:36]execute_script... [18:27: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)918930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202731", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:36]POST & json_proto [18:27:36]process_json_proto [18:27:36]json parsed OK: [18:27:36]protocol is kg_v1.0 [18:27:36]action value=close_receipt [18:27:36]process_action close_receipt [18:27:36]cmd_close_receipt [18:27:36]MH_GetDate [18:27:36]Write to MH i2c: F0 00 00 CE 06 C3 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: F0 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: F0 09 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: F0 09 00 CE 06 00 9A A8 12 67 F1 C7 6B 64 0E [18:27:36]GetLastDocTimeStamp 1729275802 [18:27:36]current date 1729276058 [18:27:36]FM_GetShiftState [18:27:36]SAM_PROTO_GetShiftState [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 13 01 00 [18:27:36]Write to MH i2c: E2 08 00 CF 06 80 13 01 00 00 00 00 00 52 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0E 00 [18:27:36]MH_I2C_Read... [18:27:37]Read from MH i2c: E2 0E 00 CF 06 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 24 [18:27:37]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:27:37]wFMCommunicate OK [18:27:37]SAM_PROTO_GetShiftState done [18:27:37]FM_GetShiftState done [18:27:37]opened in 1729212319 [18:27:37]opened+sec_in_day 1729298719 [18:27:37]quantity*price = 0 [18:27:37]sum+1 = 1 [18:27:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 147 18.10.2024 18:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202731 ФМ: 0000000000871843 ФД: 82438 ФПД: 187361631195399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183609&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82438&fm=187361631195399&tin=02508201610067®Number=0000000000091680&sum=0 [18:36:10]StoreToDocumentArchive [18:36:10]shift 526 fd 82438 [18:36:10]save to /storage/0526/doc_00082438 [18:36:10]save last doc name /storage/0526/doc_00082438 to /storage/kkm_last_doc_name [18:36:10]save OK [18:36:10]Clear old archive folders... [18:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:36:10]tlvbuf is 000F63C0 [18:36:10]SAM_PROTO_ClearQueue [18:36:10]wFMCommunicate request_size=4 [18:36:10]MH_SAM_APDU [18:36:10]CAPDU: 80 09 00 00 [18:36:10]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:36:10]Write i2c OK [18:36:10]MH_I2C_Read... [18:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:10]Read from MH i2c: E2 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F 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 99 AA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 42 01 00 35 04 06 00 AA 67 87 78 D1 07 8D C2 3E 0E F2 35 B8 29 [18:36:13]Read from MH i2c: 01 *** Stop cut motor [18:36:13] [18:36:13]*** Cut end [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: 01 07 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [18:36:13]process_action close_receipt done [18:36:13]requested_data is exist [18:36:13]produce_requested_data [18:36:13]requested_item fm.sn is exist - process it [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 11 00 00 [18:36:13]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [18:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:36:13]wFMCommunicate OK [18:36:13]requested_item fd.num is exist - process it [18:36:13]SAM_PROTO_GetFieldsCounters [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 13 00 00 [18:36:13]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 62 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 06 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [18:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 06 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_GetFieldsCounters done [18:36:13]requested_item shift.num is exist - process it [18:36:13]requested_item shift.opened is exist - process it [18:36:13]req_shift_opened [18:36:13]FM_GetShiftState [18:36:13]SAM_PROTO_GetShiftState [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 13 01 00 [18:36:13]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B5 [18:36:13]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_GetShiftState done [18:36:13]FM_GetShiftState done [18:36:13]req_shift_opened done [18:36:13]requested_item shift.open_date is exist - process it [18:36:13]req_shift_open_date [18:36:13]req_shift_open_date done [18:36:13]produce_requested_data done [18:36:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82438,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:36:13]process_action_free close_receipt [18:36:13]json_value_free [18:36:13]json_value_free done [18:36:13]process_json_proto returns [18:36:13]Send response to host [18:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82438,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:36:13]free response buf [18:36:13]execute_script done [18:36:13]execute_script returns [18:36:13]free content buf [18:36:13]Sock 9.Close socket [18:36:13]Sock 9.Thread stoped [18:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A8 00 47 00 6A BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 42 01 00 F4 03 04 00 D5 4F 12 67 B6 04 01 00 00 B8 28 77 0E 7B 3E 03 1E [18:36:14]CommunicateWithHost err = 0 [18:36:14]CheckOFDResponse [18:36:14]1017 (14) - 77093643461234 [18:36:14]1041 (16) - 0000000000871843 [18:36:14]1040 (4) - 82438 [18:36:14]1012 (4) - 18.10.2024 12:08 [18:36:14]1206 (1) - 0 [18:36:14]OFD Sender: Remove packet 82438 [18:36:14]ProducePacketName [18:36:14]name=ofd_packets/00082438 [18:36:14]NVStorageDeleteData [18:36:15]recv_with_timeout no data received [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:26]recv_with_timeout no data received [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:38]accept exits with 6 [18:36:38]New connection [18:36:38]New thread 3066727780 created [18:36:38]Thread 3066871140 joined [18:36:38]Waiting for new connection... [18:36:38] Sock 6.Parse request [18:36:38]Sock 6.Check first char [18:36:38]Sock 6.First char is OK [18:36:38]request: POST /json_proto HTTP/1.0 [18:36:38]Method: POST [18:36:38]URL: /json_proto [18:36:38]Method is POST - this is cgi request [18:36:38]url: /json_proto [18:36:38]query_string will be loaded in cgi processing [18:36:38]execute_cgi json_proto POST (null) [18:36:38]execute_cgi path=json_proto method=POST [18:36:38]POST find Content-Length [18:36:38]Host: 172.17.44.67:8080 [18:36:38]Content-Length: 677 [18:36:38]Content-Type: application/json [18:36:38] [18:36:38]POST finish read [18:36:38]Found Content-Length = 677 [18:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:38]execute_script... [18:36: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)918931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:38]POST & json_proto [18:36:38]process_json_proto [18:36:38]json parsed OK: [18:36:38]protocol is kg_v1.0 [18:36:38]action value=close_receipt [18:36:38]process_action close_receipt [18:36:38]cmd_close_receipt [18:36:38]MH_GetDate [18:36:38]Write to MH i2c: F0 00 00 67 00 56 [18:36:38]Write i2c OK [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: F0 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: F0 09 00 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: F0 09 00 67 00 00 B6 AA 12 67 F1 C7 6B 64 BF [18:36:38]GetLastDocTimeStamp 1729276569 [18:36:38]current date 1729276598 [18:36:38]FM_GetShiftState [18:36:38]SAM_PROTO_GetShiftState [18:36:38]wFMCommunicate request_size=4 [18:36:38]MH_SAM_APDU [18:36:38]CAPDU: 80 13 01 00 [18:36:38]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [18:36:38]Write i2c OK [18:36:38]MH_I2C_Read... [18:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:38]Read from MH i2c: E2 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: E2 0E 00 [18:36:38]MH_I2C_Read... [18:36:38]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B7 [18:36:38]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:36:38]wFMCommunicate OK [18:36:38]SAM_PROTO_GetShiftState done [18:36:38]FM_GetShiftState done [18:36:38]opened in 1729212319 [18:36:38]opened+sec_in_day 1729298719 [18:36:38]quantity*price = 60009 [18:36:38]sum+1 = 60010 [18:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 148 18.10.2024 18:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82439 ФПД: 176187219387787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183638&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82439&fm=176187219387787&tin=02508201610067®Number=0000000000091680&sum=60000 [18:36:39]StoreToDocumentArchive [18:36:39]shift 526 fd 82439 [18:36:39]save to /storage/0526/doc_00082439 [18:36:39]save last doc name /storage/0526/doc_00082439 to /storage/kkm_last_doc_name [18:36:39]save OK [18:36:39]Clear old archive folders... [18:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:39]tlvbuf is 000A14A0 [18:36:39]SAM_PROTO_ClearQueue [18:36:10]RAPDU: 90 00 [18:36:10]wFMCommunicate OK [18:36:10]SAM_PROTO_ClearQueue done [18:36:10]KKMCreateOFDPacket [18:36:10]OFDProtocolAddRootSTLVToBuf [18:36:10]FM_MakeSignedData [18:36:10]FM_MakeSignedData [18:36:10]SAM_PROTO_SignData [18:36:10]wFMCommunicate request_size=4 [18:36:10]MH_SAM_APDU [18:36:10]CAPDU: 80 0D 01 02 [18:36:10]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:36:10]Write i2c OK [18:36:10]MH_I2C_Read... [18:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:10]Read from MH i2c: E2 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:36:10]RAPDU: 90 00 [18:36:10]wFMCommunicate OK [18:36:10]wFMCommunicate request_size=255 [18:36:10]MH_SAM_APDU [18:36:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 99 AA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 42 01 [18:36:11]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 99 AA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 06 42 01 00 00 B9 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:3[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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [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]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 54000000005725AE (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: 44491848+1684785137=1729276985 [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [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 39 AC 12 67 F1 C7 6B 64 E4 [18:43:05]Current date/time: 18.10.2024 18:43 [18:43:05]FM_Init [18:43:05]wFMConnect [18:43:05]MH_SAM_On [18:43:05]Write to MH i2c: E0 00 00 08 00 E7 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_init finished! [18:43:05]*** atr: [18:43:05]*** 0F 3B D5 18 FF 81 91 FE [18:43:05]*** 1F C3 80 73 C8 21 10 0A [18:43:05]*** 00 00 00 00 00 00 00 00 [18:43:05]*** 00 00 00 00 00 00 00 00 [18:43:05]*** 00 00 00 00 00 00 00 00 [18:43:05]*** 00 00 00 00 00 00 00 00 [18:43:05]*** 00 00 00 00 00 00 00 00 [18:43:05]*** 00 00 00 00 00 00 00 00 [18:43:05]Read from MH i2c: E0 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E0 10 00 [18:43:05]MH_I2C_Read... [18:43:05]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 [18:43:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:43:05]wFMCommunicate request_size=10 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:43:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:43:05]RAPDU: 90 00 [18:43:05]wFMCommunicate OK [18:43:05]wFMCommunicate request_size=4 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 11 00 00 [18:43:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [18:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:43:05]wFMCommunicate OK [18:43:05]Detected FM SN is 0000000000871843 [18:43:05]Stored FM SN is 0000000000871843 [18:43:05]wFMCommunicate request_size=9 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 16 00 00 04 C3 A3 00 00 [18:43:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:43:05]RAPDU: 90 00 [18:43:05]wFMCommunicate OK [18:43:05]FM PIN OK [18:43:05]wFMCommunicate request_size=8 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 14 04 00 03 02 00 01 [18:43:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:43:05]RAPDU: 90 00 [18:43:05]wFMCommunicate OK [18:43:05]wFMCommunicate request_size=13 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:43:05]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 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:43:05]RAPDU: 90 00 [18:43:05]wFMCommunicate OK [18:43:05]wFMCommunicate request_size=4 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 11 00 00 [18:43:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [18:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:43:05]wFMCommunicate OK [18:43:05]DocumentArchiveInit [18:43:05]Start Httpd... [18:43:05]Httpd thread 3067649380 created [18:43:05]Write to MH i2c: 01 00 00 0F 00 0F [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: 01 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: 01 07 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:43:05]MH Int Process started [18:43:05]Allocated Socket 8 [18:43:05]Bind OK [18:43:05]Listen OK [18:43:05]httpd running on port 8080 [18:43:05]Waiting for new connection... [18:43:05]OFD Sender: Processing packet 82439 [packets to send 254, broken 253] [18:43:05]ProducePacketName [18:43:05]name=ofd_packets/00082439 [18:43:05]OFD Sender: To server: pG, [18:43:05]CommunicateWithHost lk.salyk.kg:30040 [18:43:05]ConnectInit lk.salyk.kg [18:43:05]accept exits with 9 [18:43:05]New connection [18:43:05]New thread 3067362660 created [18:43:05]Waiting for new connection... [18:43:05] Sock 9.Parse request [18:43:05]Sock 9.Check first char [18:43:05]Sock 9.First char is OK [18:43:05]request: POST /json_proto HTTP/1.0 [18:43:05]Method: POST [18:43:05]URL: /json_proto [18:43:05]Method is POST - this is cgi request [18:43:05]url: /json_proto [18:43:05]query_string will be loaded in cgi processing [18:43:05]execute_cgi json_proto POST (null) [18:43:05]execute_cgi path=json_proto method=POST [18:43:05]POST find Content-Length [18:43:05]Host: 172.17.44.67:8080 [18:43:05]Content-Length: 215 [18:43:05]Content-Type: application/json [18:43:05] [18:43:05]POST finish read [18:43:05]Found Content-Length = 215 [18:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:05]execute_script... [18:43:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:05]POST & json_proto [18:43:05]process_json_proto [18:43:05]json parsed OK: [18:43:05]protocol is kg_v1.0 [18:43:05]action value=get_value [18:43:05]process_action get_value [18:43:05]cmd_get_value [18:43:05]process_action get_value done [18:43:05]requested_data is exist [18:43:05]produce_requested_data [18:43:05]requested_item kkm.sn is exist - process it [18:43:05]requested_item kkm.ver is exist - process it [18:43:05]requested_item fm.sn is exist - process it [18:43:05]wFMCommunicate request_size=4 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 11 00 00 [18:43:05]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:05]Read from MH i2c: E2 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 [18:43:05]MH_I2C_Read... [18:43:05]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [18:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:43:05]wFMCommunicate OK [18:43:05]requested_item fd.num is exist - process it [18:43:05]SAM_PROTO_GetFieldsCounters [18:43:05]wFMCommunicate request_size=4 [18:43:05]MH_SAM_APDU [18:43:05]CAPDU: 80 13 00 00 [18:43:05]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:43:05]Write i2c OK [18:43:05]MH_I2C_Read... [18:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:06]Read from MH i2c: E2 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 62 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 07 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [18:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 07 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:06]wFMCommunicate OK [18:43:06]SAM_PROTO_GetFieldsCounters done [18:43:06]requested_item shift.num is exist - process it [18:43:06]requested_item shift.opened is exist - process it [18:43:06]req_shift_opened [18:43:06]FM_GetShiftState [18:43:06]SAM_PROTO_GetShiftState [18:43:06]wFMCommunicate request_size=4 [18:43:06]MH_SAM_APDU [18:43:06]CAPDU: 80 13 01 00 [18:43:06]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:06]Read from MH i2c: E2 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 0E 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 61 [18:43:06]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:43:06]wFMCommunicate OK [18:43:06]SAM_PROTO_GetShiftState done [18:43:06]FM_GetShiftState done [18:43:06]req_shift_opened done [18:43:06]requested_item shift.open_date is exist - process it [18:43:06]req_shift_open_date [18:43:06]req_shift_open_date done [18:43:06]produce_requested_data done [18:43:06]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82439,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:43:06]process_action_free get_value [18:43:06]json_value_free [18:43:06]json_value_free done [18:43:06]process_json_proto returns [18:43:06]Send response to host [18:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82439,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:43:06]free response buf [18:43:06]execute_script done [18:43:06]execute_script returns [18:43:06]free content buf [18:43:06]Sock 9.Close socket [18:43:06]Sock 9.Thread stoped [18:43:06]accept exits with 11 [18:43:06]New connection [18:43:06]New thread 3067219300 created [18:43:06]Thread 3067362660 joined [18:43:06]Waiting for new connection... [18:43:06] Sock 11.Parse request [18:43:06]Sock 11.Check first char [18:43:06]Sock 11.First char is OK [18:43:06]request: POST /json_proto HTTP/1.0 [18:43:06]Method: POST [18:43:06]URL: /json_proto [18:43:06]Method is POST - this is cgi request [18:43:06]url: /json_proto [18:43:06]query_string will be loaded in cgi processing [18:43:06]execute_cgi json_proto POST (null) [18:43:06]execute_cgi path=json_proto method=POST [18:43:06]POST find Content-Length [18:43:06]Host: 172.17.44.67:8080 [18:43:06]Content-Length: 331 [18:43:06]Content-Type: application/json [18:43:06] [18:43:06]POST finish read [18:43:06]Found Content-Length = 331 [18:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:43:06]execute_script... [18:43:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:43:06]POST & json_proto [18:43:06]process_json_proto [18:43:06]json parsed OK: [18:43:06]protocol is kg_v1.0 [18:43:06]action value=get_value [18:43:06]process_action get_value [18:43:06]cmd_get_value [18:43:06]process_action get_value done [18:43:06]requested_data is exist [18:43:06]produce_requested_data [18:43:06]requested_item fm.sale.total is exist - process it [18:43:06]SAM_PROTO_GetFMData [18:43:06]wFMCommunicate request_size=4 [18:43:06]MH_SAM_APDU [18:43:06]CAPDU: 80 13 03 00 [18:43:06]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:06]Connected sock=7 [18: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 31 38 34 33 0F 01 00 00 61 AC 07 01 40 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B6 AA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 07 42 01 00 35 04 06 00 A0 3D C8 A0 25 8B 14 9F A9 E1 90 AA DC C5 [18:43:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:43:06]Read from MH i2c: E2 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 FD 00 [18:43:06]MH_I2C_Read... [18:43:06]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 EB 3D 01 00 69 04 A3 00 6F 04 04 00 50 3B 01 00 B1 04 05 00 4D AF C9 7B 01 70 04 05 00 08 26 62 41 01 72 04 04 00 45 89 67 3A 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 7F 5A 58 28 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 EA 9E 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 AB [18:43:06]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 EB 3D 01 00 69 04 A3 00 6F 04 04 00 50 3B 01 00 B1 04 05 00 4D AF C9 7B 01 70 04 05 00 08 26 62 41 01 72 04 04 00 45 89 67 3A 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 7F 5A 58 28 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 EA 9E 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [18:43:06]wFMCommunicate OK [18:43:06]wFMCommunicate request_size=4 [18:43:06]MH_SAM_APDU [18:43:06]CAPDU: 80 17 00 00 [18:43:06]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:43:06]Write i2c OK [18:43:06]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 FD 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 FD 00 14 00 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [18:43:07]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:43:07]wFMCommunicate OK [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 17 00 00 [18:43:07]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2C 22 47 00 46 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 07 42 01 00 F4 03 04 00 73 51 12 67 B6 04 01 00 00 B1 4D 70 F8 80 60 DD 42 [18:43:07]CommunicateWithHost err = 0 [18:43:07]CheckOFDResponse [18:43:07]1017 (14) - 77093643461234 [18:43:07]1041 (16) - 0000000000871843 [18:43:07]1040 (4) - 82439 [18:43:07]1012 (4) - 18.10.2024 12:15 [18:43:07]1206 (1) - 0 [18:43:07]OFD Sender: Remove packet 82439 [18:43:07]ProducePacketName [18:43:07]name=ofd_packets/00082439 [18:43:07]NVStorageDeleteData [18:43:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 FD 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [18:43:07]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:43:07]wFMCommunicate OK [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 17 00 00 [18:43:07]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 FD 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [18:43:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:43:07]wFMCommunicate OK [18:43:07]wFMCommunicate request_size=4 [18:43:07]MH_SAM_APDU [18:43:07]CAPDU: 80 17 00 00 [18:43:07]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:43:07]Write i2c OK [18:43:07]MH_I2C_Read... [18:43:07]OFD Sender: No OFD packet to send [18:43:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [18:43:07]Read from MH i2c: E2 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 E4 00 [18:43:07]MH_I2C_Read... [18:43:07]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [18:43:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:43:08]wFMCommunicate OK [18:43:08]SAM_PROTO_GetFMData done [18:43:08]requested_item fm.sale_refund.total is exist - process it [18:43:08]requested_item fm.buy.total is exist - process it [18:43:08]requested_item shift.sale.total is exist - process it [18:43:08]SAM_PROTO_GetShiftData [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 13 02 00 [18:43:08]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 FD 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 94 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 B2 46 6D 70 04 03 00 E8 C7 3B 72 04 03 00 CA 7E 31 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 93 9B 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 F7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F4 [18:43:08]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 94 00 00 00 69 04 9B 00 6F 04 04 00 91 00 00 00 B1 04 03 00 B2 46 6D 70 04 03 00 E8 C7 3B 72 04 03 00 CA 7E 31 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 93 9B 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 F7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [18:43:08]wFMCommunicate OK [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 17 00 00 [18:43:08]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:43:08]Read from MH i2c: E2 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 FD 00 [18:43:08]MH_I2C_Read... [18:43:08]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 7D [18:43:08]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [18:43:08]wFMCommunicate OK [18:43:08]wFMCommunicate request_size=4 [18:43:08]MH_SAM_APDU [18:43:08]CAPDU: 80 17 00 00 [18:43:08]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:43:08]Write i2c OK [18:43:08]MH_I2C_Read... [18:43:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:43:09]Read from MH i2c: E2 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 FD 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [18:43:09]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [18:43:09]wFMCommunicate OK [18:43:09]wFMCommunicate request_size=4 [18:43:09]MH_SAM_APDU [18:43:09]CAPDU: 80 17 00 00 [18:43:09]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:43:09]Read from MH i2c: E2 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 FD 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 24 [18:43:09]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [18:43:09]wFMCommunicate OK [18:43:09]wFMCommunicate request_size=4 [18:43:09]MH_SAM_APDU [18:43:09]CAPDU: 80 17 00 00 [18:43:09]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:43:09]Write i2c OK [18:43:09]MH_I2C_Read... [18:43:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [18:43:09]Read from MH i2c: E2 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 D5 00 [18:43:09]MH_I2C_Read... [18:43:09]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [18:43:09]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:43:09]wFMCommunicate OK [18:43:09]SAM_PROTO_GetShiftData done [18:43:09]requested_item shift.sale.total_cash is exist - process it [18:43:09]requested_item shift.sale_refund.total is exist - process it [18:43:09]requested_item shift.sale_refund.total_cash is exist - process it [18:43:09]requested_item shift.buy.total is exist - process it [18:43:09]requested_item shift.buy.total_cash is exist - process it [18:43:09]produce_requested_data done [18:43:09]produce_requested_data return {"fm.sale.total":63717824.77,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":71615.22,"shift.sale.total_cash":39178.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:43:09]process_action_free get_value [18:43:09]json_value_free [18:43:09]json_value_free done [18:43:09]process_json_proto returns [18:43:09]Send response to host [18:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63717824.77,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":71615.22,"shift.sale.total_cash":39178.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:43:09]free response buf [18:43:09]execute_script done [18:43:09]execute_script returns [18:43:09]free content buf [18:43:09]Sock 11.Close socket [18:43:09]Sock 11.Thread stoped [18:43:10]accept exits with 9 [18:43:10]New connection [18:43:10]New thread 3067362660 created [18:43:10]Thread 3067219300 joined [18:43:10]Waiting for new connection... [18:43:10] Sock 9.Parse request [18:43:10]Sock 9.Check first char [18:43:10]Sock 9.First char is OK [18:43:10]request: POST /json_proto HTTP/1.0 [18:43:10]Method: POST [18:43:10]URL: /json_proto [18:43:10]Method is POST - this is cgi request [18:43:10]url: /json_proto [18:43:10]query_string will be loaded in cgi processing [18:43:10]execute_cgi json_proto POST (null) [18:43:10]execute_cgi path=json_proto method=POST [18:43:10]POST find Content-Length [18:43:10]Host: 172.17.44.67:8080 [18:43:10]Content-Length: 682 [18:43:10]Content-Type: application/json [18:43:10] [18:43:10]POST finish read [18:43:10]Found Content-Length = 682 [18:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:10]execute_script... [18:43: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)918932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:10]POST & json_proto [18:43:10]process_json_proto [18:43:10]json parsed OK: [18:43:10]protocol is kg_v1.0 [18:43:10]action value=close_receipt [18:43:10]process_action close_receipt [18:43:10]cmd_close_receipt [18:43:10]MH_GetDate [18:43:10]Write to MH i2c: F0 00 00 1D 00 0C [18:43:10]Write i2c OK [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 09 00 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 09 00 1D 00 00 3F AC 12 67 F1 C7 6B 64 00 [18:43:10]GetLastDocTimeStamp 1729276598 [18:43:10]current date 1729276991 [18:43:10]FM_GetShiftState [18:43:10]SAM_PROTO_GetShiftState [18:43:10]wFMCommunicate request_size=4 [18:43:10]MH_SAM_APDU [18:43:10]CAPDU: 80 13 01 00 [18:43:10]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:43:10]Write i2c OK [18:43:10]MH_I2C_Read... [18:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:10]Read from MH i2c: E2 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: E2 0E 00 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6D [18:43:10]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:43:10]wFMCommunicate OK [18:43:10]SAM_PROTO_GetShiftState done [18:43:10]FM_GetShiftState done [18:43:10]opened in 1729212319 [18:43:10]opened+sec_in_day 1729298719 [18:43:10]quantity*price = 50063 [18:43:10]sum+1 = 50064 [18:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 149 18.10.2024 18:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82440 ФПД: 194351578909570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T184311&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82440&fm=194351578909570&tin=02508201610067®Number=0000000000091680&sum=50000 [18:43:11]StoreToDocumentArchive [18:43:11]shift 526 fd 82440 [18:43:11]save to /storage/0526/doc_00082440 [18:43:11]save last doc name /storage/0526/doc_00082440 to /storage/kkm_last_doc_name [18:43:11]save OK [18:43:11]Clear old archive folders... [18:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:43:11]tlvbuf is 00CB20F0 [18:43:11]SAM_PROTO_ClearQueue [18:43:11]wFMCommunicate request_size=4 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 09 00 00 [18:43:11]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:43:11]Write i2c OK [18:43:11]MH_I2C_Read... [18:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:11]Read from MH i2c: E2 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:43:11]RAPDU: 90 00 [18:43:11]wFMCommunicate OK [18:43:11]SAM_PROTO_ClearQueue done [18:43:11]KKMCreateOFDPacket [18:43:11]OFDProtocolAddRootSTLVToBuf [18:43:11]FM_MakeSignedData [18:43:11]FM_MakeSignedData [18:43:11]SAM_PROTO_SignData [18:43:11]wFMCommunicate request_size=4 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 0D 01 02 [18:43:11]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:43:11]Write i2c OK [18:43:11]MH_I2C_Read... [18:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:11]Read from MH i2c: E2 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 [18:43:11]MH_I2C_Read... [18:43:11]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:43:11]RAPDU: 90 00 [18:43:11]wFMCommunicate OK [18:43:11]wFMCommunicate request_size=255 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 3F AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 42 01 00 35 04 06 00 [18:43:11]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 3F AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 42 01 00 35 04 06 00 00 00 EC [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]wFMCommunicate request_size=11 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 0D 02 02 06 B0 C3 00 D2 8B 82 [18:43:12]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 B0 C3 00 D2 8B 82 00 00 06 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 0D 03 02 [18:43:12]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0B 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0B 00 2F 00 00 0F D5 C1 F2 27 D6 28 CC 90 00 33 [18:43:12]RAPDU: 0F D5 C1 F2 27 D6 28 CC 90 00 [18:43:12]wFMCommunicate OK [18:43:12]SAM_PROTO_SignData done [18:43:12]FM_MakeSignedData done [18:43:12]CreateOFDProtocolMessage [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 11 00 00 [18:43:12]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [18:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:43:12]wFMCommunicate OK [18:43:12]CreateOFDProtocolMessage done [18:43:12]OFDSenderStorePacket 82440 [18:43:12]StoreOFDPacket docnum=82440 [18:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F6 30 08 01 16 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 3F AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 42 01 00 35 04 06 00 B0 C3 00 D2 8B 82 0F D5 C1 F2 27 D6 28 CC [18:43:12]CheckFolder [18:43:12]dirname=/storage/ofd_packets [18:43:12]CheckFolder done [18:43:12]ProducePacketName [18:43:12]name=ofd_packets/00082440 [18:43:12]NVStorageSaveData ofd_packets/00082440 [18:43:12]File name is /storage/ofd_packets/00082440 [18:43:12]Write 302 bytes [18:43:12]NVStorageSaveData done [18:43:12]OFDSenderStorePacket done [18:43:12]KKMCreateOFDPacket done [18:43:12]NVStorageSaveData kkm_last_timestamp [18:43:12]File name is /storage/kkm_last_timestamp [18:43:12]Write 4 bytes [18:43:12]NVStorageSaveData done [18:43:12]ExternCall_PrintAddStr [18:43:12]wPrintStart [18:43:12]Write to MH i2c: 01 00 00 31 00 31 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]OFD Sender: Processing packet 82440 [packets to send 254, broken 253] [18:43:12]ProducePacketName [18:43:12]name=ofd_packets/00082440 [18:43:12]OFD Sender: To server: pG, [18:43:12]CommunicateWithHost lk.salyk.kg:30040 [18:43:12]ConnectInit lk.salyk.kg [18:43:12]Read from MH i2c: 01 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 07 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:43:12]RasterBufferAndPrint [18:43:12]line Счет N : (1)918932 [18:43:12]line ИНН: 02508201610067 [18:43:12]line Контрольно-Кассовый Чек [18:43:12]line ПРОДАЖА [18:43:12]line ТРК (МРК, ГНК) : 31 [18:43:12]line Товар: 2710194210 [18:43:12]line ДТ(л)-К-5 [18:43:12]line 6.570 * 76.20 [18:43:12]line = 500.63 [18:43:12]line НДС 12% НСП 1% [18:43:12]line > о реализуемом товаре [18:43:12]line ОКРУГЛЕНИЕ: -0.63 [18:43:12]line ИТОГО: 500.00 [18:43:12]line Внесено: 500.00 [18:43:12]line СДАЧА: 0.00 [18:43:12]line НСП 1% : 4.43 [18:43:12]line НДС 12% : 53.16 [18:43:12]line Наличными: 500.00 [18:43:12]line Безнал.: 0.00 [18:43:12]line Место: АЗС № 114 "Партнер Нефть" [18:43:12]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:43:12]line СНО: Общий режим [18:43:12]line Чек 149 18.10.2024 18:43 [18:43:12]line Смена: 526 ФФД: 1.0 [18:43:12]line ЗНМ: 0300000086 [18:43:12]line РНМ: 0000000000091680 [18:43:12]line Версия ККМ: 001 [18:43:12]line ФМ: 0000000000871843 [18:43:12]line ФД: 82440 [18:43:12]line ФПД: 194351578909570 [18:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T184311&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82440&fm=194351578909570&tin=02508201610067®Number=0000000000091680&sum=50000 [18:43:12]written 0, free lines is 4095 [18:43:13]Write to MH i2c: 01 00 00 5C 00 5C [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 07 00 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E1 0C 50 [18:43:13]RasterBufferAndPrint [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]written 0, free lines is 3321 [18:43:13]MH_Cut [18:43:13]Write to MH i2c: D1 01 00 63 00 01 35 [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 01 00 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 01 00 63 00 00 34 [18:43:13]Write to MH i2c: 01 00 00 64 00 64 [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Connected sock=7 [18:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F6 30 08 01 16 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 3F AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 42 01 00 35 04 06 00 B0 C3 00 D2 8B 82 0F D5 C1 F2 27 D6 28 CC [18:43:13]*** Cut start [18:43:13]*** Partial cut [18:43:13]*** CUTSNS_PIN = 1 [18:43:13]*** CUTSNS_PIN = 0 [18:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 *** Brake cut motor [18:43:14]31 38 34 33 4F 00 00 00 05 49 47 00 EA D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 08 42 01 00 F4 03 04 00 79 51 12 67 B6 04 01 00 00 EF EF FD 34 B9 67 99 97 [18:43:14]CommunicateWithHost err = 0 [18:43:14]CheckOFDResponse [18:43:14]1017 (14) - 77093643461234 [18:43:14]1041 (16) - 0000000000871843 [18:43:14]1040 (4) - 82440 [18:43:14]1012 (4) - 18.10.2024 12:15 [18:43:14]1206 (1) - 0 [18:43:14]OFD Sender: Remove packet 82440 [18:43:14]ProducePacketName [18:43:14]name=ofd_packets/00082440 [18:43:14]NVStorageDeleteData [18:43:14]Read from MH i2c: 01 [18:43:14]MH_I2C_Read... [18:43:14]*** Stop cut motor [18:43:14]*** Cut end [18:43:14]Read from MH i2c: 01 07 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [18:43:14]process_action close_receipt done [18:43:14]requested_data is exist [18:43:14]produce_requested_data [18:43:14]requested_item fm.sn is exist - process it [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 11 00 00 [18:43:14]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:14]Read from MH i2c: E2 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 17 00 [18:43:14]MH_I2C_Read... [18:43:14]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 31 38 34 33 90 00 31 [18:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:43:14]wFMCommunicate OK [18:43:14]requested_item fd.num is exist - process it [18:43:14]SAM_PROTO_GetFieldsCounters [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 13 00 00 [18:43:14]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:14]Read from MH i2c: E2 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 62 00 [18:43:14]MH_I2C_Read... [18:43:14]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 08 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [18:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 08 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:14]wFMCommunicate OK [18:43:14]SAM_PROTO_GetFieldsCounters done [18:43:14]requested_item shift.num is exist - process it [18:43:14]requested_item shift.opened is exist - process it [18:43:14]req_shift_opened [18:43:14]FM_GetShiftState [18:43:14]SAM_PROTO_GetShiftState [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 13 01 00 [18:43:14]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:14]OFD Sender: No OFD packet to send [18:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:14]Read from MH i2c: E2 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 0E 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B6 [18:43:14]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:43:14]wFMCommunicate OK [18:43:14]SAM_PROTO_GetShiftState done [18:43:14]FM_GetShiftState done [18:43:14]req_shift_opened done [18:43:14]requested_item shift.open_date is exist - process it [18:43:14]req_shift_open_date [18:43:14]req_shift_open_date done [18:43:14]produce_requested_data done [18:43:14]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82440,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:43:14]process_action_free close_receipt [18:43:14]json_value_free [18:43:14]json_value_free done [18:43:14]process_json_proto returns [18:43:14]Send response to host [18:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82440,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:43:14]free response buf [18:43:14]execute_script done [18:43:14]execute_script returns [18:43:14]free content buf [18:43:14]Sock 9.Close socket [18:43:14]Sock 9.Thread stoped [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:51]accept exits with 10 [18:43:51]New connection [18:43:51]New thread 3067219300 created [18:43:51]Thread 3067362660 joined [18:43:51]Waiting for new connection... [18:43:51] Sock 10.Parse request [18:43:51]Sock 10.Check first char [18:43:51]Sock 10.First char is OK [18:43:51]request: POST /json_proto HTTP/1.0 [18:43:51]Method: POST [18:43:51]URL: /json_proto [18:43:51]Method is POST - this is cgi request [18:43:51]url: /json_proto [18:43:51]query_string will be loaded in cgi processing [18:43:51]execute_cgi json_proto POST (null) [18:43:51]execute_cgi path=json_proto method=POST [18:43:51]POST find Content-Length [18:43:51]Host: 172.17.44.67:8080 [18:43:51]Content-Length: 803 [18:43:51]Content-Type: application/json [18:43:51] [18:43:51]POST finish read [18:43:51]Found Content-Length = 803 [18:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:51]execute_script... [18:43:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:51]POST & json_proto [18:43:51]process_json_proto [18:43:51]json parsed OK: [18:43:51]protocol is kg_v1.0 [18:43:51]action value=close_receipt [18:43:51]process_action close_receipt [18:43:51]cmd_close_receipt [18:43:51]MH_GetDate [18:43:51]Write to MH i2c: F0 00 00 68 00 57 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: F0 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: F0 09 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: F0 09 00 68 00 00 68 AC 12 67 F1 C7 6B 64 74 [18:43:51]GetLastDocTimeStamp 1729276991 [18:43:51]current date 1729277032 [18:43:51]FM_GetShiftState [18:43:51]SAM_PROTO_GetShiftState [18:43:51]wFMCommunicate request_size=4 [18:43:51]MH_SAM_APDU [18:43:51]CAPDU: 80 13 01 00 [18:43:51]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:51]Read from MH i2c: E2 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 0E 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B8 [18:43:51]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:43:51]wFMCommunicate OK [18:43:51]SAM_PROTO_GetShiftState done [18:43:51]FM_GetShiftState done [18:43:51]opened in 1729212319 [18:43:51]opened+sec_in_day 1729298719 [18:43:51]quantity*price = 100015 [18:43:51]sum+1 = 100017 [18:43:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 150 18.10.2024 18:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82441 ФПД: 26101884698655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T184352&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82441&fm=26101884698655&tin=02508201610067®Number=0000000000091680&sum=100016 [18:43:52]StoreToDocumentArchive [18:43:52]shift 526 fd 82441 [18:43:52]save to /storage/0526/doc_00082441 [18:43:52]save last doc name /storage/0526/doc_00082441 to /storage/kkm_last_doc_name [18:43:52]save OK [18:43:52]Clear old archive folders... [18:43:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:52]tlvbuf is 00C55820 [18:43:52]SAM_PROTO_ClearQueue [18:43:52]wFMCommunicate request_size=4 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 09 00 00 [18:43:52]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 03 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:43:52]RAPDU: 90 00 [18:43:52]wFMCommunicate OK [18:43:52]SAM_PROTO_ClearQueue done [18:43:52]KKMCreateOFDPacket [18:43:52]OFDProtocolAddRootSTLVToBuf [18:43:52]FM_MakeSignedData [18:43:52]FM_MakeSignedData [18:43:52]SAM_PROTO_SignData [18:43:52]wFMCommunicate request_size=4 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 0D 01 02 [18:43:52]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 03 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:43:52]RAPDU: 90 00 [18:43:52]wFMCommunicate OK [18:43:52]wFMCommunicate request_size=255 [18:43:52]MH_SAM_APDU [18:43: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 68 AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 42 01 00 35 04 06 00 17 [18:43:52]Write to MH i2c: E2 02 01 78 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 68 AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 42 01 00 35 04 06 00 17 00 00 2C [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:53]Read from MH i2c: E2 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 03 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:43:53]RAPDU: 90 00 [18:43:53]wFMCommunicate OK [18:43:53]wFMCommunicate request_size=10 [18:43:53]MH_SAM_APDU [18:43:53]CAPDU: 80 0D 02 02 05 BD 51 90 C0 1F [18:43:53]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 BD 51 90 C0 1F 00 00 7A [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:53]Read from MH i2c: E2 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 03 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [18:43:53]RAPDU: 90 00 [18:43:53]wFMCommunicate OK [18:43:53]wFMCommunicate request_size=4 [18:43:53]MH_SAM_APDU [18:43:53]CAPDU: 80 0D 03 02 [18:43:53]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:53]Read from MH i2c: E2 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 0B 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 0B 00 7A 00 00 68 F5 30 B2 C9 14 CE 8E 90 00 6E [18:43:53]RAPDU: 68 F5 30 B2 C9 14 CE 8E 90 00 [18:43:53]wFMCommunicate OK [18:43:53]SAM_PROTO_SignData done [18:43:53]FM_MakeSignedData done [18:43:53]CreateOFDProtocolMessage [18:43:53]wFMCommunicate request_size=4 [18:43:53]MH_SAM_APDU [18:43:53]CAPDU: 80 11 00 00 [18:43:53]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: E2 [18:43:53]MH_I2C_Read... [18:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:53]Read from MH i2c: E2 17 00 [18:43:53]MH_I2C_Read... [18:43:53]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 31 38 34 33 90 00 47 [18:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:43:53]wFMCommunicate OK [18:43:53]CreateOFDProtocolMessage done [18:43:53]OFDSenderStorePacket 82441 [18:43:53]StoreOFDPacket docnum=82441 [18:43:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F8 DE 07 01 08 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 68 AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 42 01 00 35 04 06 00 17 BD 51 90 C0 1F 68 F5 30 B2 C9 14 CE 8E [18:43:53]CheckFolder [18:43:53]dirname=/storage/ofd_packets [18:43:53]CheckFolder done [18:43:53]ProducePacketName [18:43:53]name=ofd_packets/00082441 [18:43:53]NVStorageSaveData ofd_packets/00082441 [18:43:53]File name is /storage/ofd_packets/00082441 [18:43:53]Write 301 bytes [18:43:53]NVStorageSaveData done [18:43:53]OFDSenderStorePacket done [18:43:53]KKMCreateOFDPacket done [18:43:53]NVStorageSaveData kkm_last_timestamp [18:43:53]File name is /storage/kkm_last_timestamp [18:43:53]Write 4 bytes [18:43:53]NVStorageSaveData done [18:43:53]ExternCall_PrintAddStr [18:43:53]wPrintStart [18:43:53]Write to MH i2c: 01 00 00 7C 00 7C [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: 01 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: 01 07 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [18:43:53]RasterBufferAndPrint [18:43:53]line Счет N : (1)918933 [18:43:53]line ИНН: 02508201610067 [18:43:53]line Контрольно-Кассовый Чек [18:43:53]line ПРОДАЖА [18:43:53]line ТРК (МРК, ГНК) : 11 [18:43:53]line Товар: 2710124130 [18:43:53]line Аи-92-К-4 [18:43:53]line 14.950 * 66.90 [18:43:53]line = 1000.16 [18:43:53]line НДС 12% НСП 1% [18:43:53]line > о реализуемом товаре [18:43:53]line ИТОГО: 1000.16 [18:43:53]line НСП 1% : 8.85 [18:43:53]line НДС 12% : 106.21 [18:43:53]line Наличными: 0.00 [18:43:53]line Безнал.: 1000.16 [18:43:53]line Место: АЗС № 114 "Партнер Нефть" [18:43:53]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:43:53]line СНО: Общий режим [18:43:53]line Чек 150 18.10.2024 18:43 [18:43:53]line Смена: 526 ФФД: 1.0 [18:43:53]line ЗНМ: 0300000086 [18:43:53]line РНМ: 0000000000091680 [18:43:53]line Версия ККМ: 001 [18:43:53]line Платежная система: O! деньги [18:43:53]line ФМ: 0000000000871843 [18:43:53]line ФД: 82441 [18:43:53]line ФПД: 26101884698655 [18:43:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T184352&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82441&fm=26101884698655&tin=02508201610067®Number=0000000000091680&sum=100016 [18:43:53]written 0, free lines is 4095 [18:43:53]OFD Sender: Processing packet 82441 [packets to send 254, broken 253] [18:43:53]ProducePacketName [18:43:53]name=ofd_packets/00082441 [18:43:53]OFD Sender: To server: pG, [18:43:53]CommunicateWithHost lk.salyk.kg:30040 [18:43:53]ConnectInit lk.salyk.kg [18:43:53]Write to MH i2c: 01 00 00 A6 00 A6 [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: 01 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: 01 07 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 F2 0C AB [18:43:53]RasterBufferAndPrint [18:43:53]line [18:43:53]line [18:43:53]line [18:43:53]line [18:43:53]line [18:43:53]written 0, free lines is 3324 [18:43:53]MH_Cut [18:43:53]Write to MH i2c: D1 01 00 AD 00 01 7F [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: D1 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: D1 01 00 [18:43:53]MH_I2C_Read... [18:43:53]Read from MH i2c: D1 01 00 AD 00 00 7E [18:43:53]Write to MH i2c: 01 00 00 AE 00 AE [18:43:53]Write i2c OK [18:43:53]MH_I2C_Read... [18:43:53]Connected sock=11 [18:43:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 F8 DE 07 01 08 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 68 AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 42 01 00 35 04 06 00 17 BD 51 90 C0 1F 68 F5 30 B2 C9 14 CE 8E [18:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 62 8E 47 00 54 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 09 42 01 00 F4 03 04 00 A2 51 12 67 B6 04 01 00 00 C4 EB AC DB F3 9D 39 D8 [18:43:54]CommunicateWithHost err = 0 [18:43:54]CheckOFDResponse [18:43:54]1017 (14) - 77093643461234 [18:43:54]1041 (16) - 0000000000871843 [18:43:54]1040 (4) - 82441 [18:43:54]1012 (4) - 18.10.2024 12:16 [18:43:54]1206 (1) - 0 [18:43:54]OFD Sender: Remove packet 82441 [18:43:54]ProducePacketName [18:43:54]name=ofd_packets/00082441 [18:43:54]NVStorageDeleteData [18:43:54]*** Cut start [18:43:54]*** Partial cut [18:43:54]*** CUTSNS_PIN = 1 [18:43:54]*** CUTSNS_PIN = 0 [18:43:54]*** Brake cut motor [18:43:54]OFD Sender: No OFD packet to send [18:43:55]Read from MH i2c: 01 [18:43:55]*** Stop cut motor [18:43:55]MH_I2C_Read... [18:43:55]*** Cut end [18:43:55]Read from MH i2c: 01 07 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [18:43:55]process_action close_receipt done [18:43:55]requested_data is exist [18:43:55]produce_requested_data [18:43:55]requested_item fm.sn is exist - process it [18:43:55]wFMCommunicate request_size=4 [18:43:55]MH_SAM_APDU [18:43:55]CAPDU: 80 11 00 00 [18:43:55]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [18:43:55]Write i2c OK [18:43:55]MH_I2C_Read... [18:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:55]Read from MH i2c: E2 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 17 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [18:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:43:55]wFMCommunicate OK [18:43:55]requested_item fd.num is exist - process it [18:43:55]SAM_PROTO_GetFieldsCounters [18:43:55]wFMCommunicate request_size=4 [18:43:55]MH_SAM_APDU [18:43:55]CAPDU: 80 13 00 00 [18:43:55]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [18:43:55]Write i2c OK [18:43:55]MH_I2C_Read... [18:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:55]Read from MH i2c: E2 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 62 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 09 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 09 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:55]wFMCommunicate OK [18:43:55]SAM_PROTO_GetFieldsCounters done [18:43:55]requested_item shift.num is exist - process it [18:43:55]requested_item shift.opened is exist - process it [18:43:55]req_shift_opened [18:43:55]FM_GetShiftState [18:43:55]SAM_PROTO_GetShiftState [18:43:55]wFMCommunicate request_size=4 [18:43:55]MH_SAM_APDU [18:43:55]CAPDU: 80 13 01 00 [18:43:55]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [18:43:55]Write i2c OK [18:43:55]MH_I2C_Read... [18:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:55]Read from MH i2c: E2 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 0E 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 00 [18:43:55]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:43:55]wFMCommunicate OK [18:43:55]SAM_PROTO_GetShiftState done [18:43:55]FM_GetShiftState done [18:43:55]req_shift_opened done [18:43:55]requested_item shift.open_date is exist - process it [18:43:55]req_shift_open_date [18:43:55]req_shift_open_date done [18:43:55]produce_requested_data done [18:43:55]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82441,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:43:55]process_action_free close_receipt [18:43:55]json_value_free [18:43:55]json_value_free done [18:43:55]process_json_proto returns [18:43:55]Send response to host [18:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82441,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:43:55]free response buf [18:43:55]execute_script done [18:43:55]execute_script returns [18:43:55]free content buf [18:43:55]Sock 10.Close socket [18:43:55]Sock 10.Thread stoped [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:24]recv_with_timeout no data received [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:40]OFD Sender: No OFD packet to send [18:44:43]recv_with_timeout no data received [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:00]accept exits with 7 [18:45:00]New connection [18:45:00]New thread 3067362660 created [18:45:00]Thread 3067219300 joined [18:45:00]Waiting for new connection... [18:45:00] Sock 7.Parse request [18:45:00]Sock 7.Check first char [18:45:00]Sock 7.First char is OK [18:45:00]request: POST /json_proto HTTP/1.0 [18:45:00]Method: POST [18:45:00]URL: /json_proto [18:45:00]Method is POST - this is cgi request [18:45:00]url: /json_proto [18:45:00]query_string will be loaded in cgi processing [18:45:00]execute_cgi json_proto POST (null) [18:45:00]execute_cgi path=json_proto method=POST [18:45:00]POST find Content-Length [18:45:00]Host: 172.17.44.67:8080 [18:45:00]Content-Length: 803 [18:45:00]Content-Type: application/json [18:45:00] [18:45:00]POST finish read [18:45:00]Found Content-Length = 803 [18:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918934", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:00]execute_script... [18:45:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918934", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:00]POST & json_proto [18:45:00]process_json_proto [18:45:00]json parsed OK: [18:45:00]protocol is kg_v1.0 [18:45:00]action value=close_receipt [18:45:00]process_action close_receipt [18:45:00]cmd_close_receipt [18:45:00]MH_GetDate [18:45:00]Write to MH i2c: F0 00 00 B2 00 A1 [18:45:00]Write i2c OK [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: F0 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: F0 09 00 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: F0 09 00 B2 00 00 AD AC 12 67 F1 C7 6B 64 03 [18:45:00]GetLastDocTimeStamp 1729277032 [18:45:00]current date 1729277101 [18:45:00]FM_GetShiftState [18:45:00]SAM_PROTO_GetShiftState [18:45:00]wFMCommunicate request_size=4 [18:45:00]MH_SAM_APDU [18:45:00]CAPDU: 80 13 01 00 [18:45:00]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [18:45:00]Write i2c OK [18:45:00]MH_I2C_Read... [18:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:00]Read from MH i2c: E2 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: E2 0E 00 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 02 [18:45:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:45:00]wFMCommunicate OK [18:45:00]SAM_PROTO_GetShiftState done [18:45:00]FM_GetShiftState done [18:45:00]opened in 1729212319 [18:45:00]opened+sec_in_day 1729298719 [18:45:00]quantity*price = 100021 [18:45:00]sum+1 = 100023 [18:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 151 18.10.2024 18:45 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82442 ФПД: 180519236654057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T184501&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82442&fm=180519236654057&tin=02508201610067®Number=0000000000091680&sum=100022 [18:45:01]StoreToDocumentArchive [18:45:01]shift 526 fd 82442 [18:45:01]save to /storage/0526/doc_00082442 [18:45:01]save last doc name /storage/0526/doc_00082442 to /storage/kkm_last_doc_name [18:45:01]save OK [18:45:01]Clear old archive folders... [18:45:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:01]tlvbuf is 00C51900 [18:45:01]SAM_PROTO_ClearQueue [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 09 00 00 [18:45:01]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]SAM_PROTO_ClearQueue done [18:45:01]KKMCreateOFDPacket [18:45:01]OFDProtocolAddRootSTLVToBuf [18:45:01]FM_MakeSignedData [18:45:01]FM_MakeSignedData [18:45:01]SAM_PROTO_SignData [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 01 02 [18:45:01]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]wFMCommunicate request_size=255 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AD AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 42 01 00 35 04 06 00 A4 [18:45:01]Write to MH i2c: E2 02 01 C2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AD AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 42 01 00 35 04 06 00 A4 00 00 7A [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]wFMCommunicate request_size=10 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 02 02 05 2E 68 F9 D3 E9 [18:45:01]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 2E 68 F9 D3 E9 00 00 92 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [18:45:01]RAPDU: 90 00 [18:45:01]wFMCommunicate OK [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 0D 03 02 [18:45:01]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0B 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 0B 00 C4 00 00 F2 38 02 79 C0 6A B9 09 90 00 D1 [18:45:01]RAPDU: F2 38 02 79 C0 6A B9 09 90 00 [18:45:01]wFMCommunicate OK [18:45:01]SAM_PROTO_SignData done [18:45:01]FM_MakeSignedData done [18:45:01]CreateOFDProtocolMessage [18:45:01]wFMCommunicate request_size=4 [18:45:01]MH_SAM_APDU [18:45:01]CAPDU: 80 11 00 00 [18:45:01]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:01]Read from MH i2c: E2 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 17 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [18:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:45:01]wFMCommunicate OK [18:45:01]CreateOFDProtocolMessage done [18:45:01]OFDSenderStorePacket 82442 [18:45:01]StoreOFDPacket docnum=82442 [18:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 14 7F 07 01 2D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AD AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 42 01 00 35 04 06 00 A4 2E 68 F9 D3 E9 F2 38 02 79 C0 6A B9 09 [18:45:01]CheckFolder [18:45:01]dirname=/storage/ofd_packets [18:45:01]CheckFolder done [18:45:01]ProducePacketName [18:45:01]name=ofd_packets/00082442 [18:45:01]NVStorageSaveData ofd_packets/00082442 [18:45:01]File name is /storage/ofd_packets/00082442 [18:45:01]Write 301 bytes [18:45:01]NVStorageSaveData done [18:45:01]OFDSenderStorePacket done [18:45:01]KKMCreateOFDPacket done [18:45:01]NVStorageSaveData kkm_last_timestamp [18:45:01]File name is /storage/kkm_last_timestamp [18:45:01]Write 4 bytes [18:45:01]NVStorageSaveData done [18:45:01]ExternCall_PrintAddStr [18:45:01]wPrintStart [18:45:01]Write to MH i2c: 01 00 00 C6 00 C6 [18:45:01]Write i2c OK [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: 01 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: 01 07 00 [18:45:01]MH_I2C_Read... [18:45:01]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [18:45:01]RasterBufferAndPrint [18:45:01]line Счет N : (1)918934 [18:45:01]line ИНН: 02508201610067 [18:45:01]line Контрольно-Кассовый Чек [18:45:01]line ПРОДАЖА [18:45:01]line ТРК (МРК, ГНК) : 12 [18:45:01]line Товар: 2710124500 [18:45:01]line Аи-95-К-5 [18:45:01]line 13.480 * 74.20 [18:45:01]line = 1000.22 [18:45:01]line НДС 12% НСП 1% [18:45:01]line > о реализуемом товаре [18:45:01]line ИТОГО: 1000.22 [18:45:01]line НСП 1% : 8.85 [18:45:01]line НДС 12% : 106.22 [18:45:01]line Наличными: 0.00 [18:45:01]line Безнал.: 1000.22 [18:45:01]line Место: АЗС № 114 "Партнер Нефть" [18:45:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:45:01]line СНО: Общий режим [18:45:01]line Чек 151 18.10.2024 18:45 [18:45:01]line Смена: 526 ФФД: 1.0 [18:45:01]line ЗНМ: 0300000086 [18:45:01]line РНМ: 0000000000091680 [18:45:01]line Версия ККМ: 001 [18:45:01]line Платежная система: O! деньги [18:45:01]line ФМ: 0000000000871843 [18:45:01]line ФД: 82442 [18:45:01]line ФПД: 180519236654057 [18:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T184501&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82442&fm=180519236654057&tin=02508201610067®Number=0000000000091680&sum=100022 [18:45:02]OFD Sender: Processing packet 82442 [packets to send 254, broken 253] [18:45:02]ProducePacketName [18:45:02]name=ofd_packets/00082442 [18:45:02]OFD Sender: To server: pG, [18:45:02]CommunicateWithHost lk.salyk.kg:30040 [18:45:02]ConnectInit lk.salyk.kg [18:45:02]written 0, free lines is 4095 [18:45:02]Write to MH i2c: 01 00 00 F0 00 F0 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 07 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 EC 0C EF [18:45:02]RasterBufferAndPrint [18:45:02]line [18:45:02]line [18:45:02]line [18:45:02]line [18:45:02]line [18:45:02]written 0, free lines is 3311 [18:45:02]MH_Cut [18:45:02]Write to MH i2c: D1 01 00 F7 00 01 C9 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: D1 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: D1 01 00 [18:45:02]MH_I2C_Read... [18:45:02]Read from MH i2c: D1 01 00 F7 00 00 C8 [18:45:02]Write to MH i2c: 01 00 00 F8 00 F8 [18:45:02]Write i2c OK [18:45:02]MH_I2C_Read... [18:45:03]*** Cut start [18:45:03]*** Partial cut [18:45:03]*** CUTSNS_PIN = 1 [18:45:03]*** CUTSNS_PIN = 0 [18:45:03]Connected sock=11 [18:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 14 7F 07 01 2D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 AD AC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 42 01 00 35 04 06 00 A4 2E 68 F9 D3 E9 F2 38 02 79 C0 6A B9 09 [18:45:03]*** Brake cut motor [18:45:04]Read from MH i2c: 01 [18:45:04]MH_I2C_Read... [18:45:04]*** Stop cut motor [18:45:04]*** Cut end [18:45:04]Read from MH i2c: 01 07 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [18:45:04]process_action close_receipt done [18:45:04]requested_data is exist [18:45:04]produce_requested_data [18:45:04]requested_item fm.sn is exist - process it [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 11 00 00 [18:45:04]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 35 F1 47 00 EA 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0A 42 01 00 F4 03 04 00 E8 51 12 67 B6 04 01 00 00 A0 B0 DA DC F0 09 52 35 [18:45:04]CommunicateWithHost err = 0 [18:45:04]CheckOFDResponse [18:45:04]1017 (14) - 77093643461234 [18:45:04]1041 (16) - 0000000000871843 [18:45:04]1040 (4) - 82442 [18:45:04]1012 (4) - 18.10.2024 12:17 [18:45:04]1206 (1) - 0 [18:45:04]OFD Sender: Remove packet 82442 [18:45:04]ProducePacketName [18:45:04]name=ofd_packets/00082442 [18:45:04]NVStorageDeleteData [18:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 17 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [18:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:45:04]wFMCommunicate OK [18:45:04]requested_item fd.num is exist - process it [18:45:04]SAM_PROTO_GetFieldsCounters [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 13 00 00 [18:45:04]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 62 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [18:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:04]wFMCommunicate OK [18:45:04]SAM_PROTO_GetFieldsCounters done [18:45:04]requested_item shift.num is exist - process it [18:45:04]requested_item shift.opened is exist - process it [18:45:04]req_shift_opened [18:45:04]FM_GetShiftState [18:45:04]SAM_PROTO_GetShiftState [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 13 01 00 [18:45:04]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0E 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4A [18:45:04]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:45:04]wFMCommunicate OK [18:45:04]SAM_PROTO_GetShiftState done [18:45:04]FM_GetShiftState done [18:45:04]req_shift_opened done [18:45:04]requested_item shift.open_date is exist - process it [18:45:04]req_shift_open_date [18:45:04]req_shift_open_date done [18:45:04]produce_requested_data done [18:45:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82442,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:45:04]process_action_free close_receipt [18:45:04]json_value_free [18:45:04]json_value_free done [18:45:04]process_json_proto returns [18:45:04]Send response to host [18:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82442,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:45:04]free response buf [18:45:04]execute_script done [18:45:04]execute_script returns [18:45:04]free content buf [18:45:04]Sock 7.Close socket [18:45:04]Sock 7.Thread stoped [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:15]recv_with_timeout no data received [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:46]recv_with_timeout no data received [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:29]recv_with_timeout no data received [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:43]accept exits with 9 [18:52:43]New connection [18:52:43]New thread 3067219300 created [18:52:43]Thread 3067362660 joined [18:52:43]Waiting for new connection... [18:52:43] Sock 9.Parse request [18:52:43]Sock 9.Check first char [18:52:43]Sock 9.First char is OK [18:52:43]request: POST /json_proto HTTP/1.0 [18:52:43]Method: POST [18:52:43]URL: /json_proto [18:52:43]Method is POST - this is cgi request [18:52:43]url: /json_proto [18:52:43]query_string will be loaded in cgi processing [18:52:43]execute_cgi json_proto POST (null) [18:52:43]execute_cgi path=json_proto method=POST [18:52:43]POST find Content-Length [18:52:43]Host: 172.17.44.67:8080 [18:52:43]Content-Length: 805 [18:52:43]Content-Type: application/json [18:52:43] [18:52:43]POST finish read [18:52:43]Found Content-Length = 805 [18:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4465355", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:43]execute_script... [18:52: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)918935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4465355", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:43]POST & json_proto [18:52:43]process_json_proto [18:52:43]json parsed OK: [18:52:43]protocol is kg_v1.0 [18:52:43]action value=close_receipt [18:52:43]process_action close_receipt [18:52:43]cmd_close_receipt [18:52:43]MH_GetDate [18:52:43]Write to MH i2c: F0 00 00 FC 00 EB [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: F0 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: F0 09 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: F0 09 00 FC 00 00 7C AE 12 67 F1 C7 6B 64 1E [18:52:43]GetLastDocTimeStamp 1729277101 [18:52:43]current date 1729277564 [18:52:43]FM_GetShiftState [18:52:43]SAM_PROTO_GetShiftState [18:52:43]wFMCommunicate request_size=4 [18:52:43]MH_SAM_APDU [18:52:43]CAPDU: 80 13 01 00 [18:52:43]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [18:52:43]Write i2c OK [18:52:43]MH_I2C_Read... [18:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:43]Read from MH i2c: E2 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 0E 00 [18:52:43]MH_I2C_Read... [18:52:43]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4C [18:52:43]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:52:43]wFMCommunicate OK [18:52:43]SAM_PROTO_GetShiftState done [18:52:43]FM_GetShiftState done [18:52:43]opened in 1729212319 [18:52:43]opened+sec_in_day 1729298719 [18:52:43]quantity*price = 0 [18:52:43]sum+1 = 1 [18:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 152 18.10.2024 18:52 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4465355 ФМ: 0000000000871843 ФД: 82443 ФПД: 244912545244768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185244&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82443&fm=244912545244768&tin=02508201610067®Number=0000000000091680&sum=0 [18:52:44]StoreToDocumentArchive [18:52:44]shift 526 fd 82443 [18:52:44]save to /storage/0526/doc_00082443 [18:52:44]save last doc name /storage/0526/doc_00082443 to /storage/kkm_last_doc_name [18:52:44]save OK [18:52:44]Clear old archive folders... [18:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:52:44]tlvbuf is 00C58000 [18:52:44]SAM_PROTO_ClearQueue [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 09 00 00 [18:52:44]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [18:52:44]RAPDU: 90 00 [18:52:44]wFMCommunicate OK [18:52:44]SAM_PROTO_ClearQueue done [18:52:44]KKMCreateOFDPacket [18:52:44]OFDProtocolAddRootSTLVToBuf [18:52:44]FM_MakeSignedData [18:52:44]FM_MakeSignedData [18:52:44]SAM_PROTO_SignData [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 0D 01 02 [18:52:44]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [18:52:44]RAPDU: 90 00 [18:52:44]wFMCommunicate OK [18:52:44]wFMCommunicate request_size=255 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C AE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 42 01 00 35 04 06 00 [18:52:44]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C AE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 42 01 00 35 04 06 00 00 00 E3 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:52:44]RAPDU: 90 00 [18:52:44]wFMCommunicate OK [18:52:44]wFMCommunicate request_size=11 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 0D 02 02 06 DE BF 25 42 A6 60 [18:52:44]Write to MH i2c: E2 0E 00 0D 01 80 0D 02 02 06 00 DE BF 25 42 A6 60 00 00 9E [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [18:52:44]RAPDU: 90 00 [18:52:44]wFMCommunicate OK [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 0D 03 02 [18:52:44]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0B 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 0B 00 0E 01 00 D8 7E F7 6F 0E 26 6B 02 90 00 E8 [18:52:44]RAPDU: D8 7E F7 6F 0E 26 6B 02 90 00 [18:52:44]wFMCommunicate OK [18:52:44]SAM_PROTO_SignData done [18:52:44]FM_MakeSignedData done [18:52:44]CreateOFDProtocolMessage [18:52:44]wFMCommunicate request_size=4 [18:52:44]MH_SAM_APDU [18:52:44]CAPDU: 80 11 00 00 [18:52:44]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:44]Read from MH i2c: E2 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 17 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [18:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:52:44]wFMCommunicate OK [18:52:44]CreateOFDProtocolMessage done [18:52:44]OFDSenderStorePacket 82443 [18:52:44]StoreOFDPacket docnum=82443 [18:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 80 70 08 01 0E 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C AE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 42 01 00 35 04 06 00 DE BF 25 42 A6 60 D8 7E F7 6F 0E 26 6B 02 [18:52:44]CheckFolder [18:52:44]dirname=/storage/ofd_packets [18:52:44]CheckFolder done [18:52:44]ProducePacketName [18:52:44]name=ofd_packets/00082443 [18:52:44]NVStorageSaveData ofd_packets/00082443 [18:52:44]File name is /storage/ofd_packets/00082443 [18:52:44]Write 302 bytes [18:52:44]NVStorageSaveData done [18:52:44]OFDSenderStorePacket done [18:52:44]KKMCreateOFDPacket done [18:52:44]NVStorageSaveData kkm_last_timestamp [18:52:44]File name is /storage/kkm_last_timestamp [18:52:44]Write 4 bytes [18:52:44]NVStorageSaveData done [18:52:44]ExternCall_PrintAddStr [18:52:44]wPrintStart [18:52:44]Write to MH i2c: 01 00 00 10 01 11 [18:52:44]Write i2c OK [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 [18:52:44]MH_I2C_Read... [18:52:44]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [18:52:44]RasterBufferAndPrint [18:52:44]line Счет N : (1)918935 [18:52:44]line ИНН: 02508201610067 [18:52:44]line Контрольно-Кассовый Чек [18:52:44]line ПРОДАЖА [18:52:44]line ТРК (МРК, ГНК) : 31 [18:52:44]line Товар: 2710194210 [18:52:44]line ДТ(л)-К-5 [18:52:44]line 70.000 * 0.00 [18:52:44]line = 0.00 [18:52:44]line НДС 12% НСП 1% [18:52:44]line > о реализуемом товаре [18:52:44]line ИТОГО: 0.00 [18:52:44]line НСП 1% : 0.00 [18:52:44]line НДС 12% : 0.00 [18:52:44]line Наличными: 0.00 [18:52:44]line Безнал.: 0.00 [18:52:44]line Место: АЗС № 114 "Партнер Нефть" [18:52:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:52:44]line СНО: Общий режим [18:52:44]line Чек 152 18.10.2024 18:52 [18:52:44]line Смена: 526 ФФД: 1.0 [18:52:44]line ЗНМ: 0300000086 [18:52:44]line РНМ: 0000000000091680 [18:52:44]line Версия ККМ: 001 [18:52:44]line Талоны: Топливные Талоны [18:52:44]line 4465355 [18:52:44]line ФМ: 0000000000871843 [18:52:44]line ФД: 82443 [18:52:44]line ФПД: 244912545244768 [18:52:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185244&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82443&fm=244912545244768&tin=02508201610067®Number=0000000000091680&sum=0 [18:52:45]written 0, free lines is 4095 [18:52:45]OFD Sender: Processing packet 82443 [packets to send 254, broken 253] [18:52:45]ProducePacketName [18:52:45]name=ofd_packets/00082443 [18:52:45]OFD Sender: To server: pG, [18:52:45]CommunicateWithHost lk.salyk.kg:30040 [18:52:45]ConnectInit lk.salyk.kg [18:52:45]Write to MH i2c: 01 00 00 3A 01 3B [18:52:45]Write i2c OK [18:52:45]MH_I2C_Read... [18:52:45]Read from MH i2c: 01 [18:52:45]MH_I2C_Read... [18:52:45]Read from MH i2c: 01 07 00 [18:52:45]MH_I2C_Read... [18:52:45]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 DD 0C 2B [18:52:45]RasterBufferAndPrint [18:52:45]line [18:52:45]line [18:52:45]line [18:52:45]line [18:52:45]line [18:52:45]written 0, free lines is 3299 [18:52:45]MH_Cut [18:52:45]Write to MH i2c: D1 01 00 41 01 01 14 [18:52:45]Write i2c OK [18:52:45]MH_I2C_Read... [18:52:45]Read from MH i2c: D1 [18:52:45]MH_I2C_Read... [18:52:45]Read from MH i2c: D1 01 00 [18:52:45]MH_I2C_Read... [18:52:45]Read from MH i2c: D1 01 00 41 01 00 13 [18:52:45]Write to MH i2c: 01 00 00 42 01 43 [18:52:45]Write i2c OK [18:52:45]MH_I2C_Read... [18:52:45]Connected sock=7 [18:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 80 70 08 01 0E 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7C AE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 42 01 00 35 04 06 00 DE BF 25 42 A6 60 D8 7E F7 6F 0E 26 6B 02 [18:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DF 6F 47 00 1F EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0B 42 01 00 F4 03 04 00 B6 53 12 67 B6 04 01 00 00 02 81 AD EA 5E C3 6F 67 [18:52:46]CommunicateWithHost err = 0 [18:52:46]CheckOFDResponse [18:52:46]1017 (14) - 77093643461234 [18:52:46]1041 (16) - 0000000000871843 [18:52:46]1040 (4) - 82443 [18:52:46]1012 (4) - 18.10.2024 12:25 [18:52:46]1206 (1) - 0 [18:52:46]OFD Sender: Remove packet 82443 [18:52:46]ProducePacketName [18:52:46]name=ofd_packets/00082443 [18:52:46]NVStorageDeleteData [18:52:46]*** Cut start [18:52:46]*** Partial cut [18:52:46]*** CUTSNS_PIN = 1 [18:52:46]*** CUTSNS_PIN = 0 [18:52:46]*** Brake cut motor [18:52:46]OFD Sender: No OFD packet to send [18:52:46]Read from MH i2c: 01 [18:52:46]MH_I2C_Read... [18:52:46]*** Stop cut motor [18:52:46]*** Cut end [18:52:46]Read from MH i2c: 01 07 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [18:52:46]process_action close_receipt done [18:52:46]requested_data is exist [18:52:46]produce_requested_data [18:52:46]requested_item fm.sn is exist - process it [18:52:46]wFMCommunicate request_size=4 [18:52:46]MH_SAM_APDU [18:52:46]CAPDU: 80 11 00 00 [18:52:46]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:46]Read from MH i2c: E2 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: E2 17 00 [18:52:46]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 10 [18:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:52:47]wFMCommunicate OK [18:52:47]requested_item fd.num is exist - process it [18:52:47]SAM_PROTO_GetFieldsCounters [18:52:47]wFMCommunicate request_size=4 [18:52:47]MH_SAM_APDU [18:52:47]CAPDU: 80 13 00 00 [18:52:47]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:47]Read from MH i2c: E2 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 62 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [18:52:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:47]wFMCommunicate OK [18:52:47]SAM_PROTO_GetFieldsCounters done [18:52:47]requested_item shift.num is exist - process it [18:52:47]requested_item shift.opened is exist - process it [18:52:47]req_shift_opened [18:52:47]FM_GetShiftState [18:52:47]SAM_PROTO_GetShiftState [18:52:47]wFMCommunicate request_size=4 [18:52:47]MH_SAM_APDU [18:52:47]CAPDU: 80 13 01 00 [18:52:47]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:47]Read from MH i2c: E2 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 0E 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 95 [18:52:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:52:47]wFMCommunicate OK [18:52:47]SAM_PROTO_GetShiftState done [18:52:47]FM_GetShiftState done [18:52:47]req_shift_opened done [18:52:47]requested_item shift.open_date is exist - process it [18:52:47]req_shift_open_date [18:52:47]req_shift_open_date done [18:52:47]produce_requested_data done [18:52:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82443,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:52:47]process_action_free close_receipt [18:52:47]json_value_free [18:52:47]json_value_free done [18:52:47]process_json_proto returns [18:52:47]Send response to host [18:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82443,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:52:47]free response buf [18:52:47]execute_script done [18:52:47]execute_script returns [18:52:47]free content buf [18:52:47]Sock 9.Close socket [18:52:47]Sock 9.Thread stoped [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:04]recv_with_timeout no data received [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:15]recv_with_timeout no data received [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:30]accept exits with 10 [18:56:30]New connection [18:56:30]New thread 3067362660 created [18:56:30]Thread 3067219300 joined [18:56:30]Waiting for new connection... [18:56:30] Sock 10.Parse request [18:56:30]Sock 10.Check first char [18:56:30]Sock 10.First char is OK [18:56:30]request: POST /json_proto HTTP/1.0 [18:56:30]Method: POST [18:56:30]URL: /json_proto [18:56:30]Method is POST - this is cgi request [18:56:30]url: /json_proto [18:56:30]query_string will be loaded in cgi processing [18:56:30]execute_cgi json_proto POST (null) [18:56:30]execute_cgi path=json_proto method=POST [18:56:30]POST find Content-Length [18:56:30]Host: 172.17.44.67:8080 [18:56:30]Content-Length: 803 [18:56:30]Content-Type: application/json [18:56:30] [18:56:30]POST finish read [18:56:30]Found Content-Length = 803 [18:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:30]execute_script... [18:56: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)918936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:30]POST & json_proto [18:56:30]process_json_proto [18:56:30]json parsed OK: [18:56:30]protocol is kg_v1.0 [18:56:30]action value=close_receipt [18:56:30]process_action close_receipt [18:56:30]cmd_close_receipt [18:56:30]MH_GetDate [18:56:30]Write to MH i2c: F0 00 00 46 01 36 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: F0 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: F0 09 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: F0 09 00 46 01 00 5F AF 12 67 F1 C7 6B 64 4D [18:56:30]GetLastDocTimeStamp 1729277564 [18:56:30]current date 1729277791 [18:56:30]FM_GetShiftState [18:56:30]SAM_PROTO_GetShiftState [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 13 01 00 [18:56:30]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0E 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 97 [18:56:30]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:56:30]wFMCommunicate OK [18:56:30]SAM_PROTO_GetShiftState done [18:56:30]FM_GetShiftState done [18:56:30]opened in 1729212319 [18:56:30]opened+sec_in_day 1729298719 [18:56:30]quantity*price = 100015 [18:56:30]sum+1 = 100017 [18:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 153 18.10.2024 18:56 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82444 ФПД: 123187550028952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185631&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82444&fm=123187550028952&tin=02508201610067®Number=0000000000091680&sum=100016 [18:56:32]StoreToDocumentArchive [18:56:32]shift 526 fd 82444 [18:56:32]save to /storage/0526/doc_00082444 [18:56:32]save last doc name /storage/0526/doc_00082444 to /storage/kkm_last_doc_name [18:56:32]save OK [18:56:32]Clear old archive folders... [18:56:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:32]tlvbuf is 00C5B430 [18:56:32]SAM_PROTO_ClearQueue [18:56:32]wFMCommunicate request_size=4 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 09 00 00 [18:56:32]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:56:32]RAPDU: 90 00 [18:56:32]wFMCommunicate OK [18:56:32]SAM_PROTO_ClearQueue done [18:56:32]KKMCreateOFDPacket [18:56:32]OFDProtocolAddRootSTLVToBuf [18:56:32]FM_MakeSignedData [18:56:32]FM_MakeSignedData [18:56:32]SAM_PROTO_SignData [18:56:32]wFMCommunicate request_size=4 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 0D 01 02 [18:56:32]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:56:32]RAPDU: 90 00 [18:56:32]wFMCommunicate OK [18:56:32]wFMCommunicate request_size=255 [18:56:32]MH_SAM_APDU [18:56: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5F AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 42 01 00 35 04 06 00 70 [18:56:32]Write to MH i2c: E2 02 01 56 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5F AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 42 01 00 35 04 06 00 70 00 00 64 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:56:32]RAPDU: 90 00 [18:56:32]wFMCommunicate OK [18:56:32]wFMCommunicate request_size=10 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 0D 02 02 05 09 D6 29 04 98 [18:56:32]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 09 D6 29 04 98 00 00 80 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [18:56:32]RAPDU: 90 00 [18:56:32]wFMCommunicate OK [18:56:32]wFMCommunicate request_size=4 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 0D 03 02 [18:56:32]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 0B 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 0B 00 58 01 00 4E F2 7A 51 67 37 AE 72 90 00 9E [18:56:32]RAPDU: 4E F2 7A 51 67 37 AE 72 90 00 [18:56:32]wFMCommunicate OK [18:56:32]SAM_PROTO_SignData done [18:56:32]FM_MakeSignedData done [18:56:32]CreateOFDProtocolMessage [18:56:32]wFMCommunicate request_size=4 [18:56:32]MH_SAM_APDU [18:56:32]CAPDU: 80 11 00 00 [18:56:32]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:32]Read from MH i2c: E2 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 17 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 26 [18:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:56:32]wFMCommunicate OK [18:56:32]CreateOFDProtocolMessage done [18:56:32]OFDSenderStorePacket 82444 [18:56:32]StoreOFDPacket docnum=82444 [18:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 68 0C 07 01 C7 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5F AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 42 01 00 35 04 06 00 70 09 D6 29 04 98 4E F2 7A 51 67 37 AE 72 [18:56:32]CheckFolder [18:56:32]dirname=/storage/ofd_packets [18:56:32]CheckFolder done [18:56:32]ProducePacketName [18:56:32]name=ofd_packets/00082444 [18:56:32]NVStorageSaveData ofd_packets/00082444 [18:56:32]File name is /storage/ofd_packets/00082444 [18:56:32]Write 301 bytes [18:56:32]NVStorageSaveData done [18:56:32]OFDSenderStorePacket done [18:56:32]KKMCreateOFDPacket done [18:56:32]NVStorageSaveData kkm_last_timestamp [18:56:32]File name is /storage/kkm_last_timestamp [18:56:32]Write 4 bytes [18:56:32]NVStorageSaveData done [18:56:32]ExternCall_PrintAddStr [18:56:32]wPrintStart [18:56:32]Write to MH i2c: 01 00 00 5A 01 5B [18:56:32]Write i2c OK [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: 01 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: 01 07 00 [18:56:32]MH_I2C_Read... [18:56:32]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [18:56:32]RasterBufferAndPrint [18:56:32]line Счет N : (1)918936 [18:56:32]line ИНН: 02508201610067 [18:56:32]line Контрольно-Кассовый Чек [18:56:32]line ПРОДАЖА [18:56:32]line ТРК (МРК, ГНК) : 22 [18:56:32]line Товар: 2710124130 [18:56:32]line Аи-92-К-4 [18:56:32]line 14.950 * 66.90 [18:56:32]line = 1000.16 [18:56:32]line НДС 12% НСП 1% [18:56:32]line > о реализуемом товаре [18:56:32]line ИТОГО: 1000.16 [18:56:32]line НСП 1% : 8.85 [18:56:32]line НДС 12% : 106.21 [18:56:32]line Наличными: 0.00 [18:56:32]line Безнал.: 1000.16 [18:56:32]line Место: АЗС № 114 "Партнер Нефть" [18:56:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:56:32]line СНО: Общий режим [18:56:32]line Чек 153 18.10.2024 18:56 [18:56:32]line Смена: 526 ФФД: 1.0 [18:56:32]line ЗНМ: 0300000086 [18:56:32]line РНМ: 0000000000091680 [18:56:32]line Версия ККМ: 001 [18:56:32]line Платежная система: O! деньги [18:56:32]line ФМ: 0000000000871843 [18:56:32]line ФД: 82444 [18:56:32]line ФПД: 123187550028952 [18:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185631&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82444&fm=123187550028952&tin=02508201610067®Number=0000000000091680&sum=100016 [18:56:32]OFD Sender: Processing packet 82444 [packets to send 254, broken 253] [18:56:32]ProducePacketName [18:56:32]name=ofd_packets/00082444 [18:56:32]OFD Sender: To server: pG, [18:56:32]CommunicateWithHost lk.salyk.kg:30040 [18:56:32]ConnectInit lk.salyk.kg [18:56:32]written 0, free lines is 4095 [18:56:33]Write to MH i2c: 01 00 00 84 01 85 [18:56:33]Write i2c OK [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: 01 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: 01 07 00 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 DD 0C 75 [18:56:33]RasterBufferAndPrint [18:56:33]line [18:56:33]line [18:56:33]line [18:56:33]line [18:56:33]line [18:56:33]written 0, free lines is 3300 [18:56:33]MH_Cut [18:56:33]Write to MH i2c: D1 01 00 8B 01 01 5E [18:56:33]Write i2c OK [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: D1 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: D1 01 00 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: D1 01 00 8B 01 00 5D [18:56:33]Write to MH i2c: 01 00 00 8C 01 8D [18:56:33]Write i2c OK [18:56:33]MH_I2C_Read... [18:56:33]Connected sock=11 [18:56:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 68 0C 07 01 C7 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5F AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 42 01 00 35 04 06 00 70 09 D6 29 04 98 4E F2 7A 51 67 37 AE 72 [18:56:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 28 52 47 00 35 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0C 42 01 00 F4 03 04 00 9A 54 12 67 B6 04 01 00 00 29 96 1F FF 60 12 09 EF [18:56:34]CommunicateWithHost err = 0 [18:56:34]CheckOFDResponse [18:56:34]1017 (14) - 77093643461234 [18:56:34]1041 (16) - 0000000000871843 [18:56:34]1040 (4) - 82444 [18:56:34]1012 (4) - 18.10.2024 12:29 [18:56:34]1206 (1) - 0 [18:56:34]OFD Sender: Remove packet 82444 [18:56:34]ProducePacketName [18:56:34]name=ofd_packets/00082444 [18:56:34]NVStorageDeleteData [18:56:34]*** Cut start [18:56:34]*** Partial cut [18:56:34]*** CUTSNS_PIN = 1 [18:56:34]*** CUTSNS_PIN = 0 [18:56:34]*** Brake cut motor [18:56:34]OFD Sender: No OFD packet to send [18:56:34]Read from MH i2c: 01 [18:56:34]MH_I2C_Read... [18:56:34]*** Stop cut motor [18:56:34]*** Cut end [18:56:34]Read from MH i2c: 01 07 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [18:56:34]process_action close_receipt done [18:56:34]requested_data is exist [18:56:34]produce_requested_data [18:56:34]requested_item fm.sn is exist - process it [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 11 00 00 [18:56:34]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 17 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5A [18:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:56:34]wFMCommunicate OK [18:56:34]requested_item fd.num is exist - process it [18:56:34]SAM_PROTO_GetFieldsCounters [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 13 00 00 [18:56:34]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 62 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [18:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:34]wFMCommunicate OK [18:56:34]SAM_PROTO_GetFieldsCounters done [18:56:34]requested_item shift.num is exist - process it [18:56:34]requested_item shift.opened is exist - process it [18:56:34]req_shift_opened [18:56:34]FM_GetShiftState [18:56:34]SAM_PROTO_GetShiftState [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 13 01 00 [18:56:34]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:35]Read from MH i2c: E2 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 0E 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DF [18:56:35]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:56:35]wFMCommunicate OK [18:56:35]SAM_PROTO_GetShiftState done [18:56:35]FM_GetShiftState done [18:56:35]req_shift_opened done [18:56:35]requested_item shift.open_date is exist - process it [18:56:35]req_shift_open_date [18:56:35]req_shift_open_date done [18:56:35]produce_requested_data done [18:56:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82444,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:56:35]process_action_free close_receipt [18:56:35]json_value_free [18:56:35]json_value_free done [18:56:35]process_json_proto returns [18:56:35]Send response to host [18:56:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82444,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:56:35]free response buf [18:56:35]execute_script done [18:56:35]execute_script returns [18:56:35]free content buf [18:56:35]Sock 10.Close socket [18:56:35]Sock 10.Thread stoped [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:21]accept exits with 7 [18:57:21]New connection [18:57:21]New thread 3067219300 created [18:57:21]Thread 3067362660 joined [18:57:21]Waiting for new connection... [18:57:21] Sock 7.Parse request [18:57:21]Sock 7.Check first char [18:57:21]Sock 7.First char is OK [18:57:21]request: POST /json_proto HTTP/1.0 [18:57:21]Method: POST [18:57:21]URL: /json_proto [18:57:21]Method is POST - this is cgi request [18:57:21]url: /json_proto [18:57:21]query_string will be loaded in cgi processing [18:57:21]execute_cgi json_proto POST (null) [18:57:21]execute_cgi path=json_proto method=POST [18:57:21]POST find Content-Length [18:57:21]Host: 172.17.44.67:8080 [18:57:21]Content-Length: 677 [18:57:21]Content-Type: application/json [18:57:21] [18:57:21]POST finish read [18:57:21]Found Content-Length = 677 [18:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:21]execute_script... [18:57: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)918937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:21]POST & json_proto [18:57:21]process_json_proto [18:57:21]json parsed OK: [18:57:21]protocol is kg_v1.0 [18:57:21]action value=close_receipt [18:57:21]process_action close_receipt [18:57:21]cmd_close_receipt [18:57:21]MH_GetDate [18:57:21]Write to MH i2c: F0 00 00 90 01 80 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: F0 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: F0 09 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: F0 09 00 90 01 00 92 AF 12 67 F1 C7 6B 64 CA [18:57:21]GetLastDocTimeStamp 1729277791 [18:57:21]current date 1729277842 [18:57:21]FM_GetShiftState [18:57:21]SAM_PROTO_GetShiftState [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 13 01 00 [18:57:21]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 0E 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E1 [18:57:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:57:21]wFMCommunicate OK [18:57:21]SAM_PROTO_GetShiftState done [18:57:21]FM_GetShiftState done [18:57:21]opened in 1729212319 [18:57:21]opened+sec_in_day 1729298719 [18:57:21]quantity*price = 50041 [18:57:21]sum+1 = 50042 [18:57:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 154 18.10.2024 18:57 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82445 ФПД: 104353722495301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185722&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82445&fm=104353722495301&tin=02508201610067®Number=0000000000091680&sum=50000 [18:57:22]StoreToDocumentArchive [18:57:22]shift 526 fd 82445 [18:57:22]save to /storage/0526/doc_00082445 [18:57:22]save last doc name /storage/0526/doc_00082445 to /storage/kkm_last_doc_name [18:57:22]save OK [18:57:22]Clear old archive folders... [18:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:22]tlvbuf is 00C58D00 [18:57:22]SAM_PROTO_ClearQueue [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 09 00 00 [18:57:22]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]SAM_PROTO_ClearQueue done [18:57:22]KKMCreateOFDPacket [18:57:22]OFDProtocolAddRootSTLVToBuf [18:57:22]FM_MakeSignedData [18:57:22]FM_MakeSignedData [18:57:22]SAM_PROTO_SignData [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 0D 01 02 [18:57:22]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]wFMCommunicate request_size=255 [18:57:22]MH_SAM_APDU [18:57: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 42 01 00 35 04 06 00 5E [18:57:22]Write to MH i2c: E2 02 01 A0 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 42 01 00 35 04 06 00 5E 00 00 B7 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:23]Read from MH i2c: E2 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 03 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [18:57:23]RAPDU: 90 00 [18:57:23]wFMCommunicate OK [18:57:23]wFMCommunicate request_size=10 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 0D 02 02 05 E8 BE 8F 71 45 [18:57:23]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 E8 BE 8F 71 45 00 00 11 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:23]Read from MH i2c: E2 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 03 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [18:57:23]RAPDU: 90 00 [18:57:23]wFMCommunicate OK [18:57:23]wFMCommunicate request_size=4 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 0D 03 02 [18:57:23]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:23]Read from MH i2c: E2 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 0B 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 0B 00 A2 01 00 46 E8 E5 71 DA 43 9A D1 90 00 2B [18:57:23]RAPDU: 46 E8 E5 71 DA 43 9A D1 90 00 [18:57:23]wFMCommunicate OK [18:57:23]SAM_PROTO_SignData done [18:57:23]FM_MakeSignedData done [18:57:23]CreateOFDProtocolMessage [18:57:23]wFMCommunicate request_size=4 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 11 00 00 [18:57:23]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:23]Read from MH i2c: E2 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 17 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 70 [18:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:57:23]wFMCommunicate OK [18:57:23]CreateOFDProtocolMessage done [18:57:23]OFDSenderStorePacket 82445 [18:57:23]StoreOFDPacket docnum=82445 [18:57:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 94 E8 07 01 91 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 42 01 00 35 04 06 00 5E E8 BE 8F 71 45 46 E8 E5 71 DA 43 9A D1 [18:57:23]CheckFolder [18:57:23]dirname=/storage/ofd_packets [18:57:23]CheckFolder done [18:57:23]ProducePacketName [18:57:23]name=ofd_packets/00082445 [18:57:23]NVStorageSaveData ofd_packets/00082445 [18:57:23]File name is /storage/ofd_packets/00082445 [18:57:23]Write 301 bytes [18:57:23]NVStorageSaveData done [18:57:23]OFDSenderStorePacket done [18:57:23]KKMCreateOFDPacket done [18:57:23]NVStorageSaveData kkm_last_timestamp [18:57:23]File name is /storage/kkm_last_timestamp [18:57:23]Write 4 bytes [18:57:23]NVStorageSaveData done [18:57:23]ExternCall_PrintAddStr [18:57:23]wPrintStart [18:57:23]Write to MH i2c: 01 00 00 A4 01 A5 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 07 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [18:57:23]RasterBufferAndPrint [18:57:23]line Счет N : (1)918937 [18:57:23]line ИНН: 02508201610067 [18:57:23]line Контрольно-Кассовый Чек [18:57:23]line ПРОДАЖА [18:57:23]line ТРК (МРК, ГНК) : 22 [18:57:23]line Товар: 2710124130 [18:57:23]line Аи-92-К-4 [18:57:23]line 7.480 * 66.90 [18:57:23]line = 500.41 [18:57:23]line НДС 12% НСП 1% [18:57:23]line > о реализуемом товаре [18:57:23]line ОКРУГЛЕНИЕ: -0.41 [18:57:23]line ИТОГО: 500.00 [18:57:23]line Внесено: 500.00 [18:57:23]line СДАЧА: 0.00 [18:57:23]line НСП 1% : 4.43 [18:57:23]line НДС 12% : 53.14 [18:57:23]line Наличными: 500.00 [18:57:23]line Безнал.: 0.00 [18:57:23]line Место: АЗС № 114 "Партнер Нефть" [18:57:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:57:23]line СНО: Общий режим [18:57:23]line Чек 154 18.10.2024 18:57 [18:57:23]line Смена: 526 ФФД: 1.0 [18:57:23]line ЗНМ: 0300000086 [18:57:23]line РНМ: 0000000000091680 [18:57:23]line Версия ККМ: 001 [18:57:23]line ФМ: 0000000000871843 [18:57:23]line ФД: 82445 [18:57:23]line ФПД: 104353722495301 [18:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185722&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82445&fm=104353722495301&tin=02508201610067®Number=0000000000091680&sum=50000 [18:57:23]OFD Sender: Processing packet 82445 [packets to send 254, broken 253] [18:57:23]ProducePacketName [18:57:23]name=ofd_packets/00082445 [18:57:23]OFD Sender: To server: pG, [18:57:23]CommunicateWithHost lk.salyk.kg:30040 [18:57:23]ConnectInit lk.salyk.kg [18:57:23]written 0, free lines is 4095 [18:57:23]Write to MH i2c: 01 00 00 CF 01 D0 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 07 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 D4 0C B7 [18:57:23]RasterBufferAndPrint [18:57:23]line [18:57:23]line [18:57:23]line [18:57:23]line [18:57:23]line [18:57:23]written 0, free lines is 3292 [18:57:23]MH_Cut [18:57:23]Write to MH i2c: D1 01 00 D6 01 01 A9 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: D1 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: D1 01 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: D1 01 00 D6 01 00 A8 [18:57:23]Write to MH i2c: 01 00 00 D7 01 D8 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:24]*** Cut start [18:57:24]*** Partial cut [18:57:24]*** CUTSNS_PIN = 1 [18:57:24]*** CUTSNS_PIN = 0 [18:57:24]Connected sock=10 [18: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 31 38 34 33 0F 01 00 00 94 E8 07 01 91 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 42 01 00 35 04 06 00 5E E8 BE 8F 71 45 46 E8 E5 71 DA 43 9A D1 [18:57:25]*** Brake cut motor [18:57:25]Read from MH i2c: 01 [18:57:25]*** Stop cut motor [18:57:25]MH_I2C_Read... [18:57:25]*** Cut end [18:57:25]Read from MH i2c: 01 07 00 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [18:57:25]process_action close_receipt done [18:57:25]requested_data is exist [18:57:25]produce_requested_data [18:57:25]requested_item fm.sn is exist - process it [18:57:25]wFMCommunicate request_size=4 [18:57:25]MH_SAM_APDU [18:57:25]CAPDU: 80 11 00 00 [18:57:25]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [18:57:25]Write i2c OK [18:57:25]MH_I2C_Read... [18:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:25]Read from MH i2c: E2 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 17 00 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A5 [18:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:57:25]wFMCommunicate OK [18:57:25]requested_item fd.num is exist - process it [18:57:25]SAM_PROTO_GetFieldsCounters [18:57:25]wFMCommunicate request_size=4 [18:57:25]MH_SAM_APDU [18:57:25]CAPDU: 80 13 00 00 [18:57:25]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [18:57:25]Write i2c OK [18:57:25]MH_I2C_Read... [18:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:25]Read from MH i2c: E2 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 62 00 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0D 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [18:57:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0D 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:25]wFMCommunicate OK [18:57:25]SAM_PROTO_GetFieldsCounters done [18:57:25]requested_item shift.num is exist - process it [18:57:25]requested_item shift.opened is exist - process it [18:57:25]req_shift_opened [18:57:25]FM_GetShiftState [18:57:25]SAM_PROTO_GetShiftState [18:57:25]wFMCommunicate request_size=4 [18:57:25]MH_SAM_APDU [18:57:25]CAPDU: 80 13 01 00 [18:57:25]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [18:57:25]Write i2c OK [18:57:25]MH_I2C_Read... [18:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:25]Read from MH i2c: E2 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 0E 00 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2A [18:57:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:57:25]wFMCommunicate OK [18:57:25]SAM_PROTO_GetShiftState done [18:57:25]FM_GetShiftState done [18:57:25]req_shift_opened done [18:57:25]requested_item shift.open_date is exist - process it [18:57:25]req_shift_open_date [18:57:25]req_shift_open_date done [18:57:25]produce_requested_data done [18:57:25]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82445,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:57:25]process_action_free close_receipt [18:57:25]json_value_free [18:57:25]json_value_free done [18:57:25]process_json_proto returns [18:57:25]Send response to host [18:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82445,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:57:25]free response buf [18:57:25]execute_script done [18:57:25]execute_script returns [18:57:25]free content buf [18:57:25]Sock 7.Close socket [18:57:25]Sock 7.Thread stoped [18:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B7 F2 47 00 D3 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0D 42 01 00 F4 03 04 00 CD 54 12 67 B6 04 01 00 00 A6 27 40 BE 16 EF C9 1A [18:57:25]CommunicateWithHost err = 0 [18:57:25]CheckOFDResponse [18:57:25]1017 (14) - 77093643461234 [18:57:25]1041 (16) - 0000000000871843 [18:57:25]1040 (4) - 82445 [18:57:25]1012 (4) - 18.10.2024 12:30 [18:57:25]1206 (1) - 0 [18:57:25]OFD Sender: Remove packet 82445 [18:57:25]ProducePacketName [18:57:25]name=ofd_packets/00082445 [18:57:25]NVStorageDeleteData [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:57:56]accept exits with 9 [18:57:56]New connection [18:57:56]New thread 3067362660 created [18:57:56]Thread 3067219300 joined [18:57:56]Waiting for new connection... [18:57:56] Sock 9.Parse request [18:57:56]Sock 9.Check first char [18:57:56]Sock 9.First char is OK [18:57:56]request: POST /json_proto HTTP/1.0 [18:57:56]Method: POST [18:57:56]URL: /json_proto [18:57:56]Method is POST - this is cgi request [18:57:56]url: /json_proto [18:57:56]query_string will be loaded in cgi processing [18:57:56]execute_cgi json_proto POST (null) [18:57:56]execute_cgi path=json_proto method=POST [18:57:56]POST find Content-Length [18:57:56]Host: 172.17.44.67:8080 [18:57:56]Content-Length: 677 [18:57:56]Content-Type: application/json [18:57:56] [18:57:56]POST finish read [18:57:56]Found Content-Length = 677 [18:57:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918938", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:56]execute_script... [18:57: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)918938", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:56]POST & json_proto [18:57:56]process_json_proto [18:57:56]json parsed OK: [18:57:56]protocol is kg_v1.0 [18:57:56]action value=close_receipt [18:57:56]process_action close_receipt [18:57:56]cmd_close_receipt [18:57:56]MH_GetDate [18:57:56]Write to MH i2c: F0 00 00 DB 01 CB [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: F0 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: F0 09 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: F0 09 00 DB 01 00 B5 AF 12 67 F1 C7 6B 64 38 [18:57:56]GetLastDocTimeStamp 1729277842 [18:57:56]current date 1729277877 [18:57:56]FM_GetShiftState [18:57:56]SAM_PROTO_GetShiftState [18:57:56]wFMCommunicate request_size=4 [18:57:56]MH_SAM_APDU [18:57:56]CAPDU: 80 13 01 00 [18:57:56]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [18:57:56]Write i2c OK [18:57:56]MH_I2C_Read... [18:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:56]Read from MH i2c: E2 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 [18:57:56]MH_I2C_Read... [18:57:56]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2C [18:57:56]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:57:56]wFMCommunicate OK [18:57:56]SAM_PROTO_GetShiftState done [18:57:56]FM_GetShiftState done [18:57:56]opened in 1729212319 [18:57:56]opened+sec_in_day 1729298719 [18:57:56]quantity*price = 50010 [18:57:56]sum+1 = 50012 [18:57:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 155 18.10.2024 18:57 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82446 ФПД: 14553422358688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185757&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82446&fm=14553422358688&tin=02508201610067®Number=0000000000091680&sum=50000 [18:57:57]StoreToDocumentArchive [18:57:57]shift 526 fd 82446 [18:57:57]save to /storage/0526/doc_00082446 [18:57:57]save last doc name /storage/0526/doc_00082446 to /storage/kkm_last_doc_name [18:57:57]save OK [18:57:57]Clear old archive folders... [18:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:57]tlvbuf is 00CE0240 [18:57:57]SAM_PROTO_ClearQueue [18:57:57]wFMCommunicate request_size=4 [18:57:57]MH_SAM_APDU [18:57:57]CAPDU: 80 09 00 00 [18:57:57]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [18:57:57]Write i2c OK [18:57:57]MH_I2C_Read... [18:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:57]Read from MH i2c: E2 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 03 00 [18:57:57]MH_I2C_Read... [18:57:57]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [18:57:57]RAPDU: 90 00 [18:57:57]wFMCommunicate OK [18:57:57]SAM_PROTO_ClearQueue done [18:57:57]KKMCreateOFDPacket [18:57:57]OFDProtocolAddRootSTLVToBuf [18:57:57]FM_MakeSignedData [18:57:57]FM_MakeSignedData [18:57:57]SAM_PROTO_SignData [18:57:57]wFMCommunicate request_size=4 [18:57:57]MH_SAM_APDU [18:57:57]CAPDU: 80 0D 01 02 [18:57:57]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [18:57:57]Write i2c OK [18:57:57]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [18:57:58]RAPDU: 90 00 [18:57:58]wFMCommunicate OK [18:57:58]wFMCommunicate request_size=255 [18:57:58]MH_SAM_APDU [18:57: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B5 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 42 01 00 35 04 06 00 0D [18:57:58]Write to MH i2c: E2 02 01 EB 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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B5 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 42 01 00 35 04 06 00 0D 00 00 AF [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [18:57:58]RAPDU: 90 00 [18:57:58]wFMCommunicate OK [18:57:58]wFMCommunicate request_size=10 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 0D 02 02 05 3C 7B 91 E8 A0 [18:57:58]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 3C 7B 91 E8 A0 00 00 41 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [18:57:58]RAPDU: 90 00 [18:57:58]wFMCommunicate OK [18:57:58]wFMCommunicate request_size=4 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 0D 03 02 [18:57:58]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 0B 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 0B 00 ED 01 00 8E 15 A0 F8 FA 17 6E 25 90 00 49 [18:57:58]RAPDU: 8E 15 A0 F8 FA 17 6E 25 90 00 [18:57:58]wFMCommunicate OK [18:57:58]SAM_PROTO_SignData done [18:57:58]FM_MakeSignedData done [18:57:58]CreateOFDProtocolMessage [18:57:58]wFMCommunicate request_size=4 [18:57:58]MH_SAM_APDU [18:57:58]CAPDU: 80 11 00 00 [18:57:58]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:58]Read from MH i2c: E2 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 17 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BB [18:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:57:58]wFMCommunicate OK [18:57:58]CreateOFDProtocolMessage done [18:57:58]OFDSenderStorePacket 82446 [18:57:58]StoreOFDPacket docnum=82446 [18:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1C 48 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B5 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 42 01 00 35 04 06 00 0D 3C 7B 91 E8 A0 8E 15 A0 F8 FA 17 6E 25 [18:57:58]CheckFolder [18:57:58]dirname=/storage/ofd_packets [18:57:58]CheckFolder done [18:57:58]ProducePacketName [18:57:58]name=ofd_packets/00082446 [18:57:58]NVStorageSaveData ofd_packets/00082446 [18:57:58]File name is /storage/ofd_packets/00082446 [18:57:58]Write 301 bytes [18:57:58]NVStorageSaveData done [18:57:58]OFDSenderStorePacket done [18:57:58]KKMCreateOFDPacket done [18:57:58]NVStorageSaveData kkm_last_timestamp [18:57:58]File name is /storage/kkm_last_timestamp [18:57:58]Write 4 bytes [18:57:58]NVStorageSaveData done [18:57:58]ExternCall_PrintAddStr [18:57:58]wPrintStart [18:57:58]Write to MH i2c: 01 00 00 EF 01 F0 [18:57:58]Write i2c OK [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: 01 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: 01 07 00 [18:57:58]MH_I2C_Read... [18:57:58]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [18:57:58]RasterBufferAndPrint [18:57:58]line Счет N : (1)918938 [18:57:58]line ИНН: 02508201610067 [18:57:58]line Контрольно-Кассовый Чек [18:57:58]line ПРОДАЖА [18:57:58]line ТРК (МРК, ГНК) : 12 [18:57:58]line Товар: 2710124500 [18:57:58]line Аи-95-К-5 [18:57:58]line 6.740 * 74.20 [18:57:58]line = 500.11 [18:57:58]line НДС 12% НСП 1% [18:57:58]line > о реализуемом товаре [18:57:58]line ОКРУГЛЕНИЕ: -0.11 [18:57:58]line ИТОГО: 500.00 [18:57:58]line Внесено: 500.00 [18:57:58]line СДАЧА: 0.00 [18:57:58]line НСП 1% : 4.43 [18:57:58]line НДС 12% : 53.11 [18:57:58]line Наличными: 500.00 [18:57:58]line Безнал.: 0.00 [18:57:58]line Место: АЗС № 114 "Партнер Нефть" [18:57:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:57:58]line СНО: Общий режим [18:57:58]line Чек 155 18.10.2024 18:57 [18:57:58]line Смена: 526 ФФД: 1.0 [18:57:58]line ЗНМ: 0300000086 [18:57:58]line РНМ: 0000000000091680 [18:57:58]line Версия ККМ: 001 [18:57:58]line ФМ: 0000000000871843 [18:57:58]line ФД: 82446 [18:57:58]line ФПД: 14553422358688 [18:57:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185757&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82446&fm=14553422358688&tin=02508201610067®Number=0000000000091680&sum=50000 [18:57:58]OFD Sender: Processing packet 82446 [packets to send 254, broken 253] [18:57:58]ProducePacketName [18:57:58]name=ofd_packets/00082446 [18:57:58]OFD Sender: To server: pG, [18:57:58]CommunicateWithHost lk.salyk.kg:30040 [18:57:58]ConnectInit lk.salyk.kg [18:57:58]written 0, free lines is 4095 [18:57:59]Write to MH i2c: 01 00 00 1A 02 1C [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: 01 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: 01 07 00 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 D7 0C 06 [18:57:59]RasterBufferAndPrint [18:57:59]line [18:57:59]line [18:57:59]line [18:57:59]line [18:57:59]line [18:57:59]written 0, free lines is 3294 [18:57:59]MH_Cut [18:57:59]Write to MH i2c: D1 01 00 21 02 01 F5 [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: D1 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: D1 01 00 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: D1 01 00 21 02 00 F4 [18:57:59]Write to MH i2c: 01 00 00 22 02 24 [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]Connected sock=10 [18:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1C 48 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B5 AF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 42 01 00 35 04 06 00 0D 3C 7B 91 E8 A0 8E 15 A0 F8 FA 17 6E 25 [18:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CC A8 47 00 47 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0E 42 01 00 F4 03 04 00 EF 54 12 67 B6 04 01 00 00 15 54 7B 3C 80 F3 70 9B [18:57:59]CommunicateWithHost err = 0 [18:57:59]CheckOFDResponse [18:57:59]1017 (14) - 77093643461234 [18:57:59]1041 (16) - 0000000000871843 [18:57:59]1040 (4) - 82446 [18:57:59]1012 (4) - 18.10.2024 12:30 [18:57:59]1206 (1) - 0 [18:57:59]OFD Sender: Remove packet 82446 [18:57:59]ProducePacketName [18:57:59]name=ofd_packets/00082446 [18:57:59]NVStorageDeleteData [18:58:00]*** Cut start [18:58:00]*** Partial cut [18:58:00]*** CUTSNS_PIN = 1 [18:58:00]*** CUTSNS_PIN = 0 [18:58:00]*** Brake cut motor [18:58:00]OFD Sender: No OFD packet to send [18:58:00]Read from MH i2c: 01 [18:58:00]MH_I2C_Read... [18:58:00]*** Stop cut motor [18:58:00]*** Cut end [18:58:00]Read from MH i2c: 01 07 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [18:58:00]process_action close_receipt done [18:58:00]requested_data is exist [18:58:00]produce_requested_data [18:58:00]requested_item fm.sn is exist - process it [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 11 00 00 [18:58:00]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 17 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F1 [18:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:58:00]wFMCommunicate OK [18:58:00]requested_item fd.num is exist - process it [18:58:00]SAM_PROTO_GetFieldsCounters [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 13 00 00 [18:58:00]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 62 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:00]wFMCommunicate OK [18:58:00]SAM_PROTO_GetFieldsCounters done [18:58:00]requested_item shift.num is exist - process it [18:58:00]requested_item shift.opened is exist - process it [18:58:00]req_shift_opened [18:58:00]FM_GetShiftState [18:58:00]SAM_PROTO_GetShiftState [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 13 01 00 [18:58:00]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 0E 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 76 [18:58:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:58:00]wFMCommunicate OK [18:58:00]SAM_PROTO_GetShiftState done [18:58:00]FM_GetShiftState done [18:58:00]req_shift_opened done [18:58:00]requested_item shift.open_date is exist - process it [18:58:00]req_shift_open_date [18:58:00]req_shift_open_date done [18:58:00]produce_requested_data done [18:58:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82446,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:58:00]process_action_free close_receipt [18:58:00]json_value_free [18:58:00]json_value_free done [18:58:00]process_json_proto returns [18:58:00]Send response to host [18:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82446,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:58:00]free response buf [18:58:00]execute_script done [18:58:00]execute_script returns [18:58:00]free content buf [18:58:00]Sock 9.Close socket [18:58:00]Sock 9.Thread stoped [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:14]recv_with_timeout no data received [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:42]accept exits with 7 [18:59:42]New connection [18:59:42]New thread 3067219300 created [18:59:42]Thread 3067362660 joined [18:59:42]Waiting for new connection... [18:59:42] Sock 7.Parse request [18:59:42]Sock 7.Check first char [18:59:42]Sock 7.First char is OK [18:59:42]request: POST /json_proto HTTP/1.0 [18:59:42]Method: POST [18:59:42]URL: /json_proto [18:59:42]Method is POST - this is cgi request [18:59:42]url: /json_proto [18:59:42]query_string will be loaded in cgi processing [18:59:42]execute_cgi json_proto POST (null) [18:59:42]execute_cgi path=json_proto method=POST [18:59:42]POST find Content-Length [18:59:42]Host: 172.17.44.67:8080 [18:59:42]Content-Length: 682 [18:59:42]Content-Type: application/json [18:59:42] [18:59:42]POST finish read [18:59:42]Found Content-Length = 682 [18:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:42]execute_script... [18:59:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:42]POST & json_proto [18:59:42]process_json_proto [18:59:42]json parsed OK: [18:59:42]protocol is kg_v1.0 [18:59:42]action value=close_receipt [18:59:42]process_action close_receipt [18:59:42]cmd_close_receipt [18:59:42]MH_GetDate [18:59:42]Write to MH i2c: F0 00 00 26 02 17 [18:59:42]Write i2c OK [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: F0 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: F0 09 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: F0 09 00 26 02 00 1F B0 12 67 F1 C7 6B 64 EF [18:59:42]GetLastDocTimeStamp 1729277877 [18:59:42]current date 1729277983 [18:59:42]FM_GetShiftState [18:59:42]SAM_PROTO_GetShiftState [18:59:42]wFMCommunicate request_size=4 [18:59:42]MH_SAM_APDU [18:59:42]CAPDU: 80 13 01 00 [18:59:42]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [18:59:42]Write i2c OK [18:59:42]MH_I2C_Read... [18:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:42]Read from MH i2c: E2 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 0E 00 [18:59:42]MH_I2C_Read... [18:59:42]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 78 [18:59:42]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:59:42]wFMCommunicate OK [18:59:42]SAM_PROTO_GetShiftState done [18:59:42]FM_GetShiftState done [18:59:42]opened in 1729212319 [18:59:42]opened+sec_in_day 1729298719 [18:59:42]quantity*price = 50063 [18:59:42]sum+1 = 50064 [18:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 156 18.10.2024 18:59 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82447 ФПД: 125192844105792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185943&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82447&fm=125192844105792&tin=02508201610067®Number=0000000000091680&sum=50000 [18:59:43]StoreToDocumentArchive [18:59:43]shift 526 fd 82447 [18:59:43]save to /storage/0526/doc_00082447 [18:59:43]save last doc name /storage/0526/doc_00082447 to /storage/kkm_last_doc_name [18:59:43]save OK [18:59:43]Clear old archive folders... [18:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:59:43]tlvbuf is 00CD79D0 [18:59:43]SAM_PROTO_ClearQueue [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 09 00 00 [18:59:43]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [18:59:43]RAPDU: 90 00 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_ClearQueue done [18:59:43]KKMCreateOFDPacket [18:59:43]OFDProtocolAddRootSTLVToBuf [18:59:43]FM_MakeSignedData [18:59:43]FM_MakeSignedData [18:59:43]SAM_PROTO_SignData [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 0D 01 02 [18:59:43]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [18:59:43]RAPDU: 90 00 [18:59:43]wFMCommunicate OK [18:59:43]wFMCommunicate request_size=255 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1F B0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 42 01 00 35 04 06 00 [18:59:43]Write to MH i2c: E2 02 01 36 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1F B0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 42 01 00 35 04 06 00 00 00 E9 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [18:59:43]RAPDU: 90 00 [18:59:43]wFMCommunicate OK [18:59:43]wFMCommunicate request_size=11 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 0D 02 02 06 71 DC BB 00 58 40 [18:59:43]Write to MH i2c: E2 0E 00 37 02 80 0D 02 02 06 00 71 DC BB 00 58 40 00 00 5F [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [18:59:43]RAPDU: 90 00 [18:59:43]wFMCommunicate OK [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 0D 03 02 [18:59:43]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0B 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 0B 00 38 02 00 A6 43 BF 66 88 46 FE AA 90 00 3A [18:59:44]RAPDU: A6 43 BF 66 88 46 FE AA 90 00 [18:59:44]wFMCommunicate OK [18:59:44]SAM_PROTO_SignData done [18:59:44]FM_MakeSignedData done [18:59:44]CreateOFDProtocolMessage [18:59:44]wFMCommunicate request_size=4 [18:59:44]MH_SAM_APDU [18:59:44]CAPDU: 80 11 00 00 [18:59:44]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:44]Read from MH i2c: E2 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 17 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [18:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:59:44]wFMCommunicate OK [18:59:44]CreateOFDProtocolMessage done [18:59:44]OFDSenderStorePacket 82447 [18:59:44]StoreOFDPacket docnum=82447 [18:59:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 69 65 08 01 BC DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1F B0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 42 01 00 35 04 06 00 71 DC BB 00 58 40 A6 43 BF 66 88 46 FE AA [18:59:44]CheckFolder [18:59:44]dirname=/storage/ofd_packets [18:59:44]CheckFolder done [18:59:44]ProducePacketName [18:59:44]name=ofd_packets/00082447 [18:59:44]NVStorageSaveData ofd_packets/00082447 [18:59:44]File name is /storage/ofd_packets/00082447 [18:59:44]Write 302 bytes [18:59:44]NVStorageSaveData done [18:59:44]OFDSenderStorePacket done [18:59:44]KKMCreateOFDPacket done [18:59:44]NVStorageSaveData kkm_last_timestamp [18:59:44]File name is /storage/kkm_last_timestamp [18:59:44]Write 4 bytes [18:59:44]NVStorageSaveData done [18:59:44]ExternCall_PrintAddStr [18:59:44]wPrintStart [18:59:44]Write to MH i2c: 01 00 00 3A 02 3C [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 07 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [18:59:44]RasterBufferAndPrint [18:59:44]line Счет N : (1)918939 [18:59:44]line ИНН: 02508201610067 [18:59:44]line Контрольно-Кассовый Чек [18:59:44]line ПРОДАЖА [18:59:44]line ТРК (МРК, ГНК) : 31 [18:59:44]line Товар: 2710194210 [18:59:44]line ДТ(л)-К-5 [18:59:44]line 6.570 * 76.20 [18:59:44]line = 500.63 [18:59:44]line НДС 12% НСП 1% [18:59:44]line > о реализуемом товаре [18:59:44]line ОКРУГЛЕНИЕ: -0.63 [18:59:44]line ИТОГО: 500.00 [18:59:44]line Внесено: 500.00 [18:59:44]line СДАЧА: 0.00 [18:59:44]line НСП 1% : 4.43 [18:59:44]line НДС 12% : 53.16 [18:59:44]line Наличными: 500.00 [18:59:44]line Безнал.: 0.00 [18:59:44]line Место: АЗС № 114 "Партнер Нефть" [18:59:44]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [18:59:44]line СНО: Общий режим [18:59:44]line Чек 156 18.10.2024 18:59 [18:59:44]line Смена: 526 ФФД: 1.0 [18:59:44]line ЗНМ: 0300000086 [18:59:44]line РНМ: 0000000000091680 [18:59:44]line Версия ККМ: 001 [18:59:44]line ФМ: 0000000000871843 [18:59:44]line ФД: 82447 [18:59:44]line ФПД: 125192844105792 [18:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185943&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82447&fm=125192844105792&tin=02508201610067®Number=0000000000091680&sum=50000 [18:59:44]OFD Sender: Processing packet 82447 [packets to send 254, broken 253] [18:59:44]ProducePacketName [18:59:44]name=ofd_packets/00082447 [18:59:44]OFD Sender: To server: pG, [18:59:44]CommunicateWithHost lk.salyk.kg:30040 [18:59:44]ConnectInit lk.salyk.kg [18:59:44]written 0, free lines is 4095 [18:59:44]Write to MH i2c: 01 00 00 65 02 67 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 07 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 D0 0C 4A [18:59:44]RasterBufferAndPrint [18:59:44]line [18:59:44]line [18:59:44]line [18:59:44]line [18:59:44]line [18:59:44]written 0, free lines is 3288 [18:59:44]MH_Cut [18:59:44]Write to MH i2c: D1 01 00 6C 02 01 40 [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: D1 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: D1 01 00 [18:59:44]MH_I2C_Read... [18:59:44]Read from MH i2c: D1 01 00 6C 02 00 3F [18:59:44]Write to MH i2c: 01 00 00 6D 02 6F [18:59:44]Write i2c OK [18:59:44]MH_I2C_Read... [18:59:44]Connected sock=9 [18:59:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 69 65 08 01 BC DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1F B0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 0F 42 01 00 35 04 06 00 71 DC BB 00 58 40 A6 43 BF 66 88 46 FE AA [18:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F4 A3 47 00 84 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 31 38 34 33 10 04 04 00 0F 42 01 00 F4 03 04 00 59 55 12 67 B6 04 01 00 00 AA 51 A9 03 96 4F 8E 12 [18:59:45]CommunicateWithHost err = 0 [18:59:45]CheckOFDResponse [18:59:45]1017 (14) - 77093643461234 [18:59:45]1041 (16) - 0000000000871843 [18:59:45]1040 (4) - 82447 [18:59:45]1012 (4) - 18.10.2024 12:32 [18:59:45]1206 (1) - 0 [18:59:45]OFD Sender: Remove packet 82447 [18:59:45]ProducePacketName [18:59:45]name=ofd_packets/00082447 [18:59:45]NVStorageDeleteData [18:59:45]*** Cut start [18:59:45]*** Partial cut [18:59:45]*** CUTSNS_PIN = 1 [18:59:45]*** CUTSNS_PIN = 0 [18:59:45]*** Brake cut motor [18:59:45]OFD Sender: No OFD packet to send [18:59:46]Read from MH i2c: 01 [18:59:46]MH_I2C_Read... [18:59:46]*** Stop cut motor [18:59:46]*** Cut end [18:59:46]Read from MH i2c: 01 07 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [18:59:46]process_action close_receipt done [18:59:46]requested_data is exist [18:59:46]produce_requested_data [18:59:46]requested_item fm.sn is exist - process it [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 11 00 00 [18:59:46]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 17 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3C [18:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [18:59:46]wFMCommunicate OK [18:59:46]requested_item fd.num is exist - process it [18:59:46]SAM_PROTO_GetFieldsCounters [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 13 00 00 [18:59:46]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 62 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 62 00 6F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [18:59:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 0F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:46]wFMCommunicate OK [18:59:46]SAM_PROTO_GetFieldsCounters done [18:59:46]requested_item shift.num is exist - process it [18:59:46]requested_item shift.opened is exist - process it [18:59:46]req_shift_opened [18:59:46]FM_GetShiftState [18:59:46]SAM_PROTO_GetShiftState [18:59:46]wFMCommunicate request_size=4 [18:59:46]MH_SAM_APDU [18:59:46]CAPDU: 80 13 01 00 [18:59:46]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [18:59:46]Write i2c OK [18:59:46]MH_I2C_Read... [18:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:46]Read from MH i2c: E2 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 0E 00 [18:59:46]MH_I2C_Read... [18:59:46]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C1 [18:59:46]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [18:59:46]wFMCommunicate OK [18:59:46]SAM_PROTO_GetShiftState done [18:59:46]FM_GetShiftState done [18:59:46]req_shift_opened done [18:59:46]requested_item shift.open_date is exist - process it [18:59:46]req_shift_open_date [18:59:46]req_shift_open_date done [18:59:46]produce_requested_data done [18:59:46]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82447,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [18:59:46]process_action_free close_receipt [18:59:46]json_value_free [18:59:46]json_value_free done [18:59:46]process_json_proto returns [18:59:46]Send response to host [18:59:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82447,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [18:59:46]free response buf [18:59:46]execute_script done [18:59:46]execute_script returns [18:59:46]free content buf [18:59:46]Sock 7.Close socket [18:59:46]Sock 7.Thread stoped [18:59:50]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:00]recv_with_timeout no data received [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:12]recv_with_timeout no data received [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:53]recv_with_timeout no data received [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:26]accept exits with 10 [19:02:26]New connection [19:02:26]New thread 3067362660 created [19:02:26]Thread 3067219300 joined [19:02:26]Waiting for new connection... [19:02:26] Sock 10.Parse request [19:02:26]Sock 10.Check first char [19:02:26]Sock 10.First char is OK [19:02:26]request: POST /json_proto HTTP/1.0 [19:02:26]Method: POST [19:02:26]URL: /json_proto [19:02:26]Method is POST - this is cgi request [19:02:26]url: /json_proto [19:02:26]query_string will be loaded in cgi processing [19:02:26]execute_cgi json_proto POST (null) [19:02:26]execute_cgi path=json_proto method=POST [19:02:26]POST find Content-Length [19:02:26]Host: 172.17.44.67:8080 [19:02:26]Content-Length: 677 [19:02:26]Content-Type: application/json [19:02:26] [19:02:26]POST finish read [19:02:26]Found Content-Length = 677 [19:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918940", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:26]execute_script... [19:02:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918940", "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" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:26]POST & json_proto [19:02:26]process_json_proto [19:02:26]json parsed OK: [19:02:26]protocol is kg_v1.0 [19:02:26]action value=close_receipt [19:02:26]process_action close_receipt [19:02:26]cmd_close_receipt [19:02:26]MH_GetDate [19:02:26]Write to MH i2c: F0 00 00 71 02 62 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 09 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 09 00 71 02 00 C3 B0 12 67 F1 C7 6B 64 DE [19:02:26]GetLastDocTimeStamp 1729277983 [19:02:26]current date 1729278147 [19:02:26]FM_GetShiftState [19:02:26]SAM_PROTO_GetShiftState [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 13 01 00 [19:02:26]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0E 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C3 [19:02:26]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:02:26]wFMCommunicate OK [19:02:26]SAM_PROTO_GetShiftState done [19:02:26]FM_GetShiftState done [19:02:26]opened in 1729212319 [19:02:26]opened+sec_in_day 1729298719 [19:02:26]quantity*price = 30051 [19:02:26]sum+1 = 30052 [19:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре [19:08:54]line ОКРУГЛЕНИЕ: -0.51 [19:08:54]line ИТОГО: 300.00 [19:08:54]line Внесено: 300.00 [19:08:54]line СДАЧА: 0.00 [19:08:54]line НСП 1% : 2.66 [19:08:54]line НДС 12% : 31.91 [19:08:54]line Наличными: 300.00 [19:08:54]line Безнал.: 0.00 [19:08:54]line Место: АЗС № 114 "Партнер Нефть" [19:08:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:08:54]line СНО: Общий режим [19:08:54]line Чек 157 18.10.2024 19:02 [19:08:54]line Смена: 526 ФФД: 1.0 [19:08:54]line ЗНМ: 0300000086 [19:08:54]line РНМ: 0000000000091680 [19:08:54]line Версия ККМ: 001 [19:08:54]line ФМ: 0000000000871843 [19:08:54]line ФД: 82448 [19:08:54]line ФПД: 255260611882863 [19:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T190227&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82448&fm=255260611882863&tin=02508201610067®Number=0000000000091680&sum=30000 [19:08:54]written 0, free lines is 4095 [19:08:55]Write to MH i2c: 01 00 00 48 00 48 [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: 01 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: 01 07 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D7 0C 32 [19:08:55]RasterBufferAndPrint [19:08:55]line [19:08:55]line [19:08:55]line [19:08:55]line [19:08:55]line [19:08:55]written 0, free lines is 3304 [19:08:55]MH_Cut [19:08:55]Write to MH i2c: D1 01 00 4F 00 01 21 [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: D1 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: D1 01 00 [19:08:55]MH_I2C_Read... [19:08:55]Read from MH i2c: D1 01 00 4F 00 00 20 [19:08:55]Write to MH i2c: 01 00 00 50 00 50 [19:08:55]Write i2c OK [19:08:55]MH_I2C_Read... [19:08:55]recv_with_timeout no data received [19:08:55]OFD Sender: No OFD packet to send [19:08:55]*** Cut start [19:08:55]*** Partial cut [19:08:55]*** CUTSNS_PIN = 1 [19:08:55]*** CUTSNS_PIN = 0 [19:08:56]*** Brake cut motor [19:08:56]Read from MH i2c: 01 [19:08:56]MH_I2C_Read... [19:08:56]*** Stop cut motor [19:08:56]*** Cut end [19:08:56]Read from MH i2c: 01 07 00 [19:08:56]MH_I2C_Read... [19:08:56]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [19:08:56]process_action print_doc done [19:08:56]requested_data is exist [19:08:56]produce_requested_data [19:08:56]produce_requested_data return (null) [19:08:56]process_action_free print_doc [19:08:56]json_value_free [19:08:56]json_value_free done [19:08:56]process_json_proto returns [19:08:56]Send response to host [19:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:08:56]free response buf [19:08:56]execute_script done [19:08:56]execute_script returns [19:08:56]free content buf [19:08:56]Sock 9.Close socket [19:08:56]Sock 9.Thread stoped [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:11]accept exits with 7 [19:09:11]New connection [19:09:11]New thread 3066772836 created [19:09:11]Thread 3066916196 joined [19:09:11]Waiting for new connection... [19:09:11] Sock 7.Parse request [19:09:11]Sock 7.Check first char [19:09:11]Sock 7.First char is OK [19:09:11]request: POST /json_proto HTTP/1.0 [19:09:11]Method: POST [19:09:11]URL: /json_proto [19:09:11]Method is POST - this is cgi request [19:09:11]url: /json_proto [19:09:11]query_string will be loaded in cgi processing [19:09:11]execute_cgi json_proto POST (null) [19:09:11]execute_cgi path=json_proto method=POST [19:09:11]POST find Content-Length [19:09:11]Host: 172.17.44.67:8080 [19:09:11]Content-Length: 677 [19:09:11]Content-Type: application/json [19:09:11] [19:09:11]POST finish read [19:09:11]Found Content-Length = 677 [19:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:11]execute_script... [19:09: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)918941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:11]POST & json_proto [19:09:11]process_json_proto [19:09:11]json parsed OK: [19:09:11]protocol is kg_v1.0 [19:09:11]action value=close_receipt [19:09:11]process_action close_receipt [19:09:11]cmd_close_receipt [19:09:11]MH_GetDate [19:09:11]Write to MH i2c: F0 00 00 51 00 40 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: F0 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: F0 09 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: F0 09 00 51 00 00 58 B2 12 67 F1 C7 6B 64 53 [19:09:12]GetLastDocTimeStamp 1729278147 [19:09:12]current date 1729278552 [19:09:12]FM_GetShiftState [19:09:12]SAM_PROTO_GetShiftState [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 13 01 00 [19:09:12]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:12]Read from MH i2c: E2 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 0E 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A1 [19:09:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:09:12]wFMCommunicate OK [19:09:12]SAM_PROTO_GetShiftState done [19:09:12]FM_GetShiftState done [19:09:12]opened in 1729212319 [19:09:12]opened+sec_in_day 1729298719 [19:09:12]quantity*price = 20003 [19:09:12]sum+1 = 20004 [19:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 158 18.10.2024 19:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82449 ФПД: 6700464935637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T190913&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82449&fm=6700464935637&tin=02508201610067®Number=0000000000091680&sum=20000 [19:09:12]StoreToDocumentArchive [19:09:12]shift 526 fd 82449 [19:09:12]save to /storage/0526/doc_00082449 [19:09:12]save last doc name /storage/0526/doc_00082449 to /storage/kkm_last_doc_name [19:09:12]save OK [19:09:12]Clear old archive folders... [19:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:12]tlvbuf is 01E81D40 [19:09:12]SAM_PROTO_ClearQueue [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 09 00 00 [19:09:12]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:12]Read from MH i2c: E2 03 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [19:09:12]RAPDU: 90 00 [19:09:12]wFMCommunicate OK [19:09:12]SAM_PROTO_ClearQueue done [19:09:12]KKMCreateOFDPacket [19:09:12]OFDProtocolAddRootSTLVToBuf [19:09:12]FM_MakeSignedData [19:09:12]FM_MakeSignedData [19:09:12]SAM_PROTO_SignData [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 0D 01 02 [19:09:12]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [19:09:13]RAPDU: 90 00 [19:09:13]wFMCommunicate OK [19:09:13]wFMCommunicate request_size=255 [19:09:13]MH_SAM_APDU [19:09: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 59 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 42 01 00 35 04 06 00 06 [19:09:13]Write to MH i2c: E2 02 01 61 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 59 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 42 01 00 35 04 06 00 06 00 00 B3 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [19:09:13]RAPDU: 90 00 [19:09:13]wFMCommunicate OK [19:09:13]wFMCommunicate request_size=10 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 0D 02 02 05 18 12 D5 12 D5 [19:09:13]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 18 12 D5 12 D5 00 00 CC [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [19:09:13]RAPDU: 90 00 [19:09:13]wFMCommunicate OK [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 0D 03 02 [19:09:13]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0B 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0B 00 63 00 00 0B 71 14 D1 2E 78 A4 CA 90 00 54 [19:09:13]RAPDU: 0B 71 14 D1 2E 78 A4 CA 90 00 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_SignData done [19:09:13]FM_MakeSignedData done [19:09:13]CreateOFDProtocolMessage [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 11 00 00 [19:09:13]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 30 [19:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:09:13]wFMCommunicate OK [19:09:13]CreateOFDProtocolMessage done [19:09:13]OFDSenderStorePacket 82449 [19:09:13]StoreOFDPacket docnum=82449 [19:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 75 81 07 01 B4 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 59 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 42 01 00 35 04 06 00 06 18 12 D5 12 D5 0B 71 14 D1 2E 78 A4 CA [19:09:13]CheckFolder [19:09:13]dirname=/storage/ofd_packets [19:09:13]CheckFolder done [19:09:13]ProducePacketName [19:09:13]name=ofd_packets/00082449 [19:09:13]NVStorageSaveData ofd_packets/00082449 [19:09:13]File name is /storage/ofd_packets/00082449 [19:09:13]Write 301 bytes [19:09:13]NVStorageSaveData done [19:09:13]OFDSenderStorePacket done [19:09:13]KKMCreateOFDPacket done [19:09:13]NVStorageSaveData kkm_last_timestamp [19:09:13]File name is /storage/kkm_last_timestamp [19:09:13]Write 4 bytes [19:09:13]NVStorageSaveData done [19:09:13]ExternCall_PrintAddStr [19:09:13]wPrintStart [19:09:13]Write to MH i2c: 01 00 00 65 00 65 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 07 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [19:09:13]RasterBufferAndPrint [19:09:13]line Счет N : (1)918941 [19:09:13]line ИНН: 02508201610067 [19:09:13]line Контрольно-Кассовый Чек [19:09:13]line ПРОДАЖА [19:09:13]line ТРК (МРК, ГНК) : 11 [19:09:13]line Товар: 2710124130 [19:09:13]line Аи-92-К-4 [19:09:13]line 2.990 * 66.90 [19:09:13]line = 200.03 [19:09:13]line НДС 12% НСП 1% [19:09:13]line > о реализуемом товаре [19:09:13]line ОКРУГЛЕНИЕ: -0.03 [19:09:13]line ИТОГО: 200.00 [19:09:13]line Внесено: 200.00 [19:09:13]line СДАЧА: 0.00 [19:09:13]line НСП 1% : 1.77 [19:09:13]line НДС 12% : 21.24 [19:09:13]line Наличными: 200.00 [19:09:13]line Безнал.: 0.00 [19:09:13]line Место: АЗС № 114 "Партнер Нефть" [19:09:13]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:09:13]line СНО: Общий режим [19:09:13]line Чек 158 18.10.2024 19:09 [19:09:13]line Смена: 526 ФФД: 1.0 [19:09:13]line ЗНМ: 0300000086 [19:09:13]line РНМ: 0000000000091680 [19:09:13]line Версия ККМ: 001 [19:09:13]line ФМ: 0000000000871843 [19:09:13]line ФД: 82449 [19:09:13]line ФПД: 6700464935637 [19:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T190913&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82449&fm=6700464935637&tin=02508201610067®Number=0000000000091680&sum=20000 [19:09:13]OFD Sender: Processing packet 82449 [packets to send 254, broken 253] [19:09:13]ProducePacketName [19:09:13]name=ofd_packets/00082449 [19:09:13]OFD Sender: To server: pG, [19:09:13]CommunicateWithHost lk.salyk.kg:30040 [19:09:13]ConnectInit lk.salyk.kg [19:09:13]written 0, free lines is 4095 [19:09:14]Write to MH i2c: 01 00 00 90 00 90 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: 01 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: 01 07 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D7 0C 7A [19:09:14]RasterBufferAndPrint [19:09:14]line [19:09:14]line [19:09:14]line [19:09:14]line [19:09:14]line [19:09:14]written 0, free lines is 3303 [19:09:14]MH_Cut [19:09:14]Write to MH i2c: D1 01 00 97 00 01 69 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: D1 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: D1 01 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: D1 01 00 97 00 00 68 [19:09:14]Write to MH i2c: 01 00 00 98 00 98 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]Connected sock=9 [19:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 75 81 07 01 B4 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 59 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 42 01 00 35 04 06 00 06 18 12 D5 12 D5 0B 71 14 D1 2E 78 A4 CA [19:09:15]*** Cut start [19:09:15]*** Partial cut [19:09:15]*** CUTSNS_PIN = 1 [19:09:15]*** CUTSNS_PIN = 0 [19:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 31 63 47 00 A3 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 11 42 01 00 F4 03 04 00 92 57 12 67 B6 04 01 00 00 1B B0 87 E9 B6 D8 12 59 [19:09:15]CommunicateWithHost err = 0 [19:09:15]CheckOFDResponse [19:09:15]1017 (14) - 77093643461234 [19:09:15]1041 (16) - 0000000000871843 [19:09:15]1040 (4) - 82449 [19:09:15]1012 (4) - 18.10.2024 12:41 [19:09:15]1206 (1) - 0 [19:09:15]OFD Sender: Remove packet 82449 [19:09:15]ProducePacketName [19:09:15]name=ofd_packets/00082449 [19:09:15]NVStorageDeleteData [19:09:15]*** Brake cut motor [19:09:15]Read from MH i2c: 01 [19:09:15]MH_I2C_Read... [19:09:15]*** Stop cut motor [19:09:15]*** Cut end [19:09:15]Read from MH i2c: 01 07 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [19:09:15]process_action close_receipt done [19:09:15]requested_data is exist [19:09:15]produce_requested_data [19:09:15]requested_item fm.sn is exist - process it [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 11 00 00 [19:09:15]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 17 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [19:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:09:15]wFMCommunicate OK [19:09:15]requested_item fd.num is exist - process it [19:09:15]SAM_PROTO_GetFieldsCounters [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 13 00 00 [19:09:15]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]OFD Sender: No OFD packet to send [19:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 62 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 11 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [19:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 11 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:16]wFMCommunicate OK [19:09:16]SAM_PROTO_GetFieldsCounters done [19:09:16]requested_item shift.num is exist - process it [19:09:16]requested_item shift.opened is exist - process it [19:09:16]req_shift_opened [19:09:16]FM_GetShiftState [19:09:16]SAM_PROTO_GetShiftState [19:09:16]wFMCommunicate request_size=4 [19:09:16]MH_SAM_APDU [19:09:16]CAPDU: 80 13 01 00 [19:09:16]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:16]Read from MH i2c: E2 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 0E 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EA [19:09:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:09:16]wFMCommunicate OK [19:09:16]SAM_PROTO_GetShiftState done [19:09:16]FM_GetShiftState done [19:09:16]req_shift_opened done [19:09:16]requested_item shift.open_date is exist - process it [19:09:16]req_shift_open_date [19:09:16]req_shift_open_date done [19:09:16]produce_requested_data done [19:09:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82449,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:09:16]process_action_free close_receipt [19:09:16]json_value_free [19:09:16]json_value_free done [19:09:16]process_json_proto returns [19:09:16]Send response to host [19:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82449,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:09:16]free response buf [19:09:16]execute_script done [19:09:16]execute_script returns [19:09:16]free content buf [19:09:16]Sock 7.Close socket [19:09:16]Sock 7.Thread stoped [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10: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:28]accept exits with 10 [19:11:28]New connection [19:11:28]New thread 3066916196 created [19:11:28]Thread 3066772836 joined [19:11:28]Waiting for new connection... [19:11:28] Sock 10.Parse request [19:11:28]Sock 10.Check first char [19:11:28]Sock 10.First char is OK [19:11:28]request: POST /json_proto HTTP/1.0 [19:11:28]Method: POST [19:11:28]URL: /json_proto [19:11:28]Method is POST - this is cgi request [19:11:28]url: /json_proto [19:11:28]query_string will be loaded in cgi processing [19:11:28]execute_cgi json_proto POST (null) [19:11:28]execute_cgi path=json_proto method=POST [19:11:28]POST find Content-Length [19:11:28]Host: 172.17.44.67:8080 [19:11:28]Content-Length: 688 [19:11:28]Content-Type: application/json [19:11:28] [19:11:28]POST finish read [19:11:28]Found Content-Length = 688 [19:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:28]execute_script... [19:11: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)918942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:28]POST & json_proto [19:11:28]process_json_proto [19:11:28]json parsed OK: [19:11:28]protocol is kg_v1.0 [19:11:28]action value=close_receipt [19:11:28]process_action close_receipt [19:11:28]cmd_close_receipt [19:11:28]MH_GetDate [19:11:28]Write to MH i2c: F0 00 00 9C 00 8B [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: F0 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: F0 09 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: F0 09 00 9C 00 00 E1 B2 12 67 F1 C7 6B 64 27 [19:11:28]GetLastDocTimeStamp 1729278553 [19:11:28]current date 1729278689 [19:11:28]FM_GetShiftState [19:11:28]SAM_PROTO_GetShiftState [19:11:28]wFMCommunicate request_size=4 [19:11:28]MH_SAM_APDU [19:11:28]CAPDU: 80 13 01 00 [19:11:28]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:28]Read from MH i2c: E2 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 0E 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EC [19:11:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:11:28]wFMCommunicate OK [19:11:28]SAM_PROTO_GetShiftState done [19:11:28]FM_GetShiftState done [19:11:28]opened in 1729212319 [19:11:28]opened+sec_in_day 1729298719 [19:11:28]quantity*price = 100051 [19:11:28]sum+1 = 100052 [19:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 159 18.10.2024 19:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82450 ФПД: 56399073673138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T191129&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82450&fm=56399073673138&tin=02508201610067®Number=0000000000091680&sum=100000 [19:11:29]StoreToDocumentArchive [19:11:29]shift 526 fd 82450 [19:11:29]save to /storage/0526/doc_00082450 [19:11:29]save last doc name /storage/0526/doc_00082450 to /storage/kkm_last_doc_name [19:11:29]save OK [19:11:29]Clear old archive folders... [19:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:11:29]tlvbuf is 01EDB110 [19:11:29]SAM_PROTO_ClearQueue [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 09 00 00 [19:11:29]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]SAM_PROTO_ClearQueue done [19:11:29]KKMCreateOFDPacket [19:11:29]OFDProtocolAddRootSTLVToBuf [19:11:29]FM_MakeSignedData [19:11:29]FM_MakeSignedData [19:11:29]SAM_PROTO_SignData [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 0D 01 02 [19:11:29]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]wFMCommunicate request_size=255 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 42 01 [19:11:29]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 42 01 00 00 4B [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]wFMCommunicate request_size=16 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 33 4B 6E C0 7F B2 [19:11:29]Write to MH i2c: E2 13 00 AD 00 80 0D 02 02 0B 00 00 35 04 06 00 33 4B 6E C0 7F B2 00 00 59 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 0D 03 02 [19:11:29]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 0B 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 0B 00 AE 00 00 F5 F7 D6 19 E7 6C EA C0 90 00 02 [19:11:29]RAPDU: F5 F7 D6 19 E7 6C EA C0 90 00 [19:11:29]wFMCommunicate OK [19:11:29]SAM_PROTO_SignData done [19:11:29]FM_MakeSignedData done [19:11:29]CreateOFDProtocolMessage [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 11 00 00 [19:11:29]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 17 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [19:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:11:29]wFMCommunicate OK [19:11:29]CreateOFDProtocolMessage done [19:11:29]OFDSenderStorePacket 82450 [19:11:29]StoreOFDPacket docnum=82450 [19:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 FA 47 0D 01 70 2A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 42 01 00 35 04 06 00 33 4B 6E C0 7F B2 F5 F7 D6 19 E7 6C EA C0 [19:11:29]CheckFolder [19:11:29]dirname=/storage/ofd_packets [19:11:29]CheckFolder done [19:11:29]ProducePacketName [19:11:29]name=ofd_packets/00082450 [19:11:29]NVStorageSaveData ofd_packets/00082450 [19:11:29]File name is /storage/ofd_packets/00082450 [19:11:29]Write 307 bytes [19:11:29]NVStorageSaveData done [19:11:29]OFDSenderStorePacket done [19:11:29]KKMCreateOFDPacket done [19:11:29]NVStorageSaveData kkm_last_timestamp [19:11:29]File name is /storage/kkm_last_timestamp [19:11:29]Write 4 bytes [19:11:29]NVStorageSaveData done [19:11:29]ExternCall_PrintAddStr [19:11:29]wPrintStart [19:11:29]Write to MH i2c: 01 00 00 B0 00 B0 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 07 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [19:11:29]RasterBufferAndPrint [19:11:29]line Счет N : (1)918942 [19:11:29]line ИНН: 02508201610067 [19:11:29]line Контрольно-Кассовый Чек [19:11:29]line ПРОДАЖА [19:11:29]line ТРК (МРК, ГНК) : 21 [19:11:29]line Товар: 2710194800 [19:11:29]line D-Energy ДТ-К-2 [19:11:29]line 12.960 * 77.20 [19:11:29]line = 1000.51 [19:11:29]line НДС 12% НСП 1% [19:11:29]line > о реализуемом товаре [19:11:29]line ОКРУГЛЕНИЕ: -0.51 [19:11:29]line ИТОГО: 1000.00 [19:11:29]line Внесено: 1000.00 [19:11:29]line СДАЧА: 0.00 [19:11:29]line НСП 1% : 8.85 [19:11:29]line НДС 12% : 106.25 [19:11:29]line Наличными: 1000.00 [19:11:29]line Безнал.: 0.00 [19:11:29]line Место: АЗС № 114 "Партнер Нефть" [19:11:29]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:11:29]line СНО: Общий режим [19:11:29]line Чек 159 18.10.2024 19:11 [19:11:29]line Смена: 526 ФФД: 1.0 [19:11:29]line ЗНМ: 0300000086 [19:11:29]line РНМ: 0000000000091680 [19:11:29]line Версия ККМ: 001 [19:11:29]line ФМ: 0000000000871843 [19:11:29]line ФД: 82450 [19:11:29]line ФПД: 56399073673138 [19:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T191129&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82450&fm=56399073673138&tin=02508201610067®Number=0000000000091680&sum=100000 [19:11:30]OFD Sender: Processing packet 82450 [packets to send 254, broken 253] [19:11:30]ProducePacketName [19:11:30]name=ofd_packets/00082450 [19:11:30]OFD Sender: To server: pG, [19:11:30]CommunicateWithHost lk.salyk.kg:30040 [19:11:30]ConnectInit lk.salyk.kg [19:11:30]written 0, free lines is 4095 [19:11:30]Write to MH i2c: 01 00 00 DB 00 DB [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: 01 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: 01 07 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 DF 0C CD [19:11:30]RasterBufferAndPrint [19:11:30]line [19:11:30]line [19:11:30]line [19:11:30]line [19:11:30]line [19:11:30]written 0, free lines is 3301 [19:11:30]MH_Cut [19:11:30]Write to MH i2c: D1 01 00 E2 00 01 B4 [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: D1 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: D1 01 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: D1 01 00 E2 00 00 B3 [19:11:30]Write to MH i2c: 01 00 00 E3 00 E3 [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]Connected sock=9 [19:11:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 FA 47 0D 01 70 2A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 E1 B2 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 42 01 00 35 04 06 00 33 4B 6E C0 7F B2 F5 F7 D6 19 E7 6C EA C0 [19:11:31]*** Cut start [19:11:31]*** Partial cut [19:11:31]*** CUTSNS_PIN = 1 [19:11:31]*** CUTSNS_PIN = 0 [19:11:31]*** Brake cut motor [19:11:31]Read from MH i2c: 01 [19:11:31]MH_I2C_Read... [19:11:31]*** Stop cut motor [19:11:31]*** Cut end [19:11:31]Read from MH i2c: 01 07 00 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [19:11:31]process_action close_receipt done [19:11:31]requested_data is exist [19:11:31]produce_requested_data [19:11:31]requested_item fm.sn is exist - process it [19:11:31]wFMCommunicate request_size=4 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 11 00 00 [19:11:31]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 17 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B0 [19:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:11:32]wFMCommunicate OK [19:11:32]requested_item fd.num is exist - process it [19:11:32]SAM_PROTO_GetFieldsCounters [19:11:32]wFMCommunicate request_size=4 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 13 00 00 [19:11:32]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 62 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 12 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [19:11:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 12 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:32]wFMCommunicate OK [19:11:32]SAM_PROTO_GetFieldsCounters done [19:11:32]requested_item shift.num is exist - process it [19:11:32]requested_item shift.opened is exist - process it [19:11:32]req_shift_opened [19:11:32]FM_GetShiftState [19:11:32]SAM_PROTO_GetShiftState [19:11:32]wFMCommunicate request_size=4 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 13 01 00 [19:11:32]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0E 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 35 [19:11:32]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:11:32]wFMCommunicate OK [19:11:32]SAM_PROTO_GetShiftState done [19:11:32]FM_GetShiftState done [19:11:32]req_shift_opened done [19:11:32]requested_item shift.open_date is exist - process it [19:11:32]req_shift_open_date [19:11:32]req_shift_open_date done [19:11:32]produce_requested_data done [19:11:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82450,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:11:32]process_action_free close_receipt [19:11:32]json_value_free [19:11:32]json_value_free done [19:11:32]process_json_proto returns [19:11:32]Send response to host [19:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82450,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:11:32]free response buf [19:11:32]execute_script done [19:11:32]execute_script returns [19:11:32]free content buf [19:11:32]Sock 10.Close socket [19:11:32]Sock 10.Thread stoped [19:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 86 44 47 00 4A AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 12 42 01 00 F4 03 04 00 1B 58 12 67 B6 04 01 00 00 B7 A3 37 9D 5D FB FE F1 [19:11:32]CommunicateWithHost err = 0 [19:11:32]CheckOFDResponse [19:11:32]1017 (14) - 77093643461234 [19:11:32]1041 (16) - 0000000000871843 [19:11:32]1040 (4) - 82450 [19:11:32]1012 (4) - 18.10.2024 12:44 [19:11:32]1206 (1) - 0 [19:11:32]OFD Sender: Remove packet 82450 [19:11:32]ProducePacketName [19:11:32]name=ofd_packets/00082450 [19:11:32]NVStorageDeleteData [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:55]recv_with_timeout no data received [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:41]recv_with_timeout no data received [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:44]accept exits with 7 [19:16:44]New connection [19:16:44]New thread 3066772836 created [19:16:44]Thread 3066916196 joined [19:16:44]Waiting for new connection... [19:16:44] Sock 7.Parse request [19:16:44]Sock 7.Check first char [19:16:44]Sock 7.First char is OK [19:16:44]request: POST /json_proto HTTP/1.0 [19:16:44]Method: POST [19:16:44]URL: /json_proto [19:16:44]Method is POST - this is cgi request [19:16:44]url: /json_proto [19:16:44]query_string will be loaded in cgi processing [19:16:44]execute_cgi json_proto POST (null) [19:16:44]execute_cgi path=json_proto method=POST [19:16:44]POST find Content-Length [19:16:44]Host: 172.17.44.67:8080 [19:16:44]Content-Length: 678 [19:16:44]Content-Type: application/json [19:16:44] [19:16:44]POST finish read [19:16:44]Found Content-Length = 678 [19:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:44]execute_script... [19:16: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)918944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:44]POST & json_proto [19:16:44]process_json_proto [19:16:44]json parsed OK: [19:16:44]protocol is kg_v1.0 [19:16:44]action value=close_receipt [19:16:44]process_action close_receipt [19:16:44]cmd_close_receipt [19:16:44]MH_GetDate [19:16:44]Write to MH i2c: F0 00 00 E7 00 D6 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: F0 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: F0 09 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: F0 09 00 E7 00 00 1D B4 12 67 F1 C7 6B 64 B0 [19:16:44]GetLastDocTimeStamp 1729278689 [19:16:44]current date 1729279005 [19:16:44]FM_GetShiftState [19:16:44]SAM_PROTO_GetShiftState [19:16:44]wFMCommunicate request_size=4 [19:16:44]MH_SAM_APDU [19:16:44]CAPDU: 80 13 01 00 [19:16:44]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0E 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 37 [19:16:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:16:44]wFMCommunicate OK [19:16:44]SAM_PROTO_GetShiftState done [19:16:44]FM_GetShiftState done [19:16:44]opened in 1729212319 [19:16:44]opened+sec_in_day 1729298719 [19:16:44]quantity*price = 90047 [19:16:44]sum+1 = 90048 [19:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 160 18.10.2024 19:16 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82451 ФПД: 146927080549941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T191645&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82451&fm=146927080549941&tin=02508201610067®Number=0000000000091680&sum=90000 [19:16:46]StoreToDocumentArchive [19:16:46]shift 526 fd 82451 [19:16:46]save to /storage/0526/doc_00082451 [19:16:46]save last doc name /storage/0526/doc_00082451 to /storage/kkm_last_doc_name [19:16:46]save OK [19:16:46]Clear old archive folders... [19:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:46]tlvbuf is 01E82ED0 [19:16:46]SAM_PROTO_ClearQueue [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 09 00 00 [19:16:46]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [19:16:46]RAPDU: 90 00 [19:16:46]wFMCommunicate OK [19:16:46]SAM_PROTO_ClearQueue done [19:16:46]KKMCreateOFDPacket [19:16:46]OFDProtocolAddRootSTLVToBuf [19:16:46]FM_MakeSignedData [19:16:46]FM_MakeSignedData [19:16:46]SAM_PROTO_SignData [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 0D 01 02 [19:16:46]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [19:16:46]RAPDU: 90 00 [19:16:46]wFMCommunicate OK [19:16:46]wFMCommunicate request_size=255 [19:16:46]MH_SAM_APDU [19:16: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 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1D B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 42 01 00 35 04 06 00 85 [19:16:46]Write to MH i2c: E2 02 01 F7 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 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1D B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 42 01 00 35 04 06 00 85 00 00 ED [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [19:16:46]RAPDU: 90 00 [19:16:46]wFMCommunicate OK [19:16:46]wFMCommunicate request_size=10 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 0D 02 02 05 A1 20 71 AE 35 [19:16:46]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 A1 20 71 AE 35 00 00 91 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [19:16:46]RAPDU: 90 00 [19:16:46]wFMCommunicate OK [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 0D 03 02 [19:16:46]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 0B 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 0B 00 F9 00 00 82 7E D4 CA E8 03 12 A4 90 00 B4 [19:16:46]RAPDU: 82 7E D4 CA E8 03 12 A4 90 00 [19:16:46]wFMCommunicate OK [19:16:46]SAM_PROTO_SignData done [19:16:46]FM_MakeSignedData done [19:16:46]CreateOFDProtocolMessage [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 11 00 00 [19:16:46]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 17 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C6 [19:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:16:46]wFMCommunicate OK [19:16:46]CreateOFDProtocolMessage done [19:16:46]OFDSenderStorePacket 82451 [19:16:46]StoreOFDPacket docnum=82451 [19:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A5 DA 07 01 86 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 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1D B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 42 01 00 35 04 06 00 85 A1 20 71 AE 35 82 7E D4 CA E8 03 12 A4 [19:16:46]CheckFolder [19:16:46]dirname=/storage/ofd_packets [19:16:46]CheckFolder done [19:16:46]ProducePacketName [19:16:46]name=ofd_packets/00082451 [19:16:46]NVStorageSaveData ofd_packets/00082451 [19:16:46]File name is /storage/ofd_packets/00082451 [19:16:46]Write 301 bytes [19:16:46]NVStorageSaveData done [19:16:46]OFDSenderStorePacket done [19:16:46]KKMCreateOFDPacket done [19:16:46]NVStorageSaveData kkm_last_timestamp [19:16:46]File name is /storage/kkm_last_timestamp [19:16:46]Write 4 bytes [19:16:46]NVStorageSaveData done [19:16:46]ExternCall_PrintAddStr [19:16:46]wPrintStart [19:16:46]Write to MH i2c: 01 00 00 FB 00 FB [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: 01 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: 01 07 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [19:16:46]RasterBufferAndPrint [19:16:46]line Счет N : (1)918944 [19:16:46]line ИНН: 02508201610067 [19:16:46]line Контрольно-Кассовый Чек [19:16:46]line ПРОДАЖА [19:16:46]line ТРК (МРК, ГНК) : 11 [19:16:46]line Товар: 2710124130 [19:16:46]line Аи-92-К-4 [19:16:46]line 13.460 * 66.90 [19:16:46]line = 900.47 [19:16:46]line НДС 12% НСП 1% [19:16:46]line > о реализуемом товаре [19:16:46]line ОКРУГЛЕНИЕ: -0.47 [19:16:46]line ИТОГО: 900.00 [19:16:46]line Внесено: 900.00 [19:16:46]line СДАЧА: 0.00 [19:16:46]line НСП 1% : 7.97 [19:16:46]line НДС 12% : 95.62 [19:16:46]line Наличными: 900.00 [19:16:46]line Безнал.: 0.00 [19:16:46]line Место: АЗС № 114 "Партнер Нефть" [19:16:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:16:46]line СНО: Общий режим [19:16:46]line Чек 160 18.10.2024 19:16 [19:16:46]line Смена: 526 ФФД: 1.0 [19:16:46]line ЗНМ: 0300000086 [19:16:46]line РНМ: 0000000000091680 [19:16:46]line Версия ККМ: 001 [19:16:46]line ФМ: 0000000000871843 [19:16:46]line ФД: 82451 [19:16:46]line ФПД: 146927080549941 [19:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T191645&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82451&fm=146927080549941&tin=02508201610067®Number=0000000000091680&sum=90000 [19:16:46]OFD Sender: Processing packet 82451 [packets to send 254, broken 253] [19:16:46]ProducePacketName [19:16:46]name=ofd_packets/00082451 [19:16:46]OFD Sender: To server: pG, [19:16:46]CommunicateWithHost lk.salyk.kg:30040 [19:16:46]ConnectInit lk.salyk.kg [19:16:46]written 0, free lines is 4095 [19:16:47]Write to MH i2c: 01 00 00 26 01 27 [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: 01 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: 01 07 00 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 DC 0C 16 [19:16:47]RasterBufferAndPrint [19:16:47]line [19:16:47]line [19:16:47]line [19:16:47]line [19:16:47]line [19:16:47]written 0, free lines is 3295 [19:16:47]MH_Cut [19:16:47]Write to MH i2c: D1 01 00 2D 01 01 00 [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: D1 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: D1 01 00 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: D1 01 00 2D 01 00 FF [19:16:47]Write to MH i2c: 01 00 00 2E 01 2F [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:48]*** Cut start [19:16:48]*** Partial cut [19:16:48]*** CUTSNS_PIN = 1 [19:16:48]*** CUTSNS_PIN = 0 [19:16:48]*** Brake cut motor [19:16:48]Connected sock=11 [19: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 31 38 34 33 0F 01 00 00 A5 DA 07 01 86 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 34 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 1D B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 42 01 00 35 04 06 00 85 A1 20 71 AE 35 82 7E D4 CA E8 03 12 A4 [19:16:48]Read from MH i2c: 01 [19:16:48]MH_I2C_Read... [19:16:48]*** Stop cut motor [19:16:48]*** Cut end [19:16:48]Read from MH i2c: 01 07 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [19:16:48]process_action close_receipt done [19:16:48]requested_data is exist [19:16:48]produce_requested_data [19:16:48]requested_item fm.sn is exist - process it [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 11 00 00 [19:16:48]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [19:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:16:48]wFMCommunicate OK [19:16:48]requested_item fd.num is exist - process it [19:16:48]SAM_PROTO_GetFieldsCounters [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 13 00 00 [19:16:48]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 62 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 13 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [19:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 13 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:49]wFMCommunicate OK [19:16:49]SAM_PROTO_GetFieldsCounters done [19:16:49]requested_item shift.num is exist - process it [19:16:49]requested_item shift.opened is exist - process it [19:16:49]req_shift_opened [19:16:49]FM_GetShiftState [19:16:49]SAM_PROTO_GetShiftState [19:16:49]wFMCommunicate request_size=4 [19:16:49]MH_SAM_APDU [19:16:49]CAPDU: 80 13 01 00 [19:16:49]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 0E 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 81 [19:16:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:16:49]wFMCommunicate OK [19:16:49]SAM_PROTO_GetShiftState done [19:16:49]FM_GetShiftState done [19:16:49]req_shift_opened done [19:16:49]requested_item shift.open_date is exist - process it [19:16:49]req_shift_open_date [19:16:49]req_shift_open_date done [19:16:49]produce_requested_data done [19:16:49]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82451,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:16:49]process_action_free close_receipt [19:16:49]json_value_free [19:16:49]json_value_free done [19:16:49]process_json_proto returns [19:16:49]Send response to host [19:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82451,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:16:49]free response buf [19:16:49]execute_script done [19:16:49]execute_script returns [19:16:49]free content buf [19:16:49]Sock 7.Close socket [19:16:49]Sock 7.Thread stoped [19:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 3C 1C 47 00 42 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 13 42 01 00 F4 03 04 00 59 59 12 67 B6 04 01 00 00 83 3D D9 6D AF 18 5F 7C [19:16:49]CommunicateWithHost err = 0 [19:16:49]CheckOFDResponse [19:16:49]1017 (14) - 77093643461234 [19:16:49]1041 (16) - 0000000000871843 [19:16:49]1040 (4) - 82451 [19:16:49]1012 (4) - 18.10.2024 12:49 [19:16:49]1206 (1) - 0 [19:16:49]OFD Sender: Remove packet 82451 [19:16:49]ProducePacketName [19:16:49]name=ofd_packets/00082451 [19:16:49]NVStorageDeleteData [19:16:49]OFD Sender: No OFD packet to send [19:16:52]recv_with_timeout no data received [19:16:54]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:11]recv_with_timeout no data received [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:44]accept exits with 9 [19:17:44]New connection [19:17:44]New thread 3066916196 created [19:17:44]Thread 3066772836 joined [19:17:44]Waiting for new connection... [19:17:44] Sock 9.Parse request [19:17:44]Sock 9.Check first char [19:17:44]Sock 9.First char is OK [19:17:44]request: POST /json_proto HTTP/1.0 [19:17:44]Method: POST [19:17:44]URL: /json_proto [19:17:44]Method is POST - this is cgi request [19:17:44]url: /json_proto [19:17:44]query_string will be loaded in cgi processing [19:17:44]execute_cgi json_proto POST (null) [19:17:44]execute_cgi path=json_proto method=POST [19:17:44]POST find Content-Length [19:17:44]Host: 172.17.44.67:8080 [19:17:44]Content-Length: 754 [19:17:44]Content-Type: application/json [19:17:44] [19:17:44]POST finish read [19:17:44]Found Content-Length = 754 [19:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:44]execute_script... [19:17:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100665", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:44]POST & json_proto [19:17:44]process_json_proto [19:17:44]json parsed OK: [19:17:44]protocol is kg_v1.0 [19:17:44]action value=close_receipt [19:17:44]process_action close_receipt [19:17:44]cmd_close_receipt [19:17:44]MH_GetDate [19:17:44]Write to MH i2c: F0 00 00 32 01 22 [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: F0 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: F0 09 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: F0 09 00 32 01 00 59 B4 12 67 F1 C7 6B 64 38 [19:17:44]GetLastDocTimeStamp 1729279005 [19:17:44]current date 1729279065 [19:17:44]FM_GetShiftState [19:17:44]SAM_PROTO_GetShiftState [19:17:44]wFMCommunicate request_size=4 [19:17:44]MH_SAM_APDU [19:17:44]CAPDU: 80 13 01 00 [19:17:44]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:44]Read from MH i2c: E2 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 0E 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 83 [19:17:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:17:44]wFMCommunicate OK [19:17:44]SAM_PROTO_GetShiftState done [19:17:44]FM_GetShiftState done [19:17:44]opened in 1729212319 [19:17:44]opened+sec_in_day 1729298719 [19:17:44]quantity*price = 0 [19:17:44]sum+1 = 1 [19:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 161 18.10.2024 19:17 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100665 ФМ: 0000000000871843 ФД: 82452 ФПД: 159831554281238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T191745&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82452&fm=159831554281238&tin=02508201610067®Number=0000000000091680&sum=0 [19:17:45]StoreToDocumentArchive [19:17:45]shift 526 fd 82452 [19:17:45]save to /storage/0526/doc_00082452 [19:17:45]save last doc name /storage/0526/doc_00082452 to /storage/kkm_last_doc_name [19:17:45]save OK [19:17:45]Clear old archive folders... [19:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:45]tlvbuf is 01EF0310 [19:17:45]SAM_PROTO_ClearQueue [19:17:45]wFMCommunicate request_size=4 [19:17:45]MH_SAM_APDU [19:17:45]CAPDU: 80 09 00 00 [19:17:45]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [19:17:45]Write i2c OK [19:17:45]MH_I2C_Read... [19:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:45]Read from MH i2c: E2 [19:17:45]MH_I2C_Read... [19:17:45]Read from MH i2c: E2 03 00 [19:17:45]MH_I2C_Read... [19:17:45]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [19:17:45]RAPDU: 90 00 [19:17:45]wFMCommunicate OK [19:17:45]SAM_PROTO_ClearQueue done [19:17:45]KKMCreateOFDPacket [19:17:45]OFDProtocolAddRootSTLVToBuf [19:17:45]FM_MakeSignedData [19:17:45]FM_MakeSignedData [19:17:45]SAM_PROTO_SignData [19:17:45]wFMCommunicate request_size=4 [19:17:45]MH_SAM_APDU [19:17:45]CAPDU: 80 0D 01 02 [19:17:45]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [19:17:45]Write i2c OK [19:17:45]MH_I2C_Read... [19:17:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:45]Read from MH i2c: E2 [19:17:45]MH_I2C_Read... [19:17:45]Read from MH i2c: E2 03 00 [19:17:45]MH_I2C_Read... [19:17:45]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [19:17:45]RAPDU: 90 00 [19:17:45]wFMCommunicate OK [19:17:45]wFMCommunicate request_size=255 [19:17:45]MH_SAM_APDU [19:17: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 34 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 42 01 00 35 04 06 00 91 [19:17:45]Write to MH i2c: E2 02 01 42 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 34 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 42 01 00 35 04 06 00 91 00 00 2B [19:17:45]Write i2c OK [19:17:45]MH_I2C_Read... [19:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:46]Read from MH i2c: E2 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 03 00 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [19:17:46]RAPDU: 90 00 [19:17:46]wFMCommunicate OK [19:17:46]wFMCommunicate request_size=10 [19:17:46]MH_SAM_APDU [19:17:46]CAPDU: 80 0D 02 02 05 5D AF 04 4F 16 [19:17:46]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 5D AF 04 4F 16 00 00 3D [19:17:46]Write i2c OK [19:17:46]MH_I2C_Read... [19:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:46]Read from MH i2c: E2 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 03 00 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [19:17:46]RAPDU: 90 00 [19:17:46]wFMCommunicate OK [19:17:46]wFMCommunicate request_size=4 [19:17:46]MH_SAM_APDU [19:17:46]CAPDU: 80 0D 03 02 [19:17:46]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [19:17:46]Write i2c OK [19:17:46]MH_I2C_Read... [19:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:46]Read from MH i2c: E2 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 0B 00 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 0B 00 44 01 00 50 2D 42 84 9D 4A 56 3D 90 00 7E [19:17:46]RAPDU: 50 2D 42 84 9D 4A 56 3D 90 00 [19:17:46]wFMCommunicate OK [19:17:46]SAM_PROTO_SignData done [19:17:46]FM_MakeSignedData done [19:17:46]CreateOFDProtocolMessage [19:17:46]wFMCommunicate request_size=4 [19:17:46]MH_SAM_APDU [19:17:46]CAPDU: 80 11 00 00 [19:17:46]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [19:17:46]Write i2c OK [19:17:46]MH_I2C_Read... [19:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:46]Read from MH i2c: E2 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 17 00 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 12 [19:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:17:46]wFMCommunicate OK [19:17:46]CreateOFDProtocolMessage done [19:17:46]OFDSenderStorePacket 82452 [19:17:46]StoreOFDPacket docnum=82452 [19:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1B 04 07 01 56 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 34 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 42 01 00 35 04 06 00 91 5D AF 04 4F 16 50 2D 42 84 9D 4A 56 3D [19:17:46]CheckFolder [19:17:46]dirname=/storage/ofd_packets [19:17:46]CheckFolder done [19:17:46]ProducePacketName [19:17:46]name=ofd_packets/00082452 [19:17:46]NVStorageSaveData ofd_packets/00082452 [19:17:46]File name is /storage/ofd_packets/00082452 [19:17:46]Write 301 bytes [19:17:46]NVStorageSaveData done [19:17:46]OFDSenderStorePacket done [19:17:46]KKMCreateOFDPacket done [19:17:46]NVStorageSaveData kkm_last_timestamp [19:17:46]File name is /storage/kkm_last_timestamp [19:17:46]Write 4 bytes [19:17:46]NVStorageSaveData done [19:17:46]ExternCall_PrintAddStr [19:17:46]wPrintStart [19:17:46]Write to MH i2c: 01 00 00 46 01 47 [19:17:46]Write i2c OK [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: 01 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: 01 07 00 [19:17:46]MH_I2C_Read... [19:17:46]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [19:17:46]RasterBufferAndPrint [19:17:46]line Счет N : (1)918943 [19:17:46]line ИНН: 02508201610067 [19:17:46]line Контрольно-Кассовый Чек [19:17:46]line ПРОДАЖА [19:17:46]line ТРК (МРК, ГНК) : 22 [19:17:46]line Товар: 2710124130 [19:17:46]line Аи-92-К-4 [19:17:46]line 60.000 * 0.00 [19:17:46]line = 0.00 [19:17:46]line НДС 12% НСП 1% [19:17:46]line > о реализуемом товаре [19:17:46]line ИТОГО: 0.00 [19:17:46]line НСП 1% : 0.00 [19:17:46]line НДС 12% : 0.00 [19:17:46]line Наличными: 0.00 [19:17:46]line Безнал.: 0.00 [19:17:46]line Место: АЗС № 114 "Партнер Нефть" [19:17:46]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:17:46]line СНО: Общий режим [19:17:46]line Чек 161 18.10.2024 19:17 [19:17:46]line Смена: 526 ФФД: 1.0 [19:17:46]line ЗНМ: 0300000086 [19:17:46]line РНМ: 0000000000091680 [19:17:46]line Версия ККМ: 001 [19:17:46]line Талоны: ТК ГПНА Online [19:17:46]line 30100665 [19:17:46]line ФМ: 0000000000871843 [19:17:46]line ФД: 82452 [19:17:46]line ФПД: 159831554281238 [19:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T191745&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82452&fm=159831554281238&tin=02508201610067®Number=0000000000091680&sum=0 [19:17:46]written 0, free lines is 4095 [19:17:46]OFD Sender: Processing packet 82452 [packets to send 254, broken 253] [19:17:46]ProducePacketName [19:17:46]name=ofd_packets/00082452 [19:17:46]OFD Sender: To server: pG, [19:17:46]CommunicateWithHost lk.salyk.kg:30040 [19:17:46]ConnectInit lk.salyk.kg [19:17:47]Write to MH i2c: 01 00 00 70 01 71 [19:17:47]Write i2c OK [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: 01 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: 01 07 00 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 E2 0C 66 [19:17:47]RasterBufferAndPrint [19:17:47]line [19:17:47]line [19:17:47]line [19:17:47]line [19:17:47]line [19:17:47]written 0, free lines is 3304 [19:17:47]MH_Cut [19:17:47]Write to MH i2c: D1 01 00 77 01 01 4A [19:17:47]Write i2c OK [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: D1 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: D1 01 00 [19:17:47]MH_I2C_Read... [19:17:47]Read from MH i2c: D1 01 00 77 01 00 49 [19:17:47]Write to MH i2c: 01 00 00 78 01 79 [19:17:47]Write i2c OK [19:17:47]MH_I2C_Read... [19:17:47]Connected sock=11 [19:17:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1B 04 07 01 56 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 34 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 59 B4 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 42 01 00 35 04 06 00 91 5D AF 04 4F 16 50 2D 42 84 9D 4A 56 3D [19:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 87 B0 47 00 99 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 14 42 01 00 F4 03 04 00 93 59 12 67 B6 04 01 00 00 82 B3 5A 8B C2 4E 07 B9 [19:17:47]CommunicateWithHost err = 0 [19:17:47]CheckOFDResponse [19:17:47]1017 (14) - 77093643461234 [19:17:47]1041 (16) - 0000000000871843 [19:17:47]1040 (4) - 82452 [19:17:47]1012 (4) - 18.10.2024 12:50 [19:17:47]1206 (1) - 0 [19:17:47]OFD Sender: Remove packet 82452 [19:17:47]ProducePacketName [19:17:47]name=ofd_packets/00082452 [19:17:47]NVStorageDeleteData [19:17:47]*** Cut start [19:17:47]*** Partial cut [19:17:47]*** CUTSNS_PIN = 1 [19:17:47]*** CUTSNS_PIN = 0 [19:17:48]OFD Sender: No OFD packet to send [19:17:48]*** Brake cut motor [19:17:48]Read from MH i2c: 01 [19:17:48]MH_I2C_Read... [19:17:48]*** Stop cut motor [19:17:48]*** Cut end [19:17:48]Read from MH i2c: 01 07 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [19:17:48]process_action close_receipt done [19:17:48]requested_data is exist [19:17:48]produce_requested_data [19:17:48]requested_item fm.sn is exist - process it [19:17:48]wFMCommunicate request_size=4 [19:17:48]MH_SAM_APDU [19:17:48]CAPDU: 80 11 00 00 [19:17:48]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:48]Read from MH i2c: E2 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 17 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 46 [19:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:17:48]wFMCommunicate OK [19:17:48]requested_item fd.num is exist - process it [19:17:48]SAM_PROTO_GetFieldsCounters [19:17:48]wFMCommunicate request_size=4 [19:17:48]MH_SAM_APDU [19:17:48]CAPDU: 80 13 00 00 [19:17:48]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:48]Read from MH i2c: E2 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 62 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 14 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [19:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 14 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:48]wFMCommunicate OK [19:17:48]SAM_PROTO_GetFieldsCounters done [19:17:48]requested_item shift.num is exist - process it [19:17:48]requested_item shift.opened is exist - process it [19:17:48]req_shift_opened [19:17:48]FM_GetShiftState [19:17:48]SAM_PROTO_GetShiftState [19:17:48]wFMCommunicate request_size=4 [19:17:48]MH_SAM_APDU [19:17:48]CAPDU: 80 13 01 00 [19:17:48]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [19:17:48]Write i2c OK [19:17:48]MH_I2C_Read... [19:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:48]Read from MH i2c: E2 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 0E 00 [19:17:48]MH_I2C_Read... [19:17:48]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CB [19:17:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:17:48]wFMCommunicate OK [19:17:48]SAM_PROTO_GetShiftState done [19:17:48]FM_GetShiftState done [19:17:48]req_shift_opened done [19:17:48]requested_item shift.open_date is exist - process it [19:17:48]req_shift_open_date [19:17:48]req_shift_open_date done [19:17:48]produce_requested_data done [19:17:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82452,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:17:48]process_action_free close_receipt [19:17:48]json_value_free [19:17:48]json_value_free done [19:17:48]process_json_proto returns [19:17:48]Send response to host [19:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82452,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:17:48]free response buf [19:17:48]execute_script done [19:17:48]execute_script returns [19:17:48]free content buf [19:17:48]Sock 9.Close socket [19:17:48]Sock 9.Thread stoped [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]recv_with_timeout no data received [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:37]accept exits with 7 [19:21:37]New connection [19:21:37]New thread 3066772836 created [19:21:37]Thread 3066916196 joined [19:21:37]Waiting for new connection... [19:21:37] Sock 7.Parse request [19:21:37]Sock 7.Check first char [19:21:37]Sock 7.First char is OK [19:21:37]request: POST /json_proto HTTP/1.0 [19:21:37]Method: POST [19:21:37]URL: /json_proto [19:21:37]Method is POST - this is cgi request [19:21:37]url: /json_proto [19:21:37]query_string will be loaded in cgi processing [19:21:37]execute_cgi json_proto POST (null) [19:21:37]execute_cgi path=json_proto method=POST [19:21:37]POST find Content-Length [19:21:37]Host: 172.17.44.67:8080 [19:21:37]Content-Length: 677 [19:21:37]Content-Type: application/json [19:21:37] [19:21:37]POST finish read [19:21:37]Found Content-Length = 677 [19:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:37]execute_script... [19:21: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)918945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:37]POST & json_proto [19:21:37]process_json_proto [19:21:37]json parsed OK: [19:21:37]protocol is kg_v1.0 [19:21:37]action value=close_receipt [19:21:37]process_action close_receipt [19:21:37]cmd_close_receipt [19:21:37]MH_GetDate [19:21:37]Write to MH i2c: F0 00 00 7C 01 6C [19:21:37]Write i2c OK [19:21:37]MH_I2C_Read... [19:21:37]Read from MH i2c: F0 [19:21:37]MH_I2C_Read... [19:21:37]Read from MH i2c: F0 09 00 [19:21:37]MH_I2C_Read... [19:21:37]Read from MH i2c: F0 09 00 7C 01 00 42 B5 12 67 F1 C7 6B 64 6C [19:21:37]GetLastDocTimeStamp 1729279065 [19:21:37]current date 1729279298 [19:21:37]FM_GetShiftState [19:21:37]SAM_PROTO_GetShiftState [19:21:37]wFMCommunicate request_size=4 [19:21:37]MH_SAM_APDU [19:21:37]CAPDU: 80 13 01 00 [19:21:37]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [19:21:37]Write i2c OK [19:21:37]MH_I2C_Read... [19:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:37]Read from MH i2c: E2 [19:21:37]MH_I2C_Read... [19:21:37]Read from MH i2c: E2 0E 00 [19:21:37]MH_I2C_Read... [19:21:37]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CD [19:21:37]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:21:37]wFMCommunicate OK [19:21:37]SAM_PROTO_GetShiftState done [19:21:37]FM_GetShiftState done [19:21:37]opened in 1729212319 [19:21:37]opened+sec_in_day 1729298719 [19:21:37]quantity*price = 60009 [19:21:37]sum+1 = 60010 [19:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 162 18.10.2024 19:21 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82453 ФПД: 238348507783645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192138&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82453&fm=238348507783645&tin=02508201610067®Number=0000000000091680&sum=60000 [19:21:39]StoreToDocumentArchive [19:21:39]shift 526 fd 82453 [19:21:39]save to /storage/0526/doc_00082453 [19:21:39]save last doc name /storage/0526/doc_00082453 to /storage/kkm_last_doc_name [19:21:39]save OK [19:21:39]Clear old archive folders... [19:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:39]tlvbuf is 01E7E830 [19:21:39]SAM_PROTO_ClearQueue [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 09 00 00 [19:21:39]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]SAM_PROTO_ClearQueue done [19:21:39]KKMCreateOFDPacket [19:21:39]OFDProtocolAddRootSTLVToBuf [19:21:39]FM_MakeSignedData [19:21:39]FM_MakeSignedData [19:21:39]SAM_PROTO_SignData [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 0D 01 02 [19:21:39]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]wFMCommunicate request_size=255 [19:21:39]MH_SAM_APDU [19:21: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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 42 01 00 35 04 06 00 D8 [19:21:39]Write to MH i2c: E2 02 01 8C 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 42 01 00 35 04 06 00 D8 00 00 C0 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]wFMCommunicate request_size=10 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 0D 02 02 05 C6 D6 23 A1 DD [19:21:39]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 C6 D6 23 A1 DD 00 00 4F [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 0D 03 02 [19:21:39]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 0B 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 0B 00 8E 01 00 CE 41 DB A0 5C 58 05 14 90 00 62 [19:21:39]RAPDU: CE 41 DB A0 5C 58 05 14 90 00 [19:21:39]wFMCommunicate OK [19:21:39]SAM_PROTO_SignData done [19:21:39]FM_MakeSignedData done [19:21:39]CreateOFDProtocolMessage [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 11 00 00 [19:21:39]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 17 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [19:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:21:39]wFMCommunicate OK [19:21:39]CreateOFDProtocolMessage done [19:21:39]OFDSenderStorePacket 82453 [19:21:39]StoreOFDPacket docnum=82453 [19:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 91 6F 07 01 FF 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 42 01 00 35 04 06 00 D8 C6 D6 23 A1 DD CE 41 DB A0 5C 58 05 14 [19:21:39]CheckFolder [19:21:39]dirname=/storage/ofd_packets [19:21:39]CheckFolder done [19:21:39]ProducePacketName [19:21:39]name=ofd_packets/00082453 [19:21:39]NVStorageSaveData ofd_packets/00082453 [19:21:39]File name is /storage/ofd_packets/00082453 [19:21:39]Write 301 bytes [19:21:39]NVStorageSaveData done [19:21:39]OFDSenderStorePacket done [19:21:39]KKMCreateOFDPacket done [19:21:39]NVStorageSaveData kkm_last_timestamp [19:21:39]File name is /storage/kkm_last_timestamp [19:21:39]Write 4 bytes [19:21:39]NVStorageSaveData done [19:21:39]ExternCall_PrintAddStr [19:21:39]wPrintStart [19:21:39]Write to MH i2c: 01 00 00 90 01 91 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: 01 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: 01 07 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [19:21:39]RasterBufferAndPrint [19:21:39]line Счет N : (1)918945 [19:21:39]line ИНН: 02508201610067 [19:21:39]line Контрольно-Кассовый Чек [19:21:39]line ПРОДАЖА [19:21:39]line ТРК (МРК, ГНК) : 22 [19:21:39]line Товар: 2710124130 [19:21:39]line Аи-92-К-4 [19:21:39]line 8.970 * 66.90 [19:21:39]line = 600.09 [19:21:39]line НДС 12% НСП 1% [19:21:39]line > о реализуемом товаре [19:21:39]line ОКРУГЛЕНИЕ: -0.09 [19:21:39]line ИТОГО: 600.00 [19:21:39]line Внесено: 600.00 [19:21:39]line СДАЧА: 0.00 [19:21:39]line НСП 1% : 5.31 [19:21:39]line НДС 12% : 63.73 [19:21:39]line Наличными: 600.00 [19:21:39]line Безнал.: 0.00 [19:21:39]line Место: АЗС № 114 "Партнер Нефть" [19:21:39]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:21:39]line СНО: Общий режим [19:21:39]line Чек 162 18.10.2024 19:21 [19:21:39]line Смена: 526 ФФД: 1.0 [19:21:39]line ЗНМ: 0300000086 [19:21:39]line РНМ: 0000000000091680 [19:21:39]line Версия ККМ: 001 [19:21:39]line ФМ: 0000000000871843 [19:21:39]line ФД: 82453 [19:21:39]line ФПД: 238348507783645 [19:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192138&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82453&fm=238348507783645&tin=02508201610067®Number=0000000000091680&sum=60000 [19:21:39]OFD Sender: Processing packet 82453 [packets to send 254, broken 253] [19:21:39]ProducePacketName [19:21:39]name=ofd_packets/00082453 [19:21:39]OFD Sender: To server: pG, [19:21:39]CommunicateWithHost lk.salyk.kg:30040 [19:21:39]ConnectInit lk.salyk.kg [19:21:39]written 0, free lines is 4095 [19:21:40]Connected sock=10 [19:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 91 6F 07 01 FF 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 42 01 00 35 04 06 00 D8 C6 D6 23 A1 DD CE 41 DB A0 5C 58 05 14 [19:21:40]Write to MH i2c: 01 00 00 BB 01 BC [19:21:40]Write i2c OK [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 07 00 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 EA 0C B9 [19:21:40]RasterBufferAndPrint [19:21:40]line [19:21:40]line [19:21:40]line [19:21:40]line [19:21:40]line [19:21:40]written 0, free lines is 3313 [19:21:40]MH_Cut [19:21:40]Write to MH i2c: D1 01 00 C2 01 01 95 [19:21:40]Write i2c OK [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: D1 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: D1 01 00 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: D1 01 00 C2 01 00 94 [19:21:40]Write to MH i2c: 01 00 00 C3 01 C4 [19:21:40]Write i2c OK [19:21:40]MH_I2C_Read... [19:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 CE BE 47 00 6F 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 15 42 01 00 F4 03 04 00 7C 5A 12 67 B6 04 01 00 00 66 A3 8D A8 F1 9E 85 E4 [19:21:40]CommunicateWithHost err = 0 [19:21:40]CheckOFDResponse [19:21:40]1017 (14) - 77093643461234 [19:21:40]1041 (16) - 0000000000871843 [19:21:40]1040 (4) - 82453 [19:21:40]1012 (4) - 18.10.2024 12:54 [19:21:40]1206 (1) - 0 [19:21:40]OFD Sender: Remove packet 82453 [19:21:40]ProducePacketName [19:21:40]name=ofd_packets/00082453 [19:21:40]NVStorageDeleteData [19:21:41]*** Cut start [19:21:41]*** Partial cut [19:21:41]*** CUTSNS_PIN = 1 [19:21:41]OFD Sender: No OFD packet to send [19:21:41]*** CUTSNS_PIN = 0 [19:21:41]*** Brake cut motor [19:21:41]Read from MH i2c: 01 [19:21:41]MH_I2C_Read... [19:21:41]*** Stop cut motor [19:21:41]*** Cut end [19:21:41]Read from MH i2c: 01 07 00 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [19:21:41]process_action close_receipt done [19:21:41]requested_data is exist [19:21:41]produce_requested_data [19:21:41]requested_item fm.sn is exist - process it [19:21:41]wFMCommunicate request_size=4 [19:21:41]MH_SAM_APDU [19:21:41]CAPDU: 80 11 00 00 [19:21:41]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [19:21:41]Write i2c OK [19:21:41]MH_I2C_Read... [19:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:41]Read from MH i2c: E2 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 17 00 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [19:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:21:41]wFMCommunicate OK [19:21:41]requested_item fd.num is exist - process it [19:21:41]SAM_PROTO_GetFieldsCounters [19:21:41]wFMCommunicate request_size=4 [19:21:41]MH_SAM_APDU [19:21:41]CAPDU: 80 13 00 00 [19:21:41]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [19:21:41]Write i2c OK [19:21:41]MH_I2C_Read... [19:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:41]Read from MH i2c: E2 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 62 00 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 15 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [19:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 15 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_GetFieldsCounters done [19:21:42]requested_item shift.num is exist - process it [19:21:42]requested_item shift.opened is exist - process it [19:21:42]req_shift_opened [19:21:42]FM_GetShiftState [19:21:42]SAM_PROTO_GetShiftState [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 13 01 00 [19:21:42]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 16 [19:21:42]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_GetShiftState done [19:21:42]FM_GetShiftState done [19:21:42]req_shift_opened done [19:21:42]requested_item shift.open_date is exist - process it [19:21:42]req_shift_open_date [19:21:42]req_shift_open_date done [19:21:42]produce_requested_data done [19:21:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82453,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:21:42]process_action_free close_receipt [19:21:42]json_value_free [19:21:42]json_value_free done [19:21:42]process_json_proto returns [19:21:42]Send response to host [19:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82453,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:21:42]free response buf [19:21:42]execute_script done [19:21:42]execute_script returns [19:21:42]free content buf [19:21:42]Sock 7.Close socket [19:21:42]Sock 7.Thread stoped [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:55]recv_with_timeout no data received [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:12]accept exits with 9 [19:23:12]New connection [19:23:12]New thread 3066916196 created [19:23:12]Thread 3066772836 joined [19:23:12]Waiting for new connection... [19:23:12] Sock 9.Parse request [19:23:12]Sock 9.Check first char [19:23:12]Sock 9.First char is OK [19:23:12]request: POST /json_proto HTTP/1.0 [19:23:12]Method: POST [19:23:12]URL: /json_proto [19:23:12]Method is POST - this is cgi request [19:23:12]url: /json_proto [19:23:12]query_string will be loaded in cgi processing [19:23:12]execute_cgi json_proto POST (null) [19:23:12]execute_cgi path=json_proto method=POST [19:23:12]POST find Content-Length [19:23:12]Host: 172.17.44.67:8080 [19:23:12]Content-Length: 677 [19:23:12]Content-Type: application/json [19:23:12] [19:23:12]POST finish read [19:23:12]Found Content-Length = 677 [19:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:12]execute_script... [19:23: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)918946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:12]POST & json_proto [19:23:12]process_json_proto [19:23:12]json parsed OK: [19:23:12]protocol is kg_v1.0 [19:23:12]action value=close_receipt [19:23:12]process_action close_receipt [19:23:12]cmd_close_receipt [19:23:12]MH_GetDate [19:23:12]Write to MH i2c: F0 00 00 C7 01 B7 [19:23:12]Write i2c OK [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: F0 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: F0 09 00 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: F0 09 00 C7 01 00 A1 B5 12 67 F1 C7 6B 64 16 [19:23:12]GetLastDocTimeStamp 1729279298 [19:23:12]current date 1729279393 [19:23:12]FM_GetShiftState [19:23:12]SAM_PROTO_GetShiftState [19:23:12]wFMCommunicate request_size=4 [19:23:12]MH_SAM_APDU [19:23:12]CAPDU: 80 13 01 00 [19:23:12]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [19:23:12]Write i2c OK [19:23:12]MH_I2C_Read... [19:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:12]Read from MH i2c: E2 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 0E 00 [19:23:12]MH_I2C_Read... [19:23:12]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 18 [19:23:12]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:23:12]wFMCommunicate OK [19:23:12]SAM_PROTO_GetShiftState done [19:23:12]FM_GetShiftState done [19:23:12]opened in 1729212319 [19:23:12]opened+sec_in_day 1729298719 [19:23:12]quantity*price = 40006 [19:23:12]sum+1 = 40007 [19:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 163 18.10.2024 19:23 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82454 ФПД: 246340880354151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192313&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82454&fm=246340880354151&tin=02508201610067®Number=0000000000091680&sum=40000 [19:23:13]StoreToDocumentArchive [19:23:13]shift 526 fd 82454 [19:23:13]save to /storage/0526/doc_00082454 [19:23:13]save last doc name /storage/0526/doc_00082454 to /storage/kkm_last_doc_name [19:23:13]save OK [19:23:13]Clear old archive folders... [19:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:13]tlvbuf is 01EF7970 [19:23:13]SAM_PROTO_ClearQueue [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 09 00 00 [19:23:13]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [19:23:13]RAPDU: 90 00 [19:23:13]wFMCommunicate OK [19:23:13]SAM_PROTO_ClearQueue done [19:23:13]KKMCreateOFDPacket [19:23:13]OFDProtocolAddRootSTLVToBuf [19:23:13]FM_MakeSignedData [19:23:13]FM_MakeSignedData [19:23:13]SAM_PROTO_SignData [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 0D 01 02 [19:23:13]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [19:23:13]RAPDU: 90 00 [19:23:13]wFMCommunicate OK [19:23:13]wFMCommunicate request_size=255 [19:23:13]MH_SAM_APDU [19:23: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A1 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 42 01 00 35 04 06 00 E0 [19:23:13]Write to MH i2c: E2 02 01 D7 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A1 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 42 01 00 35 04 06 00 E0 00 00 66 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [19:23:13]RAPDU: 90 00 [19:23:13]wFMCommunicate OK [19:23:13]wFMCommunicate request_size=10 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 0D 02 02 05 0B B4 AA CB 67 [19:23:13]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 0B B4 AA CB 67 00 00 F8 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [19:23:13]RAPDU: 90 00 [19:23:13]wFMCommunicate OK [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 0D 03 02 [19:23:13]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:13]Read from MH i2c: E2 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0B 00 [19:23:13]MH_I2C_Read... [19:23:13]Read from MH i2c: E2 0B 00 D9 01 00 09 E9 84 59 01 8D A2 5A 90 00 AF [19:23:13]RAPDU: 09 E9 84 59 01 8D A2 5A 90 00 [19:23:13]wFMCommunicate OK [19:23:13]SAM_PROTO_SignData done [19:23:13]FM_MakeSignedData done [19:23:13]CreateOFDProtocolMessage [19:23:13]wFMCommunicate request_size=4 [19:23:13]MH_SAM_APDU [19:23:13]CAPDU: 80 11 00 00 [19:23:13]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [19:23:13]Write i2c OK [19:23:13]MH_I2C_Read... [19:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:14]Read from MH i2c: E2 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 17 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A7 [19:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:23:14]wFMCommunicate OK [19:23:14]CreateOFDProtocolMessage done [19:23:14]OFDSenderStorePacket 82454 [19:23:14]StoreOFDPacket docnum=82454 [19:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 95 07 01 8D 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A1 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 42 01 00 35 04 06 00 E0 0B B4 AA CB 67 09 E9 84 59 01 8D A2 5A [19:23:14]CheckFolder [19:23:14]dirname=/storage/ofd_packets [19:23:14]CheckFolder done [19:23:14]ProducePacketName [19:23:14]name=ofd_packets/00082454 [19:23:14]NVStorageSaveData ofd_packets/00082454 [19:23:14]File name is /storage/ofd_packets/00082454 [19:23:14]Write 301 bytes [19:23:14]NVStorageSaveData done [19:23:14]OFDSenderStorePacket done [19:23:14]KKMCreateOFDPacket done [19:23:14]NVStorageSaveData kkm_last_timestamp [19:23:14]File name is /storage/kkm_last_timestamp [19:23:14]Write 4 bytes [19:23:14]NVStorageSaveData done [19:23:14]ExternCall_PrintAddStr [19:23:14]wPrintStart [19:23:14]Write to MH i2c: 01 00 00 DB 01 DC [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 07 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [19:23:14]RasterBufferAndPrint [19:23:14]line Счет N : (1)918946 [19:23:14]line ИНН: 02508201610067 [19:23:14]line Контрольно-Кассовый Чек [19:23:14]line ПРОДАЖА [19:23:14]line ТРК (МРК, ГНК) : 22 [19:23:14]line Товар: 2710124130 [19:23:14]line Аи-92-К-4 [19:23:14]line 5.980 * 66.90 [19:23:14]line = 400.06 [19:23:14]line НДС 12% НСП 1% [19:23:14]line > о реализуемом товаре [19:23:14]line ОКРУГЛЕНИЕ: -0.06 [19:23:14]line ИТОГО: 400.00 [19:23:14]line Внесено: 400.00 [19:23:14]line СДАЧА: 0.00 [19:23:14]line НСП 1% : 3.54 [19:23:14]line НДС 12% : 42.48 [19:23:14]line Наличными: 400.00 [19:23:14]line Безнал.: 0.00 [19:23:14]line Место: АЗС № 114 "Партнер Нефть" [19:23:14]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:23:14]line СНО: Общий режим [19:23:14]line Чек 163 18.10.2024 19:23 [19:23:14]line Смена: 526 ФФД: 1.0 [19:23:14]line ЗНМ: 0300000086 [19:23:14]line РНМ: 0000000000091680 [19:23:14]line Версия ККМ: 001 [19:23:14]line ФМ: 0000000000871843 [19:23:14]line ФД: 82454 [19:23:14]line ФПД: 246340880354151 [19:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192313&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82454&fm=246340880354151&tin=02508201610067®Number=0000000000091680&sum=40000 [19:23:14]OFD Sender: Processing packet 82454 [packets to send 254, broken 253] [19:23:14]ProducePacketName [19:23:14]name=ofd_packets/00082454 [19:23:14]OFD Sender: To server: pG, [19:23:14]CommunicateWithHost lk.salyk.kg:30040 [19:23:14]ConnectInit lk.salyk.kg [19:23:14]written 0, free lines is 4095 [19:23:14]Write to MH i2c: 01 00 00 06 02 08 [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 07 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 DD 0C F8 [19:23:14]RasterBufferAndPrint [19:23:14]line [19:23:14]line [19:23:14]line [19:23:14]line [19:23:14]line [19:23:14]written 0, free lines is 3297 [19:23:14]MH_Cut [19:23:14]Write to MH i2c: D1 01 00 0D 02 01 E1 [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: D1 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: D1 01 00 [19:23:14]MH_I2C_Read... [19:23:14]Read from MH i2c: D1 01 00 0D 02 00 E0 [19:23:14]Write to MH i2c: 01 00 00 0E 02 10 [19:23:14]Write i2c OK [19:23:14]MH_I2C_Read... [19:23:15]*** Cut start [19:23:15]*** Partial cut [19:23:15]*** CUTSNS_PIN = 1 [19:23:15]*** CUTSNS_PIN = 0 [19:23:15]*** Brake cut motor [19:23:16]Read from MH i2c: 01 [19:23:16]MH_I2C_Read... [19:23:16]*** Stop cut motor [19:23:16]*** Cut end [19:23:16]Read from MH i2c: 01 07 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [19:23:16]process_action close_receipt done [19:23:16]requested_data is exist [19:23:16]produce_requested_data [19:23:16]requested_item fm.sn is exist - process it [19:23:16]wFMCommunicate request_size=4 [19:23:16]MH_SAM_APDU [19:23:16]CAPDU: 80 11 00 00 [19:23:16]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:16]Read from MH i2c: E2 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 17 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DD [19:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:23:16]wFMCommunicate OK [19:23:16]requested_item fd.num is exist - process it [19:23:16]SAM_PROTO_GetFieldsCounters [19:23:16]wFMCommunicate request_size=4 [19:23:16]MH_SAM_APDU [19:23:16]CAPDU: 80 13 00 00 [19:23:16]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]Connected sock=11 [19:23:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 40 95 07 01 8D 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 A1 B5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 42 01 00 35 04 06 00 E0 0B B4 AA CB 67 09 E9 84 59 01 8D A2 5A [19:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:16]Read from MH i2c: E2 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 62 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 62 00 10 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 16 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [19:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 16 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:16]wFMCommunicate OK [19:23:16]SAM_PROTO_GetFieldsCounters done [19:23:16]requested_item shift.num is exist - process it [19:23:16]requested_item shift.opened is exist - process it [19:23:16]req_shift_opened [19:23:16]FM_GetShiftState [19:23:16]SAM_PROTO_GetShiftState [19:23:16]wFMCommunicate request_size=4 [19:23:16]MH_SAM_APDU [19:23:16]CAPDU: 80 13 01 00 [19:23:16]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [19:23:16]Write i2c OK [19:23:16]MH_I2C_Read... [19:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:16]Read from MH i2c: E2 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 0E 00 [19:23:16]MH_I2C_Read... [19:23:16]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 62 [19:23:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:23:16]wFMCommunicate OK [19:23:16]SAM_PROTO_GetShiftState done [19:23:16]FM_GetShiftState done [19:23:16]req_shift_opened done [19:23:16]requested_item shift.open_date is exist - process it [19:23:16]req_shift_open_date [19:23:16]req_shift_open_date done [19:23:16]produce_requested_data done [19:23:16]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82454,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:23:16]process_action_free close_receipt [19:23:16]json_value_free [19:23:16]json_value_free done [19:23:16]process_json_proto returns [19:23:16]Send response to host [19:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82454,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:23:16]free response buf [19:23:16]execute_script done [19:23:16]execute_script returns [19:23:16]free content buf [19:23:16]Sock 9.Close socket [19:23:16]Sock 9.Thread stoped [19:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5D 53 47 00 A5 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 16 42 01 00 F4 03 04 00 DC 5A 12 67 B6 04 01 00 00 18 14 52 DD 20 1D 0F 74 [19:23:17]CommunicateWithHost err = 0 [19:23:17]CheckOFDResponse [19:23:17]1017 (14) - 77093643461234 [19:23:17]1041 (16) - 0000000000871843 [19:23:17]1040 (4) - 82454 [19:23:17]1012 (4) - 18.10.2024 12:55 [19:23:17]1206 (1) - 0 [19:23:17]OFD Sender: Remove packet 82454 [19:23:17]ProducePacketName [19:23:17]name=ofd_packets/00082454 [19:23:17]NVStorageDeleteData [19:23:17]OFD Sender: No OFD packet to send [19:23:18]recv_with_timeout no data received [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:29]recv_with_timeout no data received [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:40]recv_with_timeout no data received [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:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:01]accept exits with 7 [19:25:01]New connection [19:25:01]New thread 3066772836 created [19:25:01]Thread 3066916196 joined [19:25:01]Waiting for new connection... [19:25:01] Sock 7.Parse request [19:25:01]Sock 7.Check first char [19:25:01]Sock 7.First char is OK [19:25:01]request: POST /json_proto HTTP/1.0 [19:25:01]Method: POST [19:25:01]URL: /json_proto [19:25:01]Method is POST - this is cgi request [19:25:01]url: /json_proto [19:25:01]query_string will be loaded in cgi processing [19:25:01]execute_cgi json_proto POST (null) [19:25:01]execute_cgi path=json_proto method=POST [19:25:01]POST find Content-Length [19:25:01]Host: 172.17.44.67:8080 [19:25:01]Content-Length: 677 [19:25:01]Content-Type: application/json [19:25:01] [19:25:01]POST finish read [19:25:01]Found Content-Length = 677 [19:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:01]execute_script... [19:25: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)918947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:01]POST & json_proto [19:25:01]process_json_proto [19:25:01]json parsed OK: [19:25:01]protocol is kg_v1.0 [19:25:01]action value=close_receipt [19:25:01]process_action close_receipt [19:25:01]cmd_close_receipt [19:25:01]MH_GetDate [19:25:01]Write to MH i2c: F0 00 00 12 02 03 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: F0 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: F0 09 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: F0 09 00 12 02 00 0E B6 12 67 F1 C7 6B 64 D0 [19:25:01]GetLastDocTimeStamp 1729279393 [19:25:01]current date 1729279502 [19:25:01]FM_GetShiftState [19:25:01]SAM_PROTO_GetShiftState [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 13 01 00 [19:25:01]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 0E 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 64 [19:25:01]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:25:01]wFMCommunicate OK [19:25:01]SAM_PROTO_GetShiftState done [19:25:01]FM_GetShiftState done [19:25:01]opened in 1729212319 [19:25:01]opened+sec_in_day 1729298719 [19:25:01]quantity*price = 50041 [19:25:01]sum+1 = 50042 [19:25:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 164 18.10.2024 19:25 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82455 ФПД: 186067304674766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192502&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82455&fm=186067304674766&tin=02508201610067®Number=0000000000091680&sum=50000 [19:25:02]StoreToDocumentArchive [19:25:02]shift 526 fd 82455 [19:25:02]save to /storage/0526/doc_00082455 [19:25:02]save last doc name /storage/0526/doc_00082455 to /storage/kkm_last_doc_name [19:25:02]save OK [19:25:02]Clear old archive folders... [19:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:02]tlvbuf is B6D9F2D0 [19:25:02]SAM_PROTO_ClearQueue [19:25:02]wFMCommunicate request_size=4 [19:25:02]MH_SAM_APDU [19:25:02]CAPDU: 80 09 00 00 [19:25:02]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:02]Read from MH i2c: E2 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 03 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [19:25:02]RAPDU: 90 00 [19:25:02]wFMCommunicate OK [19:25:02]SAM_PROTO_ClearQueue done [19:25:02]KKMCreateOFDPacket [19:25:02]OFDProtocolAddRootSTLVToBuf [19:25:02]FM_MakeSignedData [19:25:02]FM_MakeSignedData [19:25:02]SAM_PROTO_SignData [19:25:02]wFMCommunicate request_size=4 [19:25:02]MH_SAM_APDU [19:25:02]CAPDU: 80 0D 01 02 [19:25:02]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:02]Read from MH i2c: E2 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 03 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [19:25:02]RAPDU: 90 00 [19:25:02]wFMCommunicate OK [19:25:02]wFMCommunicate request_size=255 [19:25:02]MH_SAM_APDU [19:25: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0E B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 42 01 00 35 04 06 00 A9 [19:25:03]Write to MH i2c: E2 02 01 22 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0E B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 42 01 00 35 04 06 00 A9 00 00 1C [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]OFD Sender: No OFD packet to send [19:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 03 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [19:25:03]RAPDU: 90 00 [19:25:03]wFMCommunicate OK [19:25:03]wFMCommunicate request_size=10 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 0D 02 02 05 3A 2B 99 75 CE [19:25:03]Write to MH i2c: E2 0D 00 23 02 80 0D 02 02 05 00 3A 2B 99 75 CE 00 00 EA [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 03 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [19:25:03]RAPDU: 90 00 [19:25:03]wFMCommunicate OK [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 0D 03 02 [19:25:03]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 0B 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 0B 00 24 02 00 FA 44 4A CD 42 21 BF 21 90 00 3A [19:25:03]RAPDU: FA 44 4A CD 42 21 BF 21 90 00 [19:25:03]wFMCommunicate OK [19:25:03]SAM_PROTO_SignData done [19:25:03]FM_MakeSignedData done [19:25:03]CreateOFDProtocolMessage [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 11 00 00 [19:25:03]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:03]Read from MH i2c: E2 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 17 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F3 [19:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:25:03]wFMCommunicate OK [19:25:03]CreateOFDProtocolMessage done [19:25:03]OFDSenderStorePacket 82455 [19:25:03]StoreOFDPacket docnum=82455 [19:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3E 9F 07 01 41 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0E B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 42 01 00 35 04 06 00 A9 3A 2B 99 75 CE FA 44 4A CD 42 21 BF 21 [19:25:03]CheckFolder [19:25:03]dirname=/storage/ofd_packets [19:25:03]CheckFolder done [19:25:03]ProducePacketName [19:25:03]name=ofd_packets/00082455 [19:25:03]NVStorageSaveData ofd_packets/00082455 [19:25:03]File name is /storage/ofd_packets/00082455 [19:25:03]Write 301 bytes [19:25:03]NVStorageSaveData done [19:25:03]OFDSenderStorePacket done [19:25:03]KKMCreateOFDPacket done [19:25:03]NVStorageSaveData kkm_last_timestamp [19:25:03]File name is /storage/kkm_last_timestamp [19:25:03]Write 4 bytes [19:25:03]NVStorageSaveData done [19:25:03]ExternCall_PrintAddStr [19:25:03]wPrintStart [19:25:03]Write to MH i2c: 01 00 00 26 02 28 [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: 01 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: 01 07 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [19:25:03]RasterBufferAndPrint [19:25:03]line Счет N : (1)918947 [19:25:03]line ИНН: 02508201610067 [19:25:03]line Контрольно-Кассовый Чек [19:25:03]line ПРОДАЖА [19:25:03]line ТРК (МРК, ГНК) : 22 [19:25:03]line Товар: 2710124130 [19:25:03]line Аи-92-К-4 [19:25:03]line 7.480 * 66.90 [19:25:03]line = 500.41 [19:25:03]line НДС 12% НСП 1% [19:25:03]line > о реализуемом товаре [19:25:03]line ОКРУГЛЕНИЕ: -0.41 [19:25:03]line ИТОГО: 500.00 [19:25:03]line Внесено: 500.00 [19:25:03]line СДАЧА: 0.00 [19:25:03]line НСП 1% : 4.43 [19:25:03]line НДС 12% : 53.14 [19:25:03]line Наличными: 500.00 [19:25:03]line Безнал.: 0.00 [19:25:03]line Место: АЗС № 114 "Партнер Нефть" [19:25:03]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:25:03]line СНО: Общий режим [19:25:03]line Чек 164 18.10.2024 19:25 [19:25:03]line Смена: 526 ФФД: 1.0 [19:25:03]line ЗНМ: 0300000086 [19:25:03]line РНМ: 0000000000091680 [19:25:03]line Версия ККМ: 001 [19:25:03]line ФМ: 0000000000871843 [19:25:03]line ФД: 82455 [19:25:03]line ФПД: 186067304674766 [19:25:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192502&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82455&fm=186067304674766&tin=02508201610067®Number=0000000000091680&sum=50000 [19:25:03]OFD Sender: Processing packet 82455 [packets to send 254, broken 253] [19:25:03]ProducePacketName [19:25:03]name=ofd_packets/00082455 [19:25:03]OFD Sender: To server: pG, [19:25:03]CommunicateWithHost lk.salyk.kg:30040 [19:25:03]ConnectInit lk.salyk.kg [19:25:03]written 0, free lines is 4095 [19:25:04]Write to MH i2c: 01 00 00 51 02 53 [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: 01 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: 01 07 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 D8 0C 3E [19:25:04]RasterBufferAndPrint [19:25:04]line [19:25:04]line [19:25:04]line [19:25:04]line [19:25:04]line [19:25:04]written 0, free lines is 3296 [19:25:04]MH_Cut [19:25:04]Write to MH i2c: D1 01 00 58 02 01 2C [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: D1 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: D1 01 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: D1 01 00 58 02 00 2B [19:25:04]Write to MH i2c: 01 00 00 59 02 5B [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:04]Connected sock=11 [19:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 3E 9F 07 01 41 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0E B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 17 42 01 00 35 04 06 00 A9 3A 2B 99 75 CE FA 44 4A CD 42 21 BF 21 [19:25:05]*** Cut start [19:25:05]*** Partial cut [19:25:05]*** CUTSNS_PIN = 1 [19:25:05]*** CUTSNS_PIN = 0 [19:25:05]*** Brake cut motor [19:25:05]Read from MH i2c: 01 [19:25:05]MH_I2C_Read... [19:25:05]*** Stop cut motor [19:25:05]*** Cut end [19:25:05]Read from MH i2c: 01 07 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [19:25:05]process_action close_receipt done [19:25:05]requested_data is exist [19:25:05]produce_requested_data [19:25:05]requested_item fm.sn is exist - process it [19:25:05]wFMCommunicate request_size=4 [19:25:05]MH_SAM_APDU [19:25:05]CAPDU: 80 11 00 00 [19:25:05]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:05]Read from MH i2c: E2 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 17 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 28 [19:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:25:05]wFMCommunicate OK [19:25:05]requested_item fd.num is exist - process it [19:25:05]SAM_PROTO_GetFieldsCounters [19:25:05]wFMCommunicate request_size=4 [19:25:05]MH_SAM_APDU [19:25:05]CAPDU: 80 13 00 00 [19:25:05]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6E 0A 47 00 CF 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 31 38 34 33 10 04 04 00 17 42 01 00 F4 03 04 00 49 5B 12 67 B6 04 01 00 00 C5 4A 65 3D 76 F5 AE A2 [19:25:05]CommunicateWithHost err = 0 [19:25:05]CheckOFDResponse [19:25:05]1017 (14) - 77093643461234 [19:25:05]1041 (16) - 0000000000871843 [19:25:05]1040 (4) - 82455 [19:25:05]1012 (4) - 18.10.2024 12:57 [19:25:05]1206 (1) - 0 [19:25:05]OFD Sender: Remove packet 82455 [19:25:05]ProducePacketName [19:25:05]name=ofd_packets/00082455 [19:25:05]NVStorageDeleteData [19:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:05]Read from MH i2c: E2 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 62 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 62 00 5B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 17 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [19:25:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 17 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:05]wFMCommunicate OK [19:25:05]SAM_PROTO_GetFieldsCounters done [19:25:05]requested_item shift.num is exist - process it [19:25:05]requested_item shift.opened is exist - process it [19:25:05]req_shift_opened [19:25:05]FM_GetShiftState [19:25:05]SAM_PROTO_GetShiftState [19:25:05]wFMCommunicate request_size=4 [19:25:05]MH_SAM_APDU [19:25:05]CAPDU: 80 13 01 00 [19:25:05]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [19:25:05]Write i2c OK [19:25:05]MH_I2C_Read... [19:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:05]Read from MH i2c: E2 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 0E 00 [19:25:05]MH_I2C_Read... [19:25:05]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AD [19:25:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:25:05]wFMCommunicate OK [19:25:05]SAM_PROTO_GetShiftState done [19:25:05]FM_GetShiftState done [19:25:05]req_shift_opened done [19:25:05]requested_item shift.open_date is exist - process it [19:25:05]req_shift_open_date [19:25:05]req_shift_open_date done [19:25:05]produce_requested_data done [19:25:05]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82455,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:25:05]process_action_free close_receipt [19:25:05]json_value_free [19:25:05]json_value_free done [19:25:05]process_json_proto returns [19:25:05]Send response to host [19:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82455,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:25:05]free response buf [19:25:05]execute_script done [19:25:05]execute_script returns [19:25:05]free content buf [19:25:05]Sock 7.Close socket [19:25:05]Sock 7.Thread stoped [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:30]accept exits with 9 [19:26:30]New connection [19:26:30]New thread 3066916196 created [19:26:30]Thread 3066772836 joined [19:26:30]Waiting for new connection... [19:26:30] Sock 9.Parse request [19:26:30]Sock 9.Check first char [19:26:30]Sock 9.First char is OK [19:26:30]request: POST /json_proto HTTP/1.0 [19:26:30]Method: POST [19:26:30]URL: /json_proto [19:26:30]Method is POST - this is cgi request [19:26:30]url: /json_proto [19:26:30]query_string will be loaded in cgi processing [19:26:30]execute_cgi json_proto POST (null) [19:26:30]execute_cgi path=json_proto method=POST [19:26:30]POST find Content-Length [19:26:30]Host: 172.17.44.67:8080 [19:26:30]Content-Length: 677 [19:26:30]Content-Type: application/json [19:26:30] [19:26:30]POST finish read [19:26:30]Found Content-Length = 677 [19:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:30]execute_script... [19:26:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:30]POST & json_proto [19:26:30]process_json_proto [19:26:30]json parsed OK: [19:26:30]protocol is kg_v1.0 [19:26:30]action value=close_receipt [19:26:30]process_action close_receipt [19:26:30]cmd_close_receipt [19:26:30]MH_GetDate [19:26:30]Write to MH i2c: F0 00 00 5D 02 4E [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: F0 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: F0 09 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: F0 09 00 5D 02 00 67 B6 12 67 F1 C7 6B 64 74 [19:26:30]GetLastDocTimeStamp 1729279502 [19:26:30]current date 1729279591 [19:26:30]FM_GetShiftState [19:26:30]SAM_PROTO_GetShiftState [19:26:30]wFMCommunicate request_size=4 [19:26:30]MH_SAM_APDU [19:26:30]CAPDU: 80 13 01 00 [19:26:30]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:30]Read from MH i2c: E2 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 0E 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AF [19:26:30]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:26:30]wFMCommunicate OK [19:26:30]SAM_PROTO_GetShiftState done [19:26:30]FM_GetShiftState done [19:26:30]opened in 1729212319 [19:26:30]opened+sec_in_day 1729298719 [19:26:30]quantity*price = 50041 [19:26:30]sum+1 = 50042 [19:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 165 18.10.2024 19:26 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82456 ФПД: 147831218833308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192631&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82456&fm=147831218833308&tin=02508201610067®Number=0000000000091680&sum=50000 [19:26:31]StoreToDocumentArchive [19:26:31]shift 526 fd 82456 [19:26:31]save to /storage/0526/doc_00082456 [19:26:31]save last doc name /storage/0526/doc_00082456 to /storage/kkm_last_doc_name [19:26:31]save OK [19:26:31]Clear old archive folders... [19:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:31]tlvbuf is 01EEF660 [19:26:31]SAM_PROTO_ClearQueue [19:26:31]wFMCommunicate request_size=4 [19:26:31]MH_SAM_APDU [19:26:31]CAPDU: 80 09 00 00 [19:26:31]Write to MH i2c: E2 08 00 6B 02 80 09 00 00 00 00 00 00 DF [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:31]Read from MH i2c: E2 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [19:26:31]RAPDU: 90 00 [19:26:31]wFMCommunicate OK [19:26:31]SAM_PROTO_ClearQueue done [19:26:31]KKMCreateOFDPacket [19:26:31]OFDProtocolAddRootSTLVToBuf [19:26:31]FM_MakeSignedData [19:26:31]FM_MakeSignedData [19:26:31]SAM_PROTO_SignData [19:26:31]wFMCommunicate request_size=4 [19:26:31]MH_SAM_APDU [19:26:31]CAPDU: 80 0D 01 02 [19:26:31]Write to MH i2c: E2 08 00 6C 02 80 0D 01 02 00 00 00 00 E7 [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:31]Read from MH i2c: E2 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [19:26:31]RAPDU: 90 00 [19:26:31]wFMCommunicate OK [19:26:31]wFMCommunicate request_size=255 [19:26:31]MH_SAM_APDU [19:26: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 42 01 00 35 04 06 00 86 [19:26:31]Write to MH i2c: E2 02 01 6D 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 42 01 00 35 04 06 00 86 00 00 9F [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:31]Read from MH i2c: E2 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [19:26:31]RAPDU: 90 00 [19:26:31]wFMCommunicate OK [19:26:31]wFMCommunicate request_size=10 [19:26:31]MH_SAM_APDU [19:26:31]CAPDU: 80 0D 02 02 05 73 A3 49 07 9C [19:26:31]Write to MH i2c: E2 0D 00 6E 02 80 0D 02 02 05 00 73 A3 49 07 9C 00 00 F6 [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:31]Read from MH i2c: E2 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [19:26:31]RAPDU: 90 00 [19:26:31]wFMCommunicate OK [19:26:31]wFMCommunicate request_size=4 [19:26:31]MH_SAM_APDU [19:26:31]CAPDU: 80 0D 03 02 [19:26:31]Write to MH i2c: E2 08 00 6F 02 80 0D 03 02 00 00 00 00 EC [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 0B 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 0B 00 6F 02 00 05 FC A4 F4 62 26 96 11 90 00 B5 [19:26:32]RAPDU: 05 FC A4 F4 62 26 96 11 90 00 [19:26:32]wFMCommunicate OK [19:26:32]SAM_PROTO_SignData done [19:26:32]FM_MakeSignedData done [19:26:32]CreateOFDProtocolMessage [19:26:32]wFMCommunicate request_size=4 [19:26:32]MH_SAM_APDU [19:26:32]CAPDU: 80 11 00 00 [19:26:32]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 17 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3E [19:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:26:32]wFMCommunicate OK [19:26:32]CreateOFDProtocolMessage done [19:26:32]OFDSenderStorePacket 82456 [19:26:32]StoreOFDPacket docnum=82456 [19:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7C 2D 07 01 E0 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 42 01 00 35 04 06 00 86 73 A3 49 07 9C 05 FC A4 F4 62 26 96 11 [19:26:32]CheckFolder [19:26:32]dirname=/storage/ofd_packets [19:26:32]CheckFolder done [19:26:32]ProducePacketName [19:26:32]name=ofd_packets/00082456 [19:26:32]NVStorageSaveData ofd_packets/00082456 [19:26:32]File name is /storage/ofd_packets/00082456 [19:26:32]Write 301 bytes [19:26:32]NVStorageSaveData done [19:26:32]OFDSenderStorePacket done [19:26:32]KKMCreateOFDPacket done [19:26:32]NVStorageSaveData kkm_last_timestamp [19:26:32]File name is /storage/kkm_last_timestamp [19:26:32]Write 4 bytes [19:26:32]NVStorageSaveData done [19:26:32]ExternCall_PrintAddStr [19:26:32]wPrintStart [19:26:32]Write to MH i2c: 01 00 00 71 02 73 [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: 01 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: 01 07 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [19:26:32]RasterBufferAndPrint [19:26:32]line Счет N : (1)918949 [19:26:32]line ИНН: 02508201610067 [19:26:32]line Контрольно-Кассовый Чек [19:26:32]line ПРОДАЖА [19:26:32]line ТРК (МРК, ГНК) : 11 [19:26:32]line Товар: 2710124130 [19:26:32]line Аи-92-К-4 [19:26:32]line 7.480 * 66.90 [19:26:32]line = 500.41 [19:26:32]line НДС 12% НСП 1% [19:26:32]line > о реализуемом товаре [19:26:32]line ОКРУГЛЕНИЕ: -0.41 [19:26:32]line ИТОГО: 500.00 [19:26:32]line Внесено: 500.00 [19:26:32]line СДАЧА: 0.00 [19:26:32]line НСП 1% : 4.43 [19:26:32]line НДС 12% : 53.14 [19:26:32]line Наличными: 500.00 [19:26:32]line Безнал.: 0.00 [19:26:32]line Место: АЗС № 114 "Партнер Нефть" [19:26:32]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:26:32]line СНО: Общий режим [19:26:32]line Чек 165 18.10.2024 19:26 [19:26:32]line Смена: 526 ФФД: 1.0 [19:26:32]line ЗНМ: 0300000086 [19:26:32]line РНМ: 0000000000091680 [19:26:32]line Версия ККМ: 001 [19:26:32]line ФМ: 0000000000871843 [19:26:32]line ФД: 82456 [19:26:32]line ФПД: 147831218833308 [19:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192631&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82456&fm=147831218833308&tin=02508201610067®Number=0000000000091680&sum=50000 [19:26:32]OFD Sender: Processing packet 82456 [packets to send 254, broken 253] [19:26:32]ProducePacketName [19:26:32]name=ofd_packets/00082456 [19:26:32]OFD Sender: To server: pG, [19:26:32]CommunicateWithHost lk.salyk.kg:30040 [19:26:32]ConnectInit lk.salyk.kg [19:26:32]written 0, free lines is 4095 [19:26:32]Write to MH i2c: 01 00 00 9C 02 9E [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: 01 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: 01 07 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 D6 0C 87 [19:26:32]RasterBufferAndPrint [19:26:32]line [19:26:32]line [19:26:32]line [19:26:32]line [19:26:32]line [19:26:32]written 0, free lines is 3293 [19:26:32]MH_Cut [19:26:32]Write to MH i2c: D1 01 00 A3 02 01 77 [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: D1 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: D1 01 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: D1 01 00 A3 02 00 76 [19:26:32]Write to MH i2c: 01 00 00 A4 02 A6 [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:33]Connected sock=10 [19:26:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 7C 2D 07 01 E0 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 42 01 00 35 04 06 00 86 73 A3 49 07 9C 05 FC A4 F4 62 26 96 11 [19:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 51 8B 47 00 D7 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 18 42 01 00 F4 03 04 00 A1 5B 12 67 B6 04 01 00 00 8E 3A 16 E6 5F 56 A7 12 [19:26:33]CommunicateWithHost err = 0 [19:26:33]CheckOFDResponse [19:26:33]1017 (14) - 77093643461234 [19:26:33]1041 (16) - 0000000000871843 [19:26:33]1040 (4) - 82456 [19:26:33]1012 (4) - 18.10.2024 12:59 [19:26:33]1206 (1) - 0 [19:26:33]OFD Sender: Remove packet 82456 [19:26:33]ProducePacketName [19:26:33]name=ofd_packets/00082456 [19:26:33]NVStorageDeleteData [19:26:33]*** Cut start [19:26:33]*** Partial cut [19:26:33]*** CUTSNS_PIN = 1 [19:26:33]*** CUTSNS_PIN = 0 [19:26:33]*** Brake cut motor [19:26:34]OFD Sender: No OFD packet to send [19:26:34]Read from MH i2c: 01 [19:26:34]MH_I2C_Read... [19:26:34]*** Stop cut motor [19:26:34]*** Cut end [19:26:34]Read from MH i2c: 01 07 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [19:26:34]process_action close_receipt done [19:26:34]requested_data is exist [19:26:34]produce_requested_data [19:26:34]requested_item fm.sn is exist - process it [19:26:34]wFMCommunicate request_size=4 [19:26:34]MH_SAM_APDU [19:26:34]CAPDU: 80 11 00 00 [19:26:34]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:34]Read from MH i2c: E2 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 17 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 73 [19:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:26:34]wFMCommunicate OK [19:26:34]requested_item fd.num is exist - process it [19:26:34]SAM_PROTO_GetFieldsCounters [19:26:34]wFMCommunicate request_size=4 [19:26:34]MH_SAM_APDU [19:26:34]CAPDU: 80 13 00 00 [19:26:34]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:34]Read from MH i2c: E2 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 62 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 62 00 A6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 18 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [19:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 18 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:34]wFMCommunicate OK [19:26:34]SAM_PROTO_GetFieldsCounters done [19:26:34]requested_item shift.num is exist - process it [19:26:34]requested_item shift.opened is exist - process it [19:26:34]req_shift_opened [19:26:34]FM_GetShiftState [19:26:34]SAM_PROTO_GetShiftState [19:26:34]wFMCommunicate request_size=4 [19:26:34]MH_SAM_APDU [19:26:34]CAPDU: 80 13 01 00 [19:26:34]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:34]Read from MH i2c: E2 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 0E 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F8 [19:26:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:26:34]wFMCommunicate OK [19:26:34]SAM_PROTO_GetShiftState done [19:26:34]FM_GetShiftState done [19:26:34]req_shift_opened done [19:26:34]requested_item shift.open_date is exist - process it [19:26:34]req_shift_open_date [19:26:34]req_shift_open_date done [19:26:34]produce_requested_data done [19:26:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82456,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:26:34]process_action_free close_receipt [19:26:34]json_value_free [19:26:34]json_value_free done [19:26:34]process_json_proto returns [19:26:34]Send response to host [19:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82456,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:26:34]free response buf [19:26:34]execute_script done [19:26:34]execute_script returns [19:26:34]free content buf [19:26:34]Sock 9.Close socket [19:26:34]Sock 9.Thread stoped [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:49]recv_with_timeout no data received [19:26:54]OFD Sender: No OFD packet to send [19:26:55]accept exits with 7 [19:26:55]New connection [19:26:55]New thread 3066772836 created [19:26:55]Thread 3066916196 joined [19:26:55]Waiting for new connection... [19:26:55] Sock 7.Parse request [19:26:55]Sock 7.Check first char [19:26:55]Sock 7.First char is OK [19:26:55]request: POST /json_proto HTTP/1.0 [19:26:55]Method: POST [19:26:55]URL: /json_proto [19:26:55]Method is POST - this is cgi request [19:26:55]url: /json_proto [19:26:55]query_string will be loaded in cgi processing [19:26:55]execute_cgi json_proto POST (null) [19:26:55]execute_cgi path=json_proto method=POST [19:26:55]POST find Content-Length [19:26:55]Host: 172.17.44.67:8080 [19:26:55]Content-Length: 677 [19:26:55]Content-Type: application/json [19:26:55] [19:26:55]POST finish read [19:26:55]Found Content-Length = 677 [19:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918948", "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" : 74.20, "quantity" : 1.460, "sum" : 108.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 108.00, "payments": [ { "type": 0, "sum" : 108.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:55]execute_script... [19: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)918948", "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" : 74.20, "quantity" : 1.460, "sum" : 108.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 108.00, "payments": [ { "type": 0, "sum" : 108.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:55]POST & json_proto [19:26:55]process_json_proto [19:26:55]json parsed OK: [19:26:55]protocol is kg_v1.0 [19:26:55]action value=close_receipt [19:26:55]process_action close_receipt [19:26:55]cmd_close_receipt [19:26:55]MH_GetDate [19:26:55]Write to MH i2c: F0 00 00 A8 02 99 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: F0 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: F0 09 00 [19:26:55]MH_I2C_Read... [19:26:55]Read from MH i2c: F0 09 00 A8 02 00 81 B6 12 67 F1 C7 6B 64 D9 [19:26:55]GetLastDocTimeStamp 1729279591 [19:26:55]current date 1729279617 [19:26:55]FM_GetShiftState [19:26:55]SAM_PROTO_GetShiftState [19:26:55]wFMCommunicate request_size=4 [19:26:55]MH_SAM_APDU [19:26:55]CAPDU: 80 13 01 00 [19:26:55]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [19:26:55]Write i2c OK [19:26:55]MH_I2C_Read... [19:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:56]Read from MH i2c: E2 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 [19:26:56]MH_I2C_Read... [19:26:56]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FA [19:26:56]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:26:56]wFMCommunicate OK [19:26:56]SAM_PROTO_GetShiftState done [19:26:56]FM_GetShiftState done [19:26:56]opened in 1729212319 [19:26:56]opened+sec_in_day 1729298719 [19:26:56]quantity*price = 10833 [19:26:56]sum+1 = 10834 [19:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 108.00 Внесено: 190.00 СДАЧА: 82.00 НСП 1% : 0.96 НДС 12% : 11.50 Наличными: 108.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 166 18.10.2024 19:26 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82457 ФПД: 41634212753676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192657&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82457&fm=41634212753676&tin=02508201610067®Number=0000000000091680&sum=10800 [19:26:57]StoreToDocumentArchive [19:26:57]shift 526 fd 82457 [19:26:57]save to /storage/0526/doc_00082457 [19:26:57]save last doc name /storage/0526/doc_00082457 to /storage/kkm_last_doc_name [19:26:57]save OK [19:26:57]Clear old archive folders... [19:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:57]tlvbuf is 01EF1240 [19:26:57]SAM_PROTO_ClearQueue [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 09 00 00 [19:26:57]Write to MH i2c: E2 08 00 B6 02 80 09 00 00 00 00 00 00 2A [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]SAM_PROTO_ClearQueue done [19:26:57]KKMCreateOFDPacket [19:26:57]OFDProtocolAddRootSTLVToBuf [19:26:57]FM_MakeSignedData [19:26:57]FM_MakeSignedData [19:26:57]SAM_PROTO_SignData [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 01 02 [19:26:57]Write to MH i2c: E2 08 00 B7 02 80 0D 01 02 00 00 00 00 32 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=255 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 04 00 00 00 00 07 04 06 00 30 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 A6 00 00 00 F4 03 04 00 81 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 42 01 00 35 04 06 00 25 [19:26:57]Write to MH i2c: E2 02 01 B8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 04 00 00 00 00 07 04 06 00 30 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 A6 00 00 00 F4 03 04 00 81 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 42 01 00 35 04 06 00 25 00 00 07 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=10 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 02 02 05 DD B8 76 31 0C [19:26:57]Write to MH i2c: E2 0D 00 B9 02 80 0D 02 02 05 00 DD B8 76 31 0C 00 00 87 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [19:26:57]RAPDU: 90 00 [19:26:57]wFMCommunicate OK [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 0D 03 02 [19:26:57]Write to MH i2c: E2 08 00 BA 02 80 0D 03 02 00 00 00 00 37 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 0B 00 BA 02 00 5A C1 3B E9 79 AB 8D 6A 90 00 92 [19:26:57]RAPDU: 5A C1 3B E9 79 AB 8D 6A 90 00 [19:26:57]wFMCommunicate OK [19:26:57]SAM_PROTO_SignData done [19:26:57]FM_MakeSignedData done [19:26:57]CreateOFDProtocolMessage [19:26:57]wFMCommunicate request_size=4 [19:26:57]MH_SAM_APDU [19:26:57]CAPDU: 80 11 00 00 [19:26:57]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:57]Read from MH i2c: E2 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 89 [19:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:26:57]wFMCommunicate OK [19:26:57]CreateOFDProtocolMessage done [19:26:57]OFDSenderStorePacket 82457 [19:26:57]StoreOFDPacket docnum=82457 [19:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 12 91 07 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 04 00 00 00 00 07 04 06 00 30 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 A6 00 00 00 F4 03 04 00 81 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 42 01 00 35 04 06 00 25 DD B8 76 31 0C 5A C1 3B E9 79 AB 8D 6A [19:26:57]CheckFolder [19:26:57]dirname=/storage/ofd_packets [19:26:57]CheckFolder done [19:26:57]ProducePacketName [19:26:57]name=ofd_packets/00082457 [19:26:57]NVStorageSaveData ofd_packets/00082457 [19:26:57]File name is /storage/ofd_packets/00082457 [19:26:57]Write 301 bytes [19:26:57]NVStorageSaveData done [19:26:57]OFDSenderStorePacket done [19:26:57]KKMCreateOFDPacket done [19:26:57]NVStorageSaveData kkm_last_timestamp [19:26:57]File name is /storage/kkm_last_timestamp [19:26:57]Write 4 bytes [19:26:57]NVStorageSaveData done [19:26:57]ExternCall_PrintAddStr [19:26:57]wPrintStart [19:26:57]Write to MH i2c: 01 00 00 BC 02 BE [19:26:57]Write i2c OK [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 [19:26:57]MH_I2C_Read... [19:26:57]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [19:26:57]RasterBufferAndPrint [19:26:57]line Счет N : (1)918948 [19:26:57]line ИНН: 02508201610067 [19:26:57]line Контрольно-Кассовый Чек [19:26:57]line ПРОДАЖА [19:26:57]line ТРК (МРК, ГНК) : 12 [19:26:57]line Товар: 2710124500 [19:26:57]line Аи-95-К-5 [19:26:57]line 1.460 * 74.20 [19:26:57]line = 108.33 [19:26:57]line НДС 12% НСП 1% [19:26:57]line > о реализуемом товаре [19:26:57]line ОКРУГЛЕНИЕ: -0.33 [19:26:57]line ИТОГО: 108.00 [19:26:57]line Внесено: 190.00 [19:26:57]line СДАЧА: 82.00 [19:26:57]line НСП 1% : 0.96 [19:26:57]line НДС 12% : 11.50 [19:26:57]line Наличными: 108.00 [19:26:57]line Безнал.: 0.00 [19:26:57]line Место: АЗС № 114 "Партнер Нефть" [19:26:57]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:26:57]line СНО: Общий режим [19:26:57]line Чек 166 18.10.2024 19:26 [19:26:57]line Смена: 526 ФФД: 1.0 [19:26:57]line ЗНМ: 0300000086 [19:26:57]line РНМ: 0000000000091680 [19:26:57]line Версия ККМ: 001 [19:26:57]line ФМ: 0000000000871843 [19:26:57]line ФД: 82457 [19:26:57]line ФПД: 41634212753676 [19:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192657&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82457&fm=41634212753676&tin=02508201610067®Number=0000000000091680&sum=10800 [19:26:58]OFD Sender: Processing packet 82457 [packets to send 254, broken 253] [19:26:58]ProducePacketName [19:26:58]name=ofd_packets/00082457 [19:26:58]OFD Sender: To server: pG, [19:26:58]CommunicateWithHost lk.salyk.kg:30040 [19:26:58]ConnectInit lk.salyk.kg [19:26:58]written 0, free lines is 4095 [19:26:58]Write to MH i2c: 01 00 00 E7 02 E9 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 E0 0C DC [19:26:58]RasterBufferAndPrint [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]line [19:26:58]written 0, free lines is 3301 [19:26:58]MH_Cut [19:26:58]Write to MH i2c: D1 01 00 EE 02 01 C2 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 01 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: D1 01 00 EE 02 00 C1 [19:26:58]Write to MH i2c: 01 00 00 EF 02 F1 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Connected sock=11 [19:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 12 91 07 01 06 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B4 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 51 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 04 00 00 00 00 07 04 06 00 30 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 A6 00 00 00 F4 03 04 00 81 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 42 01 00 35 04 06 00 25 DD B8 76 31 0C 5A C1 3B E9 79 AB 8D 6A [19:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 62 BD 47 00 CC D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 19 42 01 00 F4 03 04 00 BA 5B 12 67 B6 04 01 00 00 E0 1F 04 32 19 3F D1 56 [19:26:59]CommunicateWithHost err = 0 [19:26:59]CheckOFDResponse [19:26:59]1017 (14) - 77093643461234 [19:26:59]1041 (16) - 0000000000871843 [19:26:59]1040 (4) - 82457 [19:26:59]1012 (4) - 18.10.2024 12:59 [19:26:59]1206 (1) - 0 [19:26:59]OFD Sender: Remove packet 82457 [19:26:59]ProducePacketName [19:26:59]name=ofd_packets/00082457 [19:26:59]NVStorageDeleteData [19:26:59]*** Cut start [19:26:59]*** Partial cut [19:26:59]*** CUTSNS_PIN = 1 [19:26:59]*** CUTSNS_PIN = 0 [19:26:59]*** Brake cut motor [19:26:59]OFD Sender: No OFD packet to send [19:26:59]Read from MH i2c: 01 [19:26:59]MH_I2C_Read... [19:26:59]*** Stop cut motor [19:26:59]*** Cut end [19:26:59]Read from MH i2c: 01 07 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 FF 0F 06 [19:26:59]process_action close_receipt done [19:26:59]requested_data is exist [19:26:59]produce_requested_data [19:26:59]requested_item fm.sn is exist - process it [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 11 00 00 [19:26:59]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 17 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BE [19:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:26:59]wFMCommunicate OK [19:26:59]requested_item fd.num is exist - process it [19:26:59]SAM_PROTO_GetFieldsCounters [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 13 00 00 [19:26:59]Write to MH i2c: E2 08 00 F1 02 80 13 00 00 00 00 00 00 6F [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 62 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 62 00 F1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 19 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [19:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 19 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:00]wFMCommunicate OK [19:27:00]SAM_PROTO_GetFieldsCounters done [19:27:00]requested_item shift.num is exist - process it [19:27:00]requested_item shift.opened is exist - process it [19:27:00]req_shift_opened [19:27:00]FM_GetShiftState [19:27:00]SAM_PROTO_GetShiftState [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 13 01 00 [19:27:00]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:00]Read from MH i2c: E2 0E 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 43 [19:27:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:27:00]wFMCommunicate OK [19:27:00]SAM_PROTO_GetShiftState done [19:27:00]FM_GetShiftState done [19:27:00]req_shift_opened done [19:27:00]requested_item shift.open_date is exist - process it [19:27:00]req_shift_open_date [19:27:00]req_shift_open_date done [19:27:00]produce_requested_data done [19:27:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82457,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:27:00]process_action_free close_receipt [19:27:00]json_value_free [19:27:00]json_value_free done [19:27:00]process_json_proto returns [19:27:00]Send response to host [19:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82457,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:27:00]free response buf [19:27:00]execute_script done [19:27:00]execute_script returns [19:27:00]free content buf [19:27:00]Sock 7.Close socket [19:27:00]Sock 7.Thread stoped [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:16]accept exits with 10 [19:28:16]New connection [19:28:16]New thread 3066916196 created [19:28:16]Thread 3066772836 joined [19:28:16]Waiting for new connection... [19:28:16] Sock 10.Parse request [19:28:16]Sock 10.Check first char [19:28:16]Sock 10.First char is OK [19:28:16]request: POST /json_proto HTTP/1.0 [19:28:16]Method: POST [19:28:16]URL: /json_proto [19:28:16]Method is POST - this is cgi request [19:28:16]url: /json_proto [19:28:16]query_string will be loaded in cgi processing [19:28:16]execute_cgi json_proto POST (null) [19:28:16]execute_cgi path=json_proto method=POST [19:28:16]POST find Content-Length [19:28:16]Host: 172.17.44.67:8080 [19:28:16]Content-Length: 677 [19:28:16]Content-Type: application/json [19:28:16] [19:28:16]POST finish read [19:28:16]Found Content-Length = 677 [19:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:16]execute_script... [19:28: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)918951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:16]POST & json_proto [19:28:16]process_json_proto [19:28:16]json parsed OK: [19:28:16]protocol is kg_v1.0 [19:28:16]action value=close_receipt [19:28:16]process_action close_receipt [19:28:16]cmd_close_receipt [19:28:16]MH_GetDate [19:28:16]Write to MH i2c: F0 00 00 F3 02 E4 [19:28:16]Write i2c OK [19:28:16]MH_I2C_Read... [19:28:16]Read from MH i2c: F0 [19:28:16]MH_I2C_Read... [19:28:16]Read from MH i2c: F0 09 00 [19:28:16]MH_I2C_Read... [19:28:16]Read from MH i2c: F0 09 00 F3 02 00 D1 B6 12 67 F1 C7 6B 64 74 [19:28:16]GetLastDocTimeStamp 1729279617 [19:28:16]current date 1729279697 [19:28:16]FM_GetShiftState [19:28:16]SAM_PROTO_GetShiftState [19:28:16]wFMCommunicate request_size=4 [19:28:16]MH_SAM_APDU [19:28:16]CAPDU: 80 13 01 00 [19:28:16]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [19:28:16]Write i2c OK [19:28:16]MH_I2C_Read... [19:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:16]Read from MH i2c: E2 [19:28:16]MH_I2C_Read... [19:28:16]Read from MH i2c: E2 0E 00 [19:28:16]MH_I2C_Read... [19:28:16]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 45 [19:28:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:28:16]wFMCommunicate OK [19:28:16]SAM_PROTO_GetShiftState done [19:28:16]FM_GetShiftState done [19:28:16]opened in 1729212319 [19:28:16]opened+sec_in_day 1729298719 [19:28:16]quantity*price = 30038 [19:28:16]sum+1 = 30039 [19:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 167 18.10.2024 19:28 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82458 ФПД: 7273794748073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192817&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82458&fm=7273794748073&tin=02508201610067®Number=0000000000091680&sum=30000 [19:28:17]StoreToDocumentArchive [19:28:17]shift 526 fd 82458 [19:28:17]save to /storage/0526/doc_00082458 [19:28:17]save last doc name /storage/0526/doc_00082458 to /storage/kkm_last_doc_name [19:28:17]save OK [19:28:17]Clear old archive folders... [19:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:17]tlvbuf is 01E80420 [19:28:17]SAM_PROTO_ClearQueue [19:28:17]wFMCommunicate request_size=4 [19:28:17]MH_SAM_APDU [19:28:17]CAPDU: 80 09 00 00 [19:28:17]Write to MH i2c: E2 08 00 01 03 80 09 00 00 00 00 00 00 76 [19:28:17]Write i2c OK [19:28:17]MH_I2C_Read... [19:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:17]Read from MH i2c: E2 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: E2 03 00 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [19:28:17]RAPDU: 90 00 [19:28:17]wFMCommunicate OK [19:28:17]SAM_PROTO_ClearQueue done [19:28:17]KKMCreateOFDPacket [19:28:17]OFDProtocolAddRootSTLVToBuf [19:28:17]FM_MakeSignedData [19:28:17]FM_MakeSignedData [19:28:17]SAM_PROTO_SignData [19:28:17]wFMCommunicate request_size=4 [19:28:17]MH_SAM_APDU [19:28:17]CAPDU: 80 0D 01 02 [19:28:17]Write to MH i2c: E2 08 00 02 03 80 0D 01 02 00 00 00 00 7E [19:28:17]Write i2c OK [19:28:17]MH_I2C_Read... [19:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:17]Read from MH i2c: E2 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: E2 03 00 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [19:28:17]RAPDU: 90 00 [19:28:17]wFMCommunicate OK [19:28:17]wFMCommunicate request_size=255 [19:28:17]MH_SAM_APDU [19:28: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 42 01 00 35 04 06 00 06 [19:28:17]Write to MH i2c: E2 02 01 03 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 42 01 00 35 04 06 00 06 00 00 18 [19:28:17]Write i2c OK [19:28:17]MH_I2C_Read... [19:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:18]Read from MH i2c: E2 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [19:28:18]RAPDU: 90 00 [19:28:18]wFMCommunicate OK [19:28:18]wFMCommunicate request_size=10 [19:28:18]MH_SAM_APDU [19:28:18]CAPDU: 80 0D 02 02 05 9D 8F F3 BE A9 [19:28:18]Write to MH i2c: E2 0D 00 04 03 80 0D 02 02 05 00 9D 8F F3 BE A9 00 00 11 [19:28:18]Write i2c OK [19:28:18]MH_I2C_Read... [19:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:18]Read from MH i2c: E2 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [19:28:18]RAPDU: 90 00 [19:28:18]wFMCommunicate OK [19:28:18]wFMCommunicate request_size=4 [19:28:18]MH_SAM_APDU [19:28:18]CAPDU: 80 0D 03 02 [19:28:18]Write to MH i2c: E2 08 00 05 03 80 0D 03 02 00 00 00 00 83 [19:28:18]Write i2c OK [19:28:18]MH_I2C_Read... [19:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:18]Read from MH i2c: E2 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 0B 00 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 0B 00 05 03 00 2C D4 D8 90 02 2C 52 49 90 00 B5 [19:28:18]RAPDU: 2C D4 D8 90 02 2C 52 49 90 00 [19:28:18]wFMCommunicate OK [19:28:18]SAM_PROTO_SignData done [19:28:18]FM_MakeSignedData done [19:28:18]CreateOFDProtocolMessage [19:28:18]wFMCommunicate request_size=4 [19:28:18]MH_SAM_APDU [19:28:18]CAPDU: 80 11 00 00 [19:28:18]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [19:28:18]Write i2c OK [19:28:18]MH_I2C_Read... [19:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:18]Read from MH i2c: E2 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 17 00 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D5 [19:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:28:18]wFMCommunicate OK [19:28:18]CreateOFDProtocolMessage done [19:28:18]OFDSenderStorePacket 82458 [19:28:18]StoreOFDPacket docnum=82458 [19:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 A1 07 01 F0 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 42 01 00 35 04 06 00 06 9D 8F F3 BE A9 2C D4 D8 90 02 2C 52 49 [19:28:18]CheckFolder [19:28:18]dirname=/storage/ofd_packets [19:28:18]CheckFolder done [19:28:18]ProducePacketName [19:28:18]name=ofd_packets/00082458 [19:28:18]NVStorageSaveData ofd_packets/00082458 [19:28:18]File name is /storage/ofd_packets/00082458 [19:28:18]Write 301 bytes [19:28:18]NVStorageSaveData done [19:28:18]OFDSenderStorePacket done [19:28:18]KKMCreateOFDPacket done [19:28:18]NVStorageSaveData kkm_last_timestamp [19:28:18]File name is /storage/kkm_last_timestamp [19:28:18]Write 4 bytes [19:28:18]NVStorageSaveData done [19:28:18]ExternCall_PrintAddStr [19:28:18]wPrintStart [19:28:18]Write to MH i2c: 01 00 00 07 03 0A [19:28:18]Write i2c OK [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: 01 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: 01 07 00 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [19:28:18]RasterBufferAndPrint [19:28:18]line Счет N : (1)918951 [19:28:18]line ИНН: 02508201610067 [19:28:18]line Контрольно-Кассовый Чек [19:28:18]line ПРОДАЖА [19:28:18]line ТРК (МРК, ГНК) : 22 [19:28:18]line Товар: 2710124130 [19:28:18]line Аи-92-К-4 [19:28:18]line 4.490 * 66.90 [19:28:18]line = 300.38 [19:28:18]line НДС 12% НСП 1% [19:28:18]line > о реализуемом товаре [19:28:18]line ОКРУГЛЕНИЕ: -0.38 [19:28:18]line ИТОГО: 300.00 [19:28:18]line Внесено: 300.00 [19:28:18]line СДАЧА: 0.00 [19:28:18]line НСП 1% : 2.66 [19:28:18]line НДС 12% : 31.90 [19:28:18]line Наличными: 300.00 [19:28:18]line Безнал.: 0.00 [19:28:18]line Место: АЗС № 114 "Партнер Нефть" [19:28:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:28:18]line СНО: Общий режим [19:28:18]line Чек 167 18.10.2024 19:28 [19:28:18]line Смена: 526 ФФД: 1.0 [19:28:18]line ЗНМ: 0300000086 [19:28:18]line РНМ: 0000000000091680 [19:28:18]line Версия ККМ: 001 [19:28:18]line ФМ: 0000000000871843 [19:28:18]line ФД: 82458 [19:28:18]line ФПД: 7273794748073 [19:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192817&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82458&fm=7273794748073&tin=02508201610067®Number=0000000000091680&sum=30000 [19:28:18]OFD Sender: Processing packet 82458 [packets to send 254, broken 253] [19:28:18]ProducePacketName [19:28:18]name=ofd_packets/00082458 [19:28:18]OFD Sender: To server: pG, [19:28:18]CommunicateWithHost lk.salyk.kg:30040 [19:28:18]ConnectInit lk.salyk.kg [19:28:18]written 0, free lines is 4095 [19:28:19]Write to MH i2c: 01 00 00 32 03 35 [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: 01 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: 01 07 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 DC 0C 24 [19:28:19]RasterBufferAndPrint [19:28:19]line [19:28:19]line [19:28:19]line [19:28:19]line [19:28:19]line [19:28:19]written 0, free lines is 3299 [19:28:19]MH_Cut [19:28:19]Write to MH i2c: D1 01 00 39 03 01 0E [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: D1 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: D1 01 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: D1 01 00 39 03 00 0D [19:28:19]Write to MH i2c: 01 00 00 3A 03 3D [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]*** Cut start [19:28:19]*** Partial cut [19:28:19]*** CUTSNS_PIN = 1 [19:28:19]*** CUTSNS_PIN = 0 [19:28:20]*** Brake cut motor [19:28:20]Connected sock=11 [19:28:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 A1 07 01 F0 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 42 01 00 35 04 06 00 06 9D 8F F3 BE A9 2C D4 D8 90 02 2C 52 49 [19:28:20]Read from MH i2c: 01 [19:28:20]MH_I2C_Read... [19:28:20]*** Stop cut motor [19:28:20]*** Cut end [19:28:20]Read from MH i2c: 01 07 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [19:28:20]process_action close_receipt done [19:28:20]requested_data is exist [19:28:20]produce_requested_data [19:28:20]requested_item fm.sn is exist - process it [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 11 00 00 [19:28:20]Write to MH i2c: E2 08 00 3B 03 80 11 00 00 00 00 00 00 B8 [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:20]Read from MH i2c: E2 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 17 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 17 00 3B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 0A [19:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:28:20]wFMCommunicate OK [19:28:20]requested_item fd.num is exist - process it [19:28:20]SAM_PROTO_GetFieldsCounters [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 13 00 00 [19:28:20]Write to MH i2c: E2 08 00 3C 03 80 13 00 00 00 00 00 00 BB [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:20]Read from MH i2c: E2 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 62 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 62 00 3C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [19:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:20]wFMCommunicate OK [19:28:20]SAM_PROTO_GetFieldsCounters done [19:28:20]requested_item shift.num is exist - process it [19:28:20]requested_item shift.opened is exist - process it [19:28:20]req_shift_opened [19:28:20]FM_GetShiftState [19:28:20]SAM_PROTO_GetShiftState [19:28:20]wFMCommunicate request_size=4 [19:28:20]MH_SAM_APDU [19:28:20]CAPDU: 80 13 01 00 [19:28:20]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:20]Read from MH i2c: E2 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 0E 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8F [19:28:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:28:20]wFMCommunicate OK [19:28:20]SAM_PROTO_GetShiftState done [19:28:20]FM_GetShiftState done [19:28:20]req_shift_opened done [19:28:20]requested_item shift.open_date is exist - process it [19:28:20]req_shift_open_date [19:28:20]req_shift_open_date done [19:28:20]produce_requested_data done [19:28:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82458,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:28:20]process_action_free close_receipt [19:28:20]json_value_free [19:28:20]json_value_free done [19:28:20]process_json_proto returns [19:28:20]Send response to host [19:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82458,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:28:20]free response buf [19:28:20]execute_script done [19:28:20]execute_script returns [19:28:20]free content buf [19:28:20]Sock 10.Close socket [19:28:20]Sock 10.Thread stoped [19:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AD 90 47 00 A1 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1A 42 01 00 F4 03 04 00 0C 5C 12 67 B6 04 01 00 00 79 84 70 D5 BD 82 6B EF [19:28:21]CommunicateWithHost err = 0 [19:28:21]CheckOFDResponse [19:28:21]1017 (14) - 77093643461234 [19:28:21]1041 (16) - 0000000000871843 [19:28:21]1040 (4) - 82458 [19:28:21]1012 (4) - 18.10.2024 13:01 [19:28:21]1206 (1) - 0 [19:28:21]OFD Sender: Remove packet 82458 [19:28:21]ProducePacketName [19:28:21]name=ofd_packets/00082458 [19:28:21]NVStorageDeleteData [19:28:21]OFD Sender: No OFD packet to send [19:28:24]recv_with_timeout no data received [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:34]recv_with_timeout no data received [19:28:36]OFD Sender: No OFD packet to send [19:28:39]accept exits with 7 [19:28:39]New connection [19:28:39]New thread 3066772836 created [19:28:39]Thread 3066916196 joined [19:28:39]Waiting for new connection... [19:28:39] Sock 7.Parse request [19:28:39]Sock 7.Check first char [19:28:39]Sock 7.First char is OK [19:28:39]request: POST /json_proto HTTP/1.0 [19:28:39]Method: POST [19:28:39]URL: /json_proto [19:28:39]Method is POST - this is cgi request [19:28:39]url: /json_proto [19:28:39]query_string will be loaded in cgi processing [19:28:39]execute_cgi json_proto POST (null) [19:28:39]execute_cgi path=json_proto method=POST [19:28:39]POST find Content-Length [19:28:39]Host: 172.17.44.67:8080 [19:28:39]Content-Length: 759 [19:28:39]Content-Type: application/json [19:28:39] [19:28:39]POST finish read [19:28:39]Found Content-Length = 759 [19:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135208", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:39]execute_script... [19:28: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)918950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30135208", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:39]POST & json_proto [19:28:39]process_json_proto [19:28:39]json parsed OK: [19:28:39]protocol is kg_v1.0 [19:28:39]action value=close_receipt [19:28:39]process_action close_receipt [19:28:39]cmd_close_receipt [19:28:39]MH_GetDate [19:28:39]Write to MH i2c: F0 00 00 3E 03 30 [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: F0 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: F0 09 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: F0 09 00 3E 03 00 E8 B6 12 67 F1 C7 6B 64 D7 [19:28:39]GetLastDocTimeStamp 1729279697 [19:28:39]current date 1729279720 [19:28:39]FM_GetShiftState [19:28:39]SAM_PROTO_GetShiftState [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 13 01 00 [19:28:39]Write to MH i2c: E2 08 00 3F 03 80 13 01 00 00 00 00 00 BF [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:39]Read from MH i2c: E2 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 0E 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 0E 00 3F 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 91 [19:28:39]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:28:39]wFMCommunicate OK [19:28:39]SAM_PROTO_GetShiftState done [19:28:39]FM_GetShiftState done [19:28:39]opened in 1729212319 [19:28:39]opened+sec_in_day 1729298719 [19:28:39]quantity*price = 0 [19:28:39]sum+1 = 1 [19:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 168 18.10.2024 19:28 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30135208 ФМ: 0000000000871843 ФД: 82459 ФПД: 164643474844227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192841&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82459&fm=164643474844227&tin=02508201610067®Number=0000000000091680&sum=0 [19:28:41]StoreToDocumentArchive [19:28:41]shift 526 fd 82459 [19:28:41]save to /storage/0526/doc_00082459 [19:28:41]save last doc name /storage/0526/doc_00082459 to /storage/kkm_last_doc_name [19:28:41]save OK [19:28:41]Clear old archive folders... [19:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:28:41]tlvbuf is 01EEFB00 [19:28:41]SAM_PROTO_ClearQueue [19:28:41]wFMCommunicate request_size=4 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 09 00 00 [19:28:41]Write to MH i2c: E2 08 00 4C 03 80 09 00 00 00 00 00 00 C1 [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [19:28:41]RAPDU: 90 00 [19:28:41]wFMCommunicate OK [19:28:41]SAM_PROTO_ClearQueue done [19:28:41]KKMCreateOFDPacket [19:28:41]OFDProtocolAddRootSTLVToBuf [19:28:41]FM_MakeSignedData [19:28:41]FM_MakeSignedData [19:28:41]SAM_PROTO_SignData [19:28:41]wFMCommunicate request_size=4 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 0D 01 02 [19:28:41]Write to MH i2c: E2 08 00 4D 03 80 0D 01 02 00 00 00 00 C9 [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [19:28:41]RAPDU: 90 00 [19:28:41]wFMCommunicate OK [19:28:41]wFMCommunicate request_size=255 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E9 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 42 01 00 35 04 06 00 [19:28:41]Write to MH i2c: E2 02 01 4E 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E9 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 42 01 00 35 04 06 00 00 00 A8 [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [19:28:41]RAPDU: 90 00 [19:28:41]wFMCommunicate OK [19:28:41]wFMCommunicate request_size=11 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 0D 02 02 06 95 BE 0B D5 2A 43 [19:28:41]Write to MH i2c: E2 0E 00 4F 03 80 0D 02 02 06 00 95 BE 0B D5 2A 43 00 00 78 [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [19:28:41]RAPDU: 90 00 [19:28:41]wFMCommunicate OK [19:28:41]wFMCommunicate request_size=4 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 0D 03 02 [19:28:41]Write to MH i2c: E2 08 00 50 03 80 0D 03 02 00 00 00 00 CE [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 0B 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 0B 00 50 03 00 02 FC A9 43 C0 AA 18 28 90 00 63 [19:28:41]RAPDU: 02 FC A9 43 C0 AA 18 28 90 00 [19:28:41]wFMCommunicate OK [19:28:41]SAM_PROTO_SignData done [19:28:41]FM_MakeSignedData done [19:28:41]CreateOFDProtocolMessage [19:28:41]wFMCommunicate request_size=4 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 11 00 00 [19:28:41]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]OFD Sender: No OFD packet to send [19:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 17 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 20 [19:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:28:41]wFMCommunicate OK [19:28:41]CreateOFDProtocolMessage done [19:28:41]OFDSenderStorePacket 82459 [19:28:41]StoreOFDPacket docnum=82459 [19:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 36 84 08 01 4F 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E9 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 42 01 00 35 04 06 00 95 BE 0B D5 2A 43 02 FC A9 43 C0 AA 18 28 [19:28:41]CheckFolder [19:28:41]dirname=/storage/ofd_packets [19:28:41]CheckFolder done [19:28:41]ProducePacketName [19:28:41]name=ofd_packets/00082459 [19:28:41]NVStorageSaveData ofd_packets/00082459 [19:28:41]File name is /storage/ofd_packets/00082459 [19:28:41]Write 302 bytes [19:28:41]NVStorageSaveData done [19:28:41]OFDSenderStorePacket done [19:28:41]KKMCreateOFDPacket done [19:28:41]NVStorageSaveData kkm_last_timestamp [19:28:41]File name is /storage/kkm_last_timestamp [19:28:41]Write 4 bytes [19:28:41]NVStorageSaveData done [19:28:41]ExternCall_PrintAddStr [19:28:41]wPrintStart [19:28:41]Write to MH i2c: 01 00 00 52 03 55 [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: 01 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: 01 07 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 FF 0F 6A [19:28:41]RasterBufferAndPrint [19:28:41]line Счет N : (1)918950 [19:28:41]line ИНН: 02508201610067 [19:28:41]line Контрольно-Кассовый Чек [19:28:41]line ПРОДАЖА [19:28:41]line ТРК (МРК, ГНК) : 31 [19:28:41]line Товар: 2710194210 [19:28:41]line ДТ(л)-К-5 [19:28:41]line 20.000 * 0.00 [19:28:41]line = 0.00 [19:28:41]line НДС 12% НСП 1% [19:28:41]line > о реализуемом товаре [19:28:41]line ИТОГО: 0.00 [19:28:41]line НСП 1% : 0.00 [19:28:41]line НДС 12% : 0.00 [19:28:41]line Наличными: 0.00 [19:28:41]line Безнал.: 0.00 [19:28:41]line Место: АЗС № 114 "Партнер Нефть" [19:28:41]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:28:41]line СНО: Общий режим [19:28:41]line Чек 168 18.10.2024 19:28 [19:28:41]line Смена: 526 ФФД: 1.0 [19:28:41]line ЗНМ: 0300000086 [19:28:41]line РНМ: 0000000000091680 [19:28:41]line Версия ККМ: 001 [19:28:41]line Талоны: ТК ГПНА Online [19:28:41]line 30135208 [19:28:41]line ФМ: 0000000000871843 [19:28:41]line ФД: 82459 [19:28:41]line ФПД: 164643474844227 [19:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192841&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82459&fm=164643474844227&tin=02508201610067®Number=0000000000091680&sum=0 [19:28:41]OFD Sender: Processing packet 82459 [packets to send 254, broken 253] [19:28:41]ProducePacketName [19:28:41]name=ofd_packets/00082459 [19:28:41]OFD Sender: To server: pG, [19:28:41]CommunicateWithHost lk.salyk.kg:30040 [19:28:41]ConnectInit lk.salyk.kg [19:28:41]written 0, free lines is 4095 [19:28:42]Connected sock=11 [19:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 36 84 08 01 4F 8C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E9 B6 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 42 01 00 35 04 06 00 95 BE 0B D5 2A 43 02 FC A9 43 C0 AA 18 28 [19:28:42]Write to MH i2c: 01 00 00 7C 03 7F [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: 01 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: 01 07 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 EE 0C 80 [19:28:42]RasterBufferAndPrint [19:28:42]line [19:28:42]line [19:28:42]line [19:28:42]line [19:28:42]line [19:28:42]written 0, free lines is 3316 [19:28:42]MH_Cut [19:28:42]Write to MH i2c: D1 01 00 83 03 01 58 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: D1 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: D1 01 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: D1 01 00 83 03 00 57 [19:28:42]Write to MH i2c: 01 00 00 84 03 87 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 AC 58 47 00 05 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1B 42 01 00 F4 03 04 00 22 5C 12 67 B6 04 01 00 00 CE 4E 32 BC DE B0 26 7D [19:28:42]CommunicateWithHost err = 0 [19:28:42]CheckOFDResponse [19:28:42]1017 (14) - 77093643461234 [19:28:42]1041 (16) - 0000000000871843 [19:28:42]1040 (4) - 82459 [19:28:42]1012 (4) - 18.10.2024 13:01 [19:28:42]1206 (1) - 0 [19:28:42]OFD Sender: Remove packet 82459 [19:28:42]ProducePacketName [19:28:42]name=ofd_packets/00082459 [19:28:42]NVStorageDeleteData [19:28:43]OFD Sender: No OFD packet to send [19:28:43]*** Cut start [19:28:43]*** Partial cut [19:28:43]*** CUTSNS_PIN = 1 [19:28:43]*** CUTSNS_PIN = 0 [19:28:43]*** Brake cut motor [19:28:43]Read from MH i2c: 01 [19:28:43]MH_I2C_Read... [19:28:43]*** Stop cut motor [19:28:43]*** Cut end [19:28:43]Read from MH i2c: 01 07 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 07 00 84 03 00 00 00 00 00 FF 0F 9C [19:28:43]process_action close_receipt done [19:28:43]requested_data is exist [19:28:43]produce_requested_data [19:28:43]requested_item fm.sn is exist - process it [19:28:43]wFMCommunicate request_size=4 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 11 00 00 [19:28:43]Write to MH i2c: E2 08 00 85 03 80 11 00 00 00 00 00 00 02 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:43]Read from MH i2c: E2 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 17 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 17 00 85 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 54 [19:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:28:43]wFMCommunicate OK [19:28:43]requested_item fd.num is exist - process it [19:28:43]SAM_PROTO_GetFieldsCounters [19:28:43]wFMCommunicate request_size=4 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 13 00 00 [19:28:43]Write to MH i2c: E2 08 00 86 03 80 13 00 00 00 00 00 00 05 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 62 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 62 00 86 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [19:28:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_GetFieldsCounters done [19:28:44]requested_item shift.num is exist - process it [19:28:44]requested_item shift.opened is exist - process it [19:28:44]req_shift_opened [19:28:44]FM_GetShiftState [19:28:44]SAM_PROTO_GetShiftState [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 13 01 00 [19:28:44]Write to MH i2c: E2 08 00 87 03 80 13 01 00 00 00 00 00 07 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0E 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0E 00 87 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 D9 [19:28:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_GetShiftState done [19:28:44]FM_GetShiftState done [19:28:44]req_shift_opened done [19:28:44]requested_item shift.open_date is exist - process it [19:28:44]req_shift_open_date [19:28:44]req_shift_open_date done [19:28:44]produce_requested_data done [19:28:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82459,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:28:44]process_action_free close_receipt [19:28:44]json_value_free [19:28:44]json_value_free done [19:28:44]process_json_proto returns [19:28:44]Send response to host [19:28:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82459,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:28:44]free response buf [19:28:44]execute_script done [19:28:44]execute_script returns [19:28:44]free content buf [19:28:44]Sock 7.Close socket [19:28:44]Sock 7.Thread stoped [19:28:45]recv_with_timeout no data received [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:56]recv_with_timeout no data received [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:06]recv_with_timeout no data received [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:17]recv_with_timeout no data received [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:36]accept exits with 10 [19:29:36]New connection [19:29:36]New thread 3066916196 created [19:29:36]Thread 3066772836 joined [19:29:36]Waiting for new connection... [19:29:36] Sock 10.Parse request [19:29:36]Sock 10.Check first char [19:29:36]Sock 10.First char is OK [19:29:36]request: POST /json_proto HTTP/1.0 [19:29:36]Method: POST [19:29:36]URL: /json_proto [19:29:36]Method is POST - this is cgi request [19:29:36]url: /json_proto [19:29:36]query_string will be loaded in cgi processing [19:29:36]execute_cgi json_proto POST (null) [19:29:36]execute_cgi path=json_proto method=POST [19:29:36]POST find Content-Length [19:29:36]Host: 172.17.44.67:8080 [19:29:36]Content-Length: 678 [19:29:36]Content-Type: application/json [19:29:36] [19:29:36]POST finish read [19:29:36]Found Content-Length = 678 [19:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:36]execute_script... [19:29: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)918953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:36]POST & json_proto [19:29:36]process_json_proto [19:29:36]json parsed OK: [19:29:36]protocol is kg_v1.0 [19:29:36]action value=close_receipt [19:29:36]process_action close_receipt [19:29:36]cmd_close_receipt [19:29:36]MH_GetDate [19:29:36]Write to MH i2c: F0 00 00 88 03 7A [19:29:36]Write i2c OK [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 09 00 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 09 00 88 03 00 21 B7 12 67 F1 C7 6B 64 5B [19:29:36]GetLastDocTimeStamp 1729279721 [19:29:36]current date 1729279777 [19:29:36]FM_GetShiftState [19:29:36]SAM_PROTO_GetShiftState [19:29:36]wFMCommunicate request_size=4 [19:29:36]MH_SAM_APDU [19:29:36]CAPDU: 80 13 01 00 [19:29:36]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [19:29:36]Write i2c OK [19:29:36]MH_I2C_Read... [19:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:36]Read from MH i2c: E2 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: E2 0E 00 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 DB [19:29:36]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:29:36]wFMCommunicate OK [19:29:36]SAM_PROTO_GetShiftState done [19:29:36]FM_GetShiftState done [19:29:36]opened in 1729212319 [19:29:36]opened+sec_in_day 1729298719 [19:29:36]quantity*price = 70044 [19:29:36]sum+1 = 70045 [19:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 169 18.10.2024 19:29 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82460 ФПД: 167034130017245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192937&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82460&fm=167034130017245&tin=02508201610067®Number=0000000000091680&sum=70000 [19:29:37]StoreToDocumentArchive [19:29:37]shift 526 fd 82460 [19:29:37]save to /storage/0526/doc_00082460 [19:29:37]save last doc name /storage/0526/doc_00082460 to /storage/kkm_last_doc_name [19:29:37]save OK [19:29:37]Clear old archive folders... [19:29:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:37]tlvbuf is 01EFE5A0 [19:29:37]SAM_PROTO_ClearQueue [19:29:37]wFMCommunicate request_size=4 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 09 00 00 [19:29:37]Write to MH i2c: E2 08 00 96 03 80 09 00 00 00 00 00 00 0B [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [19:29:37]RAPDU: 90 00 [19:29:37]wFMCommunicate OK [19:29:37]SAM_PROTO_ClearQueue done [19:29:37]KKMCreateOFDPacket [19:29:37]OFDProtocolAddRootSTLVToBuf [19:29:37]FM_MakeSignedData [19:29:37]FM_MakeSignedData [19:29:37]SAM_PROTO_SignData [19:29:37]wFMCommunicate request_size=4 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 0D 01 02 [19:29:37]Write to MH i2c: E2 08 00 97 03 80 0D 01 02 00 00 00 00 13 [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [19:29:37]RAPDU: 90 00 [19:29:37]wFMCommunicate OK [19:29:37]wFMCommunicate request_size=255 [19:29:37]MH_SAM_APDU [19:29: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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 21 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 42 01 00 35 04 06 00 97 [19:29:37]Write to MH i2c: E2 02 01 98 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 21 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 42 01 00 35 04 06 00 97 00 00 AF [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [19:29:38]RAPDU: 90 00 [19:29:38]wFMCommunicate OK [19:29:38]wFMCommunicate request_size=10 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 0D 02 02 05 EA A9 FC 2B DD [19:29:38]Write to MH i2c: E2 0D 00 99 03 80 0D 02 02 05 00 EA A9 FC 2B DD 00 00 B7 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [19:29:38]RAPDU: 90 00 [19:29:38]wFMCommunicate OK [19:29:38]wFMCommunicate request_size=4 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 0D 03 02 [19:29:38]Write to MH i2c: E2 08 00 9A 03 80 0D 03 02 00 00 00 00 18 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 0B 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 0B 00 9A 03 00 7D 44 EF F0 28 01 58 12 90 00 4C [19:29:38]RAPDU: 7D 44 EF F0 28 01 58 12 90 00 [19:29:38]wFMCommunicate OK [19:29:38]SAM_PROTO_SignData done [19:29:38]FM_MakeSignedData done [19:29:38]CreateOFDProtocolMessage [19:29:38]wFMCommunicate request_size=4 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 11 00 00 [19:29:38]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]OFD Sender: No OFD packet to send [19:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 17 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6A [19:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:29:38]wFMCommunicate OK [19:29:38]CreateOFDProtocolMessage done [19:29:38]OFDSenderStorePacket 82460 [19:29:38]StoreOFDPacket docnum=82460 [19:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A5 DA 07 01 01 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 21 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 42 01 00 35 04 06 00 97 EA A9 FC 2B DD 7D 44 EF F0 28 01 58 12 [19:29:38]CheckFolder [19:29:38]dirname=/storage/ofd_packets [19:29:38]CheckFolder done [19:29:38]ProducePacketName [19:29:38]name=ofd_packets/00082460 [19:29:38]NVStorageSaveData ofd_packets/00082460 [19:29:38]File name is /storage/ofd_packets/00082460 [19:29:38]Write 301 bytes [19:29:38]NVStorageSaveData done [19:29:38]OFDSenderStorePacket done [19:29:38]KKMCreateOFDPacket done [19:29:38]NVStorageSaveData kkm_last_timestamp [19:29:38]File name is /storage/kkm_last_timestamp [19:29:38]Write 4 bytes [19:29:38]NVStorageSaveData done [19:29:38]ExternCall_PrintAddStr [19:29:38]wPrintStart [19:29:38]Write to MH i2c: 01 00 00 9C 03 9F [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 07 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [19:29:38]RasterBufferAndPrint [19:29:38]line Счет N : (1)918953 [19:29:38]line ИНН: 02508201610067 [19:29:38]line Контрольно-Кассовый Чек [19:29:38]line ПРОДАЖА [19:29:38]line ТРК (МРК, ГНК) : 22 [19:29:38]line Товар: 2710124130 [19:29:38]line Аи-92-К-4 [19:29:38]line 10.470 * 66.90 [19:29:38]line = 700.44 [19:29:38]line НДС 12% НСП 1% [19:29:38]line > о реализуемом товаре [19:29:38]line ОКРУГЛЕНИЕ: -0.44 [19:29:38]line ИТОГО: 700.00 [19:29:38]line Внесено: 700.00 [19:29:38]line СДАЧА: 0.00 [19:29:38]line НСП 1% : 6.20 [19:29:38]line НДС 12% : 74.38 [19:29:38]line Наличными: 700.00 [19:29:38]line Безнал.: 0.00 [19:29:38]line Место: АЗС № 114 "Партнер Нефть" [19:29:38]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:29:38]line СНО: Общий режим [19:29:38]line Чек 169 18.10.2024 19:29 [19:29:38]line Смена: 526 ФФД: 1.0 [19:29:38]line ЗНМ: 0300000086 [19:29:38]line РНМ: 0000000000091680 [19:29:38]line Версия ККМ: 001 [19:29:38]line ФМ: 0000000000871843 [19:29:38]line ФД: 82460 [19:29:38]line ФПД: 167034130017245 [19:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192937&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82460&fm=167034130017245&tin=02508201610067®Number=0000000000091680&sum=70000 [19:29:38]OFD Sender: Processing packet 82460 [packets to send 254, broken 253] [19:29:38]ProducePacketName [19:29:38]name=ofd_packets/00082460 [19:29:38]OFD Sender: To server: pG, [19:29:38]CommunicateWithHost lk.salyk.kg:30040 [19:29:38]ConnectInit lk.salyk.kg [19:29:38]written 0, free lines is 4095 [19:29:39]Connected sock=9 [19:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 A5 DA 07 01 01 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 21 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 42 01 00 35 04 06 00 97 EA A9 FC 2B DD 7D 44 EF F0 28 01 58 12 [19:29:39]Write to MH i2c: 01 00 00 C7 03 CA [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: 01 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: 01 07 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 F1 0C CE [19:29:39]RasterBufferAndPrint [19:29:39]line [19:29:39]line [19:29:39]line [19:29:39]line [19:29:39]line [19:29:39]written 0, free lines is 3319 [19:29:39]MH_Cut [19:29:39]Write to MH i2c: D1 01 00 CE 03 01 A3 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: D1 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: D1 01 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: D1 01 00 CE 03 00 A2 [19:29:39]Write to MH i2c: 01 00 00 CF 03 D2 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 0E 8D 47 00 E9 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1C 42 01 00 F4 03 04 00 5B 5C 12 67 B6 04 01 00 00 82 1F 1F 68 49 1E 4F 0D [19:29:39]CommunicateWithHost err = 0 [19:29:39]CheckOFDResponse [19:29:39]1017 (14) - 77093643461234 [19:29:39]1041 (16) - 0000000000871843 [19:29:39]1040 (4) - 82460 [19:29:39]1012 (4) - 18.10.2024 13:02 [19:29:39]1206 (1) - 0 [19:29:39]OFD Sender: Remove packet 82460 [19:29:39]ProducePacketName [19:29:39]name=ofd_packets/00082460 [19:29:39]NVStorageDeleteData [19:29:39]*** Cut start [19:29:39]*** Partial cut [19:29:39]*** CUTSNS_PIN = 1 [19:29:39]OFD Sender: No OFD packet to send [19:29:39]*** CUTSNS_PIN = 0 [19:29:40]*** Brake cut motor [19:29:40]Read from MH i2c: 01 [19:29:40]MH_I2C_Read... [19:29:40]*** Stop cut motor [19:29:40]*** Cut end [19:29:40]Read from MH i2c: 01 07 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [19:29:40]process_action close_receipt done [19:29:40]requested_data is exist [19:29:40]produce_requested_data [19:29:40]requested_item fm.sn is exist - process it [19:29:40]wFMCommunicate request_size=4 [19:29:40]MH_SAM_APDU [19:29:40]CAPDU: 80 11 00 00 [19:29:40]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 [19:29:40]MH_I2C_Read... [19:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:40]Read from MH i2c: E2 17 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9F [19:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:29:40]wFMCommunicate OK [19:29:40]requested_item fd.num is exist - process it [19:29:40]SAM_PROTO_GetFieldsCounters [19:29:40]wFMCommunicate request_size=4 [19:29:40]MH_SAM_APDU [19:29:40]CAPDU: 80 13 00 00 [19:29:40]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:40]Read from MH i2c: E2 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 62 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 62 00 D1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [19:29:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:40]wFMCommunicate OK [19:29:40]SAM_PROTO_GetFieldsCounters done [19:29:40]requested_item shift.num is exist - process it [19:29:40]requested_item shift.opened is exist - process it [19:29:40]req_shift_opened [19:29:40]FM_GetShiftState [19:29:40]SAM_PROTO_GetShiftState [19:29:40]wFMCommunicate request_size=4 [19:29:40]MH_SAM_APDU [19:29:40]CAPDU: 80 13 01 00 [19:29:40]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [19:29:40]Write i2c OK [19:29:40]MH_I2C_Read... [19:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:40]Read from MH i2c: E2 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 0E 00 [19:29:40]MH_I2C_Read... [19:29:40]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 24 [19:29:40]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:29:40]wFMCommunicate OK [19:29:40]SAM_PROTO_GetShiftState done [19:29:40]FM_GetShiftState done [19:29:40]req_shift_opened done [19:29:40]requested_item shift.open_date is exist - process it [19:29:40]req_shift_open_date [19:29:40]req_shift_open_date done [19:29:40]produce_requested_data done [19:29:40]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82460,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:29:40]process_action_free close_receipt [19:29:40]json_value_free [19:29:40]json_value_free done [19:29:40]process_json_proto returns [19:29:40]Send response to host [19:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82460,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:29:40]free response buf [19:29:40]execute_script done [19:29:40]execute_script returns [19:29:40]free content buf [19:29:40]Sock 10.Close socket [19:29:40]Sock 10.Thread stoped [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]recv_with_timeout no data received [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:30:56]accept exits with 7 [19:30:56]New connection [19:30:56]New thread 3066772836 created [19:30:56]Thread 3066916196 joined [19:30:56]Waiting for new connection... [19:30:56] Sock 7.Parse request [19:30:56]Sock 7.Check first char [19:30:56]Sock 7.First char is OK [19:30:56]request: POST /json_proto HTTP/1.0 [19:30:56]Method: POST [19:30:56]URL: /json_proto [19:30:56]Method is POST - this is cgi request [19:30:56]url: /json_proto [19:30:56]query_string will be loaded in cgi processing [19:30:56]execute_cgi json_proto POST (null) [19:30:56]execute_cgi path=json_proto method=POST [19:30:56]POST find Content-Length [19:30:56]Host: 172.17.44.67:8080 [19:30:56]Content-Length: 759 [19:30:56]Content-Type: application/json [19:30:56] [19:30:56]POST finish read [19:30:56]Found Content-Length = 759 [19:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:56]execute_script... [19:30: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)918954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087268", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:56]POST & json_proto [19:30:56]process_json_proto [19:30:56]json parsed OK: [19:30:56]protocol is kg_v1.0 [19:30:56]action value=close_receipt [19:30:56]process_action close_receipt [19:30:56]cmd_close_receipt [19:30:56]MH_GetDate [19:30:56]Write to MH i2c: F0 00 00 D3 03 C5 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: F0 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: F0 09 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: F0 09 00 D3 03 00 71 B7 12 67 F1 C7 6B 64 F6 [19:30:56]GetLastDocTimeStamp 1729279777 [19:30:56]current date 1729279857 [19:30:56]FM_GetShiftState [19:30:56]SAM_PROTO_GetShiftState [19:30:56]wFMCommunicate request_size=4 [19:30:56]MH_SAM_APDU [19:30:56]CAPDU: 80 13 01 00 [19:30:56]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [19:30:56]Write i2c OK [19:30:56]MH_I2C_Read... [19:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:56]Read from MH i2c: E2 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 0E 00 [19:30:56]MH_I2C_Read... [19:30:56]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 26 [19:30:56]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:30:56]wFMCommunicate OK [19:30:56]SAM_PROTO_GetShiftState done [19:30:56]FM_GetShiftState done [19:30:56]opened in 1729212319 [19:30:56]opened+sec_in_day 1729298719 [19:30:56]quantity*price = 0 [19:30:56]sum+1 = 1 [19:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 170 18.10.2024 19:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087268 ФМ: 0000000000871843 ФД: 82461 ФПД: 68162143645016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193057&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82461&fm=68162143645016&tin=02508201610067®Number=0000000000091680&sum=0 [19:30:57]StoreToDocumentArchive [19:30:57]shift 526 fd 82461 [19:30:57]save to /storage/0526/doc_00082461 [19:30:57]save last doc name /storage/0526/doc_00082461 to /storage/kkm_last_doc_name [19:30:57]save OK [19:30:57]Clear old archive folders... [19:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:30:57]tlvbuf is 01EFDE60 [19:30:57]SAM_PROTO_ClearQueue [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 09 00 00 [19:30:57]Write to MH i2c: E2 08 00 E1 03 80 09 00 00 00 00 00 00 56 [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 03 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [19:30:57]RAPDU: 90 00 [19:30:57]wFMCommunicate OK [19:30:57]SAM_PROTO_ClearQueue done [19:30:57]KKMCreateOFDPacket [19:30:57]OFDProtocolAddRootSTLVToBuf [19:30:57]FM_MakeSignedData [19:30:57]FM_MakeSignedData [19:30:57]SAM_PROTO_SignData [19:30:57]wFMCommunicate request_size=4 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 0D 01 02 [19:30:57]Write to MH i2c: E2 08 00 E2 03 80 0D 01 02 00 00 00 00 5E [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:57]Read from MH i2c: E2 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 03 00 [19:30:57]MH_I2C_Read... [19:30:57]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [19:30:57]RAPDU: 90 00 [19:30:57]wFMCommunicate OK [19:30:57]wFMCommunicate request_size=255 [19:30:57]MH_SAM_APDU [19:30:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 71 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 42 01 00 35 04 06 00 [19:30:57]Write to MH i2c: E2 02 01 E3 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 71 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 42 01 00 35 04 06 00 00 00 CA [19:30:57]Write i2c OK [19:30:57]MH_I2C_Read... [19:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:58]Read from MH i2c: E2 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 03 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [19:30:58]RAPDU: 90 00 [19:30:58]wFMCommunicate OK [19:30:58]wFMCommunicate request_size=11 [19:30:58]MH_SAM_APDU [19:30:58]CAPDU: 80 0D 02 02 06 3D FE 3C 5B ED 58 [19:30:58]Write to MH i2c: E2 0E 00 E4 03 80 0D 02 02 06 00 3D FE 3C 5B ED 58 00 00 84 [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:58]Read from MH i2c: E2 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 03 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [19:30:58]RAPDU: 90 00 [19:30:58]wFMCommunicate OK [19:30:58]wFMCommunicate request_size=4 [19:30:58]MH_SAM_APDU [19:30:58]CAPDU: 80 0D 03 02 [19:30:58]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:58]Read from MH i2c: E2 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 0B 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 0B 00 E5 03 00 F9 AE C5 37 83 16 82 3E 90 00 60 [19:30:58]RAPDU: F9 AE C5 37 83 16 82 3E 90 00 [19:30:58]wFMCommunicate OK [19:30:58]SAM_PROTO_SignData done [19:30:58]FM_MakeSignedData done [19:30:58]CreateOFDProtocolMessage [19:30:58]wFMCommunicate request_size=4 [19:30:58]MH_SAM_APDU [19:30:58]CAPDU: 80 11 00 00 [19:30:58]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:58]Read from MH i2c: E2 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 17 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B5 [19:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:30:58]wFMCommunicate OK [19:30:58]CreateOFDProtocolMessage done [19:30:58]OFDSenderStorePacket 82461 [19:30:58]StoreOFDPacket docnum=82461 [19:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D 79 08 01 CA 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 71 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 42 01 00 35 04 06 00 3D FE 3C 5B ED 58 F9 AE C5 37 83 16 82 3E [19:30:58]CheckFolder [19:30:58]dirname=/storage/ofd_packets [19:30:58]CheckFolder done [19:30:58]ProducePacketName [19:30:58]name=ofd_packets/00082461 [19:30:58]NVStorageSaveData ofd_packets/00082461 [19:30:58]File name is /storage/ofd_packets/00082461 [19:30:58]Write 302 bytes [19:30:58]NVStorageSaveData done [19:30:58]OFDSenderStorePacket done [19:30:58]KKMCreateOFDPacket done [19:30:58]NVStorageSaveData kkm_last_timestamp [19:30:58]File name is /storage/kkm_last_timestamp [19:30:58]Write 4 bytes [19:30:58]NVStorageSaveData done [19:30:58]OFD Sender: Processing packet 82461 [packets to send 254, broken 253] [19:30:58]ProducePacketName [19:30:58]name=ofd_packets/00082461 [19:30:58]OFD Sender: To server: pG, [19:30:58]CommunicateWithHost lk.salyk.kg:30040 [19:30:58]ConnectInit lk.salyk.kg [19:30:58]ExternCall_PrintAddStr [19:30:58]wPrintStart [19:30:58]Write to MH i2c: 01 00 00 E7 03 EA [19:30:58]Write i2c OK [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: 01 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: 01 07 00 [19:30:58]MH_I2C_Read... [19:30:58]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [19:30:58]RasterBufferAndPrint [19:30:58]line Счет N : (1)918954 [19:30:58]line ИНН: 02508201610067 [19:30:58]line Контрольно-Кассовый Чек [19:30:58]line ПРОДАЖА [19:30:58]line ТРК (МРК, ГНК) : 31 [19:30:58]line Товар: 2710194210 [19:30:58]line ДТ(л)-К-5 [19:30:58]line 20.000 * 0.00 [19:30:58]line = 0.00 [19:30:58]line НДС 12% НСП 1% [19:30:58]line > о реализуемом товаре [19:30:58]line ИТОГО: 0.00 [19:30:58]line НСП 1% : 0.00 [19:30:58]line НДС 12% : 0.00 [19:30:58]line Наличными: 0.00 [19:30:58]line Безнал.: 0.00 [19:30:58]line Место: АЗС № 114 "Партнер Нефть" [19:30:58]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:30:58]line СНО: Общий режим [19:30:58]line Чек 170 18.10.2024 19:30 [19:30:58]line Смена: 526 ФФД: 1.0 [19:30:58]line ЗНМ: 0300000086 [19:30:58]line РНМ: 0000000000091680 [19:30:58]line Версия ККМ: 001 [19:30:58]line Талоны: ТК ГПНА Online [19:30:58]line 30087268 [19:30:58]line ФМ: 0000000000871843 [19:30:58]line ФД: 82461 [19:30:58]line ФПД: 68162143645016 [19:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193057&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82461&fm=68162143645016&tin=02508201610067®Number=0000000000091680&sum=0 [19:30:58]written 0, free lines is 4095 [19:30:58]Connected sock=11 [19:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 6D 79 08 01 CA 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 71 B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 42 01 00 35 04 06 00 3D FE 3C 5B ED 58 F9 AE C5 37 83 16 82 3E [19:30:59]Write to MH i2c: 01 00 00 11 04 15 [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: 01 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: 01 07 00 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 E6 0C 0E [19:30:59]RasterBufferAndPrint [19:30:59]line [19:30:59]line [19:30:59]line [19:30:59]line [19:30:59]line [19:30:59]written 0, free lines is 3309 [19:30:59]MH_Cut [19:30:59]Write to MH i2c: D1 01 00 18 04 01 EE [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: D1 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: D1 01 00 [19:30:59]MH_I2C_Read... [19:30:59]Read from MH i2c: D1 01 00 18 04 00 ED [19:30:59]Write to MH i2c: 01 00 00 19 04 1D [19:30:59]Write i2c OK [19:30:59]MH_I2C_Read... [19:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 83 11 47 00 48 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1D 42 01 00 F4 03 04 00 AB 5C 12 67 B6 04 01 00 00 C3 92 27 37 62 AF EE FC [19:30:59]CommunicateWithHost err = 0 [19:30:59]CheckOFDResponse [19:30:59]1017 (14) - 77093643461234 [19:30:59]1041 (16) - 0000000000871843 [19:30:59]1040 (4) - 82461 [19:30:59]1012 (4) - 18.10.2024 13:03 [19:30:59]1206 (1) - 0 [19:30:59]OFD Sender: Remove packet 82461 [19:30:59]ProducePacketName [19:30:59]name=ofd_packets/00082461 [19:30:59]NVStorageDeleteData [19:30:59]*** Cut start [19:30:59]*** Partial cut [19:30:59]*** CUTSNS_PIN = 1 [19:30:59]*** CUTSNS_PIN = 0 [19:30:59]OFD Sender: No OFD packet to send [19:31:00]*** Brake cut motor [19:31:00]Read from MH i2c: 01 [19:31:00]MH_I2C_Read... [19:31:00]*** Stop cut motor [19:31:00]*** Cut end [19:31:00]Read from MH i2c: 01 07 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: 01 07 00 19 04 00 00 00 00 00 FF 0F 32 [19:31:00]process_action close_receipt done [19:31:00]requested_data is exist [19:31:00]produce_requested_data [19:31:00]requested_item fm.sn is exist - process it [19:31:00]wFMCommunicate request_size=4 [19:31:00]MH_SAM_APDU [19:31:00]CAPDU: 80 11 00 00 [19:31:00]Write to MH i2c: E2 08 00 1A 04 80 11 00 00 00 00 00 00 98 [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:00]Read from MH i2c: E2 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 17 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 17 00 1A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EA [19:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:31:00]wFMCommunicate OK [19:31:00]requested_item fd.num is exist - process it [19:31:00]SAM_PROTO_GetFieldsCounters [19:31:00]wFMCommunicate request_size=4 [19:31:00]MH_SAM_APDU [19:31:00]CAPDU: 80 13 00 00 [19:31:00]Write to MH i2c: E2 08 00 1B 04 80 13 00 00 00 00 00 00 9B [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:00]Read from MH i2c: E2 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 62 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 62 00 1B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1D 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [19:31:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1D 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:00]wFMCommunicate OK [19:31:00]SAM_PROTO_GetFieldsCounters done [19:31:00]requested_item shift.num is exist - process it [19:31:00]requested_item shift.opened is exist - process it [19:31:00]req_shift_opened [19:31:00]FM_GetShiftState [19:31:00]SAM_PROTO_GetShiftState [19:31:00]wFMCommunicate request_size=4 [19:31:00]MH_SAM_APDU [19:31:00]CAPDU: 80 13 01 00 [19:31:00]Write to MH i2c: E2 08 00 1C 04 80 13 01 00 00 00 00 00 9D [19:31:00]Write i2c OK [19:31:00]MH_I2C_Read... [19:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:00]Read from MH i2c: E2 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 0E 00 [19:31:00]MH_I2C_Read... [19:31:00]Read from MH i2c: E2 0E 00 1C 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6F [19:31:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:31:00]wFMCommunicate OK [19:31:00]SAM_PROTO_GetShiftState done [19:31:00]FM_GetShiftState done [19:31:00]req_shift_opened done [19:31:00]requested_item shift.open_date is exist - process it [19:31:00]req_shift_open_date [19:31:00]req_shift_open_date done [19:31:00]produce_requested_data done [19:31:00]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82461,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:31:00]process_action_free close_receipt [19:31:00]json_value_free [19:31:00]json_value_free done [19:31:00]process_json_proto returns [19:31:00]Send response to host [19:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82461,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:31:00]free response buf [19:31:00]execute_script done [19:31:00]execute_script returns [19:31:00]free content buf [19:31:00]Sock 7.Close socket [19:31:00]Sock 7.Thread stoped [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]recv_with_timeout no data received [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:32:59]accept exits with 9 [19:32:59]New connection [19:32:59]New thread 3066916196 created [19:32:59]Thread 3066772836 joined [19:32:59]Waiting for new connection... [19:32:59] Sock 9.Parse request [19:32:59]Sock 9.Check first char [19:32:59]Sock 9.First char is OK [19:32:59]request: POST /json_proto HTTP/1.0 [19:32:59]Method: POST [19:32:59]URL: /json_proto [19:32:59]Method is POST - this is cgi request [19:32:59]url: /json_proto [19:32:59]query_string will be loaded in cgi processing [19:32:59]execute_cgi json_proto POST (null) [19:32:59]execute_cgi path=json_proto method=POST [19:32:59]POST find Content-Length [19:32:59]Host: 172.17.44.67:8080 [19:32:59]Content-Length: 803 [19:32:59]Content-Type: application/json [19:32:59] [19:32:59]POST finish read [19:32:59]Found Content-Length = 803 [19:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918955", "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" : 74.20, "quantity" : 33.700, "sum" : 2500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:59]execute_script... [19:32: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)918955", "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" : 74.20, "quantity" : 33.700, "sum" : 2500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:59]POST & json_proto [19:32:59]process_json_proto [19:32:59]json parsed OK: [19:32:59]protocol is kg_v1.0 [19:32:59]action value=close_receipt [19:32:59]process_action close_receipt [19:32:59]cmd_close_receipt [19:32:59]MH_GetDate [19:32:59]Write to MH i2c: F0 00 00 1D 04 10 [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: F0 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: F0 09 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: F0 09 00 1D 04 00 EC B7 12 67 F1 C7 6B 64 BC [19:32:59]GetLastDocTimeStamp 1729279857 [19:32:59]current date 1729279980 [19:32:59]FM_GetShiftState [19:32:59]SAM_PROTO_GetShiftState [19:32:59]wFMCommunicate request_size=4 [19:32:59]MH_SAM_APDU [19:32:59]CAPDU: 80 13 01 00 [19:32:59]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [19:32:59]Write i2c OK [19:32:59]MH_I2C_Read... [19:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:59]Read from MH i2c: E2 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: E2 0E 00 [19:32:59]MH_I2C_Read... [19:32:59]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 71 [19:32:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:32:59]wFMCommunicate OK [19:32:59]SAM_PROTO_GetShiftState done [19:32:59]FM_GetShiftState done [19:32:59]opened in 1729212319 [19:32:59]opened+sec_in_day 1729298719 [19:32:59]quantity*price = 250054 [19:32:59]sum+1 = 250055 [19:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.54 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.54 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 171 18.10.2024 19:33 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82462 ФПД: 246975393075761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193300&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82462&fm=246975393075761&tin=02508201610067®Number=0000000000091680&sum=250054 [19:33:00]StoreToDocumentArchive [19:33:00]shift 526 fd 82462 [19:33:00]save to /storage/0526/doc_00082462 [19:33:00]save last doc name /storage/0526/doc_00082462 to /storage/kkm_last_doc_name [19:33:00]save OK [19:33:00]Clear old archive folders... [19:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:00]tlvbuf is 01EE17D0 [19:33:00]SAM_PROTO_ClearQueue [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 09 00 00 [19:33:00]Write to MH i2c: E2 08 00 2B 04 80 09 00 00 00 00 00 00 A1 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [19:33:00]RAPDU: 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_ClearQueue done [19:33:00]KKMCreateOFDPacket [19:33:00]OFDProtocolAddRootSTLVToBuf [19:33:00]FM_MakeSignedData [19:33:00]FM_MakeSignedData [19:33:00]SAM_PROTO_SignData [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 0D 01 02 [19:33:00]Write to MH i2c: E2 08 00 2C 04 80 0D 01 02 00 00 00 00 A9 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [19:33:00]RAPDU: 90 00 [19:33:00]wFMCommunicate OK [19:33:00]wFMCommunicate request_size=255 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 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 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 42 01 00 35 04 06 00 E0 [19:33:00]Write to MH i2c: E2 02 01 2D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 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 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 42 01 00 35 04 06 00 E0 00 00 A5 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [19:33:00]RAPDU: 90 00 [19:33:00]wFMCommunicate OK [19:33:00]wFMCommunicate request_size=10 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 0D 02 02 05 9F 70 92 92 31 [19:33:00]Write to MH i2c: E2 0D 00 2E 04 80 0D 02 02 05 00 9F 70 92 92 31 00 00 1A [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [19:33:00]RAPDU: 90 00 [19:33:00]wFMCommunicate OK [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 0D 03 02 [19:33:00]Write to MH i2c: E2 08 00 2F 04 80 0D 03 02 00 00 00 00 AE [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0B 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0B 00 2F 04 00 41 25 EB 77 BB 2B D0 88 90 00 B5 [19:33:00]RAPDU: 41 25 EB 77 BB 2B D0 88 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_SignData done [19:33:00]FM_MakeSignedData done [19:33:00]CreateOFDProtocolMessage [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 11 00 00 [19:33:00]Write to MH i2c: E2 08 00 30 04 80 11 00 00 00 00 00 00 AE [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 17 00 30 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 00 [19:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:33:00]wFMCommunicate OK [19:33:00]CreateOFDProtocolMessage done [19:33:00]OFDSenderStorePacket 82462 [19:33:00]StoreOFDPacket docnum=82462 [19:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 79 05 07 01 39 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 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 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 42 01 00 35 04 06 00 E0 9F 70 92 92 31 41 25 EB 77 BB 2B D0 88 [19:33:00]CheckFolder [19:33:00]dirname=/storage/ofd_packets [19:33:00]CheckFolder done [19:33:00]ProducePacketName [19:33:00]name=ofd_packets/00082462 [19:33:00]NVStorageSaveData ofd_packets/00082462 [19:33:00]File name is /storage/ofd_packets/00082462 [19:33:00]Write 301 bytes [19:33:00]NVStorageSaveData done [19:33:00]OFDSenderStorePacket done [19:33:00]KKMCreateOFDPacket done [19:33:00]NVStorageSaveData kkm_last_timestamp [19:33:00]File name is /storage/kkm_last_timestamp [19:33:00]Write 4 bytes [19:33:00]NVStorageSaveData done [19:33:00]ExternCall_PrintAddStr [19:33:00]wPrintStart [19:33:00]Write to MH i2c: 01 00 00 31 04 35 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 07 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [19:33:00]RasterBufferAndPrint [19:33:00]line Счет N : (1)918955 [19:33:00]line ИНН: 02508201610067 [19:33:00]line Контрольно-Кассовый Чек [19:33:00]line ПРОДАЖА [19:33:00]line ТРК (МРК, ГНК) : 12 [19:33:00]line Товар: 2710124500 [19:33:00]line Аи-95-К-5 [19:33:00]line 33.700 * 74.20 [19:33:00]line = 2500.54 [19:33:00]line НДС 12% НСП 1% [19:33:00]line > о реализуемом товаре [19:33:00]line ИТОГО: 2500.54 [19:33:00]line НСП 1% : 22.13 [19:33:00]line НДС 12% : 265.54 [19:33:00]line Наличными: 0.00 [19:33:00]line Безнал.: 2500.54 [19:33:00]line Место: АЗС № 114 "Партнер Нефть" [19:33:00]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:33:00]line СНО: Общий режим [19:33:00]line Чек 171 18.10.2024 19:33 [19:33:00]line Смена: 526 ФФД: 1.0 [19:33:00]line ЗНМ: 0300000086 [19:33:00]line РНМ: 0000000000091680 [19:33:00]line Версия ККМ: 001 [19:33:00]line Платежная система: O! деньги [19:33:00]line ФМ: 0000000000871843 [19:33:00]line ФД: 82462 [19:33:00]line ФПД: 246975393075761 [19:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193300&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82462&fm=246975393075761&tin=02508201610067®Number=0000000000091680&sum=250054 [19:33:00]written 0, free lines is 4095 [19:33:00]OFD Sender: Processing packet 82462 [packets to send 254, broken 253] [19:33:00]ProducePacketName [19:33:00]name=ofd_packets/00082462 [19:33:00]OFD Sender: To server: pG, [19:33:00]CommunicateWithHost lk.salyk.kg:30040 [19:33:00]ConnectInit lk.salyk.kg [19:33:01]Connected sock=7 [19:33:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 79 05 07 01 39 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 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 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 EC B7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 42 01 00 35 04 06 00 E0 9F 70 92 92 31 41 25 EB 77 BB 2B D0 88 [19:33:01]Write to MH i2c: 01 00 00 5B 04 5F [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 F3 0C 65 [19:33:01]RasterBufferAndPrint [19:33:01]line [19:33:01]line [19:33:01]line [19:33:01]line [19:33:01]line [19:33:01]written 0, free lines is 3322 [19:33:01]MH_Cut [19:33:01]Write to MH i2c: D1 01 00 62 04 01 38 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: D1 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: D1 01 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: D1 01 00 62 04 00 37 [19:33:01]Write to MH i2c: 01 00 00 63 04 67 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A2 24 47 00 B4 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1E 42 01 00 F4 03 04 00 25 5D 12 67 B6 04 01 00 00 BF 86 C2 11 CE DF 74 89 [19:33:01]CommunicateWithHost err = 0 [19:33:01]CheckOFDResponse [19:33:01]1017 (14) - 77093643461234 [19:33:01]1041 (16) - 0000000000871843 [19:33:01]1040 (4) - 82462 [19:33:01]1012 (4) - 18.10.2024 13:05 [19:33:01]1206 (1) - 0 [19:33:01]OFD Sender: Remove packet 82462 [19:33:01]ProducePacketName [19:33:01]name=ofd_packets/00082462 [19:33:01]NVStorageDeleteData [19:33:02]*** Cut start [19:33:02]*** Partial cut [19:33:02]*** CUTSNS_PIN = 1 [19:33:02]*** CUTSNS_PIN = 0 [19:33:02]OFD Sender: No OFD packet to send [19:33:02]*** Brake cut motor [19:33:02]Read from MH i2c: 01 [19:33:02]MH_I2C_Read... [19:33:02]*** Stop cut motor [19:33:02]*** Cut end [19:33:02]Read from MH i2c: 01 07 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [19:33:02]process_action close_receipt done [19:33:02]requested_data is exist [19:33:02]produce_requested_data [19:33:02]requested_item fm.sn is exist - process it [19:33:02]wFMCommunicate request_size=4 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 11 00 00 [19:33:02]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 17 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 34 [19:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:33:02]wFMCommunicate OK [19:33:02]requested_item fd.num is exist - process it [19:33:02]SAM_PROTO_GetFieldsCounters [19:33:02]wFMCommunicate request_size=4 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 13 00 00 [19:33:02]Write to MH i2c: E2 08 00 65 04 80 13 00 00 00 00 00 00 E5 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 62 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 62 00 65 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [19:33:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:02]wFMCommunicate OK [19:33:02]SAM_PROTO_GetFieldsCounters done [19:33:02]requested_item shift.num is exist - process it [19:33:02]requested_item shift.opened is exist - process it [19:33:02]req_shift_opened [19:33:02]FM_GetShiftState [19:33:02]SAM_PROTO_GetShiftState [19:33:02]wFMCommunicate request_size=4 [19:33:02]MH_SAM_APDU [19:33:02]CAPDU: 80 13 01 00 [19:33:02]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:02]Read from MH i2c: E2 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 0E 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B9 [19:33:02]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:33:02]wFMCommunicate OK [19:33:02]SAM_PROTO_GetShiftState done [19:33:02]FM_GetShiftState done [19:33:02]req_shift_opened done [19:33:02]requested_item shift.open_date is exist - process it [19:33:02]req_shift_open_date [19:33:02]req_shift_open_date done [19:33:02]produce_requested_data done [19:33:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82462,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:33:02]process_action_free close_receipt [19:33:02]json_value_free [19:33:02]json_value_free done [19:33:02]process_json_proto returns [19:33:02]Send response to host [19:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82462,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:33:02]free response buf [19:33:02]execute_script done [19:33:02]execute_script returns [19:33:02]free content buf [19:33:02]Sock 9.Close socket [19:33:02]Sock 9.Thread stoped [19:33:07]OFD Sender: No OFD packet to send [19:33:10]recv_with_timeout no data received [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:28]recv_with_timeout no data received [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:41]accept exits with 10 [19:37:41]New connection [19:37:41]New thread 3066772836 created [19:37:41]Thread 3066916196 joined [19:37:41]Waiting for new connection... [19:37:41] Sock 10.Parse request [19:37:41]Sock 10.Check first char [19:37:41]Sock 10.First char is OK [19:37:41]request: POST /json_proto HTTP/1.0 [19:37:41]Method: POST [19:37:41]URL: /json_proto [19:37:41]Method is POST - this is cgi request [19:37:41]url: /json_proto [19:37:41]query_string will be loaded in cgi processing [19:37:41]execute_cgi json_proto POST (null) [19:37:41]execute_cgi path=json_proto method=POST [19:37:41]POST find Content-Length [19:37:41]Host: 172.17.44.67:8080 [19:37:41]Content-Length: 754 [19:37:41]Content-Type: application/json [19:37:41] [19:37:41]POST finish read [19:37:41]Found Content-Length = 754 [19:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:41]execute_script... [19:37:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:41]POST & json_proto [19:37:41]process_json_proto [19:37:41]json parsed OK: [19:37:41]protocol is kg_v1.0 [19:37:41]action value=close_receipt [19:37:41]process_action close_receipt [19:37:41]cmd_close_receipt [19:37:41]MH_GetDate [19:37:41]Write to MH i2c: F0 00 00 67 04 5A [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: F0 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: F0 09 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: F0 09 00 67 04 00 06 B9 12 67 F1 C7 6B 64 22 [19:37:41]GetLastDocTimeStamp 1729279980 [19:37:41]current date 1729280262 [19:37:41]FM_GetShiftState [19:37:41]SAM_PROTO_GetShiftState [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 13 01 00 [19:37:41]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 0E 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 BB [19:37:41]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:37:41]wFMCommunicate OK [19:37:41]SAM_PROTO_GetShiftState done [19:37:41]FM_GetShiftState done [19:37:41]opened in 1729212319 [19:37:41]opened+sec_in_day 1729298719 [19:37:41]quantity*price = 0 [19:37:41]sum+1 = 1 [19:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 172 18.10.2024 19:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30053633 ФМ: 0000000000871843 ФД: 82463 ФПД: 162827220775461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193742&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82463&fm=162827220775461&tin=02508201610067®Number=0000000000091680&sum=0 [19:37:42]StoreToDocumentArchive [19:37:42]shift 526 fd 82463 [19:37:42]save to /storage/0526/doc_00082463 [19:37:42]save last doc name /storage/0526/doc_00082463 to /storage/kkm_last_doc_name [19:37:42]save OK [19:37:42]Clear old archive folders... [19:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:42]tlvbuf is 01EFD5D0 [19:37:42]SAM_PROTO_ClearQueue [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 09 00 00 [19:37:42]Write to MH i2c: E2 08 00 75 04 80 09 00 00 00 00 00 00 EB [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [19:37:42]RAPDU: 90 00 [19:37:42]wFMCommunicate OK [19:37:42]SAM_PROTO_ClearQueue done [19:37:42]KKMCreateOFDPacket [19:37:42]OFDProtocolAddRootSTLVToBuf [19:37:42]FM_MakeSignedData [19:37:42]FM_MakeSignedData [19:37:42]SAM_PROTO_SignData [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 0D 01 02 [19:37:42]Write to MH i2c: E2 08 00 76 04 80 0D 01 02 00 00 00 00 F3 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [19:37:42]RAPDU: 90 00 [19:37:42]wFMCommunicate OK [19:37:42]wFMCommunicate request_size=255 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 42 01 00 35 04 06 00 94 [19:37:42]Write to MH i2c: E2 02 01 77 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 42 01 00 35 04 06 00 94 00 00 ED [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]OFD Sender: No OFD packet to send [19:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [19:37:42]RAPDU: 90 00 [19:37:42]wFMCommunicate OK [19:37:42]wFMCommunicate request_size=10 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 0D 02 02 05 17 2A A7 72 25 [19:37:42]Write to MH i2c: E2 0D 00 78 04 80 0D 02 02 05 00 17 2A A7 72 25 00 00 7F [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [19:37:42]RAPDU: 90 00 [19:37:42]wFMCommunicate OK [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 0D 03 02 [19:37:42]Write to MH i2c: E2 08 00 79 04 80 0D 03 02 00 00 00 00 F8 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 0B 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 0B 00 79 04 00 93 41 3C 55 B4 1E 1A 1C 90 00 66 [19:37:42]RAPDU: 93 41 3C 55 B4 1E 1A 1C 90 00 [19:37:42]wFMCommunicate OK [19:37:42]SAM_PROTO_SignData done [19:37:42]FM_MakeSignedData done [19:37:42]CreateOFDProtocolMessage [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 11 00 00 [19:37:42]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 17 00 [19:37:42]MH_I2C_Read... [19:37:42]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 31 38 34 33 90 00 4A [19:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:37:42]wFMCommunicate OK [19:37:42]CreateOFDProtocolMessage done [19:37:42]OFDSenderStorePacket 82463 [19:37:42]StoreOFDPacket docnum=82463 [19:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0C FB 07 01 2B 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 42 01 00 35 04 06 00 94 17 2A A7 72 25 93 41 3C 55 B4 1E 1A 1C [19:37:42]CheckFolder [19:37:42]dirname=/storage/ofd_packets [19:37:42]CheckFolder done [19:37:42]ProducePacketName [19:37:42]name=ofd_packets/00082463 [19:37:42]NVStorageSaveData ofd_packets/00082463 [19:37:42]File name is /storage/ofd_packets/00082463 [19:37:42]Write 301 bytes [19:37:42]NVStorageSaveData done [19:37:42]OFDSenderStorePacket done [19:37:42]KKMCreateOFDPacket done [19:37:42]NVStorageSaveData kkm_last_timestamp [19:37:42]File name is /storage/kkm_last_timestamp [19:37:42]Write 4 bytes [19:37:42]NVStorageSaveData done [19:37:42]ExternCall_PrintAddStr [19:37:42]wPrintStart [19:37:42]Write to MH i2c: 01 00 00 7B 04 7F [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: 01 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: 01 07 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [19:37:42]RasterBufferAndPrint [19:37:42]line Счет N : (1)918956 [19:37:42]line ИНН: 02508201610067 [19:37:42]line Контрольно-Кассовый Чек [19:37:42]line ПРОДАЖА [19:37:42]line ТРК (МРК, ГНК) : 11 [19:37:42]line Товар: 2710124130 [19:37:42]line Аи-92-К-4 [19:37:42]line 25.000 * 0.00 [19:37:42]line = 0.00 [19:37:42]line НДС 12% НСП 1% [19:37:42]line > о реализуемом товаре [19:37:42]line ИТОГО: 0.00 [19:37:42]line НСП 1% : 0.00 [19:37:42]line НДС 12% : 0.00 [19:37:42]line Наличными: 0.00 [19:37:42]line Безнал.: 0.00 [19:37:42]line Место: АЗС № 114 "Партнер Нефть" [19:37:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:37:43]line СНО: Общий режим [19:37:43]line Чек 172 18.10.2024 19:37 [19:37:43]line Смена: 526 ФФД: 1.0 [19:37:43]line ЗНМ: 0300000086 [19:37:43]line РНМ: 0000000000091680 [19:37:43]line Версия ККМ: 001 [19:37:43]line Талоны: ТК ГПНА Online [19:37:43]line 30053633 [19:37:43]line ФМ: 0000000000871843 [19:37:43]line ФД: 82463 [19:37:43]line ФПД: 162827220775461 [19:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193742&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82463&fm=162827220775461&tin=02508201610067®Number=0000000000091680&sum=0 [19:37:43]OFD Sender: Processing packet 82463 [packets to send 254, broken 253] [19:37:43]ProducePacketName [19:37:43]name=ofd_packets/00082463 [19:37:43]OFD Sender: To server: pG, [19:37:43]CommunicateWithHost lk.salyk.kg:30040 [19:37:43]ConnectInit lk.salyk.kg [19:37:43]written 0, free lines is 4095 [19:37:43]Write to MH i2c: 01 00 00 A5 04 A9 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 EE 0C AA [19:37:43]RasterBufferAndPrint [19:37:43]line [19:37:43]line [19:37:43]line [19:37:43]line [19:37:43]line [19:37:43]written 0, free lines is 3316 [19:37:43]MH_Cut [19:37:43]Write to MH i2c: D1 01 00 AC 04 01 82 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: D1 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: D1 01 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: D1 01 00 AC 04 00 81 [19:37:43]Write to MH i2c: 01 00 00 AD 04 B1 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:44]*** Cut start [19:37:44]*** Partial cut [19:37:44]*** CUTSNS_PIN = 1 [19:37:44]*** CUTSNS_PIN = 0 [19:37:44]*** Brake cut motor [19:37:45]Connected sock=7 [19:37:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0C FB 07 01 2B 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 42 01 00 35 04 06 00 94 17 2A A7 72 25 93 41 3C 55 B4 1E 1A 1C [19:37:45]Read from MH i2c: 01 [19:37:45]MH_I2C_Read... [19:37:45]*** Stop cut motor [19:37:45]*** Cut end [19:37:45]Read from MH i2c: 01 07 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 FF 0F C6 [19:37:45]process_action close_receipt done [19:37:45]requested_data is exist [19:37:45]produce_requested_data [19:37:45]requested_item fm.sn is exist - process it [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 11 00 00 [19:37:45]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 17 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7E [19:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:37:45]wFMCommunicate OK [19:37:45]requested_item fd.num is exist - process it [19:37:45]SAM_PROTO_GetFieldsCounters [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 13 00 00 [19:37:45]Write to MH i2c: E2 08 00 AF 04 80 13 00 00 00 00 00 00 2F [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 62 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 62 00 AF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [19:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 1F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:45]wFMCommunicate OK [19:37:45]SAM_PROTO_GetFieldsCounters done [19:37:45]requested_item shift.num is exist - process it [19:37:45]requested_item shift.opened is exist - process it [19:37:45]req_shift_opened [19:37:45]FM_GetShiftState [19:37:45]SAM_PROTO_GetShiftState [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 13 01 00 [19:37:45]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 0E 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 03 [19:37:45]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:37:45]wFMCommunicate OK [19:37:45]SAM_PROTO_GetShiftState done [19:37:45]FM_GetShiftState done [19:37:45]req_shift_opened done [19:37:45]requested_item shift.open_date is exist - process it [19:37:45]req_shift_open_date [19:37:45]req_shift_open_date done [19:37:45]produce_requested_data done [19:37:45]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82463,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:37:45]process_action_free close_receipt [19:37:45]json_value_free [19:37:45]json_value_free done [19:37:45]process_json_proto returns [19:37:45]Send response to host [19:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82463,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:37:45]free response buf [19:37:45]execute_script done [19:37:45]execute_script returns [19:37:45]free content buf [19:37:45]Sock 10.Close socket [19:37:45]Sock 10.Thread stoped [19:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 54 47 47 00 D6 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 1F 42 01 00 F4 03 04 00 42 5E 12 67 B6 04 01 00 00 D8 ED 1A 81 55 F0 9A 98 [19:37:46]CommunicateWithHost err = 0 [19:37:46]CheckOFDResponse [19:37:46]1017 (14) - 77093643461234 [19:37:46]1041 (16) - 0000000000871843 [19:37:46]1040 (4) - 82463 [19:37:46]1012 (4) - 18.10.2024 13:10 [19:37:46]1206 (1) - 0 [19:37:46]OFD Sender: Remove packet 82463 [19:37:46]ProducePacketName [19:37:46]name=ofd_packets/00082463 [19:37:46]NVStorageDeleteData [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:53]recv_with_timeout no data received [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:08]recv_with_timeout no data received [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:19]recv_with_timeout no data received [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:20]accept exits with 9 [19:40:20]New connection [19:40:20]New thread 3066916196 created [19:40:20]Thread 3066772836 joined [19:40:20]Waiting for new connection... [19:40:20] Sock 9.Parse request [19:40:20]Sock 9.Check first char [19:40:20]Sock 9.First char is OK [19:40:20]request: POST /json_proto HTTP/1.0 [19:40:20]Method: POST [19:40:20]URL: /json_proto [19:40:20]Method is POST - this is cgi request [19:40:20]url: /json_proto [19:40:20]query_string will be loaded in cgi processing [19:40:20]execute_cgi json_proto POST (null) [19:40:20]execute_cgi path=json_proto method=POST [19:40:20]POST find Content-Length [19:40:20]Host: 172.17.44.67:8080 [19:40:20]Content-Length: 766 [19:40:20]Content-Type: application/json [19:40:20] [19:40:20]POST finish read [19:40:20]Found Content-Length = 766 [19:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918957", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:20]execute_script... [19:40: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)918957", "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" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:20]POST & json_proto [19:40:20]process_json_proto [19:40:20]json parsed OK: [19:40:20]protocol is kg_v1.0 [19:40:20]action value=close_receipt [19:40:20]process_action close_receipt [19:40:20]cmd_close_receipt [19:40:20]MH_GetDate [19:40:20]Write to MH i2c: F0 00 00 B1 04 A4 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: F0 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: F0 09 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: F0 09 00 B1 04 00 A5 B9 12 67 F1 C7 6B 64 0B [19:40:20]GetLastDocTimeStamp 1729280262 [19:40:20]current date 1729280421 [19:40:20]FM_GetShiftState [19:40:20]SAM_PROTO_GetShiftState [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 13 01 00 [19:40:20]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 0E 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 05 [19:40:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:40:20]wFMCommunicate OK [19:40:20]SAM_PROTO_GetShiftState done [19:40:20]FM_GetShiftState done [19:40:20]opened in 1729212319 [19:40:20]opened+sec_in_day 1729298719 [19:40:20]quantity*price = 50010 [19:40:20]sum+1 = 50012 [19:40:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 173 18.10.2024 19:40 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82464 ФПД: 173926430966344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194021&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82464&fm=173926430966344&tin=02508201610067®Number=0000000000091680&sum=50011 [19:40:21]StoreToDocumentArchive [19:40:21]shift 526 fd 82464 [19:40:21]save to /storage/0526/doc_00082464 [19:40:21]save last doc name /storage/0526/doc_00082464 to /storage/kkm_last_doc_name [19:40:21]save OK [19:40:21]Clear old archive folders... [19:40:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:21]tlvbuf is 01EE0F60 [19:40:21]SAM_PROTO_ClearQueue [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 09 00 00 [19:40:21]Write to MH i2c: E2 08 00 BF 04 80 09 00 00 00 00 00 00 35 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [19:40:21]RAPDU: 90 00 [19:40:21]wFMCommunicate OK [19:40:21]SAM_PROTO_ClearQueue done [19:40:21]KKMCreateOFDPacket [19:40:21]OFDProtocolAddRootSTLVToBuf [19:40:21]FM_MakeSignedData [19:40:21]FM_MakeSignedData [19:40:21]SAM_PROTO_SignData [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 0D 01 02 [19:40:21]Write to MH i2c: E2 08 00 C0 04 80 0D 01 02 00 00 00 00 3D [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [19:40:21]RAPDU: 90 00 [19:40:21]wFMCommunicate OK [19:40:21]wFMCommunicate request_size=255 [19:40:21]MH_SAM_APDU [19:40: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A5 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 42 01 00 35 04 06 00 9E [19:40:21]Write to MH i2c: E2 02 01 C1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A5 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 42 01 00 35 04 06 00 9E 00 00 4D [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [19:40:21]RAPDU: 90 00 [19:40:21]wFMCommunicate OK [19:40:21]wFMCommunicate request_size=10 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 0D 02 02 05 2F 67 22 82 48 [19:40:21]Write to MH i2c: E2 0D 00 C2 04 80 0D 02 02 05 00 2F 67 22 82 48 00 00 CC [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [19:40:21]RAPDU: 90 00 [19:40:21]wFMCommunicate OK [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 0D 03 02 [19:40:21]Write to MH i2c: E2 08 00 C3 04 80 0D 03 02 00 00 00 00 42 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 0B 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 0B 00 C3 04 00 A8 75 D0 F8 F6 4A 1F BB 90 00 42 [19:40:21]RAPDU: A8 75 D0 F8 F6 4A 1F BB 90 00 [19:40:21]wFMCommunicate OK [19:40:21]SAM_PROTO_SignData done [19:40:21]FM_MakeSignedData done [19:40:21]CreateOFDProtocolMessage [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 11 00 00 [19:40:21]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 17 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 94 [19:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:40:21]wFMCommunicate OK [19:40:21]CreateOFDProtocolMessage done [19:40:21]OFDSenderStorePacket 82464 [19:40:21]StoreOFDPacket docnum=82464 [19:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 7F 07 01 E6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A5 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 42 01 00 35 04 06 00 9E 2F 67 22 82 48 A8 75 D0 F8 F6 4A 1F BB [19:40:21]CheckFolder [19:40:21]dirname=/storage/ofd_packets [19:40:21]CheckFolder done [19:40:21]ProducePacketName [19:40:21]name=ofd_packets/00082464 [19:40:21]NVStorageSaveData ofd_packets/00082464 [19:40:21]File name is /storage/ofd_packets/00082464 [19:40:21]Write 301 bytes [19:40:21]NVStorageSaveData done [19:40:21]OFDSenderStorePacket done [19:40:21]KKMCreateOFDPacket done [19:40:21]NVStorageSaveData kkm_last_timestamp [19:40:21]File name is /storage/kkm_last_timestamp [19:40:21]Write 4 bytes [19:40:21]NVStorageSaveData done [19:40:22]ExternCall_PrintAddStr [19:40:22]wPrintStart [19:40:22]Write to MH i2c: 01 00 00 C5 04 C9 [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 07 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [19:40:22]RasterBufferAndPrint [19:40:22]line Счет N : (1)918957 [19:40:22]line ИНН: 02508201610067 [19:40:22]line Контрольно-Кассовый Чек [19:40:22]line ПРОДАЖА [19:40:22]line ТРК (МРК, ГНК) : 12 [19:40:22]line Товар: 2710124500 [19:40:22]line Аи-95-К-5 [19:40:22]line 6.740 * 74.20 [19:40:22]line = 500.11 [19:40:22]line НДС 12% НСП 1% [19:40:22]line > о реализуемом товаре [19:40:22]line ИТОГО: 500.11 [19:40:22]line НСП 1% : 4.43 [19:40:22]line НДС 12% : 53.11 [19:40:22]line Наличными: 0.00 [19:40:22]line Безнал.: 500.11 [19:40:22]line Место: АЗС № 114 "Партнер Нефть" [19:40:22]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:40:22]line СНО: Общий режим [19:40:22]line Чек 173 18.10.2024 19:40 [19:40:22]line Смена: 526 ФФД: 1.0 [19:40:22]line ЗНМ: 0300000086 [19:40:22]line РНМ: 0000000000091680 [19:40:22]line Версия ККМ: 001 [19:40:22]line Платежная система: Mbank [19:40:22]line ФМ: 0000000000871843 [19:40:22]line ФД: 82464 [19:40:22]line ФПД: 173926430966344 [19:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194021&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82464&fm=173926430966344&tin=02508201610067®Number=0000000000091680&sum=50011 [19:40:22]written 0, free lines is 4095 [19:40:22]OFD Sender: Processing packet 82464 [packets to send 254, broken 253] [19:40:22]ProducePacketName [19:40:22]name=ofd_packets/00082464 [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:22]Write to MH i2c: 01 00 00 EE 04 F2 [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 07 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 07 00 EE 04 00 00 00 00 00 03 0D 09 [19:40:22]RasterBufferAndPrint [19:40:22]line [19:40:22]line [19:40:22]line [19:40:22]line [19:40:22]line [19:40:22]written 0, free lines is 3337 [19:40:22]MH_Cut [19:40:22]Write to MH i2c: D1 01 00 F5 04 01 CB [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: D1 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: D1 01 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: D1 01 00 F5 04 00 CA [19:40:22]Write to MH i2c: 01 00 00 F6 04 FA [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:23]*** Cut start [19:40:23]*** Partial cut [19:40:23]*** CUTSNS_PIN = 1 [19:40:23]*** CUTSNS_PIN = 0 [19:40:23]*** Brake cut motor [19:40:23]Read from MH i2c: 01 [19:40:23]MH_I2C_Read... [19:40:23]*** Stop cut motor [19:40:23]*** Cut end [19:40:23]Read from MH i2c: 01 07 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 07 00 F6 04 00 00 00 00 00 FF 0F 0F [19:40:23]process_action close_receipt done [19:40:23]requested_data is exist [19:40:23]produce_requested_data [19:40:23]requested_item fm.sn is exist - process it [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 11 00 00 [19:40:23]Write to MH i2c: E2 08 00 F7 04 80 11 00 00 00 00 00 00 75 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 F7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [19:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:40:23]wFMCommunicate OK [19:40:23]requested_item fd.num is exist - process it [19:40:23]SAM_PROTO_GetFieldsCounters [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 13 00 00 [19:40:23]Write to MH i2c: E2 08 00 F8 04 80 13 00 00 00 00 00 00 78 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:24]Read from MH i2c: E2 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: E2 62 00 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: E2 62 00 F8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 20 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [19:40:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 20 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:24]wFMCommunicate OK [19:40:24]SAM_PROTO_GetFieldsCounters done [19:40:24]requested_item shift.num is exist - process it [19:40:24]requested_item shift.opened is exist - process it [19:40:24]req_shift_opened [19:40:24]FM_GetShiftState [19:40:24]SAM_PROTO_GetShiftState [19:40:24]wFMCommunicate request_size=4 [19:40:24]MH_SAM_APDU [19:40:24]CAPDU: 80 13 01 00 [19:40:24]Write to MH i2c: E2 08 00 F9 04 80 13 01 00 00 00 00 00 7A [19:40:24]Write i2c OK [19:40:24]MH_I2C_Read... [19:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:24]Read from MH i2c: E2 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: E2 0E 00 [19:40:24]MH_I2C_Read... [19:40:24]Read from MH i2c: E2 0E 00 F9 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4C [19:40:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:40:24]wFMCommunicate OK [19:40:24]SAM_PROTO_GetShiftState done [19:40:24]FM_GetShiftState done [19:40:24]req_shift_opened done [19:40:24]requested_item shift.open_date is exist - process it [19:40:24]req_shift_open_date [19:40:24]req_shift_open_date done [19:40:24]produce_requested_data done [19:40:24]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82464,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:40:24]process_action_free close_receipt [19:40:24]json_value_free [19:40:24]json_value_free done [19:40:24]process_json_proto returns [19:40:24]Send response to host [19:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82464,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:40:24]free response buf [19:40:24]execute_script done [19:40:24]execute_script returns [19:40:24]free content buf [19:40:24]Sock 9.Close socket [19:40:24]Sock 9.Thread stoped [19:40:24]recv_with_timeout no data received [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 82464 [packets to send 254, broken 253] [19:40:32]ProducePacketName [19:40:32]name=ofd_packets/00082464 [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:32]Connected sock=9 [19:40:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 7F 07 01 E6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A5 B9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 42 01 00 35 04 06 00 9E 2F 67 22 82 48 A8 75 D0 F8 F6 4A 1F BB [19:40:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4D C7 47 00 7C 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 20 42 01 00 F4 03 04 00 E9 5E 12 67 B6 04 01 00 00 89 E9 5A 38 87 FB E8 E8 [19:40:33]CommunicateWithHost err = 0 [19:40:33]CheckOFDResponse [19:40:33]1017 (14) - 77093643461234 [19:40:33]1041 (16) - 0000000000871843 [19:40:33]1040 (4) - 82464 [19:40:33]1012 (4) - 18.10.2024 13:13 [19:40:33]1206 (1) - 0 [19:40:33]OFD Sender: Remove packet 82464 [19:40:33]ProducePacketName [19:40:33]name=ofd_packets/00082464 [19:40:33]NVStorageDeleteData [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:52]recv_with_timeout no data received [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:20]accept exits with 10 [19:42:20]New connection [19:42:20]New thread 3066772836 created [19:42:20]Thread 3066916196 joined [19:42:20]Waiting for new connection... [19:42:20] Sock 10.Parse request [19:42:20]Sock 10.Check first char [19:42:20]Sock 10.First char is OK [19:42:20]request: POST /json_proto HTTP/1.0 [19:42:20]Method: POST [19:42:20]URL: /json_proto [19:42:20]Method is POST - this is cgi request [19:42:20]url: /json_proto [19:42:20]query_string will be loaded in cgi processing [19:42:20]execute_cgi json_proto POST (null) [19:42:20]execute_cgi path=json_proto method=POST [19:42:20]POST find Content-Length [19:42:20]Host: 172.17.44.67:8080 [19:42:20]Content-Length: 682 [19:42:20]Content-Type: application/json [19:42:20] [19:42:20]POST finish read [19:42:20]Found Content-Length = 682 [19:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:20]execute_script... [19: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)918958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:20]POST & json_proto [19:42:20]process_json_proto [19:42:20]json parsed OK: [19:42:20]protocol is kg_v1.0 [19:42:20]action value=close_receipt [19:42:20]process_action close_receipt [19:42:20]cmd_close_receipt [19:42:20]MH_GetDate [19:42:20]Write to MH i2c: F0 00 00 FA 04 ED [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: F0 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: F0 09 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: F0 09 00 FA 04 00 1D BA 12 67 F1 C7 6B 64 CD [19:42:20]GetLastDocTimeStamp 1729280421 [19:42:20]current date 1729280541 [19:42:20]FM_GetShiftState [19:42:20]SAM_PROTO_GetShiftState [19:42:20]wFMCommunicate request_size=4 [19:42:20]MH_SAM_APDU [19:42:20]CAPDU: 80 13 01 00 [19:42:20]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [19:42:20]Write i2c OK [19:42:20]MH_I2C_Read... [19:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:20]Read from MH i2c: E2 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 0E 00 [19:42:20]MH_I2C_Read... [19:42:20]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4E [19:42:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:42:20]wFMCommunicate OK [19:42:20]SAM_PROTO_GetShiftState done [19:42:20]FM_GetShiftState done [19:42:20]opened in 1729212319 [19:42:20]opened+sec_in_day 1729298719 [19:42:20]quantity*price = 160024 [19:42:20]sum+1 = 160026 [19:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 174 18.10.2024 19:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82465 ФПД: 159075110512218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194221&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82465&fm=159075110512218&tin=02508201610067®Number=0000000000091680&sum=160000 [19:42:21]StoreToDocumentArchive [19:42:21]shift 526 fd 82465 [19:42:21]save to /storage/0526/doc_00082465 [19:42:21]save last doc name /storage/0526/doc_00082465 to /storage/kkm_last_doc_name [19:42:21]save OK [19:42:21]Clear old archive folders... [19:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:21]tlvbuf is 01F061B0 [19:42:21]SAM_PROTO_ClearQueue [19:42:21]wFMCommunicate request_size=4 [19:42:21]MH_SAM_APDU [19:42:21]CAPDU: 80 09 00 00 [19:42:21]Write to MH i2c: E2 08 00 08 05 80 09 00 00 00 00 00 00 7F [19:42:21]Write i2c OK [19:42:21]MH_I2C_Read... [19:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:21]Read from MH i2c: E2 [19:42:21]MH_I2C_Read... [19:42:21]Read from MH i2c: E2 03 00 [19:42:21]MH_I2C_Read... [19:42:21]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [19:42:21]RAPDU: 90 00 [19:42:21]wFMCommunicate OK [19:42:21]SAM_PROTO_ClearQueue done [19:42:21]KKMCreateOFDPacket [19:42:21]OFDProtocolAddRootSTLVToBuf [19:42:21]FM_MakeSignedData [19:42:21]FM_MakeSignedData [19:42:21]SAM_PROTO_SignData [19:42:21]wFMCommunicate request_size=4 [19:42:21]MH_SAM_APDU [19:42:21]CAPDU: 80 0D 01 02 [19:42:21]Write to MH i2c: E2 08 00 09 05 80 0D 01 02 00 00 00 00 87 [19:42:21]Write i2c OK [19:42:21]MH_I2C_Read... [19:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:21]Read from MH i2c: E2 [19:42:21]MH_I2C_Read... [19:42:21]Read from MH i2c: E2 03 00 [19:42:21]MH_I2C_Read... [19:42:21]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [19:42:21]RAPDU: 90 00 [19:42:21]wFMCommunicate OK [19:42:21]wFMCommunicate request_size=255 [19:42:21]MH_SAM_APDU [19:42: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 34 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 1D BA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 21 42 01 00 35 04 06 00 90 [19:42:21]Write to MH i2c: E2 02 01 0A 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 34 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 1D BA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 21 42 01 00 35 04 06 00 90 00 00 3C [19:42:21]Write i2c OK [19:42:21]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 03 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [19:42:22]RAPDU: 90 00 [19:42:22]wFMCommunicate OK [19:42:22]wFMCommunicate request_size=10 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 0D 02 02 05 AD 8F 74 66 5A [19:42:22]Write to MH i2c: E2 0D 00 0B 05 80 0D 02 02 05 00 AD 8F 74 66 5A 00 00 04 [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 03 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [19:42:22]RAPDU: 90 00 [19:42:22]wFMCommunicate OK [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 0D 03 02 [19:42:22]Write to MH i2c: E2 08 00 0C 05 80 0D 03 02 00 00 00 00 8C [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0B 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0B 00 0C 05 00 21 FA 07 90 B3 36 51 37 90 00 B0 [19:42:22]RAPDU: 21 FA 07 90 B3 36 51 37 90 00 [19:42:22]wFMCommunicate OK [19:42:22]SAM_PROTO_SignData done [19:42:22]FM_MakeSignedData done [19:42:22]CreateOFDProtocolMessage [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 11 00 00 [19:42:22]Write to MH i2c: E2 08 00 0D 05 80 11 00 00 00 00 00 00 8C [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 17 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 17 00 0D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DE [19:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:42:22]wFMCommunicate OK [19:42:22]CreateOFDProtocolMessage done [19:42:22]OFDSenderStorePacket 82465 [19:42:22]StoreOFDPacket docnum=82465 [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [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]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 54000000005725AE (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: 44496301+1684785137=1729281438 [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [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 9E BD 12 67 F1 C7 6B 64 5A [19:57:18]Current date/time: 18.10.2024 19:57 [19:57:18]FM_Init [19:57:18]wFMConnect [19:57:18]MH_SAM_On [19:57:18]Write to MH i2c: E0 00 00 08 00 E7 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_init finished! [19:57:18]*** atr: [19:57:18]*** 0F 3B D5 18 FF 81 91 FE [19:57:18]*** 1F C3 80 73 C8 21 10 0A [19:57:18]*** 00 00 00 00 00 00 00 00 [19:57:18]*** 00 00 00 00 00 00 00 00 [19:57:18]*** 00 00 00 00 00 00 00 00 [19:57:18]*** 00 00 00 00 00 00 00 00 [19:57:18]*** 00 00 00 00 00 00 00 00 [19:57:18]*** 00 00 00 00 00 00 00 00 [19:57:18]Read from MH i2c: E0 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E0 10 00 [19:57:18]MH_I2C_Read... [19:57:18]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 [19:57:18]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:57:18]wFMCommunicate request_size=10 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:57:18]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 11 00 00 [19:57:18]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 17 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [19:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:57:18]wFMCommunicate OK [19:57:18]Detected FM SN is 0000000000871843 [19:57:18]Stored FM SN is 0000000000871843 [19:57:18]wFMCommunicate request_size=9 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 16 00 00 04 C3 A3 00 00 [19:57:18]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]FM PIN OK [19:57:18]wFMCommunicate request_size=8 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 14 04 00 03 02 00 01 [19:57:18]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]wFMCommunicate request_size=13 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:57:18]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 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:57:18]RAPDU: 90 00 [19:57:18]wFMCommunicate OK [19:57:18]wFMCommunicate request_size=4 [19:57:18]MH_SAM_APDU [19:57:18]CAPDU: 80 11 00 00 [19:57:18]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:18]Read from MH i2c: E2 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 17 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [19:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:57:18]wFMCommunicate OK [19:57:18]DocumentArchiveInit [19:57:18]Start Httpd... [19:57:18]Httpd thread 3067309412 created [19:57:18]Write to MH i2c: 01 00 00 0F 00 0F [19:57:18]Write i2c OK [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 07 00 [19:57:18]MH_I2C_Read... [19:57:18]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:57:18]MH Int Process started [19:57:18]Allocated Socket 8 [19:57:18]Bind OK [19:57:18]Listen OK [19:57:18]httpd running on port 8080 [19:57:18]Waiting for new connection... [19:57:18]OFD Sender: Processing packet 82466 [packets to send 254, broken 253] [19:57:18]ProducePacketName [19:57:18]name=ofd_packets/00082466 [19:57:18]OFD Sender: To server: pG, [19:57:18]CommunicateWithHost lk.salyk.kg:30040 [19:57:18]ConnectInit lk.salyk.kg [19:57:19]accept exits with 9 [19:57:19]New connection [19:57:19]New thread 3067022692 created [19:57:19]Waiting for new connection... [19:57:19] Sock 9.Parse request [19:57:19]Sock 9.Check first char [19:57:19]Sock 9.First char is OK [19:57:19]request: POST /json_proto HTTP/1.0 [19:57:19]Method: POST [19:57:19]URL: /json_proto [19:57:19]Method is POST - this is cgi request [19:57:19]url: /json_proto [19:57:19]query_string will be loaded in cgi processing [19:57:19]execute_cgi json_proto POST (null) [19:57:19]execute_cgi path=json_proto method=POST [19:57:19]POST find Content-Length [19:57:19]Host: 172.17.44.67:8080 [19:57:19]Content-Length: 215 [19:57:19]Content-Type: application/json [19:57:19] [19:57:19]POST finish read [19:57:19]Found Content-Length = 215 [19:57:19]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" ] } } [19:57:19]execute_script... [19:57:19]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" ] } } [19:57:19]POST & json_proto [19:57:19]process_json_proto [19:57:19]json parsed OK: [19:57:19]protocol is kg_v1.0 [19:57:19]action value=get_value [19:57:19]process_action get_value [19:57:19]cmd_get_value [19:57:19]process_action get_value done [19:57:19]requested_data is exist [19:57:19]produce_requested_data [19:57:19]requested_item kkm.sn is exist - process it [19:57:19]requested_item kkm.ver is exist - process it [19:57:19]requested_item fm.sn is exist - process it [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 11 00 00 [19:57:19]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 17 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [19:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:57:19]wFMCommunicate OK [19:57:19]requested_item fd.num is exist - process it [19:57:19]SAM_PROTO_GetFieldsCounters [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 13 00 00 [19:57:19]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 62 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 22 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [19:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 22 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:19]wFMCommunicate OK [19:57:19]SAM_PROTO_GetFieldsCounters done [19:57:19]requested_item shift.num is exist - process it [19:57:19]requested_item shift.opened is exist - process it [19:57:19]req_shift_opened [19:57:19]FM_GetShiftState [19:57:19]SAM_PROTO_GetShiftState [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 13 01 00 [19:57:19]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:19]Read from MH i2c: E2 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 0E 00 [19:57:19]MH_I2C_Read... [19:57:19]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 61 [19:57:19]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:57:19]wFMCommunicate OK [19:57:19]SAM_PROTO_GetShiftState done [19:57:19]FM_GetShiftState done [19:57:19]req_shift_opened done [19:57:19]requested_item shift.open_date is exist - process it [19:57:19]req_shift_open_date [19:57:19]req_shift_open_date done [19:57:19]produce_requested_data done [19:57:19]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82466,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:57:19]process_action_free get_value [19:57:19]json_value_free [19:57:19]json_value_free done [19:57:19]process_json_proto returns [19:57:19]Send response to host [19:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82466,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:57:19]free response buf [19:57:19]execute_script done [19:57:19]execute_script returns [19:57:19]free content buf [19:57:19]Sock 9.Close socket [19:57:19]Sock 9.Thread stoped [19:57:19]accept exits with 10 [19:57:19]New connection [19:57:19]New thread 3066879332 created [19:57:19]Thread 3067022692 joined [19:57:19]Waiting for new connection... [19:57:19] Sock 10.Parse request [19:57:19]Sock 10.Check first char [19:57:19]Sock 10.First char is OK [19:57:19]request: POST /json_proto HTTP/1.0 [19:57:19]Method: POST [19:57:19]URL: /json_proto [19:57:19]Method is POST - this is cgi request [19:57:19]url: /json_proto [19:57:19]query_string will be loaded in cgi processing [19:57:19]execute_cgi json_proto POST (null) [19:57:19]execute_cgi path=json_proto method=POST [19:57:19]POST find Content-Length [19:57:19]Host: 172.17.44.67:8080 [19:57:19]Content-Length: 331 [19:57:19]Content-Type: application/json [19:57:19] [19:57:19]POST finish read [19:57:19]Found Content-Length = 331 [19:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:57:19]execute_script... [19:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:57:19]POST & json_proto [19:57:19]process_json_proto [19:57:19]json parsed OK: [19:57:19]protocol is kg_v1.0 [19:57:19]action value=get_value [19:57:19]process_action get_value [19:57:19]cmd_get_value [19:57:19]process_action get_value done [19:57:19]requested_data is exist [19:57:19]produce_requested_data [19:57:19]requested_item fm.sale.total is exist - process it [19:57:19]SAM_PROTO_GetFMData [19:57:19]wFMCommunicate request_size=4 [19:57:19]MH_SAM_APDU [19:57:19]CAPDU: 80 13 03 00 [19:57:19]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:57:19]Write i2c OK [19:57:19]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 FD 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 06 3E 01 00 69 04 A3 00 6F 04 04 00 6B 3B 01 00 B1 04 05 00 74 0B E1 7B 01 70 04 05 00 F8 59 70 41 01 72 04 04 00 7C B1 70 3A 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 C8 D5 5A 28 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 DC D3 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 03 [19:57:20]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 06 3E 01 00 69 04 A3 00 6F 04 04 00 6B 3B 01 00 B1 04 05 00 74 0B E1 7B 01 70 04 05 00 F8 59 70 41 01 72 04 04 00 7C B1 70 3A 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 C8 D5 5A 28 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 DC D3 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [19:57:20]wFMCommunicate OK [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 17 00 00 [19:57:20]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 FD 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 FD 00 14 00 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [19:57:20]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:57:20]wFMCommunicate OK [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 17 00 00 [19:57:20]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:20]Read from MH i2c: E2 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 FD 00 [19:57:20]MH_I2C_Read... [19:57:20]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [19:57:20]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:57:20]wFMCommunicate OK [19:57:20]wFMCommunicate request_size=4 [19:57:20]MH_SAM_APDU [19:57:20]CAPDU: 80 17 00 00 [19:57:20]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:57:20]Write i2c OK [19:57:20]MH_I2C_Read... [19:57:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:21]Read from MH i2c: E2 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 FD 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [19:57:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:57:21]wFMCommunicate OK [19:57:21]wFMCommunicate request_size=4 [19:57:21]MH_SAM_APDU [19:57:21]CAPDU: 80 17 00 00 [19:57:21]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]Connected sock=6 [19:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 17 A4 07 01 D2 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 24 BA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 22 42 01 00 35 04 06 00 D4 8E 84 B2 46 1B 69 7A 1E 2F 6E 37 11 E3 [19:57:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [19:57:21]Read from MH i2c: E2 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 E4 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [19:57:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:57:21]wFMCommunicate OK [19:57:21]SAM_PROTO_GetFMData done [19:57:21]requested_item fm.sale_refund.total is exist - process it [19:57:21]requested_item fm.buy.total is exist - process it [19:57:21]requested_item shift.sale.total is exist - process it [19:57:21]SAM_PROTO_GetShiftData [19:57:21]wFMCommunicate request_size=4 [19:57:21]MH_SAM_APDU [19:57:21]CAPDU: 80 13 02 00 [19:57:21]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:57:21]Read from MH i2c: E2 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 FD 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 AF 00 00 00 69 04 9C 00 6F 04 04 00 AC 00 00 00 B1 04 03 00 D9 A2 84 70 04 03 00 D8 FB 49 72 04 03 00 01 A7 3A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DC 16 0E 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 96 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 51 [19:57:21]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 AF 00 00 00 69 04 9C 00 6F 04 04 00 AC 00 00 00 B1 04 03 00 D9 A2 84 70 04 03 00 D8 FB 49 72 04 03 00 01 A7 3A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DC 16 0E 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 96 2C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [19:57:22]wFMCommunicate OK [19:57:22]wFMCommunicate request_size=4 [19:57:22]MH_SAM_APDU [19:57:22]CAPDU: 80 17 00 00 [19:57:22]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:57:22]Write i2c OK [19:57:22]MH_I2C_Read... [19:57:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:22]Read from MH i2c: E2 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 FD 00 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 0B [19:57:22]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [19:57:22]wFMCommunicate OK [19:57:22]wFMCommunicate request_size=4 [19:57:22]MH_SAM_APDU [19:57:22]CAPDU: 80 17 00 00 [19:57:22]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:57:22]Write i2c OK [19:57:22]MH_I2C_Read... [19:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 17 2A 47 00 93 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 22 42 01 00 F4 03 04 00 D9 62 12 67 B6 04 01 00 00 E3 54 61 55 A2 51 91 86 [19:57:22]CommunicateWithHost err = 0 [19:57:22]CheckOFDResponse [19:57:22]1017 (14) - 77093643461234 [19:57:22]1041 (16) - 0000000000871843 [19:57:22]1040 (4) - 82466 [19:57:22]1012 (4) - 18.10.2024 13:30 [19:57:22]1206 (1) - 0 [19:57:22]OFD Sender: Remove packet 82466 [19:57:22]ProducePacketName [19:57:22]name=ofd_packets/00082466 [19:57:22]NVStorageDeleteData [19:57:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:22]Read from MH i2c: E2 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 FD 00 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [19:57:22]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [19:57:22]wFMCommunicate OK [19:57:22]wFMCommunicate request_size=4 [19:57:22]MH_SAM_APDU [19:57:22]CAPDU: 80 17 00 00 [19:57:22]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:57:22]Write i2c OK [19:57:22]MH_I2C_Read... [19:57:22]OFD Sender: No OFD packet to send [19:57:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:22]Read from MH i2c: E2 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 FD 00 [19:57:22]MH_I2C_Read... [19:57:22]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [19:57:22]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [19:57:23]wFMCommunicate OK [19:57:23]wFMCommunicate request_size=4 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 17 00 00 [19:57:23]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 D6 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [19:57:23]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:57:23]wFMCommunicate OK [19:57:23]SAM_PROTO_GetShiftData done [19:57:23]requested_item shift.sale.total_cash is exist - process it [19:57:23]requested_item shift.sale_refund.total is exist - process it [19:57:23]requested_item shift.sale_refund.total_cash is exist - process it [19:57:23]requested_item shift.buy.total is exist - process it [19:57:23]requested_item shift.buy.total_cash is exist - process it [19:57:23]produce_requested_data done [19:57:23]produce_requested_data return {"fm.sale.total":63733133.96,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":86924.41,"shift.sale.total_cash":48486.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:57:23]process_action_free get_value [19:57:23]json_value_free [19:57:23]json_value_free done [19:57:23]process_json_proto returns [19:57:23]Send response to host [19:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63733133.96,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":86924.41,"shift.sale.total_cash":48486.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:57:23]free response buf [19:57:23]execute_script done [19:57:23]execute_script returns [19:57:23]free content buf [19:57:23]Sock 10.Close socket [19:57:23]Sock 10.Thread stoped [19:57:23]accept exits with 9 [19:57:23]New connection [19:57:23]New thread 3067022692 created [19:57:23]Thread 3066879332 joined [19:57:23]Waiting for new connection... [19:57:23] Sock 9.Parse request [19:57:23]Sock 9.Check first char [19:57:23]Sock 9.First char is OK [19:57:23]request: POST /json_proto HTTP/1.0 [19:57:23]Method: POST [19:57:23]URL: /json_proto [19:57:23]Method is POST - this is cgi request [19:57:23]url: /json_proto [19:57:23]query_string will be loaded in cgi processing [19:57:23]execute_cgi json_proto POST (null) [19:57:23]execute_cgi path=json_proto method=POST [19:57:23]POST find Content-Length [19:57:23]Host: 172.17.44.67:8080 [19:57:23]Content-Length: 144 [19:57:23]Content-Type: application/json [19:57:23] [19:57:23]POST finish read [19:57:23]Found Content-Length = 144 [19:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:57:23]execute_script... [19:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:57:23]POST & json_proto [19:57:23]process_json_proto [19:57:23]json parsed OK: [19:57:23]protocol is kg_v1.0 [19:57:23]action value=print_doc [19:57:23]process_action print_doc [19:57:23]ExternCall_PrintAddStr [19:57:23]wPrintStart [19:57:23]Write to MH i2c: 01 00 00 1D 00 1D [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 07 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [19:57:23]RasterBufferAndPrint [19:57:23]line Счет N : (1)918959 [19:57:23]line ИНН: 02508201610067 [19:57:23]line Контрольно-Кассовый Чек [19:57:23]line ПРОДАЖА [19:57:23]line ТРК (МРК, ГНК) : 11 [19:57:23]line Товар: 2710124130 [19:57:23]line Аи-92-К-4 [19:57:23]line 2.990 * 66.90 [19:57:23]line = 200.03 [19:57:23]line НДС 12% НСП 1% [19:57:23]line > о реализуемом товаре [19:57:23]line ОКРУГЛЕНИЕ: -0.03 [19:57:23]line ИТОГО: 200.00 [19:57:23]line Внесено: 200.00 [19:57:23]line СДАЧА: 0.00 [19:57:23]line НСП 1% : 1.77 [19:57:23]line НДС 12% : 21.24 [19:57:23]line Наличными: 200.00 [19:57:23]line Безнал.: 0.00 [19:57:23]line Место: АЗС № 114 "Партнер Нефть" [19:57:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:57:23]line СНО: Общий режим [19:57:23]line Чек 175 18.10.2024 19:42 [19:57:23]line Смена: 526 ФФД: 1.0 [19:57:23]line ЗНМ: 0300000086 [19:57:23]line РНМ: 0000000000091680 [19:57:23]line Версия ККМ: 001 [19:57:23]line ФМ: 0000000000871843 [19:57:23]line ФД: 82466 [19:57:23]line ФПД: 233708576720411 [19:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194228&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82466&fm=233708576720411&tin=02508201610067®Number=0000000000091680&sum=20000 [19:57:23]written 0, free lines is 4095 [19:57:23]Write to MH i2c: 01 00 00 48 00 48 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 07 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D8 0C 33 [19:57:23]RasterBufferAndPrint [19:57:23]line [19:57:23]line [19:57:23]line [19:57:23]line [19:57:23]line [19:57:23]written 0, free lines is 3304 [19:57:23]MH_Cut [19:57:23]Write to MH i2c: D1 01 00 4F 00 01 21 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: D1 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: D1 01 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: D1 01 00 4F 00 00 20 [19:57:23]Write to MH i2c: 01 00 00 50 00 50 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:24]*** Cut start [19:57:24]*** Partial cut [19:57:24]*** CUTSNS_PIN = 1 [19:57:24]*** CUTSNS_PIN = 0 [19:57:25]*** Brake cut motor [19:57:25]Read from MH i2c: 01 [19:57:25]MH_I2C_Read... [19:57:25]*** Stop cut motor [19:57:25]*** Cut end [19:57:25]Read from MH i2c: 01 07 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [19:57:25]process_action print_doc done [19:57:25]requested_data is exist [19:57:25]produce_requested_data [19:57:25]produce_requested_data return (null) [19:57:25]process_action_free print_doc [19:57:25]json_value_free [19:57:25]json_value_free done [19:57:25]process_json_proto returns [19:57:25]Send response to host [19:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:57:25]free response buf [19:57:25]execute_script done [19:57:25]execute_script returns [19:57:25]free content buf [19:57:25]Sock 9.Close socket [19:57:25]Sock 9.Thread stoped [19:57:27]OFD Sender: No OFD packet to send [19:57:28]recv_with_timeout no data received [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]recv_with_timeout no data received [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:56]recv_with_timeout no data received [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:03]accept exits with 7 [19:58:03]New connection [19:58:03]New thread 3066879332 created [19:58:03]Thread 3067022692 joined [19:58:03]Waiting for new connection... [19:58:03] Sock 7.Parse request [19:58:03]Sock 7.Check first char [19:58:03]Sock 7.First char is OK [19:58:03]request: POST /json_proto HTTP/1.0 [19:58:03]Method: POST [19:58:03]URL: /json_proto [19:58:03]Method is POST - this is cgi request [19:58:03]url: /json_proto [19:58:03]query_string will be loaded in cgi processing [19:58:03]execute_cgi json_proto POST (null) [19:58:03]execute_cgi path=json_proto method=POST [19:58:03]POST find Content-Length [19:58:03]Host: 172.17.44.67:8080 [19:58:03]Content-Length: 682 [19:58:03]Content-Type: application/json [19:58:03] [19:58:03]POST finish read [19:58:03]Found Content-Length = 682 [19:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:03]execute_script... [19:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:03]POST & json_proto [19:58:03]process_json_proto [19:58:03]json parsed OK: [19:58:03]protocol is kg_v1.0 [19:58:03]action value=close_receipt [19:58:03]process_action close_receipt [19:58:03]cmd_close_receipt [19:58:03]MH_GetDate [19:58:03]Write to MH i2c: F0 00 00 51 00 40 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: F0 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: F0 09 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: F0 09 00 51 00 00 CC BD 12 67 F1 C7 6B 64 D2 [19:58:03]GetLastDocTimeStamp 1729280548 [19:58:03]current date 1729281484 [19:58:03]FM_GetShiftState [19:58:03]SAM_PROTO_GetShiftState [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 13 01 00 [19:58:03]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 0E 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A1 [19:58:03]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:58:03]wFMCommunicate OK [19:58:03]SAM_PROTO_GetShiftState done [19:58:03]FM_GetShiftState done [19:58:03]opened in 1729212319 [19:58:03]opened+sec_in_day 1729298719 [19:58:03]quantity*price = 50063 [19:58:03]sum+1 = 50064 [19:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 176 18.10.2024 19:58 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82467 ФПД: 31067048162915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T195804&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82467&fm=31067048162915&tin=02508201610067®Number=0000000000091680&sum=50000 [19:58:04]StoreToDocumentArchive [19:58:04]shift 526 fd 82467 [19:58:04]save to /storage/0526/doc_00082467 [19:58:04]save last doc name /storage/0526/doc_00082467 to /storage/kkm_last_doc_name [19:58:04]save OK [19:58:04]Clear old archive folders... [19:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:58:04]tlvbuf is 01C02F10 [19:58:04]SAM_PROTO_ClearQueue [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 09 00 00 [19:58:04]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [19:58:04]RAPDU: 90 00 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_ClearQueue done [19:58:04]KKMCreateOFDPacket [19:58:04]OFDProtocolAddRootSTLVToBuf [19:58:04]FM_MakeSignedData [19:58:04]FM_MakeSignedData [19:58:04]SAM_PROTO_SignData [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 0D 01 02 [19:58:04]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [19:58:04]RAPDU: 90 00 [19:58:04]wFMCommunicate OK [19:58:04]wFMCommunicate request_size=255 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 CC BD 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 42 01 00 35 04 06 00 [19:58:04]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 CC BD 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 42 01 00 35 04 06 00 00 00 F4 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=11 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 02 02 06 1C 41 5C 5E B6 63 [19:58:05]Write to MH i2c: E2 0E 00 62 00 80 0D 02 02 06 00 1C 41 5C 5E B6 63 00 00 18 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 03 02 [19:58:05]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 0B 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 0B 00 63 00 00 BC 7D 4C 81 2E 8D 7B A2 90 00 BD [19:58:05]RAPDU: BC 7D 4C 81 2E 8D 7B A2 90 00 [19:58:05]wFMCommunicate OK [19:58:05]SAM_PROTO_SignData done [19:58:05]FM_MakeSignedData done [19:58:05]CreateOFDProtocolMessage [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 11 00 00 [19:58:05]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 17 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 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 CC BD 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 42 01 00 35 04 06 00 1C 41 5C 5E B6 63 BC 7D 4C 81 2E 8D 7B A2 [19:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D8 43 47 00 67 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 42 01 00 F4 03 04 00 1A 63 12 67 B6 04 01 00 00 BA E5 C2 72 CA EE E4 CF [19:58:26]CommunicateWithHost err = 0 [19:58:26]CheckOFDResponse [19:58:26]1017 (14) - 77093643461234 [19:58:26]1041 (16) - 0000000000871843 [19:58:26]1040 (4) - 82467 [19:58:26]1012 (4) - 18.10.2024 13:31 [19:58:26]1206 (1) - 0 [19:58:26]OFD Sender: Remove packet 82467 [19:58:26]ProducePacketName [19:58:26]name=ofd_packets/00082467 [19:58:26]NVStorageDeleteData [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:34]recv_with_timeout no data received [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:45]recv_with_timeout no data received [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:58:59]recv_with_timeout no data received [19:59:02]OFD Sender: No OFD packet to send 00 30 [19:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:58:05]wFMCommunicate OK [19:58:05]CreateOFDProtocolMessage done [19:58:05]OFDSenderStorePacket 82467 [19:58:05]StoreOFDPacket docnum=82467 [19:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 2B 6A 08 01 F8 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 CC BD 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 23 42 01 00 35 04 06 00 1C 41 5C 5E B6 63 BC 7D 4C 81 2E 8D 7B A2 [19:58:05]CheckFolder [19:58:05]dirname=/storage/ofd_packets [19:58:05]CheckFolder done [19:58:05]ProducePacketName [19:58:05]name=ofd_packets/00082467 [19:58:05]NVStorageSaveData ofd_packets/00082467 [19:58:05]File name is /storage/ofd_packets/00082467 [19:58:05]Write 302 bytes [19:58:05]NVStorageSaveData done [19:58:05]OFDSenderStorePacket done [19:58:05]KKMCreateOFDPacket done [19:58:05]NVStorageSaveData kkm_last_timestamp [19:58:05]File name is /storage/kkm_last_timestamp [19:58:05]Write 4 bytes [19:58:05]NVStorageSaveData done [19:58:05]ExternCall_PrintAddStr [19:58:05]wPrintStart [19:58:05]Write to MH i2c: 01 00 00 65 00 65 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [19:58:05]RasterBufferAndPrint [19:58:05]line Счет N : (1)918961 [19:58:05]line ИНН: 02508201610067 [19:58:05]line Контрольно-Кассовый Чек [19:58:05]line ПРОДАЖА [19:58:05]line ТРК (МРК, ГНК) : 31 [19:58:05]line Товар: 2710194210 [19:58:05]line ДТ(л)-К-5 [19:58:05]line 6.570 * 76.20 [19:58:05]line = 500.63 [19:58:05]line НДС 12% НСП 1% [19:58:05]line > о реализуемом товаре [19:58:05]line ОКРУГЛЕНИЕ: -0.63 [19:58:05]line ИТОГО: 500.00 [19:58:05]line Внесено: 500.00 [19:58:05]line СДАЧА: 0.00 [19:58:05]line НСП 1% : 4.43 [19:58:05]line НДС 12% : 53.16 [19:58:05]line Наличными: 500.00 [19:58:05]line Безнал.: 0.00 [19:58:05]line Место: АЗС № 114 "Партнер Нефть" [19:58:05]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [19:58:05]line СНО: Общий режим [19:58:05]line Чек 176 18.10.2024 19:58 [19:58:05]line Смена: 526 ФФД: 1.0 [19:58:05]line ЗНМ: 0300000086 [19:58:05]line РНМ: 0000000000091680 [19:58:05]line Версия ККМ: 001 [19:58:05]line ФМ: 0000000000871843 [19:58:05]line ФД: 82467 [19:58:05]line ФПД: 31067048162915 [19:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T195804&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82467&fm=31067048162915&tin=02508201610067®Number=0000000000091680&sum=50000 [19:58:05]written 0, free lines is 4095 [19:58:05]OFD Sender: Processing packet 82467 [packets to send 254, broken 253] [19:58:05]ProducePacketName [19:58:05]name=ofd_packets/00082467 [19:58:05]OFD Sender: To server: pG, [19:58:05]CommunicateWithHost lk.salyk.kg:30040 [19:58:05]ConnectInit lk.salyk.kg [19:58:05]Write to MH i2c: 01 00 00 90 00 90 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 E4 0C 87 [19:58:05]RasterBufferAndPrint [19:58:05]line [19:58:05]line [19:58:05]line [19:58:05]line [19:58:05]line [19:58:05]written 0, free lines is 3309 [19:58:05]MH_Cut [19:58:05]Write to MH i2c: D1 01 00 97 00 01 69 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: D1 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: D1 01 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: D1 01 00 97 00 00 68 [19:58:05]Write to MH i2c: 01 00 00 98 00 98 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:06]*** Cut start [19:58:06]*** Partial cut [19:58:06]*** CUTSNS_PIN = 1 [19:58:06]*** CUTSNS_PIN = 0 [19:58:06]*** Brake cut motor [19:58:07]Read from MH i2c: 01 [19:58:07]MH_I2C_Read... [19:58:07]*** Stop cut motor [19:58:07]*** Cut end [19:58:07]Read from MH i2c: 01 07 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [19:58:07]process_action close_receipt done [19:58:07]requested_data is exist [19:58:07]produce_requested_data [19:58:07]requested_item fm.sn is exist - process it [19:58:07]wFMCommunicate request_size=4 [19:58:07]MH_SAM_APDU [19:58:07]CAPDU: 80 11 00 00 [19:58:07]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:07]Read from MH i2c: E2 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 17 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 65 [19:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [19:58:07]wFMCommunicate OK [19:58:07]requested_item fd.num is exist - process it [19:58:07]SAM_PROTO_GetFieldsCounters [19:58:07]wFMCommunicate request_size=4 [19:58:07]MH_SAM_APDU [19:58:07]CAPDU: 80 13 00 00 [19:58:07]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:07]Read from MH i2c: E2 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 62 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 23 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [19:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 23 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:07]wFMCommunicate OK [19:58:07]SAM_PROTO_GetFieldsCounters done [19:58:07]requested_item shift.num is exist - process it [19:58:07]requested_item shift.opened is exist - process it [19:58:07]req_shift_opened [19:58:07]FM_GetShiftState [19:58:07]SAM_PROTO_GetShiftState [19:58:07]wFMCommunicate request_size=4 [19:58:07]MH_SAM_APDU [19:58:07]CAPDU: 80 13 01 00 [19:58:07]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:07]Read from MH i2c: E2 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 0E 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EA [19:58:07]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [19:58:07]wFMCommunicate OK [19:58:07]SAM_PROTO_GetShiftState done [19:58:07]FM_GetShiftState done [19:58:07]req_shift_opened done [19:58:07]requested_item shift.open_date is exist - process it [19:58:07]req_shift_open_date [19:58:07]req_shift_open_date done [19:58:07]produce_requested_data done [19:58:07]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82467,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [19:58:07]process_action_free close_receipt [19:58:07]json_value_free [19:58:07]json_value_free done [19:58:07]process_json_proto returns [19:58:07]Send response to host [19:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82467,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [19:58:07]free response buf [19:58:07]execute_script done [19:58:07]execute_script returns [19:58:07]free content buf [19:58:07]Sock 7.Close socket [19:58:07]Sock 7.Thread stoped [19:58:08]recv_with_timeout no data received [19:58:10]ConnectInit Can't take IP for lk.salyk.kg [19:58:10]CommunicateWithHost connect error [19:58:10]CommunicateWithHost err = -1 [19:58:10]OFD Sender: Server communicate error [19:58:15]OFD Sender: Processing packet 82467 [packets to send 254, broken 253] [19:58:15]ProducePacketName [19:58:15]name=ofd_packets/00082467 [19:58:15]OFD Sender: To server: pG, [19:58:15]CommunicateWithHost lk.salyk.kg:30040 [19:58:15]ConnectInit lk.salyk.kg [19:58:21]recv_with_timeout no data received [19:58:24]Connected sock=9 [19:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 2B 6A 08 01 F8 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 [19:59:07]OFD Sender: No OFD packet to send [19:59:10]recv_with_timeout no data received [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]accept exits with 10 [20:00:22]New connection [20:00:22]New thread 3067022692 created [20:00:22]Thread 3066879332 joined [20:00:22]Waiting for new connection... [20:00:22] Sock 10.Parse request [20:00:22]Sock 10.Check first char [20:00:22]Sock 10.First char is OK [20:00:22]request: POST /json_proto HTTP/1.0 [20:00:22]Method: POST [20:00:22]URL: /json_proto [20:00:22]Method is POST - this is cgi request [20:00:22]url: /json_proto [20:00:22]query_string will be loaded in cgi processing [20:00:22]execute_cgi json_proto POST (null) [20:00:22]execute_cgi path=json_proto method=POST [20:00:22]POST find Content-Length [20:00:22]Host: 172.17.44.67:8080 [20:00:22]Content-Length: 803 [20:00:22]Content-Type: application/json [20:00:22] [20:00:22]POST finish read [20:00:22]Found Content-Length = 803 [20:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:22]execute_script... [20:00: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)918962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:22]POST & json_proto [20:00:22]process_json_proto [20:00:22]json parsed OK: [20:00:22]protocol is kg_v1.0 [20:00:22]action value=close_receipt [20:00:22]process_action close_receipt [20:00:22]cmd_close_receipt [20:00:22]MH_GetDate [20:00:22]Write to MH i2c: F0 00 00 9C 00 8B [20:00:22]Write i2c OK [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: F0 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: F0 09 00 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: F0 09 00 9C 00 00 56 BE 12 67 F1 C7 6B 64 A8 [20:00:22]GetLastDocTimeStamp 1729281484 [20:00:22]current date 1729281622 [20:00:22]FM_GetShiftState [20:00:22]SAM_PROTO_GetShiftState [20:00:22]wFMCommunicate request_size=4 [20:00:22]MH_SAM_APDU [20:00:22]CAPDU: 80 13 01 00 [20:00:22]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [20:00:22]Write i2c OK [20:00:22]MH_I2C_Read... [20:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:22]Read from MH i2c: E2 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: E2 0E 00 [20:00:22]MH_I2C_Read... [20:00:22]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EC [20:00:22]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:00:22]wFMCommunicate OK [20:00:22]SAM_PROTO_GetShiftState done [20:00:22]FM_GetShiftState done [20:00:22]opened in 1729212319 [20:00:22]opened+sec_in_day 1729298719 [20:00:22]quantity*price = 150056 [20:00:22]sum+1 = 150058 [20:00:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 177 18.10.2024 20:00 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871843 ФД: 82468 ФПД: 78654014324031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200022&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82468&fm=78654014324031&tin=02508201610067®Number=0000000000091680&sum=150057 [20:00:23]StoreToDocumentArchive [20:00:23]shift 526 fd 82468 [20:00:23]save to /storage/0526/doc_00082468 [20:00:23]save last doc name /storage/0526/doc_00082468 to /storage/kkm_last_doc_name [20:00:23]save OK [20:00:23]Clear old archive folders... [20:00:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:23]tlvbuf is 01BB0780 [20:00:23]SAM_PROTO_ClearQueue [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 09 00 00 [20:00:23]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [20:00:23]RAPDU: 90 00 [20:00:23]wFMCommunicate OK [20:00:23]SAM_PROTO_ClearQueue done [20:00:23]KKMCreateOFDPacket [20:00:23]OFDProtocolAddRootSTLVToBuf [20:00:23]FM_MakeSignedData [20:00:23]FM_MakeSignedData [20:00:23]SAM_PROTO_SignData [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 0D 01 02 [20:00:23]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [20:00:23]RAPDU: 90 00 [20:00:23]wFMCommunicate OK [20:00:23]wFMCommunicate request_size=255 [20:00:23]MH_SAM_APDU [20:00: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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 56 BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 42 01 00 35 04 06 00 47 [20:00:23]Write to MH i2c: E2 02 01 AC 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 56 BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 42 01 00 35 04 06 00 47 00 00 69 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [20:00:23]RAPDU: 90 00 [20:00:23]wFMCommunicate OK [20:00:23]wFMCommunicate request_size=10 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 0D 02 02 05 89 10 95 7D 3F [20:00:23]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 89 10 95 7D 3F 00 00 1B [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [20:00:23]RAPDU: 90 00 [20:00:23]wFMCommunicate OK [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 0D 03 02 [20:00:23]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0B 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 0B 00 AE 00 00 C0 D0 07 07 0B 83 FD A5 90 00 F8 [20:00:23]RAPDU: C0 D0 07 07 0B 83 FD A5 90 00 [20:00:23]wFMCommunicate OK [20:00:23]SAM_PROTO_SignData done [20:00:23]FM_MakeSignedData done [20:00:23]CreateOFDProtocolMessage [20:00:23]wFMCommunicate request_size=4 [20:00:23]MH_SAM_APDU [20:00:23]CAPDU: 80 11 00 00 [20:00:23]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:23]Read from MH i2c: E2 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 17 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7B [20:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:00:23]wFMCommunicate OK [20:00:23]CreateOFDProtocolMessage done [20:00:23]OFDSenderStorePacket 82468 [20:00:23]StoreOFDPacket docnum=82468 [20:00:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B0 EB 07 01 C2 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 56 BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 42 01 00 35 04 06 00 47 89 10 95 7D 3F C0 D0 07 07 0B 83 FD A5 [20:00:23]CheckFolder [20:00:23]dirname=/storage/ofd_packets [20:00:23]CheckFolder done [20:00:23]ProducePacketName [20:00:23]name=ofd_packets/00082468 [20:00:23]NVStorageSaveData ofd_packets/00082468 [20:00:23]File name is /storage/ofd_packets/00082468 [20:00:23]Write 301 bytes [20:00:23]NVStorageSaveData done [20:00:23]OFDSenderStorePacket done [20:00:23]KKMCreateOFDPacket done [20:00:23]NVStorageSaveData kkm_last_timestamp [20:00:23]File name is /storage/kkm_last_timestamp [20:00:23]Write 4 bytes [20:00:23]NVStorageSaveData done [20:00:23]ExternCall_PrintAddStr [20:00:23]wPrintStart [20:00:23]Write to MH i2c: 01 00 00 B0 00 B0 [20:00:23]Write i2c OK [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: 01 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: 01 07 00 [20:00:23]MH_I2C_Read... [20:00:23]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [20:00:23]RasterBufferAndPrint [20:00:23]line Счет N : (1)918962 [20:00:23]line ИНН: 02508201610067 [20:00:23]line Контрольно-Кассовый Чек [20:00:23]line ПРОДАЖА [20:00:23]line ТРК (МРК, ГНК) : 22 [20:00:23]line Товар: 2710124130 [20:00:23]line Аи-92-К-4 [20:00:23]line 22.430 * 66.90 [20:00:23]line = 1500.57 [20:00:23]line НДС 12% НСП 1% [20:00:23]line > о реализуемом товаре [20:00:23]line ИТОГО: 1500.57 [20:00:23]line НСП 1% : 13.28 [20:00:23]line НДС 12% : 159.35 [20:00:23]line Наличными: 0.00 [20:00:23]line Безнал.: 1500.57 [20:00:23]line Место: АЗС № 114 "Партнер Нефть" [20:00:23]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:00:23]line СНО: Общий режим [20:00:23]line Чек 177 18.10.2024 20:00 [20:00:23]line Смена: 526 ФФД: 1.0 [20:00:23]line ЗНМ: 0300000086 [20:00:23]line РНМ: 0000000000091680 [20:00:23]line Версия ККМ: 001 [20:00:23]line Платежная система: O! деньги [20:00:23]line ФМ: 0000000000871843 [20:00:23]line ФД: 82468 [20:00:23]line ФПД: 78654014324031 [20:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200022&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82468&fm=78654014324031&tin=02508201610067®Number=0000000000091680&sum=150057 [20:00:24]written 0, free lines is 4095 [20:00:24]OFD Sender: Processing packet 82468 [packets to send 254, broken 253] [20:00:24]ProducePacketName [20:00:24]name=ofd_packets/00082468 [20:00:24]OFD Sender: To server: pG, [20:00:24]CommunicateWithHost lk.salyk.kg:30040 [20:00:24]ConnectInit lk.salyk.kg [20:00:24]Write to MH i2c: 01 00 00 DA 00 DA [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: 01 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: 01 07 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 E4 0C D1 [20:00:24]RasterBufferAndPrint [20:00:24]line [20:00:24]line [20:00:24]line [20:00:24]line [20:00:24]line [20:00:24]written 0, free lines is 3307 [20:00:24]MH_Cut [20:00:24]Write to MH i2c: D1 01 00 E1 00 01 B3 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: D1 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: D1 01 00 [20:00:24]MH_I2C_Read... [20:00:24]Read from MH i2c: D1 01 00 E1 00 00 B2 [20:00:24]Write to MH i2c: 01 00 00 E2 00 E2 [20:00:24]Write i2c OK [20:00:24]MH_I2C_Read... [20:00:24]Connected sock=9 [20:00:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B0 EB 07 01 C2 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 56 BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 42 01 00 35 04 06 00 47 89 10 95 7D 3F C0 D0 07 07 0B 83 FD A5 [20:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6F 2F 47 00 DB 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 24 42 01 00 F4 03 04 00 90 63 12 67 B6 04 01 00 00 65 03 6F 5C 6A F7 8C 96 [20:00:25]CommunicateWithHost err = 0 [20:00:25]CheckOFDResponse [20:00:25]1017 (14) - 77093643461234 [20:00:25]1041 (16) - 0000000000871843 [20:00:25]1040 (4) - 82468 [20:00:25]1012 (4) - 18.10.2024 13:33 [20:00:25]1206 (1) - 0 [20:00:25]OFD Sender: Remove packet 82468 [20:00:25]ProducePacketName [20:00:25]name=ofd_packets/00082468 [20:00:25]NVStorageDeleteData [20:00:25]*** Cut start [20:00:25]*** Partial cut [20:00:25]*** CUTSNS_PIN = 1 [20:00:25]*** CUTSNS_PIN = 0 [20:00:25]*** Brake cut motor [20:00:25]OFD Sender: No OFD packet to send [20:00:25]Read from MH i2c: 01 [20:00:25]MH_I2C_Read... [20:00:25]*** Stop cut motor [20:00:25]*** Cut end [20:00:25]Read from MH i2c: 01 07 00 [20:00:25]MH_I2C_Read... [20:00:25]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [20:00:25]process_action close_receipt done [20:00:25]requested_data is exist [20:00:25]produce_requested_data [20:00:25]requested_item fm.sn is exist - process it [20:00:25]wFMCommunicate request_size=4 [20:00:25]MH_SAM_APDU [20:00:25]CAPDU: 80 11 00 00 [20:00:25]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [20:00:25]Write i2c OK [20:00:25]MH_I2C_Read... [20:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:26]Read from MH i2c: E2 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 17 00 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 AF [20:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:00:26]wFMCommunicate OK [20:00:26]requested_item fd.num is exist - process it [20:00:26]SAM_PROTO_GetFieldsCounters [20:00:26]wFMCommunicate request_size=4 [20:00:26]MH_SAM_APDU [20:00:26]CAPDU: 80 13 00 00 [20:00:26]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [20:00:26]Write i2c OK [20:00:26]MH_I2C_Read... [20:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:26]Read from MH i2c: E2 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 62 00 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 24 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [20:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 24 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:26]wFMCommunicate OK [20:00:26]SAM_PROTO_GetFieldsCounters done [20:00:26]requested_item shift.num is exist - process it [20:00:26]requested_item shift.opened is exist - process it [20:00:26]req_shift_opened [20:00:26]FM_GetShiftState [20:00:26]SAM_PROTO_GetShiftState [20:00:26]wFMCommunicate request_size=4 [20:00:26]MH_SAM_APDU [20:00:26]CAPDU: 80 13 01 00 [20:00:26]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [20:00:26]Write i2c OK [20:00:26]MH_I2C_Read... [20:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:26]Read from MH i2c: E2 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 0E 00 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 34 [20:00:26]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:00:26]wFMCommunicate OK [20:00:26]SAM_PROTO_GetShiftState done [20:00:26]FM_GetShiftState done [20:00:26]req_shift_opened done [20:00:26]requested_item shift.open_date is exist - process it [20:00:26]req_shift_open_date [20:00:26]req_shift_open_date done [20:00:26]produce_requested_data done [20:00:26]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82468,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:00:26]process_action_free close_receipt [20:00:26]json_value_free [20:00:26]json_value_free done [20:00:26]process_json_proto returns [20:00:26]Send response to host [20:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82468,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:00:26]free response buf [20:00:26]execute_script done [20:00:26]execute_script returns [20:00:26]free content buf [20:00:26]Sock 10.Close socket [20:00:26]Sock 10.Thread stoped [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]accept exits with 7 [20:01:00]New connection [20:01:00]New thread 3066879332 created [20:01:00]Thread 3067022692 joined [20:01:00]Waiting for new connection... [20:01:00] Sock 7.Parse request [20:01:00]Sock 7.Check first char [20:01:00]Sock 7.First char is OK [20:01:00]request: POST /json_proto HTTP/1.0 [20:01:00]Method: POST [20:01:00]URL: /json_proto [20:01:00]Method is POST - this is cgi request [20:01:00]url: /json_proto [20:01:00]query_string will be loaded in cgi processing [20:01:00]execute_cgi json_proto POST (null) [20:01:00]execute_cgi path=json_proto method=POST [20:01:00]POST find Content-Length [20:01:00]Host: 172.17.44.67:8080 [20:01:00]Content-Length: 800 [20:01:00]Content-Type: application/json [20:01:00] [20:01:00]POST finish read [20:01:00]Found Content-Length = 800 [20:01:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 27.570, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:00]execute_script... [20:01: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)918960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 27.570, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:00]POST & json_proto [20:01:00]process_json_proto [20:01:00]json parsed OK: [20:01:00]protocol is kg_v1.0 [20:01:00]action value=close_receipt [20:01:00]process_action close_receipt [20:01:00]cmd_close_receipt [20:01:00]MH_GetDate [20:01:00]Write to MH i2c: F0 00 00 E6 00 D5 [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: F0 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: F0 09 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: F0 09 00 E6 00 00 7D BE 12 67 F1 C7 6B 64 19 [20:01:00]GetLastDocTimeStamp 1729281622 [20:01:00]current date 1729281661 [20:01:00]FM_GetShiftState [20:01:00]SAM_PROTO_GetShiftState [20:01:00]wFMCommunicate request_size=4 [20:01:00]MH_SAM_APDU [20:01:00]CAPDU: 80 13 01 00 [20:01:00]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [20:01:00]Write i2c OK [20:01:00]MH_I2C_Read... [20:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:00]Read from MH i2c: E2 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 0E 00 [20:01:00]MH_I2C_Read... [20:01:00]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 36 [20:01:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:01:00]wFMCommunicate OK [20:01:00]SAM_PROTO_GetShiftState done [20:01:00]FM_GetShiftState done [20:01:00]opened in 1729212319 [20:01:00]opened+sec_in_day 1729298719 [20:01:00]quantity*price = 0 [20:01:00]sum+1 = 1 [20:01:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 178 18.10.2024 20:01 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4582550 ФМ: 0000000000871843 ФД: 82469 ФПД: 46638221588181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200101&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82469&fm=46638221588181&tin=02508201610067®Number=0000000000091680&sum=0 [20:01:01]StoreToDocumentArchive [20:01:01]shift 526 fd 82469 [20:01:01]save to /storage/0526/doc_00082469 [20:01:01]save last doc name /storage/0526/doc_00082469 to /storage/kkm_last_doc_name [20:01:01]save OK [20:01:01]Clear old archive folders... [20:01:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:01]tlvbuf is 01BF44E0 [20:01:01]SAM_PROTO_ClearQueue [20:01:01]wFMCommunicate request_size=4 [20:01:01]MH_SAM_APDU [20:01:01]CAPDU: 80 09 00 00 [20:01:01]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:01]Read from MH i2c: E2 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [20:01:01]RAPDU: 90 00 [20:01:01]wFMCommunicate OK [20:01:01]SAM_PROTO_ClearQueue done [20:01:01]KKMCreateOFDPacket [20:01:01]OFDProtocolAddRootSTLVToBuf [20:01:01]FM_MakeSignedData [20:01:01]FM_MakeSignedData [20:01:01]SAM_PROTO_SignData [20:01:01]wFMCommunicate request_size=4 [20:01:01]MH_SAM_APDU [20:01:01]CAPDU: 80 0D 01 02 [20:01:01]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:01]Read from MH i2c: E2 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [20:01:01]RAPDU: 90 00 [20:01:01]wFMCommunicate OK [20:01:01]wFMCommunicate request_size=255 [20:01:01]MH_SAM_APDU [20:01: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 34 FF 03 08 00 03 B2 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7D BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 42 01 00 35 04 06 00 2A [20:01:01]Write to MH i2c: E2 02 01 F6 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 34 FF 03 08 00 03 B2 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7D BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 42 01 00 35 04 06 00 2A 00 00 9A [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:01]Read from MH i2c: E2 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [20:01:01]RAPDU: 90 00 [20:01:01]wFMCommunicate OK [20:01:01]wFMCommunicate request_size=10 [20:01:01]MH_SAM_APDU [20:01:01]CAPDU: 80 0D 02 02 05 6A CE A1 76 D5 [20:01:01]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 6A CE A1 76 D5 00 00 9F [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:01]Read from MH i2c: E2 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [20:01:01]RAPDU: 90 00 [20:01:01]wFMCommunicate OK [20:01:01]wFMCommunicate request_size=4 [20:01:01]MH_SAM_APDU [20:01:01]CAPDU: 80 0D 03 02 [20:01:01]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:01]Read from MH i2c: E2 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 0B 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 0B 00 F8 00 00 18 A8 73 C4 76 48 72 64 90 00 FF [20:01:01]RAPDU: 18 A8 73 C4 76 48 72 64 90 00 [20:01:01]wFMCommunicate OK [20:01:01]SAM_PROTO_SignData done [20:01:01]FM_MakeSignedData done [20:01:01]CreateOFDProtocolMessage [20:01:01]wFMCommunicate request_size=4 [20:01:01]MH_SAM_APDU [20:01:01]CAPDU: 80 11 00 00 [20:01:01]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:01]Read from MH i2c: E2 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 17 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C5 [20:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:01:01]wFMCommunicate OK [20:01:01]CreateOFDProtocolMessage done [20:01:01]OFDSenderStorePacket 82469 [20:01:01]StoreOFDPacket docnum=82469 [20:01:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8F 84 07 01 04 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 34 FF 03 08 00 03 B2 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7D BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 42 01 00 35 04 06 00 2A 6A CE A1 76 D5 18 A8 73 C4 76 48 72 64 [20:01:01]CheckFolder [20:01:01]dirname=/storage/ofd_packets [20:01:01]CheckFolder done [20:01:01]ProducePacketName [20:01:01]name=ofd_packets/00082469 [20:01:01]NVStorageSaveData ofd_packets/00082469 [20:01:01]File name is /storage/ofd_packets/00082469 [20:01:01]Write 301 bytes [20:01:01]NVStorageSaveData done [20:01:01]OFDSenderStorePacket done [20:01:01]KKMCreateOFDPacket done [20:01:01]NVStorageSaveData kkm_last_timestamp [20:01:01]File name is /storage/kkm_last_timestamp [20:01:01]Write 4 bytes [20:01:01]NVStorageSaveData done [20:01:01]ExternCall_PrintAddStr [20:01:01]wPrintStart [20:01:01]Write to MH i2c: 01 00 00 FA 00 FA [20:01:01]Write i2c OK [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: 01 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: 01 07 00 [20:01:01]MH_I2C_Read... [20:01:01]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [20:01:01]RasterBufferAndPrint [20:01:01]line Счет N : (1)918960 [20:01:01]line ИНН: 02508201610067 [20:01:01]line Контрольно-Кассовый Чек [20:01:01]line ПРОДАЖА [20:01:01]line ТРК (МРК, ГНК) : 11 [20:01:01]line Товар: 2710124130 [20:01:01]line Аи-92-К-4 [20:01:01]line 27.570 * 0.00 [20:01:01]line = 0.00 [20:01:01]line НДС 12% НСП 1% [20:01:01]line > о реализуемом товаре [20:01:01]line ИТОГО: 0.00 [20:01:01]line НСП 1% : 0.00 [20:01:01]line НДС 12% : 0.00 [20:01:01]line Наличными: 0.00 [20:01:01]line Безнал.: 0.00 [20:01:01]line Место: АЗС № 114 "Партнер Нефть" [20:01:01]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:01:01]line СНО: Общий режим [20:01:01]line Чек 178 18.10.2024 20:01 [20:01:01]line Смена: 526 ФФД: 1.0 [20:01:01]line ЗНМ: 0300000086 [20:01:01]line РНМ: 0000000000091680 [20:01:01]line Версия ККМ: 001 [20:01:01]line Талоны: Топливные Талоны [20:01:01]line 4582550 [20:01:01]line ФМ: 0000000000871843 [20:01:01]line ФД: 82469 [20:01:01]line ФПД: 46638221588181 [20:01:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200101&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82469&fm=46638221588181&tin=02508201610067®Number=0000000000091680&sum=0 [20:01:02]OFD Sender: Processing packet 82469 [packets to send 254, broken 253] [20:01:02]ProducePacketName [20:01:02]name=ofd_packets/00082469 [20:01:02]OFD Sender: To server: pG, [20:01:02]CommunicateWithHost lk.salyk.kg:30040 [20:01:02]ConnectInit lk.salyk.kg [20:01:02]written 0, free lines is 4095 [20:01:02]Write to MH i2c: 01 00 00 24 01 25 [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: 01 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: 01 07 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 DD 0C 15 [20:01:02]RasterBufferAndPrint [20:01:02]line [20:01:02]line [20:01:02]line [20:01:02]line [20:01:02]line [20:01:02]written 0, free lines is 3296 [20:01:02]MH_Cut [20:01:02]Write to MH i2c: D1 01 00 2B 01 01 FE [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: D1 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: D1 01 00 [20:01:02]MH_I2C_Read... [20:01:02]Read from MH i2c: D1 01 00 2B 01 00 FD [20:01:02]Write to MH i2c: 01 00 00 2C 01 2D [20:01:02]Write i2c OK [20:01:02]MH_I2C_Read... [20:01:03]Connected sock=11 [20:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8F 84 07 01 04 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 34 FF 03 08 00 03 B2 6B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 7D BE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 42 01 00 35 04 06 00 2A 6A CE A1 76 D5 18 A8 73 C4 76 48 72 64 [20:01:03]*** Cut start [20:01:03]*** Partial cut [20:01:03]*** CUTSNS_PIN = 1 [20:01:03]*** CUTSNS_PIN = 0 [20:01:03]*** Brake cut motor [20:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B9 D1 47 00 1A 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 25 42 01 00 F4 03 04 00 B7 63 12 67 B6 04 01 00 00 9C 46 3E 60 48 58 C6 9D [20:01:03]CommunicateWithHost err = 0 [20:01:03]CheckOFDResponse [20:01:03]1017 (14) - 77093643461234 [20:01:03]1041 (16) - 0000000000871843 [20:01:03]1040 (4) - 82469 [20:01:03]1012 (4) - 18.10.2024 13:33 [20:01:03]1206 (1) - 0 [20:01:03]OFD Sender: Remove packet 82469 [20:01:03]ProducePacketName [20:01:03]name=ofd_packets/00082469 [20:01:03]NVStorageDeleteData [20:01:04]Read from MH i2c: 01 [20:01:04]MH_I2C_Read... [20:01:04]*** Stop cut motor [20:01:04]*** Cut end [20:01:04]Read from MH i2c: 01 07 00 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [20:01:04]process_action close_receipt done [20:01:04]requested_data is exist [20:01:04]produce_requested_data [20:01:04]requested_item fm.sn is exist - process it [20:01:04]wFMCommunicate request_size=4 [20:01:04]MH_SAM_APDU [20:01:04]CAPDU: 80 11 00 00 [20:01:04]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [20:01:04]Write i2c OK [20:01:04]MH_I2C_Read... [20:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:04]Read from MH i2c: E2 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 17 00 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FA [20:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:01:04]wFMCommunicate OK [20:01:04]requested_item fd.num is exist - process it [20:01:04]SAM_PROTO_GetFieldsCounters [20:01:04]wFMCommunicate request_size=4 [20:01:04]MH_SAM_APDU [20:01:04]CAPDU: 80 13 00 00 [20:01:04]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [20:01:04]Write i2c OK [20:01:04]MH_I2C_Read... [20:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:04]Read from MH i2c: E2 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 62 00 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 25 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [20:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 25 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:04]wFMCommunicate OK [20:01:04]SAM_PROTO_GetFieldsCounters done [20:01:04]requested_item shift.num is exist - process it [20:01:04]requested_item shift.opened is exist - process it [20:01:04]req_shift_opened [20:01:04]FM_GetShiftState [20:01:04]SAM_PROTO_GetShiftState [20:01:04]wFMCommunicate request_size=4 [20:01:04]MH_SAM_APDU [20:01:04]CAPDU: 80 13 01 00 [20:01:04]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [20:01:04]Write i2c OK [20:01:04]MH_I2C_Read... [20:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:04]Read from MH i2c: E2 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 0E 00 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 7F [20:01:04]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:01:04]wFMCommunicate OK [20:01:04]SAM_PROTO_GetShiftState done [20:01:04]FM_GetShiftState done [20:01:04]req_shift_opened done [20:01:04]requested_item shift.open_date is exist - process it [20:01:04]req_shift_open_date [20:01:04]req_shift_open_date done [20:01:04]produce_requested_data done [20:01:04]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82469,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:01:04]process_action_free close_receipt [20:01:04]json_value_free [20:01:04]json_value_free done [20:01:04]process_json_proto returns [20:01:04]Send response to host [20:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82469,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:01:04]free response buf [20:01:04]execute_script done [20:01:04]execute_script returns [20:01:04]free content buf [20:01:04]Sock 7.Close socket [20:01:04]Sock 7.Thread stoped [20:01:04]OFD Sender: No OFD packet to send [20:01:06]recv_with_timeout no data received [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:27]recv_with_timeout no data received [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:38]accept exits with 9 [20:03:38]New connection [20:03:38]New thread 3067022692 created [20:03:38]Thread 3066879332 joined [20:03:38]Waiting for new connection... [20:03:38] Sock 9.Parse request [20:03:38]Sock 9.Check first char [20:03:38]Sock 9.First char is OK [20:03:38]request: POST /json_proto HTTP/1.0 [20:03:38]Method: POST [20:03:38]URL: /json_proto [20:03:38]Method is POST - this is cgi request [20:03:38]url: /json_proto [20:03:38]query_string will be loaded in cgi processing [20:03:38]execute_cgi json_proto POST (null) [20:03:38]execute_cgi path=json_proto method=POST [20:03:38]POST find Content-Length [20:03:38]Host: 172.17.44.67:8080 [20:03:38]Content-Length: 677 [20:03:38]Content-Type: application/json [20:03:38] [20:03:38]POST finish read [20:03:38]Found Content-Length = 677 [20:03:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:38]execute_script... [20:03: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)918963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:38]POST & json_proto [20:03:38]process_json_proto [20:03:38]json parsed OK: [20:03:38]protocol is kg_v1.0 [20:03:38]action value=close_receipt [20:03:38]process_action close_receipt [20:03:38]cmd_close_receipt [20:03:38]MH_GetDate [20:03:38]Write to MH i2c: F0 00 00 30 01 20 [20:03:38]Write i2c OK [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: F0 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: F0 09 00 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: F0 09 00 30 01 00 1B BF 12 67 F1 C7 6B 64 03 [20:03:38]GetLastDocTimeStamp 1729281661 [20:03:38]current date 1729281819 [20:03:38]FM_GetShiftState [20:03:38]SAM_PROTO_GetShiftState [20:03:38]wFMCommunicate request_size=4 [20:03:38]MH_SAM_APDU [20:03:38]CAPDU: 80 13 01 00 [20:03:38]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [20:03:38]Write i2c OK [20:03:38]MH_I2C_Read... [20:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:38]Read from MH i2c: E2 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 0E 00 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 81 [20:03:38]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:03:38]wFMCommunicate OK [20:03:38]SAM_PROTO_GetShiftState done [20:03:38]FM_GetShiftState done [20:03:38]opened in 1729212319 [20:03:38]opened+sec_in_day 1729298719 [20:03:38]quantity*price = 50041 [20:03:38]sum+1 = 50042 [20:03:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 179 18.10.2024 20:03 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82470 ФПД: 187496673313472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200339&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82470&fm=187496673313472&tin=02508201610067®Number=0000000000091680&sum=50000 [20:03:39]StoreToDocumentArchive [20:03:39]shift 526 fd 82470 [20:03:39]save to /storage/0526/doc_00082470 [20:03:39]save last doc name /storage/0526/doc_00082470 to /storage/kkm_last_doc_name [20:03:39]save OK [20:03:39]Clear old archive folders... [20:03:39]OFD Sender: No OFD packet to send [20:03:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:39]tlvbuf is 01BFC630 [20:03:39]SAM_PROTO_ClearQueue [20:03:39]wFMCommunicate request_size=4 [20:03:39]MH_SAM_APDU [20:03:39]CAPDU: 80 09 00 00 [20:03:39]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [20:03:39]Write i2c OK [20:03:39]MH_I2C_Read... [20:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:39]Read from MH i2c: E2 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 03 00 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [20:03:39]RAPDU: 90 00 [20:03:39]wFMCommunicate OK [20:03:39]SAM_PROTO_ClearQueue done [20:03:39]KKMCreateOFDPacket [20:03:39]OFDProtocolAddRootSTLVToBuf [20:03:39]FM_MakeSignedData [20:03:39]FM_MakeSignedData [20:03:39]SAM_PROTO_SignData [20:03:39]wFMCommunicate request_size=4 [20:03:39]MH_SAM_APDU [20:03:39]CAPDU: 80 0D 01 02 [20:03:39]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [20:03:39]Write i2c OK [20:03:39]MH_I2C_Read... [20:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:39]Read from MH i2c: E2 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 03 00 [20:03:39]MH_I2C_Read... [20:03:39]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [20:03:39]RAPDU: 90 00 [20:03:39]wFMCommunicate OK [20:03:39]wFMCommunicate request_size=255 [20:03:39]MH_SAM_APDU [20:03: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 1B BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 26 42 01 00 35 04 06 00 AA [20:03:39]Write to MH i2c: E2 02 01 40 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 1B BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 26 42 01 00 35 04 06 00 AA 00 00 6E [20:03:39]Write i2c OK [20:03:39]MH_I2C_Read... [20:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:40]Read from MH i2c: E2 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 03 00 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [20:03:40]RAPDU: 90 00 [20:03:40]wFMCommunicate OK [20:03:40]wFMCommunicate request_size=10 [20:03:40]MH_SAM_APDU [20:03:40]CAPDU: 80 0D 02 02 05 86 F8 9C 02 C0 [20:03:40]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 86 F8 9C 02 C0 00 00 A2 [20:03:40]Write i2c OK [20:03:40]MH_I2C_Read... [20:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:40]Read from MH i2c: E2 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 03 00 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [20:03:40]RAPDU: 90 00 [20:03:40]wFMCommunicate OK [20:03:40]wFMCommunicate request_size=4 [20:03:40]MH_SAM_APDU [20:03:40]CAPDU: 80 0D 03 02 [20:03:40]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [20:03:40]Write i2c OK [20:03:40]MH_I2C_Read... [20:03:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:40]Read from MH i2c: E2 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 0B 00 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 0B 00 42 01 00 73 03 68 FA 7C AF 7B 21 90 00 5E [20:03:40]RAPDU: 73 03 68 FA 7C AF 7B 21 90 00 [20:03:40]wFMCommunicate OK [20:03:40]SAM_PROTO_SignData done [20:03:40]FM_MakeSignedData done [20:03:40]CreateOFDProtocolMessage [20:03:40]wFMCommunicate request_size=4 [20:03:40]MH_SAM_APDU [20:03:40]CAPDU: 80 11 00 00 [20:03:40]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [20:03:40]Write i2c OK [20:03:40]MH_I2C_Read... [20:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:40]Read from MH i2c: E2 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 17 00 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 10 [20:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:03:40]wFMCommunicate OK [20:03:40]CreateOFDProtocolMessage done [20:03:40]OFDSenderStorePacket 82470 [20:03:40]StoreOFDPacket docnum=82470 [20:03:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BF 6F 07 01 33 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 1B BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 26 42 01 00 35 04 06 00 AA 86 F8 9C 02 C0 73 03 68 FA 7C AF 7B 21 [20:03:40]CheckFolder [20:03:40]dirname=/storage/ofd_packets [20:03:40]CheckFolder done [20:03:40]ProducePacketName [20:03:40]name=ofd_packets/00082470 [20:03:40]NVStorageSaveData ofd_packets/00082470 [20:03:40]File name is /storage/ofd_packets/00082470 [20:03:40]Write 301 bytes [20:03:40]NVStorageSaveData done [20:03:40]OFDSenderStorePacket done [20:03:40]KKMCreateOFDPacket done [20:03:40]NVStorageSaveData kkm_last_timestamp [20:03:40]File name is /storage/kkm_last_timestamp [20:03:40]Write 4 bytes [20:03:40]NVStorageSaveData done [20:03:40]ExternCall_PrintAddStr [20:03:40]wPrintStart [20:03:40]Write to MH i2c: 01 00 00 44 01 45 [20:03:40]Write i2c OK [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: 01 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: 01 07 00 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [20:03:40]RasterBufferAndPrint [20:03:40]line Счет N : (1)918963 [20:03:40]line ИНН: 02508201610067 [20:03:40]line Контрольно-Кассовый Чек [20:03:40]line ПРОДАЖА [20:03:40]line ТРК (МРК, ГНК) : 22 [20:03:40]line Товар: 2710124130 [20:03:40]line Аи-92-К-4 [20:03:40]line 7.480 * 66.90 [20:03:40]line = 500.41 [20:03:40]line НДС 12% НСП 1% [20:03:40]line > о реализуемом товаре [20:03:40]line ОКРУГЛЕНИЕ: -0.41 [20:03:40]line ИТОГО: 500.00 [20:03:40]line Внесено: 500.00 [20:03:40]line СДАЧА: 0.00 [20:03:40]line НСП 1% : 4.43 [20:03:40]line НДС 12% : 53.14 [20:03:40]line Наличными: 500.00 [20:03:40]line Безнал.: 0.00 [20:03:40]line Место: АЗС № 114 "Партнер Нефть" [20:03:40]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:03:40]line СНО: Общий режим [20:03:40]line Чек 179 18.10.2024 20:03 [20:03:40]line Смена: 526 ФФД: 1.0 [20:03:40]line ЗНМ: 0300000086 [20:03:40]line РНМ: 0000000000091680 [20:03:40]line Версия ККМ: 001 [20:03:40]line ФМ: 0000000000871843 [20:03:40]line ФД: 82470 [20:03:40]line ФПД: 187496673313472 [20:03:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200339&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82470&fm=187496673313472&tin=02508201610067®Number=0000000000091680&sum=50000 [20:03:40]written 0, free lines is 4095 [20:03:40]OFD Sender: Processing packet 82470 [packets to send 254, broken 253] [20:03:40]ProducePacketName [20:03:40]name=ofd_packets/00082470 [20:03:40]OFD Sender: To server: pG, [20:03:40]CommunicateWithHost lk.salyk.kg:30040 [20:03:40]ConnectInit lk.salyk.kg [20:03:40]Write to MH i2c: 01 00 00 6F 01 70 [20:03:40]Write i2c OK [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: 01 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: 01 07 00 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 D9 0C 5C [20:03:40]RasterBufferAndPrint [20:03:40]line [20:03:40]line [20:03:40]line [20:03:40]line [20:03:40]line [20:03:40]written 0, free lines is 3293 [20:03:40]MH_Cut [20:03:40]Write to MH i2c: D1 01 00 76 01 01 49 [20:03:40]Write i2c OK [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: D1 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: D1 01 00 [20:03:40]MH_I2C_Read... [20:03:40]Read from MH i2c: D1 01 00 76 01 00 48 [20:03:40]Write to MH i2c: 01 00 00 77 01 78 [20:03:40]Write i2c OK [20:03:40]MH_I2C_Read... [20:03:41]*** Cut start [20:03:41]*** Partial cut [20:03:41]*** CUTSNS_PIN = 1 [20:03:41]*** CUTSNS_PIN = 0 [20:03:41]Connected sock=11 [20:03:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BF 6F 07 01 33 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 1B BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 26 42 01 00 35 04 06 00 AA 86 F8 9C 02 C0 73 03 68 FA 7C AF 7B 21 [20:03:41]*** Brake cut motor [20:03:42]Read from MH i2c: 01 [20:03:42]MH_I2C_Read... [20:03:42]*** Stop cut motor [20:03:42]*** Cut end [20:03:42]Read from MH i2c: 01 07 00 [20:03:42]MH_I2C_Read... [20:03:42]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [20:03:42]process_action close_receipt done [20:03:42]requested_data is exist [20:03:42]produce_requested_data [20:03:42]requested_item fm.sn is exist - process it [20:03:42]wFMCommunicate request_size=4 [20:03:42]MH_SAM_APDU [20:03:42]CAPDU: 80 11 00 00 [20:03:42]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [20:03:42]Write i2c OK [20:03:42]MH_I2C_Read... [20:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:42]Read from MH i2c: E2 [20:03:42]MH_I2C_Read... [20:03:42]Read from MH i2c: E2 17 00 [20:03:42]MH_I2C_Read... [20:03:42]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [20:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:03:42]wFMCommunicate OK [20:03:42]requested_item fd.num is exist - process it [20:03:42]SAM_PROTO_GetFieldsCounters [20:03:42]wFMCommunicate request_size=4 [20:03:42]MH_SAM_APDU [20:03:42]CAPDU: 80 13 00 00 [20:03:42]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [20:03:42]Write i2c OK [20:03:42]MH_I2C_Read... [20:03:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:42]Read from MH i2c: E2 [20:03:42]MH_I2C_Read... [20:03:42]Read from MH i2c: E2 62 00 [20:03:42]MH_I2C_Read... [20:03:42]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 26 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [20:03:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 26 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:42]wFMCommunicate OK [20:03:42]SAM_PROTO_GetFieldsCounters done [20:03:42]requested_item shift.num is exist - process it [20:03:42]requested_item shift.opened is exist - process it [20:03:42]req_shift_opened [20:03:42]FM_GetShiftState [20:03:42]SAM_PROTO_GetShiftState [20:03:42]wFMCommunicate request_size=4 [20:03:42]MH_SAM_APDU [20:03:42]CAPDU: 80 13 01 00 [20:03:42]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [20:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 9D 30 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 31 38 34 33 10 04 04 00 26 42 01 00 F4 03 04 00 55 64 12 67 B6 04 01 00 00 B3 26 10 BF F9 91 24 27 [20:03:42]CommunicateWithHost err = 0 [20:03:42]CheckOFDResponse [20:03:42]1017 (14) - 77093643461234 [20:03:42]1041 (16) - 0000000000871843 [20:03:42]1040 (4) - 82470 [20:03:42]1012 (4) - 18.10.2024 13:36 [20:03:42]1206 (1) - 0 [20:03:42]OFD Sender: Remove packet 82470 [20:03:42]ProducePacketName [20:03:42]name=ofd_packets/00082470 [20:03:42]NVStorageDeleteData [20:03:42]Write i2c OK [20:03:42]MH_I2C_Read... [20:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:42]Read from MH i2c: E2 [20:03:42]MH_I2C_Read... [20:03:42]Read from MH i2c: E2 0E 00 [20:03:42]MH_I2C_Read... [20:03:42]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CA [20:03:42]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:03:42]wFMCommunicate OK [20:03:42]SAM_PROTO_GetShiftState done [20:03:42]FM_GetShiftState done [20:03:42]req_shift_opened done [20:03:42]requested_item shift.open_date is exist - process it [20:03:42]req_shift_open_date [20:03:42]req_shift_open_date done [20:03:42]produce_requested_data done [20:03:42]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82470,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:03:42]process_action_free close_receipt [20:03:42]json_value_free [20:03:42]json_value_free done [20:03:42]process_json_proto returns [20:03:42]Send response to host [20:03:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82470,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:03:42]free response buf [20:03:42]execute_script done [20:03:42]execute_script returns [20:03:42]free content buf [20:03:42]Sock 9.Close socket [20:03:42]Sock 9.Thread stoped [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:31]accept exits with 7 [20:04:31]New connection [20:04:31]New thread 3066879332 created [20:04:31]Thread 3067022692 joined [20:04:31]Waiting for new connection... [20:04:31] Sock 7.Parse request [20:04:31]Sock 7.Check first char [20:04:31]Sock 7.First char is OK [20:04:31]request: POST /json_proto HTTP/1.0 [20:04:31]Method: POST [20:04:31]URL: /json_proto [20:04:31]Method is POST - this is cgi request [20:04:31]url: /json_proto [20:04:31]query_string will be loaded in cgi processing [20:04:31]execute_cgi json_proto POST (null) [20:04:31]execute_cgi path=json_proto method=POST [20:04:31]POST find Content-Length [20:04:31]Host: 172.17.44.67:8080 [20:04:31]Content-Length: 769 [20:04:31]Content-Type: application/json [20:04:31] [20:04:31]POST finish read [20:04:31]Found Content-Length = 769 [20:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918964", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:31]execute_script... [20:04: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)918964", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:31]POST & json_proto [20:04:31]process_json_proto [20:04:31]json parsed OK: [20:04:31]protocol is kg_v1.0 [20:04:31]action value=close_receipt [20:04:31]process_action close_receipt [20:04:31]cmd_close_receipt [20:04:31]MH_GetDate [20:04:31]Write to MH i2c: F0 00 00 7B 01 6B [20:04:31]Write i2c OK [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: F0 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: F0 09 00 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: F0 09 00 7B 01 00 50 BF 12 67 F1 C7 6B 64 83 [20:04:31]GetLastDocTimeStamp 1729281819 [20:04:31]current date 1729281872 [20:04:31]FM_GetShiftState [20:04:31]SAM_PROTO_GetShiftState [20:04:31]wFMCommunicate request_size=4 [20:04:31]MH_SAM_APDU [20:04:31]CAPDU: 80 13 01 00 [20:04:31]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [20:04:31]Write i2c OK [20:04:31]MH_I2C_Read... [20:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:31]Read from MH i2c: E2 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: E2 0E 00 [20:04:31]MH_I2C_Read... [20:04:31]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CC [20:04:31]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:04:31]wFMCommunicate OK [20:04:31]SAM_PROTO_GetShiftState done [20:04:31]FM_GetShiftState done [20:04:31]opened in 1729212319 [20:04:31]opened+sec_in_day 1729298719 [20:04:31]quantity*price = 100021 [20:04:31]sum+1 = 100023 [20:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 180 18.10.2024 20:04 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82471 ФПД: 38801563544176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200432&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82471&fm=38801563544176&tin=02508201610067®Number=0000000000091680&sum=100022 [20:04:32]StoreToDocumentArchive [20:04:32]shift 526 fd 82471 [20:04:32]save to /storage/0526/doc_00082471 [20:04:32]save last doc name /storage/0526/doc_00082471 to /storage/kkm_last_doc_name [20:04:32]save OK [20:04:32]Clear old archive folders... [20:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:32]tlvbuf is 01BF65C0 [20:04:32]SAM_PROTO_ClearQueue [20:04:32]wFMCommunicate request_size=4 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 09 00 00 [20:04:32]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:32]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [20:04:32]RAPDU: 90 00 [20:04:32]wFMCommunicate OK [20:04:32]SAM_PROTO_ClearQueue done [20:04:32]KKMCreateOFDPacket [20:04:32]OFDProtocolAddRootSTLVToBuf [20:04:32]FM_MakeSignedData [20:04:32]FM_MakeSignedData [20:04:32]SAM_PROTO_SignData [20:04:32]wFMCommunicate request_size=4 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 0D 01 02 [20:04:32]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:32]Read from MH i2c: E2 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 [20:04:32]MH_I2C_Read... [20:04:32]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [20:04:32]RAPDU: 90 00 [20:04:32]wFMCommunicate OK [20:04:32]wFMCommunicate request_size=255 [20:04:32]MH_SAM_APDU [20:04:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 50 BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 42 01 00 35 04 06 00 23 [20:04:32]Write to MH i2c: E2 02 01 8B 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 50 BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 42 01 00 35 04 06 00 23 00 00 B3 [20:04:32]Write i2c OK [20:04:32]MH_I2C_Read... [20:04:32]OFD Sender: No OFD packet to send [20:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:33]Read from MH i2c: E2 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 03 00 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [20:04:33]RAPDU: 90 00 [20:04:33]wFMCommunicate OK [20:04:33]wFMCommunicate request_size=10 [20:04:33]MH_SAM_APDU [20:04:33]CAPDU: 80 0D 02 02 05 4A 31 69 6A 70 [20:04:33]Write to MH i2c: E2 0D 00 8C 01 80 0D 02 02 05 00 4A 31 69 6A 70 00 00 CF [20:04:33]Write i2c OK [20:04:33]MH_I2C_Read... [20:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:33]Read from MH i2c: E2 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 03 00 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [20:04:33]RAPDU: 90 00 [20:04:33]wFMCommunicate OK [20:04:33]wFMCommunicate request_size=4 [20:04:33]MH_SAM_APDU [20:04:33]CAPDU: 80 0D 03 02 [20:04:33]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [20:04:33]Write i2c OK [20:04:33]MH_I2C_Read... [20:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:33]Read from MH i2c: E2 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 0B 00 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 0B 00 8D 01 00 3F 1B BB 43 80 A3 84 65 90 00 6E [20:04:33]RAPDU: 3F 1B BB 43 80 A3 84 65 90 00 [20:04:33]wFMCommunicate OK [20:04:33]SAM_PROTO_SignData done [20:04:33]FM_MakeSignedData done [20:04:33]CreateOFDProtocolMessage [20:04:33]wFMCommunicate request_size=4 [20:04:33]MH_SAM_APDU [20:04:33]CAPDU: 80 11 00 00 [20:04:33]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [20:04:33]Write i2c OK [20:04:33]MH_I2C_Read... [20:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:33]Read from MH i2c: E2 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 17 00 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5B [20:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:04:33]wFMCommunicate OK [20:04:33]CreateOFDProtocolMessage done [20:04:33]OFDSenderStorePacket 82471 [20:04:33]StoreOFDPacket docnum=82471 [20:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EC 56 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 50 BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 42 01 00 35 04 06 00 23 4A 31 69 6A 70 3F 1B BB 43 80 A3 84 65 [20:04:33]CheckFolder [20:04:33]dirname=/storage/ofd_packets [20:04:33]CheckFolder done [20:04:33]ProducePacketName [20:04:33]name=ofd_packets/00082471 [20:04:33]NVStorageSaveData ofd_packets/00082471 [20:04:33]File name is /storage/ofd_packets/00082471 [20:04:33]Write 301 bytes [20:04:33]NVStorageSaveData done [20:04:33]OFDSenderStorePacket done [20:04:33]KKMCreateOFDPacket done [20:04:33]NVStorageSaveData kkm_last_timestamp [20:04:33]File name is /storage/kkm_last_timestamp [20:04:33]Write 4 bytes [20:04:33]NVStorageSaveData done [20:04:33]ExternCall_PrintAddStr [20:04:33]wPrintStart [20:04:33]Write to MH i2c: 01 00 00 8F 01 90 [20:04:33]Write i2c OK [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: 01 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: 01 07 00 [20:04:33]MH_I2C_Read... [20:04:33]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [20:04:33]RasterBufferAndPrint [20:04:33]line Счет N : (1)918964 [20:04:33]line ИНН: 02508201610067 [20:04:33]line Контрольно-Кассовый Чек [20:04:33]line ПРОДАЖА [20:04:33]line ТРК (МРК, ГНК) : 12 [20:04:33]line Товар: 2710124500 [20:04:33]line Аи-95-К-5 [20:04:33]line 13.480 * 74.20 [20:04:33]line = 1000.22 [20:04:33]line НДС 12% НСП 1% [20:04:33]line > о реализуемом товаре [20:04:33]line ИТОГО: 1000.22 [20:04:33]line НСП 1% : 8.85 [20:04:33]line НДС 12% : 106.22 [20:04:33]line Наличными: 0.00 [20:04:33]line Безнал.: 1000.22 [20:04:33]line Место: АЗС № 114 "Партнер Нефть" [20:04:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:04:33]line СНО: Общий режим [20:04:33]line Чек 180 18.10.2024 20:04 [20:04:33]line Смена: 526 ФФД: 1.0 [20:04:33]line ЗНМ: 0300000086 [20:04:33]line РНМ: 0000000000091680 [20:04:33]line Версия ККМ: 001 [20:04:33]line Платежная система: Mbank [20:04:33]line ФМ: 0000000000871843 [20:04:33]line ФД: 82471 [20:04:33]line ФПД: 38801563544176 [20:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200432&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82471&fm=38801563544176&tin=02508201610067®Number=0000000000091680&sum=100022 [20:04:33]OFD Sender: Processing packet 82471 [packets to send 254, broken 253] [20:04:33]ProducePacketName [20:04:33]name=ofd_packets/00082471 [20:04:33]OFD Sender: To server: pG, [20:04:33]CommunicateWithHost lk.salyk.kg:30040 [20:04:33]ConnectInit lk.salyk.kg [20:04:33]written 0, free lines is 4095 [20:04:34]Write to MH i2c: 01 00 00 B8 01 B9 [20:04:34]Write i2c OK [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: 01 [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: 01 07 00 [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FB 0C C7 [20:04:34]RasterBufferAndPrint [20:04:34]line [20:04:34]line [20:04:34]line [20:04:34]line [20:04:34]line [20:04:34]written 0, free lines is 3326 [20:04:34]MH_Cut [20:04:34]Write to MH i2c: D1 01 00 BF 01 01 92 [20:04:34]Write i2c OK [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: D1 [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: D1 01 00 [20:04:34]MH_I2C_Read... [20:04:34]Read from MH i2c: D1 01 00 BF 01 00 91 [20:04:34]Write to MH i2c: 01 00 00 C0 01 C1 [20:04:34]Write i2c OK [20:04:34]MH_I2C_Read... [20:04:34]*** Cut start [20:04:34]*** Partial cut [20:04:34]*** CUTSNS_PIN = 1 [20:04:34]*** CUTSNS_PIN = 0 [20:04:35]*** Brake cut motor [20:04:35]Read from MH i2c: 01 [20:04:35]MH_I2C_Read... [20:04:35]*** Stop cut motor [20:04:35]*** Cut end [20:04:35]Read from MH i2c: 01 07 00 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 FF 0F D6 [20:04:35]process_action close_receipt done [20:04:35]requested_data is exist [20:04:35]produce_requested_data [20:04:35]requested_item fm.sn is exist - process it [20:04:35]wFMCommunicate request_size=4 [20:04:35]MH_SAM_APDU [20:04:35]CAPDU: 80 11 00 00 [20:04:35]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [20:04:35]Write i2c OK [20:04:35]MH_I2C_Read... [20:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:35]Read from MH i2c: E2 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 17 00 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8E [20:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:04:35]wFMCommunicate OK [20:04:35]requested_item fd.num is exist - process it [20:04:35]SAM_PROTO_GetFieldsCounters [20:04:35]wFMCommunicate request_size=4 [20:04:35]MH_SAM_APDU [20:04:35]CAPDU: 80 13 00 00 [20:04:35]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [20:04:35]Write i2c OK [20:04:35]MH_I2C_Read... [20:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:35]Read from MH i2c: E2 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 62 00 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 62 00 C2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 27 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 27 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:35]wFMCommunicate OK [20:04:35]SAM_PROTO_GetFieldsCounters done [20:04:35]requested_item shift.num is exist - process it [20:04:35]requested_item shift.opened is exist - process it [20:04:35]req_shift_opened [20:04:35]FM_GetShiftState [20:04:35]SAM_PROTO_GetShiftState [20:04:35]wFMCommunicate request_size=4 [20:04:35]MH_SAM_APDU [20:04:35]CAPDU: 80 13 01 00 [20:04:35]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [20:04:35]Write i2c OK [20:04:35]MH_I2C_Read... [20:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:35]Read from MH i2c: E2 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 0E 00 [20:04:35]MH_I2C_Read... [20:04:35]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 13 [20:04:35]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:04:35]wFMCommunicate OK [20:04:35]SAM_PROTO_GetShiftState done [20:04:35]FM_GetShiftState done [20:04:35]req_shift_opened done [20:04:35]requested_item shift.open_date is exist - process it [20:04:35]req_shift_open_date [20:04:35]req_shift_open_date done [20:04:35]produce_requested_data done [20:04:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82471,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:04:35]process_action_free close_receipt [20:04:35]json_value_free [20:04:35]json_value_free done [20:04:35]process_json_proto returns [20:04:35]Send response to host [20:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82471,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:04:35]free response buf [20:04:35]execute_script done [20:04:35]execute_script returns [20:04:35]free content buf [20:04:35]Sock 7.Close socket [20:04:35]Sock 7.Thread stoped [20:04:36]Connected sock=11 [20:04:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 EC 56 07 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 50 BF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 42 01 00 35 04 06 00 23 4A 31 69 6A 70 3F 1B BB 43 80 A3 84 65 [20:04:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5D D2 47 00 F5 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 27 42 01 00 F4 03 04 00 8C 64 12 67 B6 04 01 00 00 6C A4 B1 AF C2 CF 82 62 [20:04:36]CommunicateWithHost err = 0 [20:04:36]CheckOFDResponse [20:04:36]1017 (14) - 77093643461234 [20:04:36]1041 (16) - 0000000000871843 [20:04:36]1040 (4) - 82471 [20:04:36]1012 (4) - 18.10.2024 13:37 [20:04:36]1206 (1) - 0 [20:04:36]OFD Sender: Remove packet 82471 [20:04:36]ProducePacketName [20:04:36]name=ofd_packets/00082471 [20:04:36]NVStorageDeleteData [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:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:49]accept exits with 9 [20:09:49]New connection [20:09:49]New thread 3067022692 created [20:09:49]Thread 3066879332 joined [20:09:49]Waiting for new connection... [20:09:49] Sock 9.Parse request [20:09:49]Sock 9.Check first char [20:09:49]Sock 9.First char is OK [20:09:49]request: POST /json_proto HTTP/1.0 [20:09:49]Method: POST [20:09:49]URL: /json_proto [20:09:49]Method is POST - this is cgi request [20:09:49]url: /json_proto [20:09:49]query_string will be loaded in cgi processing [20:09:49]execute_cgi json_proto POST (null) [20:09:49]execute_cgi path=json_proto method=POST [20:09:49]POST find Content-Length [20:09:49]Host: 172.17.44.67:8080 [20:09:49]Content-Length: 799 [20:09:49]Content-Type: application/json [20:09:49] [20:09:49]POST finish read [20:09:49]Found Content-Length = 799 [20:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 2.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:49]execute_script... [20: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)918965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 2.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582550", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:49]POST & json_proto [20:09:49]process_json_proto [20:09:49]json parsed OK: [20:09:49]protocol is kg_v1.0 [20:09:49]action value=close_receipt [20:09:49]process_action close_receipt [20:09:49]cmd_close_receipt [20:09:49]MH_GetDate [20:09:49]Write to MH i2c: F0 00 00 C4 01 B4 [20:09:49]Write i2c OK [20:09:49]MH_I2C_Read... [20:09:49]Read from MH i2c: F0 [20:09:49]MH_I2C_Read... [20:09:49]Read from MH i2c: F0 09 00 [20:09:49]MH_I2C_Read... [20:09:49]Read from MH i2c: F0 09 00 C4 01 00 8E C0 12 67 F1 C7 6B 64 0B [20:09:49]GetLastDocTimeStamp 1729281872 [20:09:49]current date 1729282190 [20:09:49]FM_GetShiftState [20:09:49]SAM_PROTO_GetShiftState [20:09:49]wFMCommunicate request_size=4 [20:09:49]MH_SAM_APDU [20:09:49]CAPDU: 80 13 01 00 [20:09:49]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [20:09:49]Write i2c OK [20:09:49]MH_I2C_Read... [20:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:49]Read from MH i2c: E2 [20:09:49]MH_I2C_Read... [20:09:49]Read from MH i2c: E2 0E 00 [20:09:49]MH_I2C_Read... [20:09:49]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 15 [20:09:49]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:09:49]wFMCommunicate OK [20:09:49]SAM_PROTO_GetShiftState done [20:09:49]FM_GetShiftState done [20:09:49]opened in 1729212319 [20:09:49]opened+sec_in_day 1729298719 [20:09:49]quantity*price = 0 [20:09:49]sum+1 = 1 [20:09:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 181 18.10.2024 20:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 4582550 ФМ: 0000000000871843 ФД: 82472 ФПД: 70531474536858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200950&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82472&fm=70531474536858&tin=02508201610067®Number=0000000000091680&sum=0 [20:09:50]StoreToDocumentArchive [20:09:50]shift 526 fd 82472 [20:09:50]save to /storage/0526/doc_00082472 [20:09:50]save last doc name /storage/0526/doc_00082472 to /storage/kkm_last_doc_name [20:09:50]save OK [20:09:50]Clear old archive folders... [20:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:50]tlvbuf is 01B8FC10 [20:09:50]SAM_PROTO_ClearQueue [20:09:50]wFMCommunicate request_size=4 [20:09:50]MH_SAM_APDU [20:09:50]CAPDU: 80 09 00 00 [20:09:50]Write to MH i2c: E2 08 00 D2 01 80 09 00 00 00 00 00 00 45 [20:09:50]Write i2c OK [20:09:50]MH_I2C_Read... [20:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:51]Read from MH i2c: E2 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [20:09:51]RAPDU: 90 00 [20:09:51]wFMCommunicate OK [20:09:51]SAM_PROTO_ClearQueue done [20:09:51]KKMCreateOFDPacket [20:09:51]OFDProtocolAddRootSTLVToBuf [20:09:51]FM_MakeSignedData [20:09:51]FM_MakeSignedData [20:09:51]SAM_PROTO_SignData [20:09:51]wFMCommunicate request_size=4 [20:09:51]MH_SAM_APDU [20:09:51]CAPDU: 80 0D 01 02 [20:09:51]Write to MH i2c: E2 08 00 D3 01 80 0D 01 02 00 00 00 00 4D [20:09:51]Write i2c OK [20:09:51]MH_I2C_Read... [20:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:51]Read from MH i2c: E2 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [20:09:51]RAPDU: 90 00 [20:09:51]wFMCommunicate OK [20:09:51]wFMCommunicate request_size=255 [20:09:51]MH_SAM_APDU [20:09: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 34 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 8E C0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 42 01 00 35 04 06 00 40 [20:09:51]Write to MH i2c: E2 02 01 D4 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 34 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 8E C0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 42 01 00 35 04 06 00 40 00 00 12 [20:09:51]Write i2c OK [20:09:51]MH_I2C_Read... [20:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:51]Read from MH i2c: E2 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [20:09:51]RAPDU: 90 00 [20:09:51]wFMCommunicate OK [20:09:51]wFMCommunicate request_size=10 [20:09:51]MH_SAM_APDU [20:09:51]CAPDU: 80 0D 02 02 05 25 E3 7C 39 9A [20:09:51]Write to MH i2c: E2 0D 00 D5 01 80 0D 02 02 05 00 25 E3 7C 39 9A 00 00 B1 [20:09:51]Write i2c OK [20:09:51]MH_I2C_Read... [20:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:51]Read from MH i2c: E2 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [20:09:51]RAPDU: 90 00 [20:09:51]wFMCommunicate OK [20:09:51]wFMCommunicate request_size=4 [20:09:51]MH_SAM_APDU [20:09:51]CAPDU: 80 0D 03 02 [20:09:51]Write to MH i2c: E2 08 00 D6 01 80 0D 03 02 00 00 00 00 52 [20:09:51]Write i2c OK [20:09:51]MH_I2C_Read... [20:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:51]Read from MH i2c: E2 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 0B 00 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 0B 00 D6 01 00 DC 17 29 F1 39 13 B3 58 90 00 B7 [20:09:51]RAPDU: DC 17 29 F1 39 13 B3 58 90 00 [20:09:51]wFMCommunicate OK [20:09:51]SAM_PROTO_SignData done [20:09:51]FM_MakeSignedData done [20:09:51]CreateOFDProtocolMessage [20:09:51]wFMCommunicate request_size=4 [20:09:51]MH_SAM_APDU [20:09:51]CAPDU: 80 11 00 00 [20:09:51]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [20:09:51]Write i2c OK [20:09:51]MH_I2C_Read... [20:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:51]Read from MH i2c: E2 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 17 00 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A4 [20:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:09:51]wFMCommunicate OK [20:09:51]CreateOFDProtocolMessage done [20:09:51]OFDSenderStorePacket 82472 [20:09:51]StoreOFDPacket docnum=82472 [20:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2A EE 07 01 DC 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 34 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 8E C0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 42 01 00 35 04 06 00 40 25 E3 7C 39 9A DC 17 29 F1 39 13 B3 58 [20:09:51]CheckFolder [20:09:51]dirname=/storage/ofd_packets [20:09:51]CheckFolder done [20:09:51]ProducePacketName [20:09:51]name=ofd_packets/00082472 [20:09:51]NVStorageSaveData ofd_packets/00082472 [20:09:51]File name is /storage/ofd_packets/00082472 [20:09:51]Write 301 bytes [20:09:51]NVStorageSaveData done [20:09:51]OFDSenderStorePacket done [20:09:51]KKMCreateOFDPacket done [20:09:51]NVStorageSaveData kkm_last_timestamp [20:09:51]File name is /storage/kkm_last_timestamp [20:09:51]Write 4 bytes [20:09:51]NVStorageSaveData done [20:09:51]ExternCall_PrintAddStr [20:09:51]wPrintStart [20:09:51]Write to MH i2c: 01 00 00 D8 01 D9 [20:09:51]Write i2c OK [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: 01 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: 01 07 00 [20:09:51]MH_I2C_Read... [20:09:51]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [20:09:51]RasterBufferAndPrint [20:09:51]line Счет N : (1)918965 [20:09:51]line ИНН: 02508201610067 [20:09:51]line Контрольно-Кассовый Чек [20:09:51]line ПРОДАЖА [20:09:51]line ТРК (МРК, ГНК) : 11 [20:09:51]line Товар: 2710124130 [20:09:51]line Аи-92-К-4 [20:09:51]line 2.430 * 0.00 [20:09:51]line = 0.00 [20:09:51]line НДС 12% НСП 1% [20:09:51]line > о реализуемом товаре [20:09:51]line ИТОГО: 0.00 [20:09:51]line НСП 1% : 0.00 [20:09:51]line НДС 12% : 0.00 [20:09:51]line Наличными: 0.00 [20:09:51]line Безнал.: 0.00 [20:09:51]line Место: АЗС № 114 "Партнер Нефть" [20:09:51]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:09:51]line СНО: Общий режим [20:09:51]line Чек 181 18.10.2024 20:09 [20:09:51]line Смена: 526 ФФД: 1.0 [20:09:51]line ЗНМ: 0300000086 [20:09:51]line РНМ: 0000000000091680 [20:09:51]line Версия ККМ: 001 [20:09:51]line Талоны: Топливные Талоны [20:09:51]line 4582550 [20:09:51]line ФМ: 0000000000871843 [20:09:51]line ФД: 82472 [20:09:51]line ФПД: 70531474536858 [20:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200950&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82472&fm=70531474536858&tin=02508201610067®Number=0000000000091680&sum=0 [20:09:51]written 0, free lines is 4095 [20:09:51]OFD Sender: Processing packet 82472 [packets to send 254, broken 253] [20:09:51]ProducePacketName [20:09:51]name=ofd_packets/00082472 [20:09:51]OFD Sender: To server: pG, [20:09:51]CommunicateWithHost lk.salyk.kg:30040 [20:09:51]ConnectInit lk.salyk.kg [20:09:52]Write to MH i2c: 01 00 00 02 02 04 [20:09:52]Write i2c OK [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: 01 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: 01 07 00 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 E2 0C F9 [20:09:52]RasterBufferAndPrint [20:09:52]line [20:09:52]line [20:09:52]line [20:09:52]line [20:09:52]line [20:09:52]written 0, free lines is 3304 [20:09:52]MH_Cut [20:09:52]Write to MH i2c: D1 01 00 09 02 01 DD [20:09:52]Write i2c OK [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: D1 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: D1 01 00 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: D1 01 00 09 02 00 DC [20:09:52]Write to MH i2c: 01 00 00 0A 02 0C [20:09:52]Write i2c OK [20:09:52]MH_I2C_Read... [20:09:52]Connected sock=10 [20:09:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 2A EE 07 01 DC 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 34 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 8E C0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 42 01 00 35 04 06 00 40 25 E3 7C 39 9A DC 17 29 F1 39 13 B3 58 [20:09:53]*** Cut start [20:09:53]*** Partial cut [20:09:53]*** CUTSNS_PIN = 1 [20:09:53]*** CUTSNS_PIN = 0 [20:09:53]*** Brake cut motor [20:09:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 95 6D 47 00 75 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 28 42 01 00 F4 03 04 00 C8 65 12 67 B6 04 01 00 00 48 9C E1 3C DF 4B A3 42 [20:09:53]CommunicateWithHost err = 0 [20:09:53]CheckOFDResponse [20:09:53]1017 (14) - 77093643461234 [20:09:53]1041 (16) - 0000000000871843 [20:09:53]1040 (4) - 82472 [20:09:53]1012 (4) - 18.10.2024 13:42 [20:09:53]1206 (1) - 0 [20:09:53]OFD Sender: Remove packet 82472 [20:09:53]ProducePacketName [20:09:53]name=ofd_packets/00082472 [20:09:53]NVStorageDeleteData [20:09:53]Read from MH i2c: 01 [20:09:53]MH_I2C_Read... [20:09:53]*** Stop cut motor [20:09:53]*** Cut end [20:09:53]Read from MH i2c: 01 07 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [20:09:53]process_action close_receipt done [20:09:53]requested_data is exist [20:09:53]produce_requested_data [20:09:53]requested_item fm.sn is exist - process it [20:09:53]wFMCommunicate request_size=4 [20:09:53]MH_SAM_APDU [20:09:53]CAPDU: 80 11 00 00 [20:09:53]Write to MH i2c: E2 08 00 0B 02 80 11 00 00 00 00 00 00 87 [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:53]Read from MH i2c: E2 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 17 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 17 00 0B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D9 [20:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:09:53]wFMCommunicate OK [20:09:53]requested_item fd.num is exist - process it [20:09:53]SAM_PROTO_GetFieldsCounters [20:09:53]wFMCommunicate request_size=4 [20:09:53]MH_SAM_APDU [20:09:53]CAPDU: 80 13 00 00 [20:09:53]Write to MH i2c: E2 08 00 0C 02 80 13 00 00 00 00 00 00 8A [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:53]Read from MH i2c: E2 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 62 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 62 00 0C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 28 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [20: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 28 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:53]wFMCommunicate OK [20:09:53]SAM_PROTO_GetFieldsCounters done [20:09:53]requested_item shift.num is exist - process it [20:09:53]requested_item shift.opened is exist - process it [20:09:53]req_shift_opened [20:09:53]FM_GetShiftState [20:09:53]SAM_PROTO_GetShiftState [20:09:53]wFMCommunicate request_size=4 [20:09:53]MH_SAM_APDU [20:09:53]CAPDU: 80 13 01 00 [20:09:53]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [20:09:53]OFD Sender: No OFD packet to send [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:53]Read from MH i2c: E2 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 0E 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 5E [20:09:53]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:09:53]wFMCommunicate OK [20:09:53]SAM_PROTO_GetShiftState done [20:09:53]FM_GetShiftState done [20:09:53]req_shift_opened done [20:09:53]requested_item shift.open_date is exist - process it [20:09:53]req_shift_open_date [20:09:53]req_shift_open_date done [20:09:53]produce_requested_data done [20:09:53]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82472,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:09:53]process_action_free close_receipt [20:09:53]json_value_free [20:09:53]json_value_free done [20:09:53]process_json_proto returns [20:09:53]Send response to host [20:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82472,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:09:53]free response buf [20:09:53]execute_script done [20:09:53]execute_script returns [20:09:53]free content buf [20:09:53]Sock 9.Close socket [20:09:53]Sock 9.Thread stoped [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]accept exits with 7 [20:11:44]New connection [20:11:44]New thread 3066879332 created [20:11:44]Thread 3067022692 joined [20:11:44]Waiting for new connection... [20:11:44] Sock 7.Parse request [20:11:44]Sock 7.Check first char [20:11:44]Sock 7.First char is OK [20:11:44]request: POST /json_proto HTTP/1.0 [20:11:44]Method: POST [20:11:44]URL: /json_proto [20:11:44]Method is POST - this is cgi request [20:11:44]url: /json_proto [20:11:44]query_string will be loaded in cgi processing [20:11:44]execute_cgi json_proto POST (null) [20:11:44]execute_cgi path=json_proto method=POST [20:11:44]POST find Content-Length [20:11:44]Host: 172.17.44.67:8080 [20:11:44]Content-Length: 682 [20:11:44]Content-Type: application/json [20:11:44] [20:11:44]POST finish read [20:11:44]Found Content-Length = 682 [20:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:44]execute_script... [20:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:44]POST & json_proto [20:11:44]process_json_proto [20:11:44]json parsed OK: [20:11:44]protocol is kg_v1.0 [20:11:44]action value=close_receipt [20:11:44]process_action close_receipt [20:11:44]cmd_close_receipt [20:11:44]MH_GetDate [20:11:44]Write to MH i2c: F0 00 00 0E 02 FF [20:11:44]Write i2c OK [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: F0 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: F0 09 00 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: F0 09 00 0E 02 00 00 C1 12 67 F1 C7 6B 64 C9 [20:11:44]GetLastDocTimeStamp 1729282190 [20:11:44]current date 1729282304 [20:11:44]FM_GetShiftState [20:11:44]SAM_PROTO_GetShiftState [20:11:44]wFMCommunicate request_size=4 [20:11:44]MH_SAM_APDU [20:11:44]CAPDU: 80 13 01 00 [20:11:44]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [20:11:44]Write i2c OK [20:11:44]MH_I2C_Read... [20:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:44]Read from MH i2c: E2 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: E2 0E 00 [20:11:44]MH_I2C_Read... [20:11:44]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 60 [20:11:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:11:44]wFMCommunicate OK [20:11:44]SAM_PROTO_GetShiftState done [20:11:44]FM_GetShiftState done [20:11:44]opened in 1729212319 [20:11:44]opened+sec_in_day 1729298719 [20:11:44]quantity*price = 120018 [20:11:44]sum+1 = 120020 [20:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 182 18.10.2024 20:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82473 ФПД: 57770780976557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201144&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82473&fm=57770780976557&tin=02508201610067®Number=0000000000091680&sum=120000 [20:11:45]StoreToDocumentArchive [20:11:45]shift 526 fd 82473 [20:11:45]save to /storage/0526/doc_00082473 [20:11:45]save last doc name /storage/0526/doc_00082473 to /storage/kkm_last_doc_name [20:11:45]save OK [20:11:45]Clear old archive folders... [20:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:45]tlvbuf is 01BF9CF0 [20:11:45]SAM_PROTO_ClearQueue [20:11:45]wFMCommunicate request_size=4 [20:11:45]MH_SAM_APDU [20:11:45]CAPDU: 80 09 00 00 [20:11:45]Write to MH i2c: E2 08 00 1C 02 80 09 00 00 00 00 00 00 90 [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:45]Read from MH i2c: E2 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [20:11:45]RAPDU: 90 00 [20:11:45]wFMCommunicate OK [20:11:45]SAM_PROTO_ClearQueue done [20:11:45]KKMCreateOFDPacket [20:11:45]OFDProtocolAddRootSTLVToBuf [20:11:45]FM_MakeSignedData [20:11:45]FM_MakeSignedData [20:11:45]SAM_PROTO_SignData [20:11:45]wFMCommunicate request_size=4 [20:11:45]MH_SAM_APDU [20:11:45]CAPDU: 80 0D 01 02 [20:11:45]Write to MH i2c: E2 08 00 1D 02 80 0D 01 02 00 00 00 00 98 [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:45]Read from MH i2c: E2 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [20:11:45]RAPDU: 90 00 [20:11:45]wFMCommunicate OK [20:11:45]wFMCommunicate request_size=255 [20:11:45]MH_SAM_APDU [20:11:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 C1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 42 01 00 35 04 06 00 34 [20:11:45]Write to MH i2c: E2 02 01 1E 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 C1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 42 01 00 35 04 06 00 34 00 00 CB [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:45]Read from MH i2c: E2 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [20:11:45]RAPDU: 90 00 [20:11:45]wFMCommunicate OK [20:11:45]wFMCommunicate request_size=10 [20:11:45]MH_SAM_APDU [20:11:45]CAPDU: 80 0D 02 02 05 8A CE E0 E5 AD [20:11:45]Write to MH i2c: E2 0D 00 1F 02 80 0D 02 02 05 00 8A CE E0 E5 AD 00 00 6F [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:45]Read from MH i2c: E2 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [20:11:45]RAPDU: 90 00 [20:11:45]wFMCommunicate OK [20:11:45]wFMCommunicate request_size=4 [20:11:45]MH_SAM_APDU [20:11:45]CAPDU: 80 0D 03 02 [20:11:45]Write to MH i2c: E2 08 00 20 02 80 0D 03 02 00 00 00 00 9D [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:45]Read from MH i2c: E2 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 0B 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 0B 00 20 02 00 7A CC 88 F5 55 B1 B5 A0 90 00 BC [20:11:45]RAPDU: 7A CC 88 F5 55 B1 B5 A0 90 00 [20:11:45]wFMCommunicate OK [20:11:45]SAM_PROTO_SignData done [20:11:45]FM_MakeSignedData done [20:11:45]CreateOFDProtocolMessage [20:11:45]wFMCommunicate request_size=4 [20:11:45]MH_SAM_APDU [20:11:45]CAPDU: 80 11 00 00 [20:11:45]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:45]Read from MH i2c: E2 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 17 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 EF [20:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:11:45]wFMCommunicate OK [20:11:45]CreateOFDProtocolMessage done [20:11:45]OFDSenderStorePacket 82473 [20:11:45]StoreOFDPacket docnum=82473 [20:11:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 74 13 07 01 1F 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 C1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 42 01 00 35 04 06 00 34 8A CE E0 E5 AD 7A CC 88 F5 55 B1 B5 A0 [20:11:45]CheckFolder [20:11:45]dirname=/storage/ofd_packets [20:11:45]CheckFolder done [20:11:45]ProducePacketName [20:11:45]name=ofd_packets/00082473 [20:11:45]NVStorageSaveData ofd_packets/00082473 [20:11:45]File name is /storage/ofd_packets/00082473 [20:11:45]Write 301 bytes [20:11:45]NVStorageSaveData done [20:11:45]OFDSenderStorePacket done [20:11:45]KKMCreateOFDPacket done [20:11:45]NVStorageSaveData kkm_last_timestamp [20:11:45]File name is /storage/kkm_last_timestamp [20:11:45]Write 4 bytes [20:11:45]NVStorageSaveData done [20:11:45]ExternCall_PrintAddStr [20:11:45]wPrintStart [20:11:45]Write to MH i2c: 01 00 00 22 02 24 [20:11:45]Write i2c OK [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 07 00 [20:11:45]MH_I2C_Read... [20:11:45]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [20:11:45]RasterBufferAndPrint [20:11:45]line Счет N : (1)918966 [20:11:45]line ИНН: 02508201610067 [20:11:45]line Контрольно-Кассовый Чек [20:11:45]line ПРОДАЖА [20:11:45]line ТРК (МРК, ГНК) : 22 [20:11:45]line Товар: 2710124130 [20:11:45]line Аи-92-К-4 [20:11:45]line 17.940 * 66.90 [20:11:45]line = 1200.19 [20:11:45]line НДС 12% НСП 1% [20:11:45]line > о реализуемом товаре [20:11:45]line ОКРУГЛЕНИЕ: -0.19 [20:11:45]line ИТОГО: 1200.00 [20:11:45]line Внесено: 1200.00 [20:11:45]line СДАЧА: 0.00 [20:11:45]line НСП 1% : 10.62 [20:11:45]line НДС 12% : 127.45 [20:11:45]line Наличными: 1200.00 [20:11:45]line Безнал.: 0.00 [20:11:45]line Место: АЗС № 114 "Партнер Нефть" [20:11:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:11:45]line СНО: Общий режим [20:11:45]line Чек 182 18.10.2024 20:11 [20:11:45]line Смена: 526 ФФД: 1.0 [20:11:45]line ЗНМ: 0300000086 [20:11:45]line РНМ: 0000000000091680 [20:11:45]line Версия ККМ: 001 [20:11:45]line ФМ: 0000000000871843 [20:11:45]line ФД: 82473 [20:11:45]line ФПД: 57770780976557 [20:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201144&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82473&fm=57770780976557&tin=02508201610067®Number=0000000000091680&sum=120000 [20:11:46]OFD Sender: Processing packet 82473 [packets to send 254, broken 253] [20:11:46]ProducePacketName [20:11:46]name=ofd_packets/00082473 [20:11:46]OFD Sender: To server: pG, [20:11:46]CommunicateWithHost lk.salyk.kg:30040 [20:11:46]ConnectInit lk.salyk.kg [20:11:46]written 0, free lines is 4095 [20:11:46]Write to MH i2c: 01 00 00 4D 02 4F [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: 01 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: 01 07 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 D0 0C 32 [20:11:46]RasterBufferAndPrint [20:11:46]line [20:11:46]line [20:11:46]line [20:11:46]line [20:11:46]line [20:11:46]written 0, free lines is 3284 [20:11:46]MH_Cut [20:11:46]Write to MH i2c: D1 01 00 54 02 01 28 [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: D1 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: D1 01 00 [20:11:46]MH_I2C_Read... [20:11:46]Read from MH i2c: D1 01 00 54 02 00 27 [20:11:46]Write to MH i2c: 01 00 00 55 02 57 [20:11:46]Write i2c OK [20:11:46]MH_I2C_Read... [20:11:47]*** Cut start [20:11:47]*** Partial cut [20:11:47]*** CUTSNS_PIN = 1 [20:11:47]*** CUTSNS_PIN = 0 [20:11:47]*** Brake cut motor [20:11:47]Read from MH i2c: 01 [20:11:47]MH_I2C_Read... [20:11:47]*** Stop cut motor [20:11:47]*** Cut end [20:11:47]Read from MH i2c: 01 07 00 [20:11:47]MH_I2C_Read... [20:11:47]Connected sock=11 [20: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 31 38 34 33 0F 01 00 00 74 13 07 01 1F 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 34 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 00 C1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 42 01 00 35 04 06 00 34 8A CE E0 E5 AD 7A CC 88 F5 55 B1 B5 A0 [20:11:47]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [20:11:47]process_action close_receipt done [20:11:47]requested_data is exist [20:11:47]produce_requested_data [20:11:47]requested_item fm.sn is exist - process it [20:11:47]wFMCommunicate request_size=4 [20:11:47]MH_SAM_APDU [20:11:47]CAPDU: 80 11 00 00 [20:11:47]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:47]Read from MH i2c: E2 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: E2 17 00 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 24 [20:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:11:47]wFMCommunicate OK [20:11:47]requested_item fd.num is exist - process it [20:11:47]SAM_PROTO_GetFieldsCounters [20:11:47]wFMCommunicate request_size=4 [20:11:47]MH_SAM_APDU [20:11:47]CAPDU: 80 13 00 00 [20:11:47]Write to MH i2c: E2 08 00 57 02 80 13 00 00 00 00 00 00 D5 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 62 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 62 00 57 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 29 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [20:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 29 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:48]wFMCommunicate OK [20:11:48]SAM_PROTO_GetFieldsCounters done [20:11:48]requested_item shift.num is exist - process it [20:11:48]requested_item shift.opened is exist - process it [20:11:48]req_shift_opened [20:11:48]FM_GetShiftState [20:11:48]SAM_PROTO_GetShiftState [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 13 01 00 [20:11:48]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 0E 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A9 [20:11:48]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:11:48]wFMCommunicate OK [20:11:48]SAM_PROTO_GetShiftState done [20:11:48]FM_GetShiftState done [20:11:48]req_shift_opened done [20:11:48]requested_item shift.open_date is exist - process it [20:11:48]req_shift_open_date [20:11:48]req_shift_open_date done [20:11:48]produce_requested_data done [20:11:48]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82473,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:11:48]process_action_free close_receipt [20:11:48]json_value_free [20:11:48]json_value_free done [20:11:48]process_json_proto returns [20:11:48]Send response to host [20:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82473,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:11:48]free response buf [20:11:48]execute_script done [20:11:48]execute_script returns [20:11:48]free content buf [20:11:48]Sock 7.Close socket [20:11:48]Sock 7.Thread stoped [20:11:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 5D 8D 47 00 8D B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 29 42 01 00 F4 03 04 00 3C 66 12 67 B6 04 01 00 00 36 09 4C 36 6D 96 10 3C [20:11:48]CommunicateWithHost err = 0 [20:11:48]CheckOFDResponse [20:11:48]1017 (14) - 77093643461234 [20:11:48]1041 (16) - 0000000000871843 [20:11:48]1040 (4) - 82473 [20:11:48]1012 (4) - 18.10.2024 13:44 [20:11:48]1206 (1) - 0 [20:11:48]OFD Sender: Remove packet 82473 [20:11:48]ProducePacketName [20:11:48]name=ofd_packets/00082473 [20:11:48]NVStorageDeleteData [20:11:49]OFD Sender: No OFD packet to send [20:11:50]recv_with_timeout no data received [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:01]recv_with_timeout no data received [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:12]recv_with_timeout no data received [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]recv_with_timeout no data received [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:16]accept exits with 9 [20:31:16]New connection [20:31:16]New thread 3067022692 created [20:31:16]Thread 3066879332 joined [20:31:16]Waiting for new connection... [20:31:16] Sock 9.Parse request [20:31:16]Sock 9.Check first char [20:31:16]Sock 9.First char is OK [20:31:16]request: POST /json_proto HTTP/1.0 [20:31:16]Method: POST [20:31:16]URL: /json_proto [20:31:16]Method is POST - this is cgi request [20:31:16]url: /json_proto [20:31:16]query_string will be loaded in cgi processing [20:31:16]execute_cgi json_proto POST (null) [20:31:16]execute_cgi path=json_proto method=POST [20:31:16]POST find Content-Length [20:31:16]Host: 172.17.44.67:8080 [20:31:16]Content-Length: 682 [20:31:16]Content-Type: application/json [20:31:16] [20:31:16]POST finish read [20:31:16]Found Content-Length = 682 [20:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918968", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:16]execute_script... [20:31: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)918968", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:16]POST & json_proto [20:31:16]process_json_proto [20:31:16]json parsed OK: [20:31:16]protocol is kg_v1.0 [20:31:16]action value=close_receipt [20:31:16]process_action close_receipt [20:31:16]cmd_close_receipt [20:31:16]MH_GetDate [20:31:16]Write to MH i2c: F0 00 00 59 02 4A [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: F0 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: F0 09 00 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: F0 09 00 59 02 00 95 C5 12 67 F1 C7 6B 64 AD [20:31:16]GetLastDocTimeStamp 1729282304 [20:31:16]current date 1729283477 [20:31:16]FM_GetShiftState [20:31:16]SAM_PROTO_GetShiftState [20:31:16]wFMCommunicate request_size=4 [20:31:16]MH_SAM_APDU [20:31:16]CAPDU: 80 13 01 00 [20:31:16]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:16]Read from MH i2c: E2 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 0E 00 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AB [20:31:16]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:31:16]wFMCommunicate OK [20:31:16]SAM_PROTO_GetShiftState done [20:31:16]FM_GetShiftState done [20:31:16]opened in 1729212319 [20:31:16]opened+sec_in_day 1729298719 [20:31:16]quantity*price = 100021 [20:31:16]sum+1 = 100023 [20:31:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 183 18.10.2024 20:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82474 ФПД: 186542002057577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T203117&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82474&fm=186542002057577&tin=02508201610067®Number=0000000000091680&sum=100000 [20:31:17]StoreToDocumentArchive [20:31:17]shift 526 fd 82474 [20:31:17]save to /storage/0526/doc_00082474 [20:31:17]save last doc name /storage/0526/doc_00082474 to /storage/kkm_last_doc_name [20:31:17]save OK [20:31:17]Clear old archive folders... [20:31:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:17]tlvbuf is 01BF9230 [20:31:17]SAM_PROTO_ClearQueue [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 09 00 00 [20:31:17]Write to MH i2c: E2 08 00 67 02 80 09 00 00 00 00 00 00 DB [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]SAM_PROTO_ClearQueue done [20:31:17]KKMCreateOFDPacket [20:31:17]OFDProtocolAddRootSTLVToBuf [20:31:17]FM_MakeSignedData [20:31:17]FM_MakeSignedData [20:31:17]SAM_PROTO_SignData [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 0D 01 02 [20:31:17]Write to MH i2c: E2 08 00 68 02 80 0D 01 02 00 00 00 00 E3 [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]wFMCommunicate request_size=255 [20:31:17]MH_SAM_APDU [20:31: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 42 01 00 35 04 06 00 A9 [20:31:17]Write to MH i2c: E2 02 01 69 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 42 01 00 35 04 06 00 A9 00 00 3D [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]wFMCommunicate request_size=10 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 0D 02 02 05 A8 B1 C4 B1 69 [20:31:17]Write to MH i2c: E2 0D 00 6A 02 80 0D 02 02 05 00 A8 B1 C4 B1 69 00 00 27 [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 0D 03 02 [20:31:17]Write to MH i2c: E2 08 00 6B 02 80 0D 03 02 00 00 00 00 E8 [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 0B 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 0B 00 6B 02 00 9F 29 0C C1 5E 5B 3A A2 90 00 13 [20:31:17]RAPDU: 9F 29 0C C1 5E 5B 3A A2 90 00 [20:31:17]wFMCommunicate OK [20:31:17]SAM_PROTO_SignData done [20:31:17]FM_MakeSignedData done [20:31:17]CreateOFDProtocolMessage [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 11 00 00 [20:31:17]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 17 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3A [20:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:31:17]wFMCommunicate OK [20:31:17]CreateOFDProtocolMessage done [20:31:17]OFDSenderStorePacket 82474 [20:31:17]StoreOFDPacket docnum=82474 [20:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 15 4D 07 01 7B 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 42 01 00 35 04 06 00 A9 A8 B1 C4 B1 69 9F 29 0C C1 5E 5B 3A A2 [20:31:17]CheckFolder [20:31:17]dirname=/storage/ofd_packets [20:31:17]CheckFolder done [20:31:17]ProducePacketName [20:31:17]name=ofd_packets/00082474 [20:31:17]NVStorageSaveData ofd_packets/00082474 [20:31:17]File name is /storage/ofd_packets/00082474 [20:31:17]Write 301 bytes [20:31:17]NVStorageSaveData done [20:31:17]OFDSenderStorePacket done [20:31:17]KKMCreateOFDPacket done [20:31:17]NVStorageSaveData kkm_last_timestamp [20:31:17]File name is /storage/kkm_last_timestamp [20:31:17]Write 4 bytes [20:31:17]NVStorageSaveData done [20:31:17]ExternCall_PrintAddStr [20:31:17]wPrintStart [20:31:17]Write to MH i2c: 01 00 00 6D 02 6F [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: 01 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: 01 07 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [20:31:17]RasterBufferAndPrint [20:31:17]line Счет N : (1)918968 [20:31:17]line ИНН: 02508201610067 [20:31:17]line Контрольно-Кассовый Чек [20:31:17]line ПРОДАЖА [20:31:17]line ТРК (МРК, ГНК) : 12 [20:31:17]line Товар: 2710124500 [20:31:17]line Аи-95-К-5 [20:31:17]line 13.480 * 74.20 [20:31:17]line = 1000.22 [20:31:17]line НДС 12% НСП 1% [20:31:17]line > о реализуемом товаре [20:31:17]line ОКРУГЛЕНИЕ: -0.22 [20:31:17]line ИТОГО: 1000.00 [20:31:17]line Внесено: 1000.00 [20:31:17]line СДАЧА: 0.00 [20:31:17]line НСП 1% : 8.85 [20:31:17]line НДС 12% : 106.22 [20:31:17]line Наличными: 1000.00 [20:31:17]line Безнал.: 0.00 [20:31:17]line Место: АЗС № 114 "Партнер Нефть" [20:31:17]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:31:17]line СНО: Общий режим [20:31:17]line Чек 183 18.10.2024 20:31 [20:31:17]line Смена: 526 ФФД: 1.0 [20:31:17]line ЗНМ: 0300000086 [20:31:17]line РНМ: 0000000000091680 [20:31:17]line Версия ККМ: 001 [20:31:17]line ФМ: 0000000000871843 [20:31:17]line ФД: 82474 [20:31:17]line ФПД: 186542002057577 [20:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T203117&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82474&fm=186542002057577&tin=02508201610067®Number=0000000000091680&sum=100000 [20:31:18]OFD Sender: Processing packet 82474 [packets to send 254, broken 253] [20:31:18]ProducePacketName [20:31:18]name=ofd_packets/00082474 [20:31:18]OFD Sender: To server: pG, [20:31:18]CommunicateWithHost lk.salyk.kg:30040 [20:31:18]ConnectInit lk.salyk.kg [20:31:18]written 0, free lines is 4095 [20:31:18]Write to MH i2c: 01 00 00 98 02 9A [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 98 02 00 00 00 00 00 DA 0C 87 [20:31:18]RasterBufferAndPrint [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]written 0, free lines is 3298 [20:31:18]MH_Cut [20:31:18]Write to MH i2c: D1 01 00 9F 02 01 73 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 01 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 01 00 9F 02 00 72 [20:31:18]Write to MH i2c: 01 00 00 A0 02 A2 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:19]*** Cut start [20:31:19]*** Partial cut [20:31:19]*** CUTSNS_PIN = 1 [20:31:19]*** CUTSNS_PIN = 0 [20:31:19]*** Brake cut motor [20:31:19]Connected sock=11 [20:31:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 15 4D 07 01 7B 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 42 01 00 35 04 06 00 A9 A8 B1 C4 B1 69 9F 29 0C C1 5E 5B 3A A2 [20:31:20]Read from MH i2c: 01 [20:31:20]MH_I2C_Read... [20:31:20]*** Stop cut motor [20:31:20]*** Cut end [20:31:20]Read from MH i2c: 01 07 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 FF 0F B7 [20:31:20]process_action close_receipt done [20:31:20]requested_data is exist [20:31:20]produce_requested_data [20:31:20]requested_item fm.sn is exist - process it [20:31:20]wFMCommunicate request_size=4 [20:31:20]MH_SAM_APDU [20:31:20]CAPDU: 80 11 00 00 [20:31:20]Write to MH i2c: E2 08 00 A1 02 80 11 00 00 00 00 00 00 1D [20:31:20]Write i2c OK [20:31:20]MH_I2C_Read... [20:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:20]Read from MH i2c: E2 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 17 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 17 00 A1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 6F [20:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:31:20]wFMCommunicate OK [20:31:20]requested_item fd.num is exist - process it [20:31:20]SAM_PROTO_GetFieldsCounters [20:31:20]wFMCommunicate request_size=4 [20:31:20]MH_SAM_APDU [20:31:20]CAPDU: 80 13 00 00 [20:31:20]Write to MH i2c: E2 08 00 A2 02 80 13 00 00 00 00 00 00 20 [20:31:20]Write i2c OK [20:31:20]MH_I2C_Read... [20:31:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:20]Read from MH i2c: E2 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 62 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 62 00 A2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [20:31:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:20]wFMCommunicate OK [20:31:20]SAM_PROTO_GetFieldsCounters done [20:31:20]requested_item shift.num is exist - process it [20:31:20]requested_item shift.opened is exist - process it [20:31:20]req_shift_opened [20:31:20]FM_GetShiftState [20:31:20]SAM_PROTO_GetShiftState [20:31:20]wFMCommunicate request_size=4 [20:31:20]MH_SAM_APDU [20:31:20]CAPDU: 80 13 01 00 [20:31:20]Write to MH i2c: E2 08 00 A3 02 80 13 01 00 00 00 00 00 22 [20:31:20]Write i2c OK [20:31:20]MH_I2C_Read... [20:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:20]Read from MH i2c: E2 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 0E 00 [20:31:20]MH_I2C_Read... [20:31:20]Read from MH i2c: E2 0E 00 A3 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F4 [20:31:20]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:31:20]wFMCommunicate OK [20:31:20]SAM_PROTO_GetShiftState done [20:31:20]FM_GetShiftState done [20:31:20]req_shift_opened done [20:31:20]requested_item shift.open_date is exist - process it [20:31:20]req_shift_open_date [20:31:20]req_shift_open_date done [20:31:20]produce_requested_data done [20:31:20]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82474,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:31:20]process_action_free close_receipt [20:31:20]json_value_free [20:31:20]json_value_free done [20:31:20]process_json_proto returns [20:31:20]Send response to host [20:31:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82474,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:31:20]free response buf [20:31:20]execute_script done [20:31:20]execute_script returns [20:31:20]free content buf [20:31:20]Sock 9.Close socket [20:31:20]Sock 9.Thread stoped [20:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 E9 60 47 00 C5 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2A 42 01 00 F4 03 04 00 D0 6A 12 67 B6 04 01 00 00 6F 02 E8 BC 9C 59 EC 2E [20:31:20]CommunicateWithHost err = 0 [20:31:20]CheckOFDResponse [20:31:20]1017 (14) - 77093643461234 [20:31:20]1041 (16) - 0000000000871843 [20:31:20]1040 (4) - 82474 [20:31:20]1012 (4) - 18.10.2024 14:04 [20:31:20]1206 (1) - 0 [20:31:20]OFD Sender: Remove packet 82474 [20:31:20]ProducePacketName [20:31:20]name=ofd_packets/00082474 [20:31:20]NVStorageDeleteData [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:46]accept exits with 7 [20:31:46]New connection [20:31:46]New thread 3066879332 created [20:31:46]Thread 3067022692 joined [20:31:46]Waiting for new connection... [20:31:46] Sock 7.Parse request [20:31:46]Sock 7.Check first char [20:31:46]Sock 7.First char is OK [20:31:46]request: POST /json_proto HTTP/1.0 [20:31:46]Method: POST [20:31:46]URL: /json_proto [20:31:46]Method is POST - this is cgi request [20:31:46]url: /json_proto [20:31:46]query_string will be loaded in cgi processing [20:31:46]execute_cgi json_proto POST (null) [20:31:46]execute_cgi path=json_proto method=POST [20:31:46]POST find Content-Length [20:31:46]Host: 172.17.44.67:8080 [20:31:46]Content-Length: 754 [20:31:46]Content-Type: application/json [20:31:46] [20:31:46]POST finish read [20:31:46]Found Content-Length = 754 [20:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100327", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:46]execute_script... [20:31: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)918967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100327", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:46]POST & json_proto [20:31:46]process_json_proto [20:31:46]json parsed OK: [20:31:46]protocol is kg_v1.0 [20:31:46]action value=close_receipt [20:31:46]process_action close_receipt [20:31:46]cmd_close_receipt [20:31:46]MH_GetDate [20:31:46]Write to MH i2c: F0 00 00 A4 02 95 [20:31:46]Write i2c OK [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: F0 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: F0 09 00 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: F0 09 00 A4 02 00 B3 C5 12 67 F1 C7 6B 64 16 [20:31:46]GetLastDocTimeStamp 1729283477 [20:31:46]current date 1729283507 [20:31:46]FM_GetShiftState [20:31:46]SAM_PROTO_GetShiftState [20:31:46]wFMCommunicate request_size=4 [20:31:46]MH_SAM_APDU [20:31:46]CAPDU: 80 13 01 00 [20:31:46]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [20:31:46]Write i2c OK [20:31:46]MH_I2C_Read... [20:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:46]Read from MH i2c: E2 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: E2 0E 00 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F6 [20:31:46]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:31:46]wFMCommunicate OK [20:31:46]SAM_PROTO_GetShiftState done [20:31:46]FM_GetShiftState done [20:31:46]opened in 1729212319 [20:31:46]opened+sec_in_day 1729298719 [20:31:46]quantity*price = 0 [20:31:46]sum+1 = 1 [20:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 184 18.10.2024 20:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100327 ФМ: 0000000000871843 ФД: 82475 ФПД: 167037470556454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T203147&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82475&fm=167037470556454&tin=02508201610067®Number=0000000000091680&sum=0 [20:31:47]StoreToDocumentArchive [20:31:47]shift 526 fd 82475 [20:31:47]save to /storage/0526/doc_00082475 [20:31:47]save last doc name /storage/0526/doc_00082475 to /storage/kkm_last_doc_name [20:31:47]save OK [20:31:47]Clear old archive folders... [20:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:47]tlvbuf is 01BF8CE0 [20:31:47]SAM_PROTO_ClearQueue [20:31:47]wFMCommunicate request_size=4 [20:31:47]MH_SAM_APDU [20:31:47]CAPDU: 80 09 00 00 [20:31:47]Write to MH i2c: E2 08 00 B2 02 80 09 00 00 00 00 00 00 26 [20:31:47]Write i2c OK [20:31:47]MH_I2C_Read... [20:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:47]Read from MH i2c: E2 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [20:31:47]RAPDU: 90 00 [20:31:47]wFMCommunicate OK [20:31:47]SAM_PROTO_ClearQueue done [20:31:47]KKMCreateOFDPacket [20:31:47]OFDProtocolAddRootSTLVToBuf [20:31:47]FM_MakeSignedData [20:31:47]FM_MakeSignedData [20:31:47]SAM_PROTO_SignData [20:31:47]wFMCommunicate request_size=4 [20:31:47]MH_SAM_APDU [20:31:47]CAPDU: 80 0D 01 02 [20:31:47]Write to MH i2c: E2 08 00 B3 02 80 0D 01 02 00 00 00 00 2E [20:31:47]Write i2c OK [20:31:47]MH_I2C_Read... [20:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:47]Read from MH i2c: E2 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [20:31:47]RAPDU: 90 00 [20:31:47]wFMCommunicate OK [20:31:47]wFMCommunicate request_size=255 [20:31:47]MH_SAM_APDU [20:31: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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B3 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 42 01 00 35 04 06 00 97 [20:31:47]Write to MH i2c: E2 02 01 B4 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B3 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 42 01 00 35 04 06 00 97 00 00 CF [20:31:47]Write i2c OK [20:31:47]MH_I2C_Read... [20:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:47]Read from MH i2c: E2 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [20:31:47]RAPDU: 90 00 [20:31:47]wFMCommunicate OK [20:31:47]wFMCommunicate request_size=10 [20:31:47]MH_SAM_APDU [20:31:47]CAPDU: 80 0D 02 02 05 EB 71 18 C1 26 [20:31:47]Write to MH i2c: E2 0D 00 B5 02 80 0D 02 02 05 00 EB 71 18 C1 26 00 00 96 [20:31:47]Write i2c OK [20:31:47]MH_I2C_Read... [20:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:47]Read from MH i2c: E2 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 [20:31:47]MH_I2C_Read... [20:31:47]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [20:31:47]RAPDU: 90 00 [20:31:47]wFMCommunicate OK [20:31:47]wFMCommunicate request_size=4 [20:31:47]MH_SAM_APDU [20:31:47]CAPDU: 80 0D 03 02 [20:31:47]Write to MH i2c: E2 08 00 B6 02 80 0D 03 02 00 00 00 00 33 [20:31:47]Write i2c OK [20:31:47]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 0B 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 0B 00 B6 02 00 91 AA 0D EB 03 45 CB A8 90 00 22 [20:31:48]RAPDU: 91 AA 0D EB 03 45 CB A8 90 00 [20:31:48]wFMCommunicate OK [20:31:48]SAM_PROTO_SignData done [20:31:48]FM_MakeSignedData done [20:31:48]CreateOFDProtocolMessage [20:31:48]wFMCommunicate request_size=4 [20:31:48]MH_SAM_APDU [20:31:48]CAPDU: 80 11 00 00 [20:31:48]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:48]Read from MH i2c: E2 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 17 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 85 [20:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:31:48]wFMCommunicate OK [20:31:48]CreateOFDProtocolMessage done [20:31:48]OFDSenderStorePacket 82475 [20:31:48]StoreOFDPacket docnum=82475 [20:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B0 E7 07 01 96 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B3 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 42 01 00 35 04 06 00 97 EB 71 18 C1 26 91 AA 0D EB 03 45 CB A8 [20:31:48]CheckFolder [20:31:48]dirname=/storage/ofd_packets [20:31:48]CheckFolder done [20:31:48]ProducePacketName [20:31:48]name=ofd_packets/00082475 [20:31:48]NVStorageSaveData ofd_packets/00082475 [20:31:48]File name is /storage/ofd_packets/00082475 [20:31:48]Write 301 bytes [20:31:48]NVStorageSaveData done [20:31:48]OFDSenderStorePacket done [20:31:48]KKMCreateOFDPacket done [20:31:48]NVStorageSaveData kkm_last_timestamp [20:31:48]File name is /storage/kkm_last_timestamp [20:31:48]Write 4 bytes [20:31:48]NVStorageSaveData done [20:31:48]ExternCall_PrintAddStr [20:31:48]wPrintStart [20:31:48]Write to MH i2c: 01 00 00 B8 02 BA [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 FF 0F CF [20:31:48]RasterBufferAndPrint [20:31:48]line Счет N : (1)918967 [20:31:48]line ИНН: 02508201610067 [20:31:48]line Контрольно-Кассовый Чек [20:31:48]line ПРОДАЖА [20:31:48]line ТРК (МРК, ГНК) : 22 [20:31:48]line Товар: 2710124130 [20:31:48]line Аи-92-К-4 [20:31:48]line 40.000 * 0.00 [20:31:48]line = 0.00 [20:31:48]line НДС 12% НСП 1% [20:31:48]line > о реализуемом товаре [20:31:48]line ИТОГО: 0.00 [20:31:48]line НСП 1% : 0.00 [20:31:48]line НДС 12% : 0.00 [20:31:48]line Наличными: 0.00 [20:31:48]line Безнал.: 0.00 [20:31:48]line Место: АЗС № 114 "Партнер Нефть" [20:31:48]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:31:48]line СНО: Общий режим [20:31:48]line Чек 184 18.10.2024 20:31 [20:31:48]line Смена: 526 ФФД: 1.0 [20:31:48]line ЗНМ: 0300000086 [20:31:48]line РНМ: 0000000000091680 [20:31:48]line Версия ККМ: 001 [20:31:48]line Талоны: ТК ГПНА Online [20:31:48]line 30100327 [20:31:48]line ФМ: 0000000000871843 [20:31:48]line ФД: 82475 [20:31:48]line ФПД: 167037470556454 [20:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T203147&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82475&fm=167037470556454&tin=02508201610067®Number=0000000000091680&sum=0 [20:31:48]written 0, free lines is 4095 [20:31:48]OFD Sender: Processing packet 82475 [packets to send 254, broken 253] [20:31:48]ProducePacketName [20:31:48]name=ofd_packets/00082475 [20:31:48]OFD Sender: To server: pG, [20:31:48]CommunicateWithHost lk.salyk.kg:30040 [20:31:48]ConnectInit lk.salyk.kg [20:31:48]Connected sock=10 [20:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B0 E7 07 01 96 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B3 C5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 42 01 00 35 04 06 00 97 EB 71 18 C1 26 91 AA 0D EB 03 45 CB A8 [20:31:48]Write to MH i2c: 01 00 00 E2 02 E4 [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: 01 07 00 E2 02 00 00 00 00 00 ED 0C E4 [20:31:48]RasterBufferAndPrint [20:31:48]line [20:31:48]line [20:31:48]line [20:31:48]line [20:31:48]line [20:31:48]written 0, free lines is 3316 [20:31:48]MH_Cut [20:31:48]Write to MH i2c: D1 01 00 E9 02 01 BD [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: D1 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: D1 01 00 [20:31:48]MH_I2C_Read... [20:31:48]Read from MH i2c: D1 01 00 E9 02 00 BC [20:31:48]Write to MH i2c: 01 00 00 EA 02 EC [20:31:48]Write i2c OK [20:31:48]MH_I2C_Read... [20:31:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D5 14 47 00 FF 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2B 42 01 00 F4 03 04 00 EC 6A 12 67 B6 04 01 00 00 41 B9 EF 34 66 A1 94 8A [20:31:49]CommunicateWithHost err = 0 [20:31:49]CheckOFDResponse [20:31:49]1017 (14) - 77093643461234 [20:31:49]1041 (16) - 0000000000871843 [20:31:49]1040 (4) - 82475 [20:31:49]1012 (4) - 18.10.2024 14:04 [20:31:49]1206 (1) - 0 [20:31:49]OFD Sender: Remove packet 82475 [20:31:49]ProducePacketName [20:31:49]name=ofd_packets/00082475 [20:31:49]NVStorageDeleteData [20:31:49]OFD Sender: No OFD packet to send [20:31:49]*** Cut start [20:31:49]*** Partial cut [20:31:49]*** CUTSNS_PIN = 1 [20:31:49]*** CUTSNS_PIN = 0 [20:31:49]*** Brake cut motor [20:31:50]Read from MH i2c: 01 [20:31:50]MH_I2C_Read... [20:31:50]*** Stop cut motor [20:31:50]*** Cut end [20:31:50]Read from MH i2c: 01 07 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 FF 0F 01 [20:31:50]process_action close_receipt done [20:31:50]requested_data is exist [20:31:50]produce_requested_data [20:31:50]requested_item fm.sn is exist - process it [20:31:50]wFMCommunicate request_size=4 [20:31:50]MH_SAM_APDU [20:31:50]CAPDU: 80 11 00 00 [20:31:50]Write to MH i2c: E2 08 00 EB 02 80 11 00 00 00 00 00 00 67 [20:31:50]Write i2c OK [20:31:50]MH_I2C_Read... [20:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:50]Read from MH i2c: E2 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 17 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 17 00 EB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B9 [20:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:31:50]wFMCommunicate OK [20:31:50]requested_item fd.num is exist - process it [20:31:50]SAM_PROTO_GetFieldsCounters [20:31:50]wFMCommunicate request_size=4 [20:31:50]MH_SAM_APDU [20:31:50]CAPDU: 80 13 00 00 [20:31:50]Write to MH i2c: E2 08 00 EC 02 80 13 00 00 00 00 00 00 6A [20:31:50]Write i2c OK [20:31:50]MH_I2C_Read... [20:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:50]Read from MH i2c: E2 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 62 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 62 00 EC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [20:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:50]wFMCommunicate OK [20:31:50]SAM_PROTO_GetFieldsCounters done [20:31:50]requested_item shift.num is exist - process it [20:31:50]requested_item shift.opened is exist - process it [20:31:50]req_shift_opened [20:31:50]FM_GetShiftState [20:31:50]SAM_PROTO_GetShiftState [20:31:50]wFMCommunicate request_size=4 [20:31:50]MH_SAM_APDU [20:31:50]CAPDU: 80 13 01 00 [20:31:50]Write to MH i2c: E2 08 00 ED 02 80 13 01 00 00 00 00 00 6C [20:31:50]Write i2c OK [20:31:50]MH_I2C_Read... [20:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:50]Read from MH i2c: E2 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 0E 00 [20:31:50]MH_I2C_Read... [20:31:50]Read from MH i2c: E2 0E 00 ED 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 3E [20:31:50]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:31:50]wFMCommunicate OK [20:31:50]SAM_PROTO_GetShiftState done [20:31:50]FM_GetShiftState done [20:31:50]req_shift_opened done [20:31:50]requested_item shift.open_date is exist - process it [20:31:50]req_shift_open_date [20:31:50]req_shift_open_date done [20:31:50]produce_requested_data done [20:31:50]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82475,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:31:50]process_action_free close_receipt [20:31:50]json_value_free [20:31:50]json_value_free done [20:31:50]process_json_proto returns [20:31:50]Send response to host [20:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82475,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:31:50]free response buf [20:31:50]execute_script done [20:31:50]execute_script returns [20:31:50]free content buf [20:31:50]Sock 7.Close socket [20:31:50]Sock 7.Thread stoped [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:25]accept exits with 9 [20:48:25]New connection [20:48:25]New thread 3067022692 created [20:48:25]Thread 3066879332 joined [20:48:25]Waiting for new connection... [20:48:25] Sock 9.Parse request [20:48:25]Sock 9.Check first char [20:48:25]Sock 9.First char is OK [20:48:25]request: POST /json_proto HTTP/1.0 [20:48:25]Method: POST [20:48:25]URL: /json_proto [20:48:25]Method is POST - this is cgi request [20:48:25]url: /json_proto [20:48:25]query_string will be loaded in cgi processing [20:48:25]execute_cgi json_proto POST (null) [20:48:25]execute_cgi path=json_proto method=POST [20:48:25]POST find Content-Length [20:48:25]Host: 172.17.44.67:8080 [20:48:25]Content-Length: 677 [20:48:25]Content-Type: application/json [20:48:25] [20:48:25]POST finish read [20:48:25]Found Content-Length = 677 [20:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.310, "sum" : 355.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:25]execute_script... [20:48: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)918969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.310, "sum" : 355.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:25]POST & json_proto [20:48:25]process_json_proto [20:48:25]json parsed OK: [20:48:25]protocol is kg_v1.0 [20:48:25]action value=close_receipt [20:48:25]process_action close_receipt [20:48:25]cmd_close_receipt [20:48:25]MH_GetDate [20:48:25]Write to MH i2c: F0 00 00 EE 02 DF [20:48:25]Write i2c OK [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: F0 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: F0 09 00 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: F0 09 00 EE 02 00 9A C9 12 67 F1 C7 6B 64 4B [20:48:25]GetLastDocTimeStamp 1729283507 [20:48:25]current date 1729284506 [20:48:25]FM_GetShiftState [20:48:25]SAM_PROTO_GetShiftState [20:48:25]wFMCommunicate request_size=4 [20:48:25]MH_SAM_APDU [20:48:25]CAPDU: 80 13 01 00 [20:48:25]Write to MH i2c: E2 08 00 EF 02 80 13 01 00 00 00 00 00 6E [20:48:25]Write i2c OK [20:48:25]MH_I2C_Read... [20:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:25]Read from MH i2c: E2 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 0E 00 [20:48:25]MH_I2C_Read... [20:48:25]Read from MH i2c: E2 0E 00 EF 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 40 [20:48:25]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:48:25]wFMCommunicate OK [20:48:25]SAM_PROTO_GetShiftState done [20:48:25]FM_GetShiftState done [20:48:25]opened in 1729212319 [20:48:25]opened+sec_in_day 1729298719 [20:48:25]quantity*price = 35523 [20:48:25]sum+1 = 35525 [20:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 355.00 Внесено: 355.00 СДАЧА: 0.00 НСП 1% : 3.14 НДС 12% : 37.72 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 185 18.10.2024 20:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82476 ФПД: 260829700284200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T204826&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82476&fm=260829700284200&tin=02508201610067®Number=0000000000091680&sum=35500 [20:48:26]StoreToDocumentArchive [20:48:26]shift 526 fd 82476 [20:48:26]save to /storage/0526/doc_00082476 [20:48:26]save last doc name /storage/0526/doc_00082476 to /storage/kkm_last_doc_name [20:48:26]save OK [20:48:26]Clear old archive folders... [20:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:26]tlvbuf is 01BAC5B0 [20:48:26]SAM_PROTO_ClearQueue [20:48:26]wFMCommunicate request_size=4 [20:48:26]MH_SAM_APDU [20:48:26]CAPDU: 80 09 00 00 [20:48:26]Write to MH i2c: E2 08 00 FC 02 80 09 00 00 00 00 00 00 70 [20:48:26]Write i2c OK [20:48:26]MH_I2C_Read... [20:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:26]Read from MH i2c: E2 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [20:48:26]RAPDU: 90 00 [20:48:26]wFMCommunicate OK [20:48:26]SAM_PROTO_ClearQueue done [20:48:26]KKMCreateOFDPacket [20:48:26]OFDProtocolAddRootSTLVToBuf [20:48:26]FM_MakeSignedData [20:48:26]FM_MakeSignedData [20:48:26]SAM_PROTO_SignData [20:48:26]wFMCommunicate request_size=4 [20:48:26]MH_SAM_APDU [20:48:26]CAPDU: 80 0D 01 02 [20:48:26]Write to MH i2c: E2 08 00 FD 02 80 0D 01 02 00 00 00 00 78 [20:48:26]Write i2c OK [20:48:26]MH_I2C_Read... [20:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:26]Read from MH i2c: E2 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [20:48:26]RAPDU: 90 00 [20:48:26]wFMCommunicate OK [20:48:26]wFMCommunicate request_size=255 [20:48:26]MH_SAM_APDU [20:48: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 34 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 AC 8A 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 9A C9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 42 01 00 35 04 06 00 ED [20:48:26]Write to MH i2c: E2 02 01 FE 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 34 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 AC 8A 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 9A C9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 42 01 00 35 04 06 00 ED 00 00 4D [20:48:26]Write i2c OK [20:48:26]MH_I2C_Read... [20:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:26]Read from MH i2c: E2 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [20:48:26]RAPDU: 90 00 [20:48:26]wFMCommunicate OK [20:48:26]wFMCommunicate request_size=10 [20:48:26]MH_SAM_APDU [20:48:26]CAPDU: 80 0D 02 02 05 39 25 A1 DF 28 [20:48:26]Write to MH i2c: E2 0D 00 FF 02 80 0D 02 02 05 00 39 25 A1 DF 28 00 00 8B [20:48:26]Write i2c OK [20:48:26]MH_I2C_Read... [20:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:26]Read from MH i2c: E2 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [20:48:26]RAPDU: 90 00 [20:48:26]wFMCommunicate OK [20:48:26]wFMCommunicate request_size=4 [20:48:26]MH_SAM_APDU [20:48:26]CAPDU: 80 0D 03 02 [20:48:26]Write to MH i2c: E2 08 00 00 03 80 0D 03 02 00 00 00 00 7E [20:48:26]Write i2c OK [20:48:26]MH_I2C_Read... [20:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:26]Read from MH i2c: E2 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 0B 00 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 0B 00 00 03 00 FB 1B 7E EF A4 59 60 B2 90 00 11 [20:48:26]RAPDU: FB 1B 7E EF A4 59 60 B2 90 00 [20:48:26]wFMCommunicate OK [20:48:26]SAM_PROTO_SignData done [20:48:26]FM_MakeSignedData done [20:48:26]CreateOFDProtocolMessage [20:48:26]wFMCommunicate request_size=4 [20:48:26]MH_SAM_APDU [20:48:26]CAPDU: 80 11 00 00 [20:48:26]Write to MH i2c: E2 08 00 01 03 80 11 00 00 00 00 00 00 7E [20:48:26]Write i2c OK [20:48:26]MH_I2C_Read... [20:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:26]Read from MH i2c: E2 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 17 00 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: E2 17 00 01 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D0 [20:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:48:26]wFMCommunicate OK [20:48:26]CreateOFDProtocolMessage done [20:48:26]OFDSenderStorePacket 82476 [20:48:26]StoreOFDPacket docnum=82476 [20:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0D 2E 07 01 D8 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 AC 8A 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 9A C9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 42 01 00 35 04 06 00 ED 39 25 A1 DF 28 FB 1B 7E EF A4 59 60 B2 [20:48:26]CheckFolder [20:48:26]dirname=/storage/ofd_packets [20:48:26]CheckFolder done [20:48:26]ProducePacketName [20:48:26]name=ofd_packets/00082476 [20:48:26]NVStorageSaveData ofd_packets/00082476 [20:48:26]File name is /storage/ofd_packets/00082476 [20:48:26]Write 301 bytes [20:48:26]NVStorageSaveData done [20:48:26]OFDSenderStorePacket done [20:48:26]KKMCreateOFDPacket done [20:48:26]NVStorageSaveData kkm_last_timestamp [20:48:26]File name is /storage/kkm_last_timestamp [20:48:26]Write 4 bytes [20:48:26]NVStorageSaveData done [20:48:26]ExternCall_PrintAddStr [20:48:26]wPrintStart [20:48:26]Write to MH i2c: 01 00 00 02 03 05 [20:48:26]Write i2c OK [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: 01 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: 01 07 00 [20:48:26]MH_I2C_Read... [20:48:26]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 FF 0F 1A [20:48:26]RasterBufferAndPrint [20:48:26]line Счет N : (1)918969 [20:48:26]line ИНН: 02508201610067 [20:48:26]line Контрольно-Кассовый Чек [20:48:26]line ПРОДАЖА [20:48:26]line ТРК (МРК, ГНК) : 22 [20:48:26]line Товар: 2710124130 [20:48:26]line Аи-92-К-4 [20:48:26]line 5.310 * 66.90 [20:48:26]line = 355.24 [20:48:26]line НДС 12% НСП 1% [20:48:26]line > о реализуемом товаре [20:48:26]line ОКРУГЛЕНИЕ: -0.24 [20:48:26]line ИТОГО: 355.00 [20:48:26]line Внесено: 355.00 [20:48:26]line СДАЧА: 0.00 [20:48:26]line НСП 1% : 3.14 [20:48:26]line НДС 12% : 37.72 [20:48:26]line Наличными: 355.00 [20:48:26]line Безнал.: 0.00 [20:48:26]line Место: АЗС № 114 "Партнер Нефть" [20:48:26]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:48:26]line СНО: Общий режим [20:48:26]line Чек 185 18.10.2024 20:48 [20:48:26]line Смена: 526 ФФД: 1.0 [20:48:26]line ЗНМ: 0300000086 [20:48:26]line РНМ: 0000000000091680 [20:48:26]line Версия ККМ: 001 [20:48:26]line ФМ: 0000000000871843 [20:48:26]line ФД: 82476 [20:48:26]line ФПД: 260829700284200 [20:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T204826&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82476&fm=260829700284200&tin=02508201610067®Number=0000000000091680&sum=35500 [20:48:27]OFD Sender: Processing packet 82476 [packets to send 254, broken 253] [20:48:27]ProducePacketName [20:48:27]name=ofd_packets/00082476 [20:48:27]OFD Sender: To server: pG, [20:48:27]CommunicateWithHost lk.salyk.kg:30040 [20:48:27]ConnectInit lk.salyk.kg [20:48:27]written 0, free lines is 4095 [20:48:27]Write to MH i2c: 01 00 00 2D 03 30 [20:48:27]Write i2c OK [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: 01 [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: 01 07 00 [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 DC 0C 1F [20:48:27]RasterBufferAndPrint [20:48:27]line [20:48:27]line [20:48:27]line [20:48:27]line [20:48:27]line [20:48:27]written 0, free lines is 3298 [20:48:27]MH_Cut [20:48:27]Write to MH i2c: D1 01 00 34 03 01 09 [20:48:27]Write i2c OK [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: D1 [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: D1 01 00 [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: D1 01 00 34 03 00 08 [20:48:27]Write to MH i2c: 01 00 00 35 03 38 [20:48:27]Write i2c OK [20:48:27]MH_I2C_Read... [20:48:28]Connected sock=10 [20:48:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 0D 2E 07 01 D8 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 0E 00 00 00 00 07 04 06 00 AC 8A 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 9A C9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 42 01 00 35 04 06 00 ED 39 25 A1 DF 28 FB 1B 7E EF A4 59 60 B2 [20:48:28]*** Cut start [20:48:28]*** Partial cut [20:48:28]*** CUTSNS_PIN = 1 [20:48:28]*** CUTSNS_PIN = 0 [20:48:28]*** Brake cut motor [20:48:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 A6 7F 47 00 0C 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2C 42 01 00 F4 03 04 00 D4 6E 12 67 B6 04 01 00 00 BD 2D A9 97 76 EE 70 81 [20:48:28]CommunicateWithHost err = 0 [20:48:28]CheckOFDResponse [20:48:28]1017 (14) - 77093643461234 [20:48:28]1041 (16) - 0000000000871843 [20:48:28]1040 (4) - 82476 [20:48:28]1012 (4) - 18.10.2024 14:21 [20:48:28]1206 (1) - 0 [20:48:28]OFD Sender: Remove packet 82476 [20:48:28]ProducePacketName [20:48:28]name=ofd_packets/00082476 [20:48:28]NVStorageDeleteData [20:48:28]Read from MH i2c: 01 [20:48:28]MH_I2C_Read... [20:48:29]*** Stop cut motor [20:48:29]*** Cut end [20:48:29]Read from MH i2c: 01 07 00 [20:48:29]MH_I2C_Read... [20:48:29]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 FF 0F 4D [20:48:29]process_action close_receipt done [20:48:29]requested_data is exist [20:48:29]produce_requested_data [20:48:29]requested_item fm.sn is exist - process it [20:48:29]wFMCommunicate request_size=4 [20:48:29]MH_SAM_APDU [20:48:29]CAPDU: 80 11 00 00 [20:48:29]Write to MH i2c: E2 08 00 36 03 80 11 00 00 00 00 00 00 B3 [20:48:29]Write i2c OK [20:48:29]MH_I2C_Read... [20:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:29]Read from MH i2c: E2 [20:48:29]MH_I2C_Read... [20:48:29]Read from MH i2c: E2 17 00 [20:48:29]MH_I2C_Read... [20:48:29]Read from MH i2c: E2 17 00 36 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 05 [20:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:48:29]wFMCommunicate OK [20:48:29]requested_item fd.num is exist - process it [20:48:29]SAM_PROTO_GetFieldsCounters [20:48:29]wFMCommunicate request_size=4 [20:48:29]MH_SAM_APDU [20:48:29]CAPDU: 80 13 00 00 [20:48:29]Write to MH i2c: E2 08 00 37 03 80 13 00 00 00 00 00 00 B6 [20:48:29]Write i2c OK [20:48:29]MH_I2C_Read... [20:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:29]Read from MH i2c: E2 [20:48:29]MH_I2C_Read... [20:48:29]Read from MH i2c: E2 62 00 [20:48:29]MH_I2C_Read... [20:48:29]Read from MH i2c: E2 62 00 37 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:29]wFMCommunicate OK [20:48:29]SAM_PROTO_GetFieldsCounters done [20:48:29]requested_item shift.num is exist - process it [20:48:29]requested_item shift.opened is exist - process it [20:48:29]req_shift_opened [20:48:29]FM_GetShiftState [20:48:29]SAM_PROTO_GetShiftState [20:48:29]wFMCommunicate request_size=4 [20:48:29]MH_SAM_APDU [20:48:29]CAPDU: 80 13 01 00 [20:48:29]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [20:48:29]Write i2c OK [20:48:29]MH_I2C_Read... [20:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:29]Read from MH i2c: E2 [20:48:29]MH_I2C_Read... [20:48:29]Read from MH i2c: E2 0E 00 [20:48:29]MH_I2C_Read... [20:48:29]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8A [20:48:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:48:29]wFMCommunicate OK [20:48:29]SAM_PROTO_GetShiftState done [20:48:29]FM_GetShiftState done [20:48:29]req_shift_opened done [20:48:29]requested_item shift.open_date is exist - process it [20:48:29]req_shift_open_date [20:48:29]req_shift_open_date done [20:48:29]produce_requested_data done [20:48:29]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82476,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:48:29]process_action_free close_receipt [20:48:29]json_value_free [20:48:29]json_value_free done [20:48:29]process_json_proto returns [20:48:29]Send response to host [20:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82476,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:48:29]free response buf [20:48:29]execute_script done [20:48:29]execute_script returns [20:48:29]free content buf [20:48:29]Sock 9.Close socket [20:48:29]Sock 9.Thread stoped [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:00]accept exits with 7 [20:50:00]New connection [20:50:00]New thread 3066879332 created [20:50:00]Thread 3067022692 joined [20:50:00]Waiting for new connection... [20:50:00] Sock 7.Parse request [20:50:00]Sock 7.Check first char [20:50:00]Sock 7.First char is OK [20:50:00]request: POST /json_proto HTTP/1.0 [20:50:00]Method: POST [20:50:00]URL: /json_proto [20:50:00]Method is POST - this is cgi request [20:50:00]url: /json_proto [20:50:00]query_string will be loaded in cgi processing [20:50:00]execute_cgi json_proto POST (null) [20:50:00]execute_cgi path=json_proto method=POST [20:50:00]POST find Content-Length [20:50:00]Host: 172.17.44.67:8080 [20:50:00]Content-Length: 677 [20:50:00]Content-Type: application/json [20:50:00] [20:50:00]POST finish read [20:50:00]Found Content-Length = 677 [20:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:00]execute_script... [20:50: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)918971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:00]POST & json_proto [20:50:00]process_json_proto [20:50:00]json parsed OK: [20:50:00]protocol is kg_v1.0 [20:50:00]action value=close_receipt [20:50:00]process_action close_receipt [20:50:00]cmd_close_receipt [20:50:00]MH_GetDate [20:50:00]Write to MH i2c: F0 00 00 39 03 2B [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 09 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 09 00 39 03 00 F9 C9 12 67 F1 C7 6B 64 F6 [20:50:00]GetLastDocTimeStamp 1729284506 [20:50:00]current date 1729284601 [20:50:00]FM_GetShiftState [20:50:00]SAM_PROTO_GetShiftState [20:50:00]wFMCommunicate request_size=4 [20:50:00]MH_SAM_APDU [20:50:00]CAPDU: 80 13 01 00 [20:50:00]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:00]Read from MH i2c: E2 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 8C [20:50:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:50:00]wFMCommunicate OK [20:50:00]SAM_PROTO_GetShiftState done [20:50:00]FM_GetShiftState done [20:50:00]opened in 1729212319 [20:50:00]opened+sec_in_day 1729298719 [20:50:00]quantity*price = 30038 [20:50:00]sum+1 = 30039 [20:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 186 18.10.2024 20:50 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82477 ФПД: 162372628956379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205001&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82477&fm=162372628956379&tin=02508201610067®Number=0000000000091680&sum=30000 [20:50:01]StoreToDocumentArchive [20:50:01]shift 526 fd 82477 [20:50:01]save to /storage/0526/doc_00082477 [20:50:01]save last doc name /storage/0526/doc_00082477 to /storage/kkm_last_doc_name [20:50:01]save OK [20:50:01]Clear old archive folders... [20:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:01]tlvbuf is 01BB30C0 [20:50:01]SAM_PROTO_ClearQueue [20:50:01]wFMCommunicate request_size=4 [20:50:01]MH_SAM_APDU [20:50:01]CAPDU: 80 09 00 00 [20:50:01]Write to MH i2c: E2 08 00 47 03 80 09 00 00 00 00 00 00 BC [20:50:01]Write i2c OK [20:50:01]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]SAM_PROTO_ClearQueue done [20:50:02]KKMCreateOFDPacket [20:50:02]OFDProtocolAddRootSTLVToBuf [20:50:02]FM_MakeSignedData [20:50:02]FM_MakeSignedData [20:50:02]SAM_PROTO_SignData [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 01 02 [20:50:02]Write to MH i2c: E2 08 00 48 03 80 0D 01 02 00 00 00 00 C4 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=255 [20:50:02]MH_SAM_APDU [20:50: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 F9 C9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 42 01 00 35 04 06 00 93 [20:50:02]Write to MH i2c: E2 02 01 49 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 F9 C9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 42 01 00 35 04 06 00 93 00 00 4C [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=10 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 02 02 05 AD 52 DE C4 DB [20:50:02]Write to MH i2c: E2 0D 00 4A 03 80 0D 02 02 05 00 AD 52 DE C4 DB 00 00 4D [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 03 02 [20:50:02]Write to MH i2c: E2 08 00 4B 03 80 0D 03 02 00 00 00 00 C9 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0B 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0B 00 4B 03 00 6C A9 8C 86 5E 37 C8 E6 90 00 34 [20:50:02]RAPDU: 6C A9 8C 86 5E 37 C8 E6 90 00 [20:50:02]wFMCommunicate OK [20:50:02]SAM_PROTO_SignData done [20:50:02]FM_MakeSignedData done [20:50:02]CreateOFDProtocolMessage [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 11 00 00 [20:50:02]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 17 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1B [20:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:50:02]wFMCommunicate OK [20:50:02]CreateOFDProtocolMessage done [20:50:02]OFDSenderStorePacket 82477 [20:50:02]StoreOFDPacket docnum=82477 [00:00:10] *** EcrCore started. Build 196 *** [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 /dev/ttyS4 opened [00:00:10]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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [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 54000000005725AE (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: 44499606+1684785137=1729284743 [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [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 88 CA 12 67 F1 C7 6B 64 51 [20:52:24]Current date/time: 18.10.2024 20:52 [20:52:24]FM_Init [20:52:24]wFMConnect [20:52:24]MH_SAM_On [20:52:24]Write to MH i2c: E0 00 00 08 00 E7 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_init finished! [20:52:24]*** atr: [20:52:24]*** 0F 3B D5 18 FF 81 91 FE [20:52:24]*** 1F C3 80 73 C8 21 10 0A [20:52:24]*** 00 00 00 00 00 00 00 00 [20:52:24]*** 00 00 00 00 00 00 00 00 [20:52:24]*** 00 00 00 00 00 00 00 00 [20:52:24]*** 00 00 00 00 00 00 00 00 [20:52:24]*** 00 00 00 00 00 00 00 00 [20:52:24]*** 00 00 00 00 00 00 00 00 [20:52:24]Read from MH i2c: E0 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E0 10 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [20:52:24]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:52:24]wFMCommunicate request_size=10 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:52:24]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:52:24]RAPDU: 90 00 [20:52:24]wFMCommunicate OK [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 11 00 00 [20:52:24]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [20:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:52:24]wFMCommunicate OK [20:52:24]Detected FM SN is 0000000000871843 [20:52:24]Stored FM SN is 0000000000871843 [20:52:24]wFMCommunicate request_size=9 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 16 00 00 04 C3 A3 00 00 [20:52:24]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:52:24]RAPDU: 90 00 [20:52:24]wFMCommunicate OK [20:52:24]FM PIN OK [20:52:24]wFMCommunicate request_size=8 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 14 04 00 03 02 00 01 [20:52:24]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:52:24]RAPDU: 90 00 [20:52:24]wFMCommunicate OK [20:52:24]wFMCommunicate request_size=13 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:52:24]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:52:24]RAPDU: 90 00 [20:52:24]wFMCommunicate OK [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 11 00 00 [20:52:24]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [20:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:52:24]wFMCommunicate OK [20:52:24]DocumentArchiveInit [20:52:24]Start Httpd... [20:52:24]Httpd thread 3067583844 created [20:52:24]Write to MH i2c: 01 00 00 0F 00 0F [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 07 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:52:24]MH Int Process started [20:52:24]Allocated Socket 7 [20:52:24]Bind OK [20:52:24]Listen OK [20:52:24]httpd running on port 8080 [20:52:24]Waiting for new connection... [20:52:24]accept exits with 8 [20:52:24]New connection [20:52:24]New thread 3067297124 created [20:52:24]Waiting for new connection... [20:52:24] Sock 8.Parse request [20:52:24]Sock 8.Check first char [20:52:24]Sock 8.First char is OK [20:52:24]request: POST /json_proto HTTP/1.0 [20:52:24]Method: POST [20:52:24]URL: /json_proto [20:52:24]Method is POST - this is cgi request [20:52:24]url: /json_proto [20:52:24]query_string will be loaded in cgi processing [20:52:24]execute_cgi json_proto POST (null) [20:52:24]execute_cgi path=json_proto method=POST [20:52:24]POST find Content-Length [20:52:24]Host: 172.17.44.67:8080 [20:52:24]Content-Length: 215 [20:52:24]Content-Type: application/json [20:52:24] [20:52:24]POST finish read [20:52:24]Found Content-Length = 215 [20:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:24]execute_script... [20:52:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:24]POST & json_proto [20:52:24]process_json_proto [20:52:24]json parsed OK: [20:52:24]protocol is kg_v1.0 [20:52:24]action value=get_value [20:52:24]process_action get_value [20:52:24]cmd_get_value [20:52:24]process_action get_value done [20:52:24]requested_data is exist [20:52:24]produce_requested_data [20:52:24]requested_item kkm.sn is exist - process it [20:52:24]requested_item kkm.ver is exist - process it [20:52:24]requested_item fm.sn is exist - process it [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 11 00 00 [20:52:24]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [20:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:52:24]wFMCommunicate OK [20:52:24]requested_item fd.num is exist - process it [20:52:24]SAM_PROTO_GetFieldsCounters [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 13 00 00 [20:52:24]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 62 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [20: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:24]wFMCommunicate OK [20:52:24]SAM_PROTO_GetFieldsCounters done [20:52:24]requested_item shift.num is exist - process it [20:52:24]requested_item shift.opened is exist - process it [20:52:24]req_shift_opened [20:52:24]FM_GetShiftState [20:52:24]SAM_PROTO_GetShiftState [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 13 01 00 [20:52:24]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:24]Read from MH i2c: E2 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 0E 00 [20:52:24]MH_I2C_Read... [20:52:24]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 61 [20:52:24]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:52:24]wFMCommunicate OK [20:52:24]SAM_PROTO_GetShiftState done [20:52:24]FM_GetShiftState done [20:52:24]req_shift_opened done [20:52:24]requested_item shift.open_date is exist - process it [20:52:24]req_shift_open_date [20:52:24]req_shift_open_date done [20:52:24]produce_requested_data done [20:52:24]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82478,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:52:24]process_action_free get_value [20:52:24]json_value_free [20:52:24]json_value_free done [20:52:24]process_json_proto returns [20:52:24]Send response to host [20:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82478,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:52:24]free response buf [20:52:24]execute_script done [20:52:24]execute_script returns [20:52:24]free content buf [20:52:24]Sock 8.Close socket [20:52:24]Sock 8.Thread stoped [20:52:24]accept exits with 10 [20:52:24]New connection [20:52:24] Sock 10.Parse request [20:52:24]New thread 3067153764 created [20:52:24]Sock 10.Check first char [20:52:24]Thread 3067297124 joined [20:52:24]Waiting for new connection... [20:52:24]Sock 10.First char is OK [20:52:24]request: POST /json_proto HTTP/1.0 [20:52:24]Method: POST [20:52:24]URL: /json_proto [20:52:24]Method is POST - this is cgi request [20:52:24]url: /json_proto [20:52:24]query_string will be loaded in cgi processing [20:52:24]execute_cgi json_proto POST (null) [20:52:24]execute_cgi path=json_proto method=POST [20:52:24]POST find Content-Length [20:52:24]Host: 172.17.44.67:8080 [20:52:24]Content-Length: 331 [20:52:24]Content-Type: application/json [20:52:24] [20:52:24]POST finish read [20:52:24]Found Content-Length = 331 [20:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:52:24]execute_script... [20:52:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:52:24]POST & json_proto [20:52:24]process_json_proto [20:52:24]json parsed OK: [20:52:24]protocol is kg_v1.0 [20:52:24]action value=get_value [20:52:24]process_action get_value [20:52:24]cmd_get_value [20:52:24]process_action get_value done [20:52:24]requested_data is exist [20:52:24]produce_requested_data [20:52:24]requested_item fm.sale.total is exist - process it [20:52:24]SAM_PROTO_GetFMData [20:52:24]wFMCommunicate request_size=4 [20:52:24]MH_SAM_APDU [20:52:24]CAPDU: 80 13 03 00 [20:52:24]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [20:52:24]Write i2c OK [20:52:24]MH_I2C_Read... [20:52:24]OFD Sender: Processing packet 82477 [packets to send 255, broken 253] [20:52:24]ProducePacketName [20:52:24]name=ofd_packets/00082477 [20:52:24]OFD Sender: To server: pG, [20:52:24]CommunicateWithHost lk.salyk.kg:30040 [20:52:24]ConnectInit lk.salyk.kg [20:52:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:52:25]Read from MH i2c: E2 [20:52:25]MH_I2C_Read... [20:52:25]Read from MH i2c: E2 FD 00 [20:52:25]MH_I2C_Read... [20:52:25]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 12 3E 01 00 69 04 A3 00 6F 04 04 00 77 3B 01 00 B1 04 05 00 2F BE EA 7B 01 70 04 05 00 D4 3B 76 41 01 72 04 04 00 5B 82 74 3A 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 84 DD 5B 28 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 D6 E9 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 DF [20:52:25]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 12 3E 01 00 69 04 A3 00 6F 04 04 00 77 3B 01 00 B1 04 05 00 2F BE EA 7B 01 70 04 05 00 D4 3B 76 41 01 72 04 04 00 5B 82 74 3A 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 84 DD 5B 28 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 D6 E9 5C 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [20:52:25]wFMCommunicate OK [20:52:25]wFMCommunicate request_size=4 [20:52:25]MH_SAM_APDU [20:52:25]CAPDU: 80 17 00 00 [20:52:25]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [20:52:25]Write i2c OK [20:52:25]MH_I2C_Read... [20:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:52:25]Read from MH i2c: E2 [20:52:25]MH_I2C_Read... [20:52:25]Read from MH i2c: E2 FD 00 [20:52:25]MH_I2C_Read... [20:52:25]Read from MH i2c: E2 FD 00 14 00 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [20:52:25]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:52:25]wFMCommunicate OK [20:52:25]wFMCommunicate request_size=4 [20:52:25]MH_SAM_APDU [20:52:25]CAPDU: 80 17 00 00 [20:52:25]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [20:52:25]Write i2c OK [20:52:25]MH_I2C_Read... [20:52:25]Connected sock=6 [20:52:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1B B3 07 01 49 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 F9 C9 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 42 01 00 35 04 06 00 93 AD 52 DE C4 DB 6C A9 8C 86 5E 37 C8 E6 [20:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:52:25]Read from MH i2c: E2 [20:52:25]MH_I2C_Read... [20:52:25]Read from MH i2c: E2 FD 00 [20:52:25]MH_I2C_Read... [20:52:25]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [20:52:25]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:52:25]wFMCommunicate OK [20:52:25]wFMCommunicate request_size=4 [20:52:25]MH_SAM_APDU [20:52:25]CAPDU: 80 17 00 00 [20:52:25]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [20:52:25]Write i2c OK [20:52:25]MH_I2C_Read... [20:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:52:26]Read from MH i2c: E2 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 FD 00 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [20:52:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:52:26]wFMCommunicate OK [20:52:26]wFMCommunicate request_size=4 [20:52:26]MH_SAM_APDU [20:52:26]CAPDU: 80 17 00 00 [20:52:26]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [20:52:26]Write i2c OK [20:52:26]MH_I2C_Read... [20:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [20:52:26]Read from MH i2c: E2 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 E4 00 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [20:52:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:52:26]wFMCommunicate OK [20:52:26]SAM_PROTO_GetFMData done [20:52:26]requested_item fm.sale_refund.total is exist - process it [20:52:26]requested_item fm.buy.total is exist - process it [20:52:26]requested_item shift.sale.total is exist - process it [20:52:26]SAM_PROTO_GetShiftData [20:52:26]wFMCommunicate request_size=4 [20:52:26]MH_SAM_APDU [20:52:26]CAPDU: 80 13 02 00 [20:52:26]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [20:52:26]Write i2c OK [20:52:26]MH_I2C_Read... [20:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B7 3B 47 00 01 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2D 42 01 00 F4 03 04 00 C1 6F 12 67 B6 04 01 00 00 C9 3C 43 A8 F2 8E 7B 76 [20:52:26]CommunicateWithHost err = 0 [20:52:26]CheckOFDResponse [20:52:26]1017 (14) - 77093643461234 [20:52:26]1041 (16) - 0000000000871843 [20:52:26]1040 (4) - 82477 [20:52:26]1012 (4) - 18.10.2024 14:25 [20:52:26]1206 (1) - 0 [20:52:26]OFD Sender: Remove packet 82477 [20:52:26]ProducePacketName [20:52:26]name=ofd_packets/00082477 [20:52:26]NVStorageDeleteData [20:52:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:52:26]Read from MH i2c: E2 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 FD 00 [20:52:26]MH_I2C_Read... [20:52:26]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 94 55 8E 70 04 03 00 B4 DD 4F 72 04 03 00 E0 77 3E 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 98 1E 0F 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 90 42 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2D [20:52:26]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 BB 00 00 00 69 04 9C 00 6F 04 04 00 B8 00 00 00 B1 04 03 00 94 55 8E 70 04 03 00 B4 DD 4F 72 04 03 00 E0 77 3E 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 98 1E 0F 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 90 42 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [20:52:27]wFMCommunicate OK [20:52:27]wFMCommunicate request_size=4 [20:52:27]MH_SAM_APDU [20:52:27]CAPDU: 80 17 00 00 [20:52:27]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [20:52:27]Write i2c OK [20:52:27]MH_I2C_Read... [20:52:27]OFD Sender: Processing packet 82478 [packets to send 254, broken 253] [20:52:27]ProducePacketName [20:52:27]name=ofd_packets/00082478 [20:52:27]OFD Sender: To server: pG, [20:52:27]CommunicateWithHost lk.salyk.kg:30040 [20:52:27]ConnectInit lk.salyk.kg [20:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:52:27]Read from MH i2c: E2 [20:52:27]MH_I2C_Read... [20:52:27]Read from MH i2c: E2 FD 00 [20:52:27]MH_I2C_Read... [20:52:27]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 0B [20:52:27]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [20:52:27]wFMCommunicate OK [20:52:27]wFMCommunicate request_size=4 [20:52:27]MH_SAM_APDU [20:52:27]CAPDU: 80 17 00 00 [20:52:27]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [20:52:27]Write i2c OK [20:52:27]MH_I2C_Read... [20:52:27]Connected sock=6 [20:52:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 35 70 07 01 29 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 02 CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 Read from MH i2c: E2 04 [20:52:27]10 MH_I2C_Read... [20:52:27]00 Read from MH i2c: 30 E2 30 FD 30 00 30 [20:52:27]30 MH_I2C_Read... [20:52:27]30 *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:52:27]30 30 30 30 38 37 31 38 34 33 10 04 04 00 2E 42 01 00 35 04 06 00 06 9D 1C 90 A7 9C 2C 67 43 77 72 21 33 FD Read from MH i2c: [20:52:27]E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [20:52:27]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [20:52:27]wFMCommunicate OK [20:52:27]wFMCommunicate request_size=4 [20:52:27]MH_SAM_APDU [20:52:27]CAPDU: 80 17 00 00 [20:52:27]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [20:52:27]Write i2c OK [20:52:27]MH_I2C_Read... [20:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:52:27]Read from MH i2c: E2 [20:52:27]MH_I2C_Read... [20:52:27]Read from MH i2c: E2 FD 00 [20:52:27]MH_I2C_Read... [20:52:27]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [20:52:28]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [20:52:28]wFMCommunicate OK [20:52:28]wFMCommunicate request_size=4 [20:52:28]MH_SAM_APDU [20:52:28]CAPDU: 80 17 00 00 [20:52:28]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:52:28]Write i2c OK [20:52:28]MH_I2C_Read... [20:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 91 D7 47 00 66 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2E 42 01 00 F4 03 04 00 C3 6F 12 67 B6 04 01 00 00 3A 30 89 91 C8 3D 2C D5 [20:52:28]CommunicateWithHost err = 0 [20:52:28]CheckOFDResponse [20:52:28]1017 (14) - 77093643461234 [20:52:28]1041 (16) - 0000000000871843 [20:52:28]1040 (4) - 82478 [20:52:28]1012 (4) - 18.10.2024 14:25 [20:52:28]1206 (1) - 0 [20:52:28]OFD Sender: Remove packet 82478 [20:52:28]ProducePacketName [20:52:28]name=ofd_packets/00082478 [20:52:28]NVStorageDeleteData [20:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [20:52:28]Read from MH i2c: E2 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: E2 D6 00 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [20:52:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:52:28]wFMCommunicate OK [20:52:28]SAM_PROTO_GetShiftData done [20:52:28]requested_item shift.sale.total_cash is exist - process it [20:52:28]requested_item shift.sale_refund.total is exist - process it [20:52:28]requested_item shift.sale_refund.total_cash is exist - process it [20:52:28]requested_item shift.buy.total is exist - process it [20:52:28]requested_item shift.buy.total_cash is exist - process it [20:52:28]produce_requested_data done [20:52:28]produce_requested_data return {"fm.sale.total":63739489.75,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":93280.20,"shift.sale.total_cash":52341.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:52:28]process_action_free get_value [20:52:28]json_value_free [20:52:28]json_value_free done [20:52:28]process_json_proto returns [20:52:28]Send response to host [20:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63739489.75,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":93280.20,"shift.sale.total_cash":52341.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:52:28]free response buf [20:52:28]execute_script done [20:52:28]execute_script returns [20:52:28]free content buf [20:52:28]Sock 10.Close socket [20:52:28]Sock 10.Thread stoped [20:52:28]OFD Sender: No OFD packet to send [20:52:28]accept exits with 8 [20:52:28]New connection [20:52:28]New thread 3067297124 created [20:52:28]Thread 3067153764 joined [20:52:28]Waiting for new connection... [20:52:28] Sock 8.Parse request [20:52:28]Sock 8.Check first char [20:52:28]Sock 8.First char is OK [20:52:28]request: POST /json_proto HTTP/1.0 [20:52:28]Method: POST [20:52:28]URL: /json_proto [20:52:28]Method is POST - this is cgi request [20:52:28]url: /json_proto [20:52:28]query_string will be loaded in cgi processing [20:52:28]execute_cgi json_proto POST (null) [20:52:28]execute_cgi path=json_proto method=POST [20:52:28]POST find Content-Length [20:52:28]Host: 172.17.44.67:8080 [20:52:28]Content-Length: 677 [20:52:28]Content-Type: application/json [20:52:28] [20:52:28]POST finish read [20:52:28]Found Content-Length = 677 [20:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 9.900, "sum" : 662.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 662.00, "total" : 662.00, "payments": [ { "type": 0, "sum" : 662.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:28]execute_script... [20:52:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 9.900, "sum" : 662.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 662.00, "total" : 662.00, "payments": [ { "type": 0, "sum" : 662.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:28]POST & json_proto [20:52:28]process_json_proto [20:52:28]json parsed OK: [20:52:28]protocol is kg_v1.0 [20:52:28]action value=close_receipt [20:52:28]process_action close_receipt [20:52:28]cmd_close_receipt [20:52:28]MH_GetDate [20:52:28]Write to MH i2c: F0 00 00 1D 00 0C [20:52:28]Write i2c OK [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: F0 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: F0 09 00 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: F0 09 00 1D 00 00 8D CA 12 67 F1 C7 6B 64 6C [20:52:28]GetLastDocTimeStamp 1729284610 [20:52:28]current date 1729284749 [20:52:28]FM_GetShiftState [20:52:28]SAM_PROTO_GetShiftState [20:52:28]wFMCommunicate request_size=4 [20:52:28]MH_SAM_APDU [20:52:28]CAPDU: 80 13 01 00 [20:52:28]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [20:52:28]Write i2c OK [20:52:28]MH_I2C_Read... [20:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:28]Read from MH i2c: E2 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: E2 0E 00 [20:52:28]MH_I2C_Read... [20:52:28]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6D [20:52:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:52:28]wFMCommunicate OK [20:52:28]SAM_PROTO_GetShiftState done [20:52:28]FM_GetShiftState done [20:52:28]opened in 1729212319 [20:52:28]opened+sec_in_day 1729298719 [20:52:28]quantity*price = 66231 [20:52:28]sum+1 = 66232 [20:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 662.00 Внесено: 662.00 СДАЧА: 0.00 НСП 1% : 5.86 НДС 12% : 70.33 Наличными: 662.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 188 18.10.2024 20:52 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82479 ФПД: 182316455913013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205229&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82479&fm=182316455913013&tin=02508201610067®Number=0000000000091680&sum=66200 [20:52:30]StoreToDocumentArchive [20:52:30]shift 526 fd 82479 [20:52:30]save to /storage/0526/doc_00082479 [20:52:30]save last doc name /storage/0526/doc_00082479 to /storage/kkm_last_doc_name [20:52:30]save OK [20:52:30]Clear old archive folders... [20:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:30]tlvbuf is 01E7D590 [20:52:30]SAM_PROTO_ClearQueue [20:52:30]wFMCommunicate request_size=4 [20:52:30]MH_SAM_APDU [20:52:30]CAPDU: 80 09 00 00 [20:52:30]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:52:30]Write i2c OK [20:52:30]MH_I2C_Read... [20:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:30]Read from MH i2c: E2 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:52:30]RAPDU: 90 00 [20:52:30]wFMCommunicate OK [20:52:30]SAM_PROTO_ClearQueue done [20:52:30]KKMCreateOFDPacket [20:52:30]OFDProtocolAddRootSTLVToBuf [20:52:30]FM_MakeSignedData [20:52:30]FM_MakeSignedData [20:52:30]SAM_PROTO_SignData [20:52:30]wFMCommunicate request_size=4 [20:52:30]MH_SAM_APDU [20:52:30]CAPDU: 80 0D 01 02 [20:52:30]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:52:30]Write i2c OK [20:52:30]MH_I2C_Read... [20:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:30]Read from MH i2c: E2 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:52:30]RAPDU: 90 00 [20:52:30]wFMCommunicate OK [20:52:30]wFMCommunicate request_size=255 [20:52:30]MH_SAM_APDU [20:52: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 34 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1B 00 00 00 00 07 04 06 00 98 02 01 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 8D CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 42 01 00 35 04 06 00 A5 [20:52:30]Write to MH i2c: E2 02 01 2D 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 34 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1B 00 00 00 00 07 04 06 00 98 02 01 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 8D CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 42 01 00 35 04 06 00 A5 00 00 3D [20:52:30]Write i2c OK [20:52:30]MH_I2C_Read... [20:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:30]Read from MH i2c: E2 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:52:30]RAPDU: 90 00 [20:52:30]wFMCommunicate OK [20:52:30]wFMCommunicate request_size=10 [20:52:30]MH_SAM_APDU [20:52:30]CAPDU: 80 0D 02 02 05 D0 DB 97 66 35 [20:52:30]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 D0 DB 97 66 35 00 00 8F [20:52:30]Write i2c OK [20:52:30]MH_I2C_Read... [20:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:30]Read from MH i2c: E2 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:52:30]RAPDU: 90 00 [20:52:30]wFMCommunicate OK [20:52:30]wFMCommunicate request_size=4 [20:52:30]MH_SAM_APDU [20:52:30]CAPDU: 80 0D 03 02 [20:52:30]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:52:30]Write i2c OK [20:52:30]MH_I2C_Read... [20:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:30]Read from MH i2c: E2 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 0B 00 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 0B 00 2F 00 00 EE 2A B8 CA 1C 06 3B E7 90 00 89 [20:52:30]RAPDU: EE 2A B8 CA 1C 06 3B E7 90 00 [20:52:30]wFMCommunicate OK [20:52:30]SAM_PROTO_SignData done [20:52:30]FM_MakeSignedData done [20:52:30]CreateOFDProtocolMessage [20:52:30]wFMCommunicate request_size=4 [20:52:30]MH_SAM_APDU [20:52:30]CAPDU: 80 11 00 00 [20:52:30]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:52:30]Write i2c OK [20:52:30]MH_I2C_Read... [20:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:30]Read from MH i2c: E2 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 17 00 [20:52:30]MH_I2C_Read... [20:52:30]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [20:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:52:31]wFMCommunicate OK [20:52:31]CreateOFDProtocolMessage done [20:52:31]OFDSenderStorePacket 82479 [20:52:31]StoreOFDPacket docnum=82479 [20:52:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 67 F5 07 01 F3 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 34 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1B 00 00 00 00 07 04 06 00 98 02 01 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 8D CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 42 01 00 35 04 06 00 A5 D0 DB 97 66 35 EE 2A B8 CA 1C 06 3B E7 [20:52:31]CheckFolder [20:52:31]dirname=/storage/ofd_packets [20:52:31]CheckFolder done [20:52:31]ProducePacketName [20:52:31]name=ofd_packets/00082479 [20:52:31]NVStorageSaveData ofd_packets/00082479 [20:52:31]File name is /storage/ofd_packets/00082479 [20:52:31]Write 301 bytes [20:52:31]NVStorageSaveData done [20:52:31]OFDSenderStorePacket done [20:52:31]KKMCreateOFDPacket done [20:52:31]NVStorageSaveData kkm_last_timestamp [20:52:31]File name is /storage/kkm_last_timestamp [20:52:31]Write 4 bytes [20:52:31]NVStorageSaveData done [20:52:31]ExternCall_PrintAddStr [20:52:31]wPrintStart [20:52:31]Write to MH i2c: 01 00 00 31 00 31 [20:52:31]Write i2c OK [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: 01 [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: 01 07 00 [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:52:31]RasterBufferAndPrint [20:52:31]line Счет N : (1)918972 [20:52:31]line ИНН: 02508201610067 [20:52:31]line Контрольно-Кассовый Чек [20:52:31]line ПРОДАЖА [20:52:31]line ТРК (МРК, ГНК) : 11 [20:52:31]line Товар: 2710124130 [20:52:31]line Аи-92-К-4 [20:52:31]line 9.900 * 66.90 [20:52:31]line = 662.31 [20:52:31]line НДС 12% НСП 1% [20:52:31]line > о реализуемом товаре [20:52:31]line ОКРУГЛЕНИЕ: -0.31 [20:52:31]line ИТОГО: 662.00 [20:52:31]line Внесено: 662.00 [20:52:31]line СДАЧА: 0.00 [20:52:31]line НСП 1% : 5.86 [20:52:31]line НДС 12% : 70.33 [20:52:31]line Наличными: 662.00 [20:52:31]line Безнал.: 0.00 [20:52:31]line Место: АЗС № 114 "Партнер Нефть" [20:52:31]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:52:31]line СНО: Общий режим [20:52:31]line Чек 188 18.10.2024 20:52 [20:52:31]line Смена: 526 ФФД: 1.0 [20:52:31]line ЗНМ: 0300000086 [20:52:31]line РНМ: 0000000000091680 [20:52:31]line Версия ККМ: 001 [20:52:31]line ФМ: 0000000000871843 [20:52:31]line ФД: 82479 [20:52:31]line ФПД: 182316455913013 [20:52:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205229&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82479&fm=182316455913013&tin=02508201610067®Number=0000000000091680&sum=66200 [20:52:31]written 0, free lines is 4095 [20:52:31]OFD Sender: Processing packet 82479 [packets to send 254, broken 253] [20:52:31]ProducePacketName [20:52:31]name=ofd_packets/00082479 [20:52:31]OFD Sender: To server: pG, [20:52:31]CommunicateWithHost lk.salyk.kg:30040 [20:52:31]ConnectInit lk.salyk.kg [20:52:31]Write to MH i2c: 01 00 00 5C 00 5C [20:52:31]Write i2c OK [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: 01 [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: 01 07 00 [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E8 0C 57 [20:52:31]RasterBufferAndPrint [20:52:31]line [20:52:31]line [20:52:31]line [20:52:31]line [20:52:31]line [20:52:31]written 0, free lines is 3329 [20:52:31]MH_Cut [20:52:31]Write to MH i2c: D1 01 00 63 00 01 35 [20:52:31]Write i2c OK [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: D1 [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: D1 01 00 [20:52:31]MH_I2C_Read... [20:52:31]Read from MH i2c: D1 01 00 63 00 00 34 [20:52:31]Write to MH i2c: 01 00 00 64 00 64 [20:52:31]Write i2c OK [20:52:31]MH_I2C_Read... [20:52:32]Connected sock=10 [20:52:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 67 F5 07 01 F3 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 34 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1B 00 00 00 00 07 04 06 00 98 02 01 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 8D CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 *** Cut start [20:52:32]30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 42 01 00 35 04 06 00 A5 D0 DB 97 66 35 EE 2A B8 CA 1C 06 3B E7 [20:52:32]*** Partial cut [20:52:32]*** CUTSNS_PIN = 1 [20:52:32]*** CUTSNS_PIN = 0 [20:52:32]*** Brake cut motor [20:52:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 30 94 47 00 84 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 2F 42 01 00 F4 03 04 00 C8 6F 12 67 B6 04 01 00 00 DF A3 0A 2F 3A 8D 49 E2 [20:52:32]CommunicateWithHost err = 0 [20:52:32]CheckOFDResponse [20:52:32]1017 (14) - 77093643461234 [20:52:32]1041 (16) - 0000000000871843 [20:52:32]1040 (4) - 82479 [20:52:32]1012 (4) - 18.10.2024 14:25 [20:52:32]1206 (1) - 0 [20:52:32]OFD Sender: Remove packet 82479 [20:52:32]ProducePacketName [20:52:32]name=ofd_packets/00082479 [20:52:32]NVStorageDeleteData [20:52:32]*** Stop cut motor [20:52:32]*** Cut end [20:52:32]Read from MH i2c: 01 [20:52:32]MH_I2C_Read... [20:52:32]Read from MH i2c: 01 07 00 [20:52:32]MH_I2C_Read... [20:52:32]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [20:52:32]process_action close_receipt done [20:52:32]requested_data is exist [20:52:32]produce_requested_data [20:52:32]requested_item fm.sn is exist - process it [20:52:32]wFMCommunicate request_size=4 [20:52:32]MH_SAM_APDU [20:52:32]CAPDU: 80 11 00 00 [20:52:33]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [20:52:33]Write i2c OK [20:52:33]MH_I2C_Read... [20:52:33]Read from MH i2c: E2 [20:52:33]MH_I2C_Read... [20:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:33]Read from MH i2c: E2 17 00 [20:52:33]MH_I2C_Read... [20:52:33]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 31 38 34 33 90 00 31 [20:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:52:33]wFMCommunicate OK [20:52:33]requested_item fd.num is exist - process it [20:52:33]SAM_PROTO_GetFieldsCounters [20:52:33]wFMCommunicate request_size=4 [20:52:33]MH_SAM_APDU [20:52:33]CAPDU: 80 13 00 00 [20:52:33]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [20:52:33]Write i2c OK [20:52:33]MH_I2C_Read... [20:52:33]Read from MH i2c: E2 [20:52:33]MH_I2C_Read... [20:52:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:33]Read from MH i2c: E2 62 00 [20:52:33]MH_I2C_Read... [20:52:33]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [20:52:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 2F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:33]wFMCommunicate OK [20:52:33]SAM_PROTO_GetFieldsCounters done [20:52:33]requested_item shift.num is exist - process it [20:52:33]requested_item shift.opened is exist - process it [20:52:33]req_shift_opened [20:52:33]FM_GetShiftState [20:52:33]SAM_PROTO_GetShiftState [20:52:33]wFMCommunicate request_size=4 [20:52:33]MH_SAM_APDU [20:52:33]CAPDU: 80 13 01 00 [20:52:33]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [20:52:33]Write i2c OK [20:52:33]MH_I2C_Read... [20:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:33]Read from MH i2c: E2 [20:52:33]MH_I2C_Read... [20:52:33]Read from MH i2c: E2 0E 00 [20:52:33]MH_I2C_Read... [20:52:33]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B6 [20:52:33]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:52:33]wFMCommunicate OK [20:52:33]SAM_PROTO_GetShiftState done [20:52:33]FM_GetShiftState done [20:52:33]req_shift_opened done [20:52:33]requested_item shift.open_date is exist - process it [20:52:33]req_shift_open_date [20:52:33]req_shift_open_date done [20:52:33]produce_requested_data done [20:52:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82479,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:52:33]process_action_free close_receipt [20:52:33]json_value_free [20:52:33]json_value_free done [20:52:33]process_json_proto returns [20:52:33]Send response to host [20:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82479,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:52:33]OFD Sender: No OFD packet to send [20:52:33]free response buf [20:52:33]execute_script done [20:52:33]execute_script returns [20:52:33]free content buf [20:52:33]Sock 8.Close socket [20:52:33]Sock 8.Thread stoped [20:52:38]OFD Sender: No OFD packet to send [20:52:42]recv_with_timeout no data received [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:57]accept exits with 6 [20:52:57]New connection [20:52:57]New thread 3067153764 created [20:52:57]Thread 3067297124 joined [20:52:57]Waiting for new connection... [20:52:57] Sock 6.Parse request [20:52:57]Sock 6.Check first char [20:52:57]Sock 6.First char is OK [20:52:57]request: POST /json_proto HTTP/1.0 [20:52:57]Method: POST [20:52:57]URL: /json_proto [20:52:57]Method is POST - this is cgi request [20:52:57]url: /json_proto [20:52:57]query_string will be loaded in cgi processing [20:52:57]execute_cgi json_proto POST (null) [20:52:57]execute_cgi path=json_proto method=POST [20:52:57]POST find Content-Length [20:52:57]Host: 172.17.44.67:8080 [20:52:57]Content-Length: 677 [20:52:57]Content-Type: application/json [20:52:57] [20:52:57]POST finish read [20:52:57]Found Content-Length = 677 [20:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:57]execute_script... [20:52:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:57]POST & json_proto [20:52:57]process_json_proto [20:52:57]json parsed OK: [20:52:57]protocol is kg_v1.0 [20:52:57]action value=close_receipt [20:52:57]process_action close_receipt [20:52:57]cmd_close_receipt [20:52:57]MH_GetDate [20:52:57]Write to MH i2c: F0 00 00 68 00 57 [20:52:57]Write i2c OK [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: F0 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: F0 09 00 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: F0 09 00 68 00 00 AA CA 12 67 F1 C7 6B 64 D4 [20:52:57]GetLastDocTimeStamp 1729284749 [20:52:57]current date 1729284778 [20:52:57]FM_GetShiftState [20:52:57]SAM_PROTO_GetShiftState [20:52:57]wFMCommunicate request_size=4 [20:52:57]MH_SAM_APDU [20:52:57]CAPDU: 80 13 01 00 [20:52:57]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [20:52:57]Write i2c OK [20:52:57]MH_I2C_Read... [20:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:57]Read from MH i2c: E2 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 0E 00 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B8 [20:52:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:52:57]wFMCommunicate OK [20:52:57]SAM_PROTO_GetShiftState done [20:52:57]FM_GetShiftState done [20:52:57]opened in 1729212319 [20:52:57]opened+sec_in_day 1729298719 [20:52:57]quantity*price = 20003 [20:52:57]sum+1 = 20004 [20:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 189 18.10.2024 20:52 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82480 ФПД: 106610423530027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82480&fm=106610423530027&tin=02508201610067®Number=0000000000091680&sum=20000 [20:52:58]StoreToDocumentArchive [20:52:58]shift 526 fd 82480 [20:52:58]save to /storage/0526/doc_00082480 [20:52:58]save last doc name /storage/0526/doc_00082480 to /storage/kkm_last_doc_name [20:52:58]save OK [20:52:58]Clear old archive folders... [20:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:58]tlvbuf is 01E83A00 [20:52:58]SAM_PROTO_ClearQueue [20:52:58]wFMCommunicate request_size=4 [20:52:58]MH_SAM_APDU [20:52:58]CAPDU: 80 09 00 00 [20:52:58]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [20:52:58]Write i2c OK [20:52:58]MH_I2C_Read... [20:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:58]Read from MH i2c: E2 [20:52:58]MH_I2C_Read... [20:52:58]Read from MH i2c: E2 03 00 [20:52:58]MH_I2C_Read... [20:52:58]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [20:52:58]RAPDU: 90 00 [20:52:58]wFMCommunicate OK [20:52:58]SAM_PROTO_ClearQueue done [20:52:58]KKMCreateOFDPacket [20:52:58]OFDProtocolAddRootSTLVToBuf [20:52:58]FM_MakeSignedData [20:52:58]FM_MakeSignedData [20:52:58]SAM_PROTO_SignData [20:52:58]wFMCommunicate request_size=4 [20:52:58]MH_SAM_APDU [20:52:58]CAPDU: 80 0D 01 02 [20:52:58]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [20:52:58]Write i2c OK [20:52:58]MH_I2C_Read... [20:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:58]Read from MH i2c: E2 [20:52:58]MH_I2C_Read... [20:52:58]Read from MH i2c: E2 03 00 [20:52:58]MH_I2C_Read... [20:52:58]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [20:52:58]RAPDU: 90 00 [20:52:58]wFMCommunicate OK [20:52:58]wFMCommunicate request_size=255 [20:52:58]MH_SAM_APDU [20:52: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 42 01 00 35 04 06 00 60 [20:52:59]Write to MH i2c: E2 02 01 78 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 42 01 00 35 04 06 00 60 00 00 CB [20:52:59]Write i2c OK [20:52:59]MH_I2C_Read... [20:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:59]Read from MH i2c: E2 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: E2 03 00 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [20:52:59]RAPDU: 90 00 [20:52:59]wFMCommunicate OK [20:52:59]wFMCommunicate request_size=10 [20:52:59]MH_SAM_APDU [20:52:59]CAPDU: 80 0D 02 02 05 F6 2C 6C 82 2B [20:52:59]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 F6 2C 6C 82 2B 00 00 38 [20:52:59]Write i2c OK [20:52:59]MH_I2C_Read... [20:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:59]Read from MH i2c: E2 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: E2 03 00 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [20:52:59]RAPDU: 90 00 [20:52:59]wFMCommunicate OK [20:52:59]wFMCommunicate request_size=4 [20:52:59]MH_SAM_APDU [20:52:59]CAPDU: 80 0D 03 02 [20:52:59]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [20:52:59]Write i2c OK [20:52:59]MH_I2C_Read... [20:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:59]Read from MH i2c: E2 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: E2 0B 00 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: E2 0B 00 7A 00 00 24 86 32 8B 7C EE F6 CA 90 00 87 [20:52:59]RAPDU: 24 86 32 8B 7C EE F6 CA 90 00 [20:52:59]wFMCommunicate OK [20:52:59]SAM_PROTO_SignData done [20:52:59]FM_MakeSignedData done [20:52:59]CreateOFDProtocolMessage [20:52:59]wFMCommunicate request_size=4 [20:52:59]MH_SAM_APDU [20:52:59]CAPDU: 80 11 00 00 [20:52:59]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [20:52:59]Write i2c OK [20:52:59]MH_I2C_Read... [20:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:59]Read from MH i2c: E2 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: E2 17 00 [20:52:59]MH_I2C_Read... [20:52:59]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 31 38 34 33 90 00 47 [20:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:52:59]wFMCommunicate OK [20:52:59]CreateOFDProtocolMessage done [20:52:59]OFDSenderStorePacket 82480 [20:52:59]StoreOFDPacket docnum=82480 [20:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E8 2A 07 01 DF 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 42 01 00 35 04 06 00 60 F6 2C 6C 82 2B 24 86 32 8B 7C EE F6 CA [20:52:59]CheckFolder [20:52:59]dirname=/storage/ofd_packets [20:52:59]CheckFolder done [20:52:59]ProducePacketName [20:52:59]name=ofd_packets/00082480 [20:52:59]NVStorageSaveData ofd_packets/00082480 [20:52:59]File name is /storage/ofd_packets/00082480 [20:52:59]Write 301 bytes [20:52:59]NVStorageSaveData done [20:52:59]OFDSenderStorePacket done [20:52:59]KKMCreateOFDPacket done [20:52:59]NVStorageSaveData kkm_last_timestamp [20:52:59]File name is /storage/kkm_last_timestamp [20:52:59]Write 4 bytes [20:52:59]NVStorageSaveData done [20:52:59]ExternCall_PrintAddStr [20:52:59]wPrintStart [20:52:59]Write to MH i2c: 01 00 00 7C 00 7C [20:52:59]Write i2c OK [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: 01 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: 01 07 00 [20:52:59]MH_I2C_Read... [20:52:59]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [20:52:59]RasterBufferAndPrint [20:52:59]line Счет N : (1)918973 [20:52:59]line ИНН: 02508201610067 [20:52:59]line Контрольно-Кассовый Чек [20:52:59]line ПРОДАЖА [20:52:59]line ТРК (МРК, ГНК) : 22 [20:52:59]line Товар: 2710124130 [20:52:59]line Аи-92-К-4 [20:52:59]line 2.990 * 66.90 [20:52:59]line = 200.03 [20:52:59]line НДС 12% НСП 1% [20:52:59]line > о реализуемом товаре [20:52:59]line ОКРУГЛЕНИЕ: -0.03 [20:52:59]line ИТОГО: 200.00 [20:52:59]line Внесено: 200.00 [20:52:59]line СДАЧА: 0.00 [20:52:59]line НСП 1% : 1.77 [20:52:59]line НДС 12% : 21.24 [20:52:59]line Наличными: 200.00 [20:52:59]line Безнал.: 0.00 [20:52:59]line Место: АЗС № 114 "Партнер Нефть" [20:52:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:52:59]line СНО: Общий режим [20:52:59]line Чек 189 18.10.2024 20:52 [20:52:59]line Смена: 526 ФФД: 1.0 [20:52:59]line ЗНМ: 0300000086 [20:52:59]line РНМ: 0000000000091680 [20:52:59]line Версия ККМ: 001 [20:52:59]line ФМ: 0000000000871843 [20:52:59]line ФД: 82480 [20:52:59]line ФПД: 106610423530027 [20:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82480&fm=106610423530027&tin=02508201610067®Number=0000000000091680&sum=20000 [20:52:59]OFD Sender: Processing packet 82480 [packets to send 254, broken 253] [20:52:59]ProducePacketName [20:52:59]name=ofd_packets/00082480 [20:52:59]OFD Sender: To server: pG, [20:52:59]CommunicateWithHost lk.salyk.kg:30040 [20:52:59]ConnectInit lk.salyk.kg [20:52:59]written 0, free lines is 4095 [20:53:00]Write to MH i2c: 01 00 00 A7 00 A7 [20:53:00]Write i2c OK [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: 01 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: 01 07 00 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 E7 0C A1 [20:53:00]RasterBufferAndPrint [20:53:00]line [20:53:00]line [20:53:00]line [20:53:00]line [20:53:00]line [20:53:00]written 0, free lines is 3324 [20:53:00]MH_Cut [20:53:00]Write to MH i2c: D1 01 00 AE 00 01 80 [20:53:00]Write i2c OK [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: D1 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: D1 01 00 [20:53:00]MH_I2C_Read... [20:53:00]Read from MH i2c: D1 01 00 AE 00 00 7F [20:53:00]Write to MH i2c: 01 00 00 AF 00 AF [20:53:00]Write i2c OK [20:53:00]MH_I2C_Read... [20:53:00]Connected sock=11 [20:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E8 2A 07 01 DF 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 AA CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 42 01 00 35 04 06 00 60 F6 2C 6C 82 2B 24 86 32 8B 7C EE F6 CA [20:53:00]*** Cut start [20:53:00]*** Partial cut [20:53:00]*** CUTSNS_PIN = 1 [20:53:00]*** CUTSNS_PIN = 0 [20:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 62 3F 47 00 2E 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 30 42 01 00 F4 03 04 00 E4 6F 12 67 B6 04 01 00 00 07 2B 2E 20 C3 0C 63 32 [20:53:01]CommunicateWithHost err = 0 [20:53:01]CheckOFDResponse [20:53:01]1017 (14) - 77093643461234 [20:53:01]1041 (16) - 0000000000871843 [20:53:01]1040 (4) - 82480 [20:53:01]1012 (4) - 18.10.2024 14:25 [20:53:01]1206 (1) - 0 [20:53:01]OFD Sender: Remove packet 82480 [20:53:01]ProducePacketName [20:53:01]name=ofd_packets/00082480 [20:53:01]NVStorageDeleteData [20:53:01]*** Brake cut motor [20:53:01]Read from MH i2c: 01 [20:53:01]MH_I2C_Read... [20:53:01]*** Stop cut motor [20:53:01]*** Cut end [20:53:01]Read from MH i2c: 01 07 00 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [20:53:01]process_action close_receipt done [20:53:01]requested_data is exist [20:53:01]produce_requested_data [20:53:01]requested_item fm.sn is exist - process it [20:53:01]wFMCommunicate request_size=4 [20:53:01]MH_SAM_APDU [20:53:01]CAPDU: 80 11 00 00 [20:53:01]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [20:53:01]Write i2c OK [20:53:01]MH_I2C_Read... [20:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:01]Read from MH i2c: E2 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 17 00 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7C [20:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:53:01]wFMCommunicate OK [20:53:01]requested_item fd.num is exist - process it [20:53:01]SAM_PROTO_GetFieldsCounters [20:53:01]wFMCommunicate request_size=4 [20:53:01]MH_SAM_APDU [20:53:01]CAPDU: 80 13 00 00 [20:53:01]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [20:53:01]Write i2c OK [20:53:01]MH_I2C_Read... [20:53:01]OFD Sender: No OFD packet to send [20:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:01]Read from MH i2c: E2 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 62 00 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [20:53:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 30 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:01]wFMCommunicate OK [20:53:01]SAM_PROTO_GetFieldsCounters done [20:53:01]requested_item shift.num is exist - process it [20:53:01]requested_item shift.opened is exist - process it [20:53:01]req_shift_opened [20:53:01]FM_GetShiftState [20:53:01]SAM_PROTO_GetShiftState [20:53:01]wFMCommunicate request_size=4 [20:53:01]MH_SAM_APDU [20:53:01]CAPDU: 80 13 01 00 [20:53:01]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [20:53:01]Write i2c OK [20:53:01]MH_I2C_Read... [20:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:01]Read from MH i2c: E2 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 0E 00 [20:53:01]MH_I2C_Read... [20:53:01]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 01 [20:53:01]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:53:01]wFMCommunicate OK [20:53:01]SAM_PROTO_GetShiftState done [20:53:01]FM_GetShiftState done [20:53:01]req_shift_opened done [20:53:01]requested_item shift.open_date is exist - process it [20:53:01]req_shift_open_date [20:53:01]req_shift_open_date done [20:53:01]produce_requested_data done [20:53:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82480,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:53:01]process_action_free close_receipt [20:53:01]json_value_free [20:53:01]json_value_free done [20:53:01]process_json_proto returns [20:53:01]Send response to host [20:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82480,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:53:01]free response buf [20:53:01]execute_script done [20:53:01]execute_script returns [20:53:01]free content buf [20:53:01]Sock 6.Close socket [20:53:01]Sock 6.Thread stoped [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:19]recv_with_timeout no data received [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:31]accept exits with 10 [20:53:31]New connection [20:53:31]New thread 3067297124 created [20:53:31]Thread 3067153764 joined [20:53:31]Waiting for new connection... [20:53:31] Sock 10.Parse request [20:53:31]Sock 10.Check first char [20:53:31]Sock 10.First char is OK [20:53:31]request: POST /json_proto HTTP/1.0 [20:53:31]Method: POST [20:53:31]URL: /json_proto [20:53:31]Method is POST - this is cgi request [20:53:31]url: /json_proto [20:53:31]query_string will be loaded in cgi processing [20:53:31]execute_cgi json_proto POST (null) [20:53:31]execute_cgi path=json_proto method=POST [20:53:31]POST find Content-Length [20:53:31]Host: 172.17.44.67:8080 [20:53:31]Content-Length: 682 [20:53:31]Content-Type: application/json [20:53:31] [20:53:31]POST finish read [20:53:31]Found Content-Length = 682 [20:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:31]execute_script... [20:53: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)918974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:31]POST & json_proto [20:53:31]process_json_proto [20:53:31]json parsed OK: [20:53:31]protocol is kg_v1.0 [20:53:31]action value=close_receipt [20:53:31]process_action close_receipt [20:53:31]cmd_close_receipt [20:53:31]MH_GetDate [20:53:31]Write to MH i2c: F0 00 00 B3 00 A2 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: F0 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: F0 09 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: F0 09 00 B3 00 00 CC CA 12 67 F1 C7 6B 64 41 [20:53:31]GetLastDocTimeStamp 1729284778 [20:53:31]current date 1729284812 [20:53:31]FM_GetShiftState [20:53:31]SAM_PROTO_GetShiftState [20:53:31]wFMCommunicate request_size=4 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 13 01 00 [20:53:31]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:31]Read from MH i2c: E2 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 0E 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 03 [20:53:31]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:53:31]wFMCommunicate OK [20:53:31]SAM_PROTO_GetShiftState done [20:53:31]FM_GetShiftState done [20:53:31]opened in 1729212319 [20:53:31]opened+sec_in_day 1729298719 [20:53:31]quantity*price = 70027 [20:53:31]sum+1 = 70029 [20:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 190 18.10.2024 20:53 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82481 ФПД: 260351902089650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205332&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82481&fm=260351902089650&tin=02508201610067®Number=0000000000091680&sum=70000 [20:53:32]StoreToDocumentArchive [20:53:32]shift 526 fd 82481 [20:53:32]save to /storage/0526/doc_00082481 [20:53:32]save last doc name /storage/0526/doc_00082481 to /storage/kkm_last_doc_name [20:53:32]save OK [20:53:32]Clear old archive folders... [20:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:53:32]tlvbuf is 01E1E370 [20:53:32]SAM_PROTO_ClearQueue [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 09 00 00 [20:53:32]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 03 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [20:53:32]RAPDU: 90 00 [20:53:32]wFMCommunicate OK [20:53:32]SAM_PROTO_ClearQueue done [20:53:32]KKMCreateOFDPacket [20:53:32]OFDProtocolAddRootSTLVToBuf [20:53:32]FM_MakeSignedData [20:53:32]FM_MakeSignedData [20:53:32]SAM_PROTO_SignData [20:53:32]wFMCommunicate request_size=4 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 0D 01 02 [20:53:32]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [20:53:32]Write i2c OK [20:53:32]MH_I2C_Read... [20:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 03 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [20:53:32]RAPDU: 90 00 [20:53:32]wFMCommunicate OK [20:53:32]wFMCommunicate request_size=255 [20:53:32]MH_SAM_APDU [20:53:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 42 01 00 35 04 06 00 [20:53:32]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 42 01 00 35 04 06 00 00 00 F3 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [20:53:33]RAPDU: 90 00 [20:53:33]wFMCommunicate OK [20:53:33]wFMCommunicate request_size=11 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 0D 02 02 06 EC C9 E6 A4 01 B2 [20:53:33]Write to MH i2c: E2 0E 00 C4 00 80 0D 02 02 06 00 EC C9 E6 A4 01 B2 00 00 3C [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [20:53:33]RAPDU: 90 00 [20:53:33]wFMCommunicate OK [20:53:33]wFMCommunicate request_size=4 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 0D 03 02 [20:53:33]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 0B 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 0B 00 C5 00 00 50 8E CD 1A 12 32 A8 78 90 00 6A [20:53:33]RAPDU: 50 8E CD 1A 12 32 A8 78 90 00 [20:53:33]wFMCommunicate OK [20:53:33]SAM_PROTO_SignData done [20:53:33]FM_MakeSignedData done [20:53:33]CreateOFDProtocolMessage [20:53:33]wFMCommunicate request_size=4 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 11 00 00 [20:53:33]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 17 00 [20:53:33]MH_I2C_Read... [20:53:33]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 31 38 34 33 90 00 92 [20:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:53:33]wFMCommunicate OK [20:53:33]CreateOFDProtocolMessage done [20:53:33]OFDSenderStorePacket 82481 [20:53:33]StoreOFDPacket docnum=82481 [20:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F0 87 08 01 1B C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 42 01 00 35 04 06 00 EC C9 E6 A4 01 B2 50 8E CD 1A 12 32 A8 78 [20:53:33]CheckFolder [20:53:33]dirname=/storage/ofd_packets [20:53:33]CheckFolder done [20:53:33]ProducePacketName [20:53:33]name=ofd_packets/00082481 [20:53:33]NVStorageSaveData ofd_packets/00082481 [20:53:33]File name is /storage/ofd_packets/00082481 [20:53:33]Write 302 bytes [20:53:33]NVStorageSaveData done [20:53:33]OFDSenderStorePacket done [20:53:33]KKMCreateOFDPacket done [20:53:33]NVStorageSaveData kkm_last_timestamp [20:53:33]File name is /storage/kkm_last_timestamp [20:53:33]Write 4 bytes [20:53:33]NVStorageSaveData done [20:53:33]ExternCall_PrintAddStr [20:53:33]wPrintStart [20:53:33]Write to MH i2c: 01 00 00 C7 00 C7 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [20:53:33]RasterBufferAndPrint [20:53:33]line Счет N : (1)918974 [20:53:33]line ИНН: 02508201610067 [20:53:33]line Контрольно-Кассовый Чек [20:53:33]line ПРОДАЖА [20:53:33]line ТРК (МРК, ГНК) : 31 [20:53:33]line Товар: 2710194210 [20:53:33]line ДТ(л)-К-5 [20:53:33]line 9.190 * 76.20 [20:53:33]line = 700.28 [20:53:33]line НДС 12% НСП 1% [20:53:33]line > о реализуемом товаре [20:53:33]line ОКРУГЛЕНИЕ: -0.28 [20:53:33]line ИТОГО: 700.00 [20:53:33]line Внесено: 700.00 [20:53:33]line СДАЧА: 0.00 [20:53:33]line НСП 1% : 6.20 [20:53:33]line НДС 12% : 74.37 [20:53:33]line Наличными: 700.00 [20:53:33]line Безнал.: 0.00 [20:53:33]line Место: АЗС № 114 "Партнер Нефть" [20:53:33]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:53:33]line СНО: Общий режим [20:53:33]line Чек 190 18.10.2024 20:53 [20:53:33]line Смена: 526 ФФД: 1.0 [20:53:33]line ЗНМ: 0300000086 [20:53:33]line РНМ: 0000000000091680 [20:53:33]line Версия ККМ: 001 [20:53:33]line ФМ: 0000000000871843 [20:53:33]line ФД: 82481 [20:53:33]line ФПД: 260351902089650 [20:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205332&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82481&fm=260351902089650&tin=02508201610067®Number=0000000000091680&sum=70000 [20:53:33]written 0, free lines is 4095 [20:53:33]OFD Sender: Processing packet 82481 [packets to send 254, broken 253] [20:53:33]ProducePacketName [20:53:33]name=ofd_packets/00082481 [20:53:33]OFD Sender: To server: pG, [20:53:33]CommunicateWithHost lk.salyk.kg:30040 [20:53:33]ConnectInit lk.salyk.kg [20:53:34]Write to MH i2c: 01 00 00 F2 00 F2 [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 07 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 E4 0C E9 [20:53:34]RasterBufferAndPrint [20:53:34]line [20:53:34]line [20:53:34]line [20:53:34]line [20:53:34]line [20:53:34]written 0, free lines is 3315 [20:53:34]MH_Cut [20:53:34]Write to MH i2c: D1 01 00 F9 00 01 CB [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: D1 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: D1 01 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: D1 01 00 F9 00 00 CA [20:53:34]Write to MH i2c: 01 00 00 FA 00 FA [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]Connected sock=11 [20:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 F0 87 08 01 1B C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC CA 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 42 01 00 35 04 06 00 EC C9 E6 A4 01 B2 50 8E CD 1A 12 32 A8 78 [20:53:34]*** Cut start [20:53:34]*** Partial cut [20:53:34]*** CUTSNS_PIN = 1 [20:53:34]*** CUTSNS_PIN = 0 [20:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 97 C6 47 00 1F D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 31 42 01 00 F4 03 04 00 06 70 12 67 B6 04 01 00 00 DB 14 1C 6D 25 E2 52 67 [20:53:34]CommunicateWithHost err = 0 [20:53:34]CheckOFDResponse [20:53:34]1017 (14) - 77093643461234 [20:53:34]1041 (16) - 0000000000871843 [20:53:34]1040 (4) - 82481 [20:53:34]1012 (4) - 18.10.2024 14:26 [20:53:34]1206 (1) - 0 [20:53:34]OFD Sender: Remove packet 82481 [20:53:34]ProducePacketName [20:53:34]name=ofd_packets/00082481 [20:53:34]NVStorageDeleteData [20:53:35]*** Brake cut motor [20:53:35]Read from MH i2c: 01 [20:53:35]MH_I2C_Read... [20:53:35]*** Stop cut motor [20:53:35]*** Cut end [20:53:35]Read from MH i2c: 01 07 00 [20:53:35]MH_I2C_Read... [20:53:35]OFD Sender: No OFD packet to send [20:53:35]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [20:53:35]process_action close_receipt done [20:53:35]requested_data is exist [20:53:35]produce_requested_data [20:53:35]requested_item fm.sn is exist - process it [20:53:35]wFMCommunicate request_size=4 [20:53:35]MH_SAM_APDU [20:53:35]CAPDU: 80 11 00 00 [20:53:35]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [20:53:35]Write i2c OK [20:53:35]MH_I2C_Read... [20:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:35]Read from MH i2c: E2 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 17 00 [20:53:35]MH_I2C_Read... [20:53:35]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 31 38 34 33 90 00 C7 [20:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:53:35]wFMCommunicate OK [20:53:35]requested_item fd.num is exist - process it [20:53:35]SAM_PROTO_GetFieldsCounters [20:53:35]wFMCommunicate request_size=4 [20:53:35]MH_SAM_APDU [20:53:35]CAPDU: 80 13 00 00 [20:53:35]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [20:53:35]Write i2c OK [20:53:35]MH_I2C_Read... [20:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:35]Read from MH i2c: E2 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 62 00 [20:53:35]MH_I2C_Read... [20:53:35]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 31 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [20:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 31 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:35]wFMCommunicate OK [20:53:35]SAM_PROTO_GetFieldsCounters done [20:53:35]requested_item shift.num is exist - process it [20:53:35]requested_item shift.opened is exist - process it [20:53:35]req_shift_opened [20:53:35]FM_GetShiftState [20:53:35]SAM_PROTO_GetShiftState [20:53:35]wFMCommunicate request_size=4 [20:53:35]MH_SAM_APDU [20:53:35]CAPDU: 80 13 01 00 [20:53:35]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [20:53:35]Write i2c OK [20:53:35]MH_I2C_Read... [20:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:35]Read from MH i2c: E2 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 0E 00 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4C [20:53:35]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:53:35]wFMCommunicate OK [20:53:35]SAM_PROTO_GetShiftState done [20:53:35]FM_GetShiftState done [20:53:35]req_shift_opened done [20:53:35]requested_item shift.open_date is exist - process it [20:53:35]req_shift_open_date [20:53:35]req_shift_open_date done [20:53:35]produce_requested_data done [20:53:35]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82481,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:53:35]process_action_free close_receipt [20:53:35]json_value_free [20:53:35]json_value_free done [20:53:35]process_json_proto returns [20:53:35]Send response to host [20:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82481,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:53:35]free response buf [20:53:35]execute_script done [20:53:35]execute_script returns [20:53:35]free content buf [20:53:35]Sock 10.Close socket [20:53:35]Sock 10.Thread stoped [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:04]recv_with_timeout no data received [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57: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]accept exits with 8 [20:58:05]New connection [20:58:05]New thread 3067153764 created [20:58:05]Thread 3067297124 joined [20:58:05]Waiting for new connection... [20:58:05] Sock 8.Parse request [20:58:05]Sock 8.Check first char [20:58:05]Sock 8.First char is OK [20:58:05]request: POST /json_proto HTTP/1.0 [20:58:05]Method: POST [20:58:05]URL: /json_proto [20:58:05]Method is POST - this is cgi request [20:58:05]url: /json_proto [20:58:05]query_string will be loaded in cgi processing [20:58:05]execute_cgi json_proto POST (null) [20:58:05]execute_cgi path=json_proto method=POST [20:58:05]POST find Content-Length [20:58:05]Host: 172.17.44.67:8080 [20:58:05]Content-Length: 677 [20:58:05]Content-Type: application/json [20:58:05] [20:58:05]POST finish read [20:58:05]Found Content-Length = 677 [20:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:05]execute_script... [20: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)918975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:05]POST & json_proto [20:58:05]process_json_proto [20:58:05]json parsed OK: [20:58:05]protocol is kg_v1.0 [20:58:05]action value=close_receipt [20:58:05]process_action close_receipt [20:58:05]cmd_close_receipt [20:58:05]MH_GetDate [20:58:05]Write to MH i2c: F0 00 00 FE 00 ED [20:58:05]Write i2c OK [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: F0 [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: F0 09 00 [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: F0 09 00 FE 00 00 DE CB 12 67 F1 C7 6B 64 9F [20:58:05]GetLastDocTimeStamp 1729284812 [20:58:05]current date 1729285086 [20:58:05]FM_GetShiftState [20:58:05]SAM_PROTO_GetShiftState [20:58:05]wFMCommunicate request_size=4 [20:58:05]MH_SAM_APDU [20:58:05]CAPDU: 80 13 01 00 [20:58:05]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [20:58:05]Write i2c OK [20:58:05]MH_I2C_Read... [20:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:05]Read from MH i2c: E2 [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: E2 0E 00 [20:58:05]MH_I2C_Read... [20:58:05]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4E [20:58:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:58:05]wFMCommunicate OK [20:58:05]SAM_PROTO_GetShiftState done [20:58:05]FM_GetShiftState done [20:58:05]opened in 1729212319 [20:58:05]opened+sec_in_day 1729298719 [20:58:05]quantity*price = 50041 [20:58:05]sum+1 = 50042 [20:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 191 18.10.2024 20:58 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82482 ФПД: 62442323673179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205806&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82482&fm=62442323673179&tin=02508201610067®Number=0000000000091680&sum=50000 [20:58:06]StoreToDocumentArchive [20:58:06]shift 526 fd 82482 [20:58:06]save to /storage/0526/doc_00082482 [20:58:06]save last doc name /storage/0526/doc_00082482 to /storage/kkm_last_doc_name [20:58:06]save OK [20:58:06]Clear old archive folders... [20:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:06]tlvbuf is 01E1A900 [20:58:06]SAM_PROTO_ClearQueue [20:58:06]wFMCommunicate request_size=4 [20:58:06]MH_SAM_APDU [20:58:06]CAPDU: 80 09 00 00 [20:58:06]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [20:58:06]Write i2c OK [20:58:06]MH_I2C_Read... [20:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:06]Read from MH i2c: E2 [20:58:06]MH_I2C_Read... [20:58:06]Read from MH i2c: E2 03 00 [20:58:06]MH_I2C_Read... [20:58:06]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [20:58:06]RAPDU: 90 00 [20:58:06]wFMCommunicate OK [20:58:06]SAM_PROTO_ClearQueue done [20:58:06]KKMCreateOFDPacket [20:58:06]OFDProtocolAddRootSTLVToBuf [20:58:06]FM_MakeSignedData [20:58:06]FM_MakeSignedData [20:58:06]SAM_PROTO_SignData [20:58:06]wFMCommunicate request_size=4 [20:58:06]MH_SAM_APDU [20:58:06]CAPDU: 80 0D 01 02 [20:58:06]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [20:58:06]Write i2c OK [20:58:06]MH_I2C_Read... [20:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:06]Read from MH i2c: E2 [20:58:06]MH_I2C_Read... [20:58:06]Read from MH i2c: E2 03 00 [20:58:06]MH_I2C_Read... [20:58:06]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [20:58:06]RAPDU: 90 00 [20:58:06]wFMCommunicate OK [20:58:06]wFMCommunicate request_size=255 [20:58:06]MH_SAM_APDU [20: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DE CB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 42 01 00 35 04 06 00 38 [20:58:06]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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DE CB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 42 01 00 35 04 06 00 38 00 00 B1 [20:58:06]Write i2c OK [20:58:06]MH_I2C_Read... [20:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:07]Read from MH i2c: E2 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: E2 03 00 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [20:58:07]RAPDU: 90 00 [20:58:07]wFMCommunicate OK [20:58:07]wFMCommunicate request_size=10 [20:58:07]MH_SAM_APDU [20:58:07]CAPDU: 80 0D 02 02 05 CA 7C 85 80 5B [20:58:07]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 CA 7C 85 80 5B 00 00 3A [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:07]Read from MH i2c: E2 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: E2 03 00 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [20:58:07]RAPDU: 90 00 [20:58:07]wFMCommunicate OK [20:58:07]wFMCommunicate request_size=4 [20:58:07]MH_SAM_APDU [20:58:07]CAPDU: 80 0D 03 02 [20:58:07]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:07]Read from MH i2c: E2 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: E2 0B 00 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: E2 0B 00 10 01 00 75 0F 46 00 68 EF AF 21 90 00 7E [20:58:07]RAPDU: 75 0F 46 00 68 EF AF 21 90 00 [20:58:07]wFMCommunicate OK [20:58:07]SAM_PROTO_SignData done [20:58:07]FM_MakeSignedData done [20:58:07]CreateOFDProtocolMessage [20:58:07]wFMCommunicate request_size=4 [20:58:07]MH_SAM_APDU [20:58:07]CAPDU: 80 11 00 00 [20:58:07]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:07]Read from MH i2c: E2 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: E2 17 00 [20:58:07]MH_I2C_Read... [20:58:07]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 31 38 34 33 90 00 DE [20:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:58:07]wFMCommunicate OK [20:58:07]CreateOFDProtocolMessage done [20:58:07]OFDSenderStorePacket 82482 [20:58:07]StoreOFDPacket docnum=82482 [20:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E6 81 07 01 F2 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DE CB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 42 01 00 35 04 06 00 38 CA 7C 85 80 5B 75 0F 46 00 68 EF AF 21 [20:58:07]CheckFolder [20:58:07]dirname=/storage/ofd_packets [20:58:07]CheckFolder done [20:58:07]ProducePacketName [20:58:07]name=ofd_packets/00082482 [20:58:07]NVStorageSaveData ofd_packets/00082482 [20:58:07]File name is /storage/ofd_packets/00082482 [20:58:07]Write 301 bytes [20:58:07]NVStorageSaveData done [20:58:07]OFDSenderStorePacket done [20:58:07]KKMCreateOFDPacket done [20:58:07]NVStorageSaveData kkm_last_timestamp [20:58:07]File name is /storage/kkm_last_timestamp [20:58:07]Write 4 bytes [20:58:07]NVStorageSaveData done [20:58:07]ExternCall_PrintAddStr [20:58:07]wPrintStart [20:58:07]Write to MH i2c: 01 00 00 12 01 13 [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 07 00 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [20:58:07]RasterBufferAndPrint [20:58:07]line Счет N : (1)918975 [20:58:07]line ИНН: 02508201610067 [20:58:07]line Контрольно-Кассовый Чек [20:58:07]line ПРОДАЖА [20:58:07]line ТРК (МРК, ГНК) : 22 [20:58:07]line Товар: 2710124130 [20:58:07]line Аи-92-К-4 [20:58:07]line 7.480 * 66.90 [20:58:07]line = 500.41 [20:58:07]line НДС 12% НСП 1% [20:58:07]line > о реализуемом товаре [20:58:07]line ОКРУГЛЕНИЕ: -0.41 [20:58:07]line ИТОГО: 500.00 [20:58:07]line Внесено: 500.00 [20:58:07]line СДАЧА: 0.00 [20:58:07]line НСП 1% : 4.43 [20:58:07]line НДС 12% : 53.14 [20:58:07]line Наличными: 500.00 [20:58:07]line Безнал.: 0.00 [20:58:07]line Место: АЗС № 114 "Партнер Нефть" [20:58:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [20:58:07]line СНО: Общий режим [20:58:07]line Чек 191 18.10.2024 20:58 [20:58:07]line Смена: 526 ФФД: 1.0 [20:58:07]line ЗНМ: 0300000086 [20:58:07]line РНМ: 0000000000091680 [20:58:07]line Версия ККМ: 001 [20:58:07]line ФМ: 0000000000871843 [20:58:07]line ФД: 82482 [20:58:07]line ФПД: 62442323673179 [20:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T205806&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82482&fm=62442323673179&tin=02508201610067®Number=0000000000091680&sum=50000 [20:58:07]OFD Sender: Processing packet 82482 [packets to send 254, broken 253] [20:58:07]ProducePacketName [20:58:07]name=ofd_packets/00082482 [20:58:07]OFD Sender: To server: pG, [20:58:07]CommunicateWithHost lk.salyk.kg:30040 [20:58:07]ConnectInit lk.salyk.kg [20:58:07]written 0, free lines is 4095 [20:58:08]Write to MH i2c: 01 00 00 3D 01 3E [20:58:08]Write i2c OK [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: 01 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: 01 07 00 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 DC 0C 2D [20:58:08]RasterBufferAndPrint [20:58:08]line [20:58:08]line [20:58:08]line [20:58:08]line [20:58:08]line [20:58:08]written 0, free lines is 3298 [20:58:08]MH_Cut [20:58:08]Write to MH i2c: D1 01 00 44 01 01 17 [20:58:08]Write i2c OK [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: D1 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: D1 01 00 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: D1 01 00 44 01 00 16 [20:58:08]Write to MH i2c: 01 00 00 45 01 46 [20:58:08]Write i2c OK [20:58:08]MH_I2C_Read... [20:58:08]Connected sock=9 [20:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 E6 81 07 01 F2 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DE CB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 42 01 00 35 04 06 00 38 CA 7C 85 80 5B 75 0F 46 00 68 EF AF 21 [20:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 2D A2 47 00 60 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 32 42 01 00 F4 03 04 00 18 71 12 67 B6 04 01 00 00 2C 81 42 3C F6 AE 02 B8 [20:58:08]CommunicateWithHost err = 0 [20:58:08]CheckOFDResponse [20:58:08]1017 (14) - 77093643461234 [20:58:08]1041 (16) - 0000000000871843 [20:58:08]1040 (4) - 82482 [20:58:08]1012 (4) - 18.10.2024 14:30 [20:58:08]1206 (1) - 0 [20:58:08]OFD Sender: Remove packet 82482 [20:58:08]ProducePacketName [20:58:08]name=ofd_packets/00082482 [20:58:08]NVStorageDeleteData [20:58:08]*** Cut start [20:58:08]*** Partial cut [20:58:08]*** CUTSNS_PIN = 1 [20:58:08]*** CUTSNS_PIN = 0 [20:58:09]OFD Sender: No OFD packet to send [20:58:09]*** Brake cut motor [20:58:09]Read from MH i2c: 01 [20:58:09]MH_I2C_Read... [20:58:09]*** Stop cut motor [20:58:09]*** Cut end [20:58:09]Read from MH i2c: 01 07 00 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [20:58:09]process_action close_receipt done [20:58:09]requested_data is exist [20:58:09]produce_requested_data [20:58:09]requested_item fm.sn is exist - process it [20:58:09]wFMCommunicate request_size=4 [20:58:09]MH_SAM_APDU [20:58:09]CAPDU: 80 11 00 00 [20:58:09]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [20:58:09]Write i2c OK [20:58:09]MH_I2C_Read... [20:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:09]Read from MH i2c: E2 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 17 00 [20:58:09]MH_I2C_Read... [20:58:09]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 31 38 34 33 90 00 13 [20:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [20:58:09]wFMCommunicate OK [20:58:09]requested_item fd.num is exist - process it [20:58:09]SAM_PROTO_GetFieldsCounters [20:58:09]wFMCommunicate request_size=4 [20:58:09]MH_SAM_APDU [20:58:09]CAPDU: 80 13 00 00 [20:58:09]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [20:58:09]Write i2c OK [20:58:09]MH_I2C_Read... [20:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:09]Read from MH i2c: E2 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 62 00 [20:58:09]MH_I2C_Read... [20:58:09]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 32 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [20:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 32 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:09]wFMCommunicate OK [20:58:09]SAM_PROTO_GetFieldsCounters done [20:58:09]requested_item shift.num is exist - process it [20:58:09]requested_item shift.opened is exist - process it [20:58:09]req_shift_opened [20:58:09]FM_GetShiftState [20:58:09]SAM_PROTO_GetShiftState [20:58:09]wFMCommunicate request_size=4 [20:58:09]MH_SAM_APDU [20:58:09]CAPDU: 80 13 01 00 [20:58:09]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [20:58:09]Write i2c OK [20:58:09]MH_I2C_Read... [20:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:09]Read from MH i2c: E2 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 0E 00 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 98 [20:58:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [20:58:09]wFMCommunicate OK [20:58:09]SAM_PROTO_GetShiftState done [20:58:09]FM_GetShiftState done [20:58:09]req_shift_opened done [20:58:09]requested_item shift.open_date is exist - process it [20:58:09]req_shift_open_date [20:58:09]req_shift_open_date done [20:58:09]produce_requested_data done [20:58:09]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82482,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [20:58:09]process_action_free close_receipt [20:58:09]json_value_free [20:58:09]json_value_free done [20:58:09]process_json_proto returns [20:58:09]Send response to host [20:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82482,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [20:58:09]free response buf [20:58:09]execute_script done [20:58:09]execute_script returns [20:58:09]free content buf [20:58:09]Sock 8.Close socket [20:58:09]Sock 8.Thread stoped [20:58:14]OFD Sender: No OFD packet to send [20:58:17]recv_with_timeout no data received [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:29]recv_with_timeout no data received [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:37]accept exits with 10 [21:00:37]New connection [21:00:37]New thread 3067297124 created [21:00:37]Thread 3067153764 joined [21:00:37]Waiting for new connection... [21:00:37] Sock 10.Parse request [21:00:37]Sock 10.Check first char [21:00:37]Sock 10.First char is OK [21:00:37]request: POST /json_proto HTTP/1.0 [21:00:37]Method: POST [21:00:37]URL: /json_proto [21:00:37]Method is POST - this is cgi request [21:00:37]url: /json_proto [21:00:37]query_string will be loaded in cgi processing [21:00:37]execute_cgi json_proto POST (null) [21:00:37]execute_cgi path=json_proto method=POST [21:00:37]POST find Content-Length [21:00:37]Host: 172.17.44.67:8080 [21:00:37]Content-Length: 769 [21:00:37]Content-Type: application/json [21:00:37] [21:00:37]POST finish read [21:00:37]Found Content-Length = 769 [21:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:37]execute_script... [21:00: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)918976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:37]POST & json_proto [21:00:37]process_json_proto [21:00:37]json parsed OK: [21:00:37]protocol is kg_v1.0 [21:00:37]action value=close_receipt [21:00:37]process_action close_receipt [21:00:37]cmd_close_receipt [21:00:37]MH_GetDate [21:00:37]Write to MH i2c: F0 00 00 49 01 39 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: F0 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: F0 09 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: F0 09 00 49 01 00 75 CC 12 67 F1 C7 6B 64 83 [21:00:37]GetLastDocTimeStamp 1729285086 [21:00:37]current date 1729285237 [21:00:37]FM_GetShiftState [21:00:37]SAM_PROTO_GetShiftState [21:00:37]wFMCommunicate request_size=4 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 13 01 00 [21:00:37]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 0E 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 9A [21:00:37]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:00:37]wFMCommunicate OK [21:00:37]SAM_PROTO_GetShiftState done [21:00:37]FM_GetShiftState done [21:00:37]opened in 1729212319 [21:00:37]opened+sec_in_day 1729298719 [21:00:37]quantity*price = 100015 [21:00:37]sum+1 = 100017 [21:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 192 18.10.2024 21:00 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82483 ФПД: 54140153149113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T210037&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82483&fm=54140153149113&tin=02508201610067®Number=0000000000091680&sum=100016 [21:00:38]StoreToDocumentArchive [21:00:38]shift 526 fd 82483 [21:00:38]save to /storage/0526/doc_00082483 [21:00:38]save last doc name /storage/0526/doc_00082483 to /storage/kkm_last_doc_name [21:00:38]save OK [21:00:38]Clear old archive folders... [21:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:38]tlvbuf is 01E9F3C0 [21:00:38]SAM_PROTO_ClearQueue [21:00:38]wFMCommunicate request_size=4 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 09 00 00 [21:00:38]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [21:00:38]RAPDU: 90 00 [21:00:38]wFMCommunicate OK [21:00:38]SAM_PROTO_ClearQueue done [21:00:38]KKMCreateOFDPacket [21:00:38]OFDProtocolAddRootSTLVToBuf [21:00:38]FM_MakeSignedData [21:00:38]FM_MakeSignedData [21:00:38]SAM_PROTO_SignData [21:00:38]wFMCommunicate request_size=4 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 0D 01 02 [21:00:38]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [21:00:38]RAPDU: 90 00 [21:00:38]wFMCommunicate OK [21:00:38]wFMCommunicate request_size=255 [21:00:38]MH_SAM_APDU [21:00: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 75 CC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 42 01 00 35 04 06 00 31 [21:00:38]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 75 CC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 42 01 00 35 04 06 00 31 00 00 A9 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [21:00:38]RAPDU: 90 00 [21:00:38]wFMCommunicate OK [21:00:38]wFMCommunicate request_size=10 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 0D 02 02 05 3D 7C 98 B6 B9 [21:00:38]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 3D 7C 98 B6 B9 00 00 9F [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [21:00:38]RAPDU: 90 00 [21:00:38]wFMCommunicate OK [21:00:38]wFMCommunicate request_size=4 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 0D 03 02 [21:00:38]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 0B 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 0B 00 5B 01 00 63 6A AC DC C1 9F B2 9A 90 00 D9 [21:00:38]RAPDU: 63 6A AC DC C1 9F B2 9A 90 00 [21:00:38]wFMCommunicate OK [21:00:38]SAM_PROTO_SignData done [21:00:38]FM_MakeSignedData done [21:00:38]CreateOFDProtocolMessage [21:00:38]wFMCommunicate request_size=4 [21:00:38]MH_SAM_APDU [21:00:38]CAPDU: 80 11 00 00 [21:00:38]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:38]Read from MH i2c: E2 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: E2 17 00 [21:00:38]MH_I2C_Read... [21:00:38]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 31 38 34 33 90 00 29 [21:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:00:38]wFMCommunicate OK [21:00:38]CreateOFDProtocolMessage done [21:00:38]OFDSenderStorePacket 82483 [21:00:38]StoreOFDPacket docnum=82483 [21:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6B 17 07 01 8A 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 75 CC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 42 01 00 35 04 06 00 31 3D 7C 98 B6 B9 63 6A AC DC C1 9F B2 9A [21:00:38]CheckFolder [21:00:38]dirname=/storage/ofd_packets [21:00:38]CheckFolder done [21:00:38]ProducePacketName [21:00:38]name=ofd_packets/00082483 [21:00:38]NVStorageSaveData ofd_packets/00082483 [21:00:38]File name is /storage/ofd_packets/00082483 [21:00:38]Write 301 bytes [21:00:38]NVStorageSaveData done [21:00:38]OFDSenderStorePacket done [21:00:38]KKMCreateOFDPacket done [21:00:38]NVStorageSaveData kkm_last_timestamp [21:00:38]File name is /storage/kkm_last_timestamp [21:00:38]Write 4 bytes [21:00:38]NVStorageSaveData done [21:00:38]ExternCall_PrintAddStr [21:00:38]wPrintStart [21:00:38]Write to MH i2c: 01 00 00 5D 01 5E [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [21:00:38]RasterBufferAndPrint [21:00:38]line Счет N : (1)918976 [21:00:38]line ИНН: 02508201610067 [21:00:38]line Контрольно-Кассовый Чек [21:00:38]line ПРОДАЖА [21:00:38]line ТРК (МРК, ГНК) : 22 [21:00:38]line Товар: 2710124130 [21:00:38]line Аи-92-К-4 [21:00:38]line 14.950 * 66.90 [21:00:38]line = 1000.16 [21:00:38]line НДС 12% НСП 1% [21:00:38]line > о реализуемом товаре [21:00:38]line ИТОГО: 1000.16 [21:00:38]line НСП 1% : 8.85 [21:00:38]line НДС 12% : 106.21 [21:00:38]line Наличными: 0.00 [21:00:38]line Безнал.: 1000.16 [21:00:38]line Место: АЗС № 114 "Партнер Нефть" [21:00:38]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:00:38]line СНО: Общий режим [21:00:38]line Чек 192 18.10.2024 21:00 [21:00:38]line Смена: 526 ФФД: 1.0 [21:00:38]line ЗНМ: 0300000086 [21:00:38]line РНМ: 0000000000091680 [21:00:38]line Версия ККМ: 001 [21:00:38]line Платежная система: Mbank [21:00:38]line ФМ: 0000000000871843 [21:00:38]line ФД: 82483 [21:00:38]line ФПД: 54140153149113 [21:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T210037&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82483&fm=54140153149113&tin=02508201610067®Number=0000000000091680&sum=100016 [21:00:38]written 0, free lines is 4095 [21:00:38]OFD Sender: Processing packet 82483 [packets to send 254, broken 253] [21:00:38]ProducePacketName [21:00:38]name=ofd_packets/00082483 [21:00:38]OFD Sender: To server: pG, [21:00:38]CommunicateWithHost lk.salyk.kg:30040 [21:00:38]ConnectInit lk.salyk.kg [21:00:39]Write to MH i2c: 01 00 00 86 01 87 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: 01 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: 01 07 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 FD 0C 97 [21:00:39]RasterBufferAndPrint [21:00:39]line [21:00:39]line [21:00:39]line [21:00:39]line [21:00:39]line [21:00:39]written 0, free lines is 3331 [21:00:39]MH_Cut [21:00:39]Write to MH i2c: D1 01 00 8D 01 01 60 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: D1 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: D1 01 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: D1 01 00 8D 01 00 5F [21:00:39]Write to MH i2c: 01 00 00 8E 01 8F [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]Connected sock=11 [21:00:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 6B 17 07 01 8A 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 75 CC 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 42 01 00 35 04 06 00 31 3D 7C 98 B6 B9 63 6A AC DC C1 9F B2 9A [21:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 20 BE 47 00 8E 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 33 42 01 00 F4 03 04 00 AF 71 12 67 B6 04 01 00 00 EF D9 14 5C DF 9E 4A 20 [21:00:39]CommunicateWithHost err = 0 [21:00:39]CheckOFDResponse [21:00:39]1017 (14) - 77093643461234 [21:00:39]1041 (16) - 0000000000871843 [21:00:39]1040 (4) - 82483 [21:00:39]1012 (4) - 18.10.2024 14:33 [21:00:39]1206 (1) - 0 [21:00:39]OFD Sender: Remove packet 82483 [21:00:39]ProducePacketName [21:00:39]name=ofd_packets/00082483 [21:00:39]NVStorageDeleteData [21:00:39]*** Cut start [21:00:39]*** Partial cut [21:00:39]*** CUTSNS_PIN = 1 [21:00:40]*** CUTSNS_PIN = 0 [21:00:40]OFD Sender: No OFD packet to send [21:00:40]*** Brake cut motor [21:00:40]Read from MH i2c: 01 [21:00:40]MH_I2C_Read... [21:00:40]*** Stop cut motor [21:00:40]*** Cut end [21:00:40]Read from MH i2c: 01 07 00 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [21:00:40]process_action close_receipt done [21:00:40]requested_data is exist [21:00:40]produce_requested_data [21:00:40]requested_item fm.sn is exist - process it [21:00:40]wFMCommunicate request_size=4 [21:00:40]MH_SAM_APDU [21:00:40]CAPDU: 80 11 00 00 [21:00:40]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [21:00:40]Write i2c OK [21:00:40]MH_I2C_Read... [21:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:40]Read from MH i2c: E2 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 17 00 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [21:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:00:40]wFMCommunicate OK [21:00:40]requested_item fd.num is exist - process it [21:00:40]SAM_PROTO_GetFieldsCounters [21:00:40]wFMCommunicate request_size=4 [21:00:40]MH_SAM_APDU [21:00:40]CAPDU: 80 13 00 00 [21:00:40]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [21:00:40]Write i2c OK [21:00:40]MH_I2C_Read... [21:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:40]Read from MH i2c: E2 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 62 00 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 33 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [21:00:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 33 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:40]wFMCommunicate OK [21:00:40]SAM_PROTO_GetFieldsCounters done [21:00:40]requested_item shift.num is exist - process it [21:00:40]requested_item shift.opened is exist - process it [21:00:40]req_shift_opened [21:00:40]FM_GetShiftState [21:00:40]SAM_PROTO_GetShiftState [21:00:40]wFMCommunicate request_size=4 [21:00:40]MH_SAM_APDU [21:00:40]CAPDU: 80 13 01 00 [21:00:40]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [21:00:40]Write i2c OK [21:00:40]MH_I2C_Read... [21:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:40]Read from MH i2c: E2 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 0E 00 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E1 [21:00:40]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:00:40]wFMCommunicate OK [21:00:40]SAM_PROTO_GetShiftState done [21:00:40]FM_GetShiftState done [21:00:40]req_shift_opened done [21:00:40]requested_item shift.open_date is exist - process it [21:00:40]req_shift_open_date [21:00:40]req_shift_open_date done [21:00:40]produce_requested_data done [21:00:40]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82483,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:00:40]process_action_free close_receipt [21:00:40]json_value_free [21:00:40]json_value_free done [21:00:40]process_json_proto returns [21:00:40]Send response to host [21:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82483,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:00:40]free response buf [21:00:40]execute_script done [21:00:40]execute_script returns [21:00:40]free content buf [21:00:40]Sock 10.Close socket [21:00:40]Sock 10.Thread stoped [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:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:08:57]accept exits with 8 [21:08:57]New connection [21:08:57]New thread 3067153764 created [21:08:57]Thread 3067297124 joined [21:08:57]Waiting for new connection... [21:08:57] Sock 8.Parse request [21:08:57]Sock 8.Check first char [21:08:57]Sock 8.First char is OK [21:08:57]request: POST /json_proto HTTP/1.0 [21:08:57]Method: POST [21:08:57]URL: /json_proto [21:08:57]Method is POST - this is cgi request [21:08:57]url: /json_proto [21:08:57]query_string will be loaded in cgi processing [21:08:57]execute_cgi json_proto POST (null) [21:08:57]execute_cgi path=json_proto method=POST [21:08:57]POST find Content-Length [21:08:57]Host: 172.17.44.67:8080 [21:08:57]Content-Length: 766 [21:08:57]Content-Type: application/json [21:08:57] [21:08:57]POST finish read [21:08:57]Found Content-Length = 766 [21:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:57]execute_script... [21:08: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)918977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:57]POST & json_proto [21:08:57]process_json_proto [21:08:57]json parsed OK: [21:08:57]protocol is kg_v1.0 [21:08:57]action value=close_receipt [21:08:57]process_action close_receipt [21:08:57]cmd_close_receipt [21:08:57]MH_GetDate [21:08:57]Write to MH i2c: F0 00 00 92 01 82 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: F0 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: F0 09 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: F0 09 00 92 01 00 6A CE 12 67 F1 C7 6B 64 C3 [21:08:57]GetLastDocTimeStamp 1729285237 [21:08:57]current date 1729285738 [21:08:57]FM_GetShiftState [21:08:57]SAM_PROTO_GetShiftState [21:08:57]wFMCommunicate request_size=4 [21:08:57]MH_SAM_APDU [21:08:57]CAPDU: 80 13 01 00 [21:08:57]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:57]Read from MH i2c: E2 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 0E 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E3 [21:08:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:08:57]wFMCommunicate OK [21:08:57]SAM_PROTO_GetShiftState done [21:08:57]FM_GetShiftState done [21:08:57]opened in 1729212319 [21:08:57]opened+sec_in_day 1729298719 [21:08:57]quantity*price = 30038 [21:08:57]sum+1 = 30039 [21:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 193 18.10.2024 21:08 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82484 ФПД: 213094080188794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T210858&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82484&fm=213094080188794&tin=02508201610067®Number=0000000000091680&sum=30038 [21:08:59]StoreToDocumentArchive [21:08:59]shift 526 fd 82484 [21:08:59]save to /storage/0526/doc_00082484 [21:08:59]save last doc name /storage/0526/doc_00082484 to /storage/kkm_last_doc_name [21:08:59]save OK [21:08:59]Clear old archive folders... [21:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:59]tlvbuf is 01E9F280 [21:08:59]SAM_PROTO_ClearQueue [21:08:59]wFMCommunicate request_size=4 [21:08:59]MH_SAM_APDU [21:08:59]CAPDU: 80 09 00 00 [21:08:59]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:59]Read from MH i2c: E2 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [21:08:59]RAPDU: 90 00 [21:08:59]wFMCommunicate OK [21:08:59]SAM_PROTO_ClearQueue done [21:08:59]KKMCreateOFDPacket [21:08:59]OFDProtocolAddRootSTLVToBuf [21:08:59]FM_MakeSignedData [21:08:59]FM_MakeSignedData [21:08:59]SAM_PROTO_SignData [21:08:59]wFMCommunicate request_size=4 [21:08:59]MH_SAM_APDU [21:08:59]CAPDU: 80 0D 01 02 [21:08:59]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:59]Read from MH i2c: E2 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [21:08:59]RAPDU: 90 00 [21:08:59]wFMCommunicate OK [21:08:59]wFMCommunicate request_size=255 [21:08:59]MH_SAM_APDU [21:08: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 6A CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 42 01 00 35 04 06 00 C1 [21:08:59]Write to MH i2c: E2 02 01 A2 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 6A CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 42 01 00 35 04 06 00 C1 00 00 A1 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:59]Read from MH i2c: E2 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [21:08:59]RAPDU: 90 00 [21:08:59]wFMCommunicate OK [21:08:59]wFMCommunicate request_size=10 [21:08:59]MH_SAM_APDU [21:08:59]CAPDU: 80 0D 02 02 05 CE D4 F4 11 7A [21:08:59]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 CE D4 F4 11 7A 00 00 49 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:59]Read from MH i2c: E2 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [21:08:59]RAPDU: 90 00 [21:08:59]wFMCommunicate OK [21:08:59]wFMCommunicate request_size=4 [21:08:59]MH_SAM_APDU [21:08:59]CAPDU: 80 0D 03 02 [21:08:59]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:59]Read from MH i2c: E2 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 0B 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 0B 00 A4 01 00 22 FE 25 44 E8 3C C2 1F 90 00 AF [21:08:59]RAPDU: 22 FE 25 44 E8 3C C2 1F 90 00 [21:08:59]wFMCommunicate OK [21:08:59]SAM_PROTO_SignData done [21:08:59]FM_MakeSignedData done [21:08:59]CreateOFDProtocolMessage [21:08:59]wFMCommunicate request_size=4 [21:08:59]MH_SAM_APDU [21:08:59]CAPDU: 80 11 00 00 [21:08:59]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:59]Read from MH i2c: E2 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 17 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 72 [21:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:08:59]wFMCommunicate OK [21:08:59]CreateOFDProtocolMessage done [21:08:59]OFDSenderStorePacket 82484 [21:08:59]StoreOFDPacket docnum=82484 [21:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 34 00 07 01 82 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 6A CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 42 01 00 35 04 06 00 C1 CE D4 F4 11 7A 22 FE 25 44 E8 3C C2 1F [21:08:59]CheckFolder [21:08:59]dirname=/storage/ofd_packets [21:08:59]CheckFolder done [21:08:59]ProducePacketName [21:08:59]name=ofd_packets/00082484 [21:08:59]NVStorageSaveData ofd_packets/00082484 [21:08:59]File name is /storage/ofd_packets/00082484 [21:08:59]Write 301 bytes [21:08:59]NVStorageSaveData done [21:08:59]OFDSenderStorePacket done [21:08:59]KKMCreateOFDPacket done [21:08:59]NVStorageSaveData kkm_last_timestamp [21:08:59]File name is /storage/kkm_last_timestamp [21:08:59]Write 4 bytes [21:08:59]NVStorageSaveData done [21:08:59]ExternCall_PrintAddStr [21:08:59]wPrintStart [21:08:59]Write to MH i2c: 01 00 00 A6 01 A7 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 07 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [21:08:59]RasterBufferAndPrint [21:08:59]line Счет N : (1)918977 [21:08:59]line ИНН: 02508201610067 [21:08:59]line Контрольно-Кассовый Чек [21:08:59]line ПРОДАЖА [21:08:59]line ТРК (МРК, ГНК) : 22 [21:08:59]line Товар: 2710124130 [21:08:59]line Аи-92-К-4 [21:08:59]line 4.490 * 66.90 [21:08:59]line = 300.38 [21:08:59]line НДС 12% НСП 1% [21:08:59]line > о реализуемом товаре [21:08:59]line ИТОГО: 300.38 [21:08:59]line НСП 1% : 2.66 [21:08:59]line НДС 12% : 31.90 [21:08:59]line Наличными: 0.00 [21:08:59]line Безнал.: 300.38 [21:08:59]line Место: АЗС № 114 "Партнер Нефть" [21:08:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:08:59]line СНО: Общий режим [21:08:59]line Чек 193 18.10.2024 21:08 [21:08:59]line Смена: 526 ФФД: 1.0 [21:08:59]line ЗНМ: 0300000086 [21:08:59]line РНМ: 0000000000091680 [21:08:59]line Версия ККМ: 001 [21:08:59]line Платежная система: Mbank [21:08:59]line ФМ: 0000000000871843 [21:08:59]line ФД: 82484 [21:08:59]line ФПД: 213094080188794 [21:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T210858&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82484&fm=213094080188794&tin=02508201610067®Number=0000000000091680&sum=30038 [21:08:59]written 0, free lines is 4095 [21:08:59]OFD Sender: Processing packet 82484 [packets to send 254, broken 253] [21:08:59]ProducePacketName [21:08:59]name=ofd_packets/00082484 [21:08:59]OFD Sender: To server: pG, [21:08:59]CommunicateWithHost lk.salyk.kg:30040 [21:08:59]ConnectInit lk.salyk.kg [21:09:00]Connected sock=9 [21:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 34 00 07 01 82 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 6A CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 42 01 00 35 04 06 00 C1 CE D4 F4 11 7A 22 FE 25 44 E8 3C C2 1F [21:09:00]Write to MH i2c: 01 00 00 CF 01 D0 [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: 01 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: 01 07 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 0C 0D F0 [21:09:00]RasterBufferAndPrint [21:09:00]line [21:09:00]line [21:09:00]line [21:09:00]line [21:09:00]line [21:09:00]written 0, free lines is 3346 [21:09:00]MH_Cut [21:09:00]Write to MH i2c: D1 01 00 D6 01 01 A9 [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: D1 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: D1 01 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: D1 01 00 D6 01 00 A8 [21:09:00]Write to MH i2c: 01 00 00 D7 01 D8 [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 FF 5B 47 00 D3 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 34 42 01 00 F4 03 04 00 A4 73 12 67 B6 04 01 00 00 BD 57 50 60 80 C1 F9 3D [21:09:00]CommunicateWithHost err = 0 [21:09:00]CheckOFDResponse [21:09:00]1017 (14) - 77093643461234 [21:09:00]1041 (16) - 0000000000871843 [21:09:00]1040 (4) - 82484 [21:09:00]1012 (4) - 18.10.2024 14:41 [21:09:00]1206 (1) - 0 [21:09:00]OFD Sender: Remove packet 82484 [21:09:00]ProducePacketName [21:09:00]name=ofd_packets/00082484 [21:09:00]NVStorageDeleteData [21:09:01]*** Cut start [21:09:01]*** Partial cut [21:09:01]*** CUTSNS_PIN = 1 [21:09:01]*** CUTSNS_PIN = 0 [21:09:01]OFD Sender: No OFD packet to send [21:09:01]*** Brake cut motor [21:09:01]Read from MH i2c: 01 [21:09:01]MH_I2C_Read... [21:09:01]*** Stop cut motor [21:09:01]*** Cut end [21:09:01]Read from MH i2c: 01 07 00 [21:09:01]MH_I2C_Read... [21:09:01]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [21:09:01]process_action close_receipt done [21:09:01]requested_data is exist [21:09:01]produce_requested_data [21:09:01]requested_item fm.sn is exist - process it [21:09:01]wFMCommunicate request_size=4 [21:09:01]MH_SAM_APDU [21:09:01]CAPDU: 80 11 00 00 [21:09:01]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [21:09:01]Write i2c OK [21:09:01]MH_I2C_Read... [21:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:01]Read from MH i2c: E2 [21:09:01]MH_I2C_Read... [21:09:01]Read from MH i2c: E2 17 00 [21:09:01]MH_I2C_Read... [21:09:01]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A5 [21:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:09:01]wFMCommunicate OK [21:09:01]requested_item fd.num is exist - process it [21:09:01]SAM_PROTO_GetFieldsCounters [21:09:01]wFMCommunicate request_size=4 [21:09:01]MH_SAM_APDU [21:09:01]CAPDU: 80 13 00 00 [21:09:01]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [21:09:01]Write i2c OK [21:09:01]MH_I2C_Read... [21:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:01]Read from MH i2c: E2 [21:09:01]MH_I2C_Read... [21:09:01]Read from MH i2c: E2 62 00 [21:09:01]MH_I2C_Read... [21:09:01]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 34 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [21:09:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 34 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:01]wFMCommunicate OK [21:09:01]SAM_PROTO_GetFieldsCounters done [21:09:01]requested_item shift.num is exist - process it [21:09:01]requested_item shift.opened is exist - process it [21:09:01]req_shift_opened [21:09:01]FM_GetShiftState [21:09:01]SAM_PROTO_GetShiftState [21:09:01]wFMCommunicate request_size=4 [21:09:01]MH_SAM_APDU [21:09:01]CAPDU: 80 13 01 00 [21:09:01]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [21:09:01]Write i2c OK [21:09:01]MH_I2C_Read... [21:09:01]Read from MH i2c: E2 [21:09:02]MH_I2C_Read... [21:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:02]Read from MH i2c: E2 0E 00 [21:09:02]MH_I2C_Read... [21:09:02]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2A [21:09:02]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:09:02]wFMCommunicate OK [21:09:02]SAM_PROTO_GetShiftState done [21:09:02]FM_GetShiftState done [21:09:02]req_shift_opened done [21:09:02]requested_item shift.open_date is exist - process it [21:09:02]req_shift_open_date [21:09:02]req_shift_open_date done [21:09:02]produce_requested_data done [21:09:02]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82484,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:09:02]process_action_free close_receipt [21:09:02]json_value_free [21:09:02]json_value_free done [21:09:02]process_json_proto returns [21:09:02]Send response to host [21:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82484,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:09:02]free response buf [21:09:02]execute_script done [21:09:02]execute_script returns [21:09:02]free content buf [21:09:02]Sock 8.Close socket [21:09:02]Sock 8.Thread stoped [21:09:06]OFD Sender: No OFD packet to send [21:09:09]recv_with_timeout no data received [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:36]accept exits with 10 [21:09:36]New connection [21:09:36]New thread 3067297124 created [21:09:36]Thread 3067153764 joined [21:09:36]Waiting for new connection... [21:09:36] Sock 10.Parse request [21:09:36]Sock 10.Check first char [21:09:36]Sock 10.First char is OK [21:09:36]request: POST /json_proto HTTP/1.0 [21:09:36]Method: POST [21:09:36]URL: /json_proto [21:09:36]Method is POST - this is cgi request [21:09:36]url: /json_proto [21:09:36]query_string will be loaded in cgi processing [21:09:36]execute_cgi json_proto POST (null) [21:09:36]execute_cgi path=json_proto method=POST [21:09:36]POST find Content-Length [21:09:36]Host: 172.17.44.67:8080 [21:09:36]Content-Length: 677 [21:09:36]Content-Type: application/json [21:09:36] [21:09:36]POST finish read [21:09:36]Found Content-Length = 677 [21:09:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:36]execute_script... [21:09: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)918978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:36]POST & json_proto [21:09:36]process_json_proto [21:09:36]json parsed OK: [21:09:36]protocol is kg_v1.0 [21:09:36]action value=close_receipt [21:09:36]process_action close_receipt [21:09:36]cmd_close_receipt [21:09:36]MH_GetDate [21:09:36]Write to MH i2c: F0 00 00 DB 01 CB [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: F0 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: F0 09 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: F0 09 00 DB 01 00 91 CE 12 67 F1 C7 6B 64 33 [21:09:36]GetLastDocTimeStamp 1729285738 [21:09:36]current date 1729285777 [21:09:36]FM_GetShiftState [21:09:36]SAM_PROTO_GetShiftState [21:09:36]wFMCommunicate request_size=4 [21:09:36]MH_SAM_APDU [21:09:36]CAPDU: 80 13 01 00 [21:09:36]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [21:09:36]Write i2c OK [21:09:36]MH_I2C_Read... [21:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:36]Read from MH i2c: E2 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0E 00 [21:09:36]MH_I2C_Read... [21:09:36]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 2C [21:09:36]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:09:36]wFMCommunicate OK [21:09:36]SAM_PROTO_GetShiftState done [21:09:36]FM_GetShiftState done [21:09:36]opened in 1729212319 [21:09:36]opened+sec_in_day 1729298719 [21:09:36]quantity*price = 20003 [21:09:36]sum+1 = 20004 [21:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 194 18.10.2024 21:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82485 ФПД: 205005156445971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T210937&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82485&fm=205005156445971&tin=02508201610067®Number=0000000000091680&sum=20000 [21:09:38]StoreToDocumentArchive [21:09:38]shift 526 fd 82485 [21:09:38]save to /storage/0526/doc_00082485 [21:09:38]save last doc name /storage/0526/doc_00082485 to /storage/kkm_last_doc_name [21:09:38]save OK [21:09:38]Clear old archive folders... [21:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:38]tlvbuf is 01EA15A0 [21:09:38]SAM_PROTO_ClearQueue [21:09:38]wFMCommunicate request_size=4 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 09 00 00 [21:09:38]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [21:09:38]RAPDU: 90 00 [21:09:38]wFMCommunicate OK [21:09:38]SAM_PROTO_ClearQueue done [21:09:38]KKMCreateOFDPacket [21:09:38]OFDProtocolAddRootSTLVToBuf [21:09:38]FM_MakeSignedData [21:09:38]FM_MakeSignedData [21:09:38]SAM_PROTO_SignData [21:09:38]wFMCommunicate request_size=4 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 0D 01 02 [21:09:38]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [21:09:38]RAPDU: 90 00 [21:09:38]wFMCommunicate OK [21:09:38]wFMCommunicate request_size=255 [21:09:38]MH_SAM_APDU [21:09: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 91 CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 35 42 01 00 35 04 06 00 BA [21:09:38]Write to MH i2c: E2 02 01 EB 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 91 CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 35 42 01 00 35 04 06 00 BA 00 00 8E [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [21:09:38]RAPDU: 90 00 [21:09:38]wFMCommunicate OK [21:09:38]wFMCommunicate request_size=10 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 0D 02 02 05 73 7B 86 EF 13 [21:09:38]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 73 7B 86 EF 13 00 00 E7 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [21:09:38]RAPDU: 90 00 [21:09:38]wFMCommunicate OK [21:09:38]wFMCommunicate request_size=4 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 0D 03 02 [21:09:38]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 0B 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 0B 00 ED 01 00 76 F4 F6 14 D9 D6 C3 8C 90 00 DC [21:09:38]RAPDU: 76 F4 F6 14 D9 D6 C3 8C 90 00 [21:09:38]wFMCommunicate OK [21:09:38]SAM_PROTO_SignData done [21:09:38]FM_MakeSignedData done [21:09:38]CreateOFDProtocolMessage [21:09:38]wFMCommunicate request_size=4 [21:09:38]MH_SAM_APDU [21:09:38]CAPDU: 80 11 00 00 [21:09:38]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:38]Read from MH i2c: E2 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 17 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 BB [21:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:09:38]wFMCommunicate OK [21:09:38]CreateOFDProtocolMessage done [21:09:38]OFDSenderStorePacket 82485 [21:09:38]StoreOFDPacket docnum=82485 [21:09:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1C 88 07 01 16 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 91 CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 35 42 01 00 35 04 06 00 BA 73 7B 86 EF 13 76 F4 F6 14 D9 D6 C3 8C [21:09:38]CheckFolder [21:09:38]dirname=/storage/ofd_packets [21:09:38]CheckFolder done [21:09:38]ProducePacketName [21:09:38]name=ofd_packets/00082485 [21:09:38]NVStorageSaveData ofd_packets/00082485 [21:09:38]File name is /storage/ofd_packets/00082485 [21:09:38]Write 301 bytes [21:09:38]NVStorageSaveData done [21:09:38]OFDSenderStorePacket done [21:09:38]KKMCreateOFDPacket done [21:09:38]NVStorageSaveData kkm_last_timestamp [21:09:38]File name is /storage/kkm_last_timestamp [21:09:38]Write 4 bytes [21:09:38]NVStorageSaveData done [21:09:38]ExternCall_PrintAddStr [21:09:38]wPrintStart [21:09:38]Write to MH i2c: 01 00 00 EF 01 F0 [21:09:38]Write i2c OK [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: 01 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: 01 07 00 [21:09:38]MH_I2C_Read... [21:09:38]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [21:09:38]RasterBufferAndPrint [21:09:38]line Счет N : (1)918978 [21:09:38]line ИНН: 02508201610067 [21:09:38]line Контрольно-Кассовый Чек [21:09:38]line ПРОДАЖА [21:09:38]line ТРК (МРК, ГНК) : 22 [21:09:38]line Товар: 2710124130 [21:09:38]line Аи-92-К-4 [21:09:38]line 2.990 * 66.90 [21:09:38]line = 200.03 [21:09:38]line НДС 12% НСП 1% [21:09:38]line > о реализуемом товаре [21:09:38]line ОКРУГЛЕНИЕ: -0.03 [21:09:38]line ИТОГО: 200.00 [21:09:38]line Внесено: 200.00 [21:09:38]line СДАЧА: 0.00 [21:09:38]line НСП 1% : 1.77 [21:09:38]line НДС 12% : 21.24 [21:09:38]line Наличными: 200.00 [21:09:38]line Безнал.: 0.00 [21:09:38]line Место: АЗС № 114 "Партнер Нефть" [21:09:38]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:09:38]line СНО: Общий режим [21:09:38]line Чек 194 18.10.2024 21:09 [21:09:38]line Смена: 526 ФФД: 1.0 [21:09:38]line ЗНМ: 0300000086 [21:09:38]line РНМ: 0000000000091680 [21:09:38]line Версия ККМ: 001 [21:09:38]line ФМ: 0000000000871843 [21:09:38]line ФД: 82485 [21:09:38]line ФПД: 205005156445971 [21:09:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T210937&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82485&fm=205005156445971&tin=02508201610067®Number=0000000000091680&sum=20000 [21:09:38]OFD Sender: Processing packet 82485 [packets to send 254, broken 253] [21:09:38]ProducePacketName [21:09:38]name=ofd_packets/00082485 [21:09:38]OFD Sender: To server: pG, [21:09:38]CommunicateWithHost lk.salyk.kg:30040 [21:09:38]ConnectInit lk.salyk.kg [21:09:38]written 0, free lines is 4095 [21:09:39]Write to MH i2c: 01 00 00 1A 02 1C [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: 01 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: 01 07 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 D9 0C 08 [21:09:39]RasterBufferAndPrint [21:09:39]line [21:09:39]line [21:09:39]line [21:09:39]line [21:09:39]line [21:09:39]written 0, free lines is 3297 [21:09:39]Connected sock=8 [21:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 1C 88 07 01 16 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 91 CE 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 35 42 01 00 35 04 06 00 BA 73 7B 86 EF 13 76 F4 F6 14 D9 D6 C3 8C [21:09:39]MH_Cut [21:09:39]Write to MH i2c: D1 01 00 21 02 01 F5 [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: D1 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: D1 01 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: D1 01 00 21 02 00 F4 [21:09:39]Write to MH i2c: 01 00 00 22 02 24 [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 14 94 47 00 C7 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 31 38 34 33 10 04 04 00 35 42 01 00 F4 03 04 00 CB 73 12 67 B6 04 01 00 00 CA CE 6A 05 A6 E8 01 76 [21:09:39]CommunicateWithHost err = 0 [21:09:39]CheckOFDResponse [21:09:39]1017 (14) - 77093643461234 [21:09:39]1041 (16) - 0000000000871843 [21:09:39]1040 (4) - 82485 [21:09:39]1012 (4) - 18.10.2024 14:42 [21:09:39]1206 (1) - 0 [21:09:39]OFD Sender: Remove packet 82485 [21:09:39]ProducePacketName [21:09:39]name=ofd_packets/00082485 [21:09:39]NVStorageDeleteData [21:09:40]*** Cut start [21:09:40]*** Partial cut [21:09:40]*** CUTSNS_PIN = 1 [21:09:40]*** CUTSNS_PIN = 0 [21:09:40]OFD Sender: No OFD packet to send [21:09:40]*** Brake cut motor [21:09:40]Read from MH i2c: 01 [21:09:40]MH_I2C_Read... [21:09:40]*** Stop cut motor [21:09:40]*** Cut end [21:09:40]Read from MH i2c: 01 07 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [21:09:40]process_action close_receipt done [21:09:40]requested_data is exist [21:09:40]produce_requested_data [21:09:40]requested_item fm.sn is exist - process it [21:09:40]wFMCommunicate request_size=4 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 11 00 00 [21:09:40]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 17 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F1 [21:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:09:40]wFMCommunicate OK [21:09:40]requested_item fd.num is exist - process it [21:09:40]SAM_PROTO_GetFieldsCounters [21:09:40]wFMCommunicate request_size=4 [21:09:40]MH_SAM_APDU [21:09:40]CAPDU: 80 13 00 00 [21:09:40]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [21:09:40]Write i2c OK [21:09:40]MH_I2C_Read... [21:09:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:40]Read from MH i2c: E2 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 62 00 [21:09:40]MH_I2C_Read... [21:09:40]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 35 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [21:09:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 35 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:40]wFMCommunicate OK [21:09:40]SAM_PROTO_GetFieldsCounters done [21:09:40]requested_item shift.num is exist - process it [21:09:41]requested_item shift.opened is exist - process it [21:09:41]req_shift_opened [21:09:41]FM_GetShiftState [21:09:41]SAM_PROTO_GetShiftState [21:09:41]wFMCommunicate request_size=4 [21:09:41]MH_SAM_APDU [21:09:41]CAPDU: 80 13 01 00 [21:09:41]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 0E 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 76 [21:09:41]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:09:41]wFMCommunicate OK [21:09:41]SAM_PROTO_GetShiftState done [21:09:41]FM_GetShiftState done [21:09:41]req_shift_opened done [21:09:41]requested_item shift.open_date is exist - process it [21:09:41]req_shift_open_date [21:09:41]req_shift_open_date done [21:09:41]produce_requested_data done [21:09:41]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82485,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:09:41]process_action_free close_receipt [21:09:41]json_value_free [21:09:41]json_value_free done [21:09:41]process_json_proto returns [21:09:41]Send response to host [21:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82485,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:09:41]free response buf [21:09:41]execute_script done [21:09:41]execute_script returns [21:09:41]free content buf [21:09:41]Sock 10.Close socket [21:09:41]Sock 10.Thread stoped [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:05]recv_with_timeout no data received [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:09]recv_with_timeout no data received [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:42]recv_with_timeout no data received [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:07]recv_with_timeout no data received [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:39]recv_with_timeout no data received [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:05]recv_with_timeout no data received [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:42]recv_with_timeout no data received [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:15]recv_with_timeout no data received [21:15:20]OFD Sender: No OFD packet to send [21:15:23]accept exits with 9 [21:15:23]New connection [21:15:23]New thread 3067153764 created [21:15:23]Thread 3067297124 joined [21:15:23]Waiting for new connection... [21:15:23] Sock 9.Parse request [21:15:23]Sock 9.Check first char [21:15:23]Sock 9.First char is OK [21:15:23]request: POST /json_proto HTTP/1.0 [21:15:23]Method: POST [21:15:23]URL: /json_proto [21:15:23]Method is POST - this is cgi request [21:15:23]url: /json_proto [21:15:23]query_string will be loaded in cgi processing [21:15:23]execute_cgi json_proto POST (null) [21:15:23]execute_cgi path=json_proto method=POST [21:15:23]POST find Content-Length [21:15:23]Host: 172.17.44.67:8080 [21:15:23]Content-Length: 754 [21:15:23]Content-Type: application/json [21:15:23] [21:15:23]POST finish read [21:15:23]Found Content-Length = 754 [21:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100525", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:23]execute_script... [21:15: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)918979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100525", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:23]POST & json_proto [21:15:23]process_json_proto [21:15:23]json parsed OK: [21:15:23]protocol is kg_v1.0 [21:15:23]action value=close_receipt [21:15:23]process_action close_receipt [21:15:23]cmd_close_receipt [21:15:23]MH_GetDate [21:15:23]Write to MH i2c: F0 00 00 26 02 17 [21:15:23]Write i2c OK [21:15:23]MH_I2C_Read... [21:15:23]Read from MH i2c: F0 [21:15:23]MH_I2C_Read... [21:15:23]Read from MH i2c: F0 09 00 [21:15:23]MH_I2C_Read... [21:15:23]Read from MH i2c: F0 09 00 26 02 00 EC CF 12 67 F1 C7 6B 64 DB [21:15:23]GetLastDocTimeStamp 1729285777 [21:15:23]current date 1729286124 [21:15:23]FM_GetShiftState [21:15:23]SAM_PROTO_GetShiftState [21:15:23]wFMCommunicate request_size=4 [21:15:23]MH_SAM_APDU [21:15:23]CAPDU: 80 13 01 00 [21:15:23]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [21:15:23]Write i2c OK [21:15:23]MH_I2C_Read... [21:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:23]Read from MH i2c: E2 [21:15:23]MH_I2C_Read... [21:15:23]Read from MH i2c: E2 0E 00 [21:15:23]MH_I2C_Read... [21:15:23]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 78 [21:15:23]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:15:23]wFMCommunicate OK [21:15:23]SAM_PROTO_GetShiftState done [21:15:23]FM_GetShiftState done [21:15:23]opened in 1729212319 [21:15:23]opened+sec_in_day 1729298719 [21:15:23]quantity*price = 0 [21:15:23]sum+1 = 1 [21:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 195 18.10.2024 21:15 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30100525 ФМ: 0000000000871843 ФД: 82486 ФПД: 93360473716908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T211524&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82486&fm=93360473716908&tin=02508201610067®Number=0000000000091680&sum=0 [21:15:24]StoreToDocumentArchive [21:15:24]shift 526 fd 82486 [21:15:24]save to /storage/0526/doc_00082486 [21:15:24]save last doc name /storage/0526/doc_00082486 to /storage/kkm_last_doc_name [21:15:24]save OK [21:15:24]Clear old archive folders... [21:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:24]tlvbuf is 01E10090 [21:15:24]SAM_PROTO_ClearQueue [21:15:24]wFMCommunicate request_size=4 [21:15:24]MH_SAM_APDU [21:15:24]CAPDU: 80 09 00 00 [21:15:24]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [21:15:24]Write i2c OK [21:15:24]MH_I2C_Read... [21:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:24]Read from MH i2c: E2 [21:15:24]MH_I2C_Read... [21:15:24]Read from MH i2c: E2 03 00 [21:15:24]MH_I2C_Read... [21:15:24]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [21:15:24]RAPDU: 90 00 [21:15:24]wFMCommunicate OK [21:15:24]SAM_PROTO_ClearQueue done [21:15:24]KKMCreateOFDPacket [21:15:24]OFDProtocolAddRootSTLVToBuf [21:15:24]FM_MakeSignedData [21:15:24]FM_MakeSignedData [21:15:24]SAM_PROTO_SignData [21:15:24]wFMCommunicate request_size=4 [21:15:24]MH_SAM_APDU [21:15:24]CAPDU: 80 0D 01 02 [21:15:24]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [21:15:24]Write i2c OK [21:15:24]MH_I2C_Read... [21:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:25]Read from MH i2c: E2 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 03 00 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [21:15:25]RAPDU: 90 00 [21:15:25]wFMCommunicate OK [21:15:25]wFMCommunicate request_size=255 [21:15:25]MH_SAM_APDU [21:15: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 EC CF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 42 01 00 35 04 06 00 54 [21:15:25]Write to MH i2c: E2 02 01 36 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 EC CF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 42 01 00 35 04 06 00 54 00 00 C2 [21:15:25]Write i2c OK [21:15:25]MH_I2C_Read... [21:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:25]Read from MH i2c: E2 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 03 00 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [21:15:25]RAPDU: 90 00 [21:15:25]wFMCommunicate OK [21:15:25]wFMCommunicate request_size=10 [21:15:25]MH_SAM_APDU [21:15:25]CAPDU: 80 0D 02 02 05 E9 2D DF 38 AC [21:15:25]Write to MH i2c: E2 0D 00 37 02 80 0D 02 02 05 00 E9 2D DF 38 AC 00 00 96 [21:15:25]Write i2c OK [21:15:25]MH_I2C_Read... [21:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:25]Read from MH i2c: E2 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 03 00 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [21:15:25]RAPDU: 90 00 [21:15:25]wFMCommunicate OK [21:15:25]wFMCommunicate request_size=4 [21:15:25]MH_SAM_APDU [21:15:25]CAPDU: 80 0D 03 02 [21:15:25]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [21:15:25]Write i2c OK [21:15:25]MH_I2C_Read... [21:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:25]Read from MH i2c: E2 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 0B 00 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 0B 00 38 02 00 90 66 F8 7E CF 8F 74 6A 90 00 5E [21:15:25]RAPDU: 90 66 F8 7E CF 8F 74 6A 90 00 [21:15:25]wFMCommunicate OK [21:15:25]SAM_PROTO_SignData done [21:15:25]FM_MakeSignedData done [21:15:25]CreateOFDProtocolMessage [21:15:25]wFMCommunicate request_size=4 [21:15:25]MH_SAM_APDU [21:15:25]CAPDU: 80 11 00 00 [21:15:25]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [21:15:25]Write i2c OK [21:15:25]MH_I2C_Read... [21:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:25]Read from MH i2c: E2 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 17 00 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 07 [21:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:15:25]wFMCommunicate OK [21:15:25]CreateOFDProtocolMessage done [21:15:25]OFDSenderStorePacket 82486 [21:15:25]StoreOFDPacket docnum=82486 [21:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DD BC 07 01 A9 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 EC CF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 42 01 00 35 04 06 00 54 E9 2D DF 38 AC 90 66 F8 7E CF 8F 74 6A [21:15:25]CheckFolder [21:15:25]dirname=/storage/ofd_packets [21:15:25]CheckFolder done [21:15:25]ProducePacketName [21:15:25]name=ofd_packets/00082486 [21:15:25]NVStorageSaveData ofd_packets/00082486 [21:15:25]File name is /storage/ofd_packets/00082486 [21:15:25]Write 301 bytes [21:15:25]NVStorageSaveData done [21:15:25]OFDSenderStorePacket done [21:15:25]KKMCreateOFDPacket done [21:15:25]NVStorageSaveData kkm_last_timestamp [21:15:25]File name is /storage/kkm_last_timestamp [21:15:25]Write 4 bytes [21:15:25]NVStorageSaveData done [21:15:25]ExternCall_PrintAddStr [21:15:25]wPrintStart [21:15:25]Write to MH i2c: 01 00 00 3A 02 3C [21:15:25]Write i2c OK [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: 01 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: 01 07 00 [21:15:25]MH_I2C_Read... [21:15:25]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [21:15:25]RasterBufferAndPrint [21:15:25]line Счет N : (1)918979 [21:15:25]line ИНН: 02508201610067 [21:15:25]line Контрольно-Кассовый Чек [21:15:25]line ПРОДАЖА [21:15:25]line ТРК (МРК, ГНК) : 11 [21:15:25]line Товар: 2710124130 [21:15:25]line Аи-92-К-4 [21:15:25]line 10.000 * 0.00 [21:15:25]line = 0.00 [21:15:25]line НДС 12% НСП 1% [21:15:25]line > о реализуемом товаре [21:15:25]line ИТОГО: 0.00 [21:15:25]line НСП 1% : 0.00 [21:15:25]line НДС 12% : 0.00 [21:15:25]line Наличными: 0.00 [21:15:25]line Безнал.: 0.00 [21:15:25]line Место: АЗС № 114 "Партнер Нефть" [21:15:25]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:15:25]line СНО: Общий режим [21:15:25]line Чек 195 18.10.2024 21:15 [21:15:25]line Смена: 526 ФФД: 1.0 [21:15:25]line ЗНМ: 0300000086 [21:15:25]line РНМ: 0000000000091680 [21:15:25]line Версия ККМ: 001 [21:15:25]line Талоны: ТК ГПНА Online [21:15:25]line 30100525 [21:15:25]line ФМ: 0000000000871843 [21:15:25]line ФД: 82486 [21:15:25]line ФПД: 93360473716908 [21:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T211524&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82486&fm=93360473716908&tin=02508201610067®Number=0000000000091680&sum=0 [21:15:25]written 0, free lines is 4095 [21:15:25]OFD Sender: Processing packet 82486 [packets to send 254, broken 253] [21:15:25]ProducePacketName [21:15:25]name=ofd_packets/00082486 [21:15:25]OFD Sender: To server: pG, [21:15:25]CommunicateWithHost lk.salyk.kg:30040 [21:15:25]ConnectInit lk.salyk.kg [21:15:26]Write to MH i2c: 01 00 00 64 02 66 [21:15:26]Write i2c OK [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: 01 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: 01 07 00 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 E5 0C 5E [21:15:26]RasterBufferAndPrint [21:15:26]line [21:15:26]line [21:15:26]line [21:15:26]line [21:15:26]line [21:15:26]written 0, free lines is 3308 [21:15:26]MH_Cut [21:15:26]Write to MH i2c: D1 01 00 6B 02 01 3F [21:15:26]Write i2c OK [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: D1 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: D1 01 00 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: D1 01 00 6B 02 00 3E [21:15:26]Write to MH i2c: 01 00 00 6C 02 6E [21:15:26]Write i2c OK [21:15:26]MH_I2C_Read... [21:15:26]*** Cut start [21:15:26]*** Partial cut [21:15:26]*** CUTSNS_PIN = 1 [21:15:27]*** CUTSNS_PIN = 0 [21:15:27]*** Brake cut motor [21:15:27]Read from MH i2c: 01 [21:15:27]MH_I2C_Read... [21:15:27]*** Stop cut motor [21:15:27]*** Cut end [21:15:27]Read from MH i2c: 01 07 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [21:15:27]process_action close_receipt done [21:15:27]requested_data is exist [21:15:27]produce_requested_data [21:15:27]requested_item fm.sn is exist - process it [21:15:27]wFMCommunicate request_size=4 [21:15:27]MH_SAM_APDU [21:15:27]CAPDU: 80 11 00 00 [21:15:27]Write to MH i2c: E2 08 00 6D 02 80 11 00 00 00 00 00 00 E9 [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:27]Read from MH i2c: E2 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 17 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 17 00 6D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3B [21:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:15:27]wFMCommunicate OK [21:15:27]requested_item fd.num is exist - process it [21:15:27]SAM_PROTO_GetFieldsCounters [21:15:27]wFMCommunicate request_size=4 [21:15:27]MH_SAM_APDU [21:15:27]CAPDU: 80 13 00 00 [21:15:27]Write to MH i2c: E2 08 00 6E 02 80 13 00 00 00 00 00 00 EC [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:27]Read from MH i2c: E2 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 62 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 62 00 6E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 36 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 36 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:27]wFMCommunicate OK [21:15:27]SAM_PROTO_GetFieldsCounters done [21:15:27]requested_item shift.num is exist - process it [21:15:27]requested_item shift.opened is exist - process it [21:15:27]req_shift_opened [21:15:27]FM_GetShiftState [21:15:27]SAM_PROTO_GetShiftState [21:15:27]wFMCommunicate request_size=4 [21:15:27]MH_SAM_APDU [21:15:27]CAPDU: 80 13 01 00 [21:15:27]Write to MH i2c: E2 08 00 6F 02 80 13 01 00 00 00 00 00 EE [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:27]Read from MH i2c: E2 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 0E 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 0E 00 6F 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C0 [21:15:27]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:15:27]wFMCommunicate OK [21:15:27]SAM_PROTO_GetShiftState done [21:15:27]FM_GetShiftState done [21:15:27]req_shift_opened done [21:15:27]requested_item shift.open_date is exist - process it [21:15:27]req_shift_open_date [21:15:27]req_shift_open_date done [21:15:27]produce_requested_data done [21:15:27]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82486,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:15:27]process_action_free close_receipt [21:15:27]json_value_free [21:15:27]json_value_free done [21:15:27]process_json_proto returns [21:15:27]Send response to host [21:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82486,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:15:27]free response buf [21:15:27]execute_script done [21:15:27]execute_script returns [21:15:27]free content buf [21:15:27]Sock 9.Close socket [21:15:27]Sock 9.Thread stoped [21:15:30]Connected sock=11 [21:15:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DD BC 07 01 A9 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 EC CF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 42 01 00 35 04 06 00 54 E9 2D DF 38 AC 90 66 F8 7E CF 8F 74 6A [21:15:35]recv_with_timeout no data received [21:15:35]CommunicateWithHost answer receiving error [21:15:35]CommunicateWithHost err = -3 [21:15:35]OFD Sender: Server communicate error [21:15:40]OFD Sender: Processing packet 82486 [packets to send 254, broken 253] [21:15:40]ProducePacketName [21:15:40]name=ofd_packets/00082486 [21:15:40]OFD Sender: To server: pG, [21:15:40]CommunicateWithHost lk.salyk.kg:30040 [21:15:40]ConnectInit lk.salyk.kg [21:15:45]ConnectInit Can't take IP for lk.salyk.kg [21:15:45]CommunicateWithHost connect error [21:15:45]CommunicateWithHost err = -1 [21:15:45]OFD Sender: Server communicate error [21:15:50]OFD Sender: Processing packet 82486 [packets to send 254, broken 253] [21:15:50]ProducePacketName [21:15:50]name=ofd_packets/00082486 [21:15:50]OFD Sender: To server: pG, [21:15:50]CommunicateWithHost lk.salyk.kg:30040 [21:15:50]ConnectInit lk.salyk.kg [21:15:52]Connected sock=9 [21:15:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 DD BC 07 01 A9 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 EC CF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 42 01 00 35 04 06 00 54 E9 2D DF 38 AC 90 66 F8 7E CF 8F 74 6A [21:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 83 59 47 00 E9 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 36 42 01 00 F4 03 04 00 40 75 12 67 B6 04 01 00 00 2F 96 DA E2 8B 3D 05 61 [21:15:52]CommunicateWithHost err = 0 [21:15:52]CheckOFDResponse [21:15:52]1017 (14) - 77093643461234 [21:15:52]1041 (16) - 0000000000871843 [21:15:52]1040 (4) - 82486 [21:15:52]1012 (4) - 18.10.2024 14:48 [21:15:52]1206 (1) - 0 [21:15:52]OFD Sender: Remove packet 82486 [21:15:52]ProducePacketName [21:15:52]name=ofd_packets/00082486 [21:15:52]NVStorageDeleteData [21:15:53]OFD Sender: No OFD packet to send [21:15:54]recv_with_timeout no data received [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:06]recv_with_timeout no data received [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:16]recv_with_timeout no data received [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:27]recv_with_timeout no data received [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:55]accept exits with 10 [21:19:55]New connection [21:19:55]New thread 3067297124 created [21:19:55]Thread 3067153764 joined [21:19:55]Waiting for new connection... [21:19:55] Sock 10.Parse request [21:19:55]Sock 10.Check first char [21:19:55]Sock 10.First char is OK [21:19:55]request: POST /json_proto HTTP/1.0 [21:19:55]Method: POST [21:19:55]URL: /json_proto [21:19:55]Method is POST - this is cgi request [21:19:55]url: /json_proto [21:19:55]query_string will be loaded in cgi processing [21:19:55]execute_cgi json_proto POST (null) [21:19:55]execute_cgi path=json_proto method=POST [21:19:55]POST find Content-Length [21:19:55]Host: 172.17.44.67:8080 [21:19:55]Content-Length: 682 [21:19:55]Content-Type: application/json [21:19:55] [21:19:55]POST finish read [21:19:55]Found Content-Length = 682 [21:19:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918980", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:55]execute_script... [21:19: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)918980", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:55]POST & json_proto [21:19:55]process_json_proto [21:19:55]json parsed OK: [21:19:55]protocol is kg_v1.0 [21:19:55]action value=close_receipt [21:19:55]process_action close_receipt [21:19:55]cmd_close_receipt [21:19:55]MH_GetDate [21:19:55]Write to MH i2c: F0 00 00 70 02 61 [21:19:55]Write i2c OK [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: F0 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: F0 09 00 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: F0 09 00 70 02 00 FB D0 12 67 F1 C7 6B 64 35 [21:19:55]GetLastDocTimeStamp 1729286124 [21:19:55]current date 1729286395 [21:19:55]FM_GetShiftState [21:19:55]SAM_PROTO_GetShiftState [21:19:55]wFMCommunicate request_size=4 [21:19:55]MH_SAM_APDU [21:19:55]CAPDU: 80 13 01 00 [21:19:55]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [21:19:55]Write i2c OK [21:19:55]MH_I2C_Read... [21:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:55]Read from MH i2c: E2 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: E2 0E 00 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C2 [21:19:55]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:19:55]wFMCommunicate OK [21:19:55]SAM_PROTO_GetShiftState done [21:19:55]FM_GetShiftState done [21:19:55]opened in 1729212319 [21:19:55]opened+sec_in_day 1729298719 [21:19:55]quantity*price = 100021 [21:19:55]sum+1 = 100023 [21:19:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 196 18.10.2024 21:19 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82487 ФПД: 19778624310258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T211955&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82487&fm=19778624310258&tin=02508201610067®Number=0000000000091680&sum=100000 [21:19:56]StoreToDocumentArchive [21:19:56]shift 526 fd 82487 [21:19:56]save to /storage/0526/doc_00082487 [21:19:56]save last doc name /storage/0526/doc_00082487 to /storage/kkm_last_doc_name [21:19:56]save OK [21:19:56]Clear old archive folders... [21:19:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:56]tlvbuf is 01E14530 [21:19:56]SAM_PROTO_ClearQueue [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 09 00 00 [21:19:56]Write to MH i2c: E2 08 00 7E 02 80 09 00 00 00 00 00 00 F2 [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [21:19:56]RAPDU: 90 00 [21:19:56]wFMCommunicate OK [21:19:56]SAM_PROTO_ClearQueue done [21:19:56]KKMCreateOFDPacket [21:19:56]OFDProtocolAddRootSTLVToBuf [21:19:56]FM_MakeSignedData [21:19:56]FM_MakeSignedData [21:19:56]SAM_PROTO_SignData [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 0D 01 02 [21:19:56]Write to MH i2c: E2 08 00 7F 02 80 0D 01 02 00 00 00 00 FA [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [21:19:56]RAPDU: 90 00 [21:19:56]wFMCommunicate OK [21:19:56]wFMCommunicate request_size=255 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FB D0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 42 01 00 35 04 06 00 11 [21:19:56]Write to MH i2c: E2 02 01 80 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FB D0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 42 01 00 35 04 06 00 11 00 00 47 [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [21:19:56]RAPDU: 90 00 [21:19:56]wFMCommunicate OK [21:19:56]wFMCommunicate request_size=10 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 0D 02 02 05 FD 11 E0 4B F2 [21:19:56]Write to MH i2c: E2 0D 00 81 02 80 0D 02 02 05 00 FD 11 E0 4B F2 00 00 32 [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [21:19:56]RAPDU: 90 00 [21:19:56]wFMCommunicate OK [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 0D 03 02 [21:19:56]Write to MH i2c: E2 08 00 82 02 80 0D 03 02 00 00 00 00 FF [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0B 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0B 00 82 02 00 14 AB B6 DD 8F D8 8F 0E 90 00 56 [21:19:56]RAPDU: 14 AB B6 DD 8F D8 8F 0E 90 00 [21:19:56]wFMCommunicate OK [21:19:56]SAM_PROTO_SignData done [21:19:56]FM_MakeSignedData done [21:19:56]CreateOFDProtocolMessage [21:19:56]wFMCommunicate request_size=4 [21:19:56]MH_SAM_APDU [21:19:56]CAPDU: 80 11 00 00 [21:19:56]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 17 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 51 [21:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:19:56]wFMCommunicate OK [21:19:56]CreateOFDProtocolMessage done [21:19:56]OFDSenderStorePacket 82487 [21:19:56]StoreOFDPacket docnum=82487 [21:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BF 5F 07 01 C6 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FB D0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 42 01 00 35 04 06 00 11 FD 11 E0 4B F2 14 AB B6 DD 8F D8 8F 0E [21:19:56]CheckFolder [21:19:56]dirname=/storage/ofd_packets [21:19:56]CheckFolder done [21:19:56]ProducePacketName [21:19:56]name=ofd_packets/00082487 [21:19:56]NVStorageSaveData ofd_packets/00082487 [21:19:56]File name is /storage/ofd_packets/00082487 [21:19:56]Write 301 bytes [21:19:56]NVStorageSaveData done [21:19:56]OFDSenderStorePacket done [21:19:56]KKMCreateOFDPacket done [21:19:56]NVStorageSaveData kkm_last_timestamp [21:19:56]File name is /storage/kkm_last_timestamp [21:19:56]Write 4 bytes [21:19:56]NVStorageSaveData done [21:19:56]ExternCall_PrintAddStr [21:19:56]wPrintStart [21:19:56]Write to MH i2c: 01 00 00 84 02 86 [21:19:56]Write i2c OK [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: 01 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: 01 07 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 FF 0F 9B [21:19:56]RasterBufferAndPrint [21:19:56]line Счет N : (1)918980 [21:19:56]line ИНН: 02508201610067 [21:19:56]line Контрольно-Кассовый Чек [21:19:56]line ПРОДАЖА [21:19:56]line ТРК (МРК, ГНК) : 12 [21:19:56]line Товар: 2710124500 [21:19:56]line Аи-95-К-5 [21:19:56]line 13.480 * 74.20 [21:19:56]line = 1000.22 [21:19:56]line НДС 12% НСП 1% [21:19:56]line > о реализуемом товаре [21:19:56]line ОКРУГЛЕНИЕ: -0.22 [21:19:56]line ИТОГО: 1000.00 [21:19:56]line Внесено: 1000.00 [21:19:56]line СДАЧА: 0.00 [21:19:56]line НСП 1% : 8.85 [21:19:56]line НДС 12% : 106.22 [21:19:56]line Наличными: 1000.00 [21:19:56]line Безнал.: 0.00 [21:19:56]line Место: АЗС № 114 "Партнер Нефть" [21:19:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:19:56]line СНО: Общий режим [21:19:56]line Чек 196 18.10.2024 21:19 [21:19:56]line Смена: 526 ФФД: 1.0 [21:19:56]line ЗНМ: 0300000086 [21:19:56]line РНМ: 0000000000091680 [21:19:56]line Версия ККМ: 001 [21:19:56]line ФМ: 0000000000871843 [21:19:56]line ФД: 82487 [21:19:56]line ФПД: 19778624310258 [21:19:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T211955&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82487&fm=19778624310258&tin=02508201610067®Number=0000000000091680&sum=100000 [21:19:57]OFD Sender: Processing packet 82487 [packets to send 254, broken 253] [21:19:57]ProducePacketName [21:19:57]name=ofd_packets/00082487 [21:19:57]OFD Sender: To server: pG, [21:19:57]CommunicateWithHost lk.salyk.kg:30040 [21:19:57]ConnectInit lk.salyk.kg [21:19:57]written 0, free lines is 4095 [21:19:57]Write to MH i2c: 01 00 00 AF 02 B1 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: 01 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: 01 07 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 E2 0C A6 [21:19:57]RasterBufferAndPrint [21:19:57]line [21:19:57]line [21:19:57]line [21:19:57]line [21:19:57]line [21:19:57]written 0, free lines is 3304 [21:19:57]MH_Cut [21:19:57]Write to MH i2c: D1 01 00 B6 02 01 8A [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: D1 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: D1 01 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: D1 01 00 B6 02 00 89 [21:19:57]Write to MH i2c: 01 00 00 B7 02 B9 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:58]*** Cut start [21:19:58]*** Partial cut [21:19:58]*** CUTSNS_PIN = 1 [21:19:58]*** CUTSNS_PIN = 0 [21:19:58]Connected sock=11 [21:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 BF 5F 07 01 C6 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 FB D0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 42 01 00 35 04 06 00 11 FD 11 E0 4B F2 14 AB B6 DD 8F D8 8F 0E [21:19:58]*** Brake cut motor [21:19:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 B3 77 47 00 43 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 37 42 01 00 F4 03 04 00 36 76 12 67 B6 04 01 00 00 9A 16 A7 5B 95 F2 51 5D [21:19:58]CommunicateWithHost err = 0 [21:19:58]CheckOFDResponse [21:19:58]1017 (14) - 77093643461234 [21:19:58]1041 (16) - 0000000000871843 [21:19:58]1040 (4) - 82487 [21:19:58]1012 (4) - 18.10.2024 14:52 [21:19:58]1206 (1) - 0 [21:19:58]OFD Sender: Remove packet 82487 [21:19:58]ProducePacketName [21:19:58]name=ofd_packets/00082487 [21:19:58]NVStorageDeleteData [21:19:58]Read from MH i2c: 01 [21:19:58]MH_I2C_Read... [21:19:58]*** Stop cut motor [21:19:58]*** Cut end [21:19:58]Read from MH i2c: 01 07 00 [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [21:19:58]process_action close_receipt done [21:19:58]requested_data is exist [21:19:58]produce_requested_data [21:19:58]requested_item fm.sn is exist - process it [21:19:58]wFMCommunicate request_size=4 [21:19:58]MH_SAM_APDU [21:19:58]CAPDU: 80 11 00 00 [21:19:58]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [21:19:58]Write i2c OK [21:19:58]MH_I2C_Read... [21:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:59]Read from MH i2c: E2 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 17 00 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 86 [21:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:19:59]wFMCommunicate OK [21:19:59]requested_item fd.num is exist - process it [21:19:59]SAM_PROTO_GetFieldsCounters [21:19:59]wFMCommunicate request_size=4 [21:19:59]MH_SAM_APDU [21:19:59]CAPDU: 80 13 00 00 [21:19:59]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [21:19:59]Write i2c OK [21:19:59]MH_I2C_Read... [21:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:59]Read from MH i2c: E2 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 62 00 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 62 00 B9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 37 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:19:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 37 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:59]wFMCommunicate OK [21:19:59]SAM_PROTO_GetFieldsCounters done [21:19:59]requested_item shift.num is exist - process it [21:19:59]requested_item shift.opened is exist - process it [21:19:59]req_shift_opened [21:19:59]FM_GetShiftState [21:19:59]SAM_PROTO_GetShiftState [21:19:59]wFMCommunicate request_size=4 [21:19:59]MH_SAM_APDU [21:19:59]CAPDU: 80 13 01 00 [21:19:59]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [21:19:59]Write i2c OK [21:19:59]MH_I2C_Read... [21:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:59]Read from MH i2c: E2 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 0E 00 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 0B [21:19:59]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:19:59]wFMCommunicate OK [21:19:59]SAM_PROTO_GetShiftState done [21:19:59]FM_GetShiftState done [21:19:59]req_shift_opened done [21:19:59]requested_item shift.open_date is exist - process it [21:19:59]req_shift_open_date [21:19:59]req_shift_open_date done [21:19:59]produce_requested_data done [21:19:59]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82487,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:19:59]process_action_free close_receipt [21:19:59]json_value_free [21:19:59]json_value_free done [21:19:59]process_json_proto returns [21:19:59]Send response to host [21:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82487,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:19:59]free response buf [21:19:59]execute_script done [21:19:59]execute_script returns [21:19:59]free content buf [21:19:59]Sock 10.Close socket [21:19:59]Sock 10.Thread stoped [21:19:59]OFD Sender: No OFD packet to send [21:20:01]recv_with_timeout no data received [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:57]accept exits with 8 [21:22:57]New connection [21:22:57]New thread 3067153764 created [21:22:57]Thread 3067297124 joined [21:22:57]Waiting for new connection... [21:22:57] Sock 8.Parse request [21:22:57]Sock 8.Check first char [21:22:57]Sock 8.First char is OK [21:22:57]request: POST /json_proto HTTP/1.0 [21:22:57]Method: POST [21:22:57]URL: /json_proto [21:22:57]Method is POST - this is cgi request [21:22:57]url: /json_proto [21:22:57]query_string will be loaded in cgi processing [21:22:57]execute_cgi json_proto POST (null) [21:22:57]execute_cgi path=json_proto method=POST [21:22:57]POST find Content-Length [21:22:57]Host: 172.17.44.67:8080 [21:22:57]Content-Length: 677 [21:22:57]Content-Type: application/json [21:22:57] [21:22:57]POST finish read [21:22:57]Found Content-Length = 677 [21:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:57]execute_script... [21:22: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)918981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:57]POST & json_proto [21:22:57]process_json_proto [21:22:57]json parsed OK: [21:22:57]protocol is kg_v1.0 [21:22:57]action value=close_receipt [21:22:57]process_action close_receipt [21:22:57]cmd_close_receipt [21:22:57]MH_GetDate [21:22:57]Write to MH i2c: F0 00 00 BB 02 AC [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: F0 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: F0 09 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: F0 09 00 BB 02 00 B2 D1 12 67 F1 C7 6B 64 38 [21:22:57]GetLastDocTimeStamp 1729286395 [21:22:57]current date 1729286578 [21:22:57]FM_GetShiftState [21:22:57]SAM_PROTO_GetShiftState [21:22:57]wFMCommunicate request_size=4 [21:22:57]MH_SAM_APDU [21:22:57]CAPDU: 80 13 01 00 [21:22:57]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [21:22:57]Write i2c OK [21:22:57]MH_I2C_Read... [21:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:57]Read from MH i2c: E2 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 0E 00 [21:22:57]MH_I2C_Read... [21:22:57]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 0D [21:22:57]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:22:57]wFMCommunicate OK [21:22:57]SAM_PROTO_GetShiftState done [21:22:57]FM_GetShiftState done [21:22:57]opened in 1729212319 [21:22:57]opened+sec_in_day 1729298719 [21:22:57]quantity*price = 30038 [21:22:57]sum+1 = 30039 [21:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 197 18.10.2024 21:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82488 ФПД: 221547662503870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82488&fm=221547662503870&tin=02508201610067®Number=0000000000091680&sum=30000 [21:22:58]StoreToDocumentArchive [21:22:58]shift 526 fd 82488 [21:22:58]save to /storage/0526/doc_00082488 [21:22:58]save last doc name /storage/0526/doc_00082488 to /storage/kkm_last_doc_name [21:22:58]save OK [21:22:58]Clear old archive folders... [21:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:58]tlvbuf is 01E08F90 [21:22:58]SAM_PROTO_ClearQueue [21:22:58]wFMCommunicate request_size=4 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 09 00 00 [21:22:58]Write to MH i2c: E2 08 00 C9 02 80 09 00 00 00 00 00 00 3D [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:58]Read from MH i2c: E2 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [21:22:58]RAPDU: 90 00 [21:22:58]wFMCommunicate OK [21:22:58]SAM_PROTO_ClearQueue done [21:22:58]KKMCreateOFDPacket [21:22:58]OFDProtocolAddRootSTLVToBuf [21:22:58]FM_MakeSignedData [21:22:58]FM_MakeSignedData [21:22:58]SAM_PROTO_SignData [21:22:58]wFMCommunicate request_size=4 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 0D 01 02 [21:22:58]Write to MH i2c: E2 08 00 CA 02 80 0D 01 02 00 00 00 00 45 [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:58]Read from MH i2c: E2 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [21:22:58]RAPDU: 90 00 [21:22:58]wFMCommunicate OK [21:22:58]wFMCommunicate request_size=255 [21:22:58]MH_SAM_APDU [21:22: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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B2 D1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 42 01 00 35 04 06 00 C9 [21:22:58]Write to MH i2c: E2 02 01 CB 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B2 D1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 42 01 00 35 04 06 00 C9 00 00 DA [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [21:22:59]RAPDU: 90 00 [21:22:59]wFMCommunicate OK [21:22:59]wFMCommunicate request_size=10 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 0D 02 02 05 7F 15 B9 6F BE [21:22:59]Write to MH i2c: E2 0D 00 CC 02 80 0D 02 02 05 00 7F 15 B9 6F BE 00 00 CC [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [21:22:59]RAPDU: 90 00 [21:22:59]wFMCommunicate OK [21:22:59]wFMCommunicate request_size=4 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 0D 03 02 [21:22:59]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0B 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0B 00 CD 02 00 49 E2 32 28 C2 35 F2 BD 90 00 76 [21:22:59]RAPDU: 49 E2 32 28 C2 35 F2 BD 90 00 [21:22:59]wFMCommunicate OK [21:22:59]SAM_PROTO_SignData done [21:22:59]FM_MakeSignedData done [21:22:59]CreateOFDProtocolMessage [21:22:59]wFMCommunicate request_size=4 [21:22:59]MH_SAM_APDU [21:22:59]CAPDU: 80 11 00 00 [21:22:59]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 17 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 9C [21:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:22:59]wFMCommunicate OK [21:22:59]CreateOFDProtocolMessage done [21:22:59]OFDSenderStorePacket 82488 [21:22:59]StoreOFDPacket docnum=82488 [21:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 FE 07 01 B7 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B2 D1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 42 01 00 35 04 06 00 C9 7F 15 B9 6F BE 49 E2 32 28 C2 35 F2 BD [21:22:59]CheckFolder [21:22:59]dirname=/storage/ofd_packets [21:22:59]CheckFolder done [21:22:59]ProducePacketName [21:22:59]name=ofd_packets/00082488 [21:22:59]NVStorageSaveData ofd_packets/00082488 [21:22:59]File name is /storage/ofd_packets/00082488 [21:22:59]Write 301 bytes [21:22:59]NVStorageSaveData done [21:22:59]OFDSenderStorePacket done [21:22:59]KKMCreateOFDPacket done [21:22:59]NVStorageSaveData kkm_last_timestamp [21:22:59]File name is /storage/kkm_last_timestamp [21:22:59]Write 4 bytes [21:22:59]NVStorageSaveData done [21:22:59]ExternCall_PrintAddStr [21:22:59]wPrintStart [21:22:59]Write to MH i2c: 01 00 00 CF 02 D1 [21:22:59]Write i2c OK [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: 01 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: 01 07 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [21:22:59]RasterBufferAndPrint [21:22:59]line Счет N : (1)918981 [21:22:59]line ИНН: 02508201610067 [21:22:59]line Контрольно-Кассовый Чек [21:22:59]line ПРОДАЖА [21:22:59]line ТРК (МРК, ГНК) : 11 [21:22:59]line Товар: 2710124130 [21:22:59]line Аи-92-К-4 [21:22:59]line 4.490 * 66.90 [21:22:59]line = 300.38 [21:22:59]line НДС 12% НСП 1% [21:22:59]line > о реализуемом товаре [21:22:59]line ОКРУГЛЕНИЕ: -0.38 [21:22:59]line ИТОГО: 300.00 [21:22:59]line Внесено: 300.00 [21:22:59]line СДАЧА: 0.00 [21:22:59]line НСП 1% : 2.66 [21:22:59]line НДС 12% : 31.90 [21:22:59]line Наличными: 300.00 [21:22:59]line Безнал.: 0.00 [21:22:59]line Место: АЗС № 114 "Партнер Нефть" [21:22:59]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:22:59]line СНО: Общий режим [21:22:59]line Чек 197 18.10.2024 21:22 [21:22:59]line Смена: 526 ФФД: 1.0 [21:22:59]line ЗНМ: 0300000086 [21:22:59]line РНМ: 0000000000091680 [21:22:59]line Версия ККМ: 001 [21:22:59]line ФМ: 0000000000871843 [21:22:59]line ФД: 82488 [21:22:59]line ФПД: 221547662503870 [21:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212258&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82488&fm=221547662503870&tin=02508201610067®Number=0000000000091680&sum=30000 [21:22:59]OFD Sender: Processing packet 82488 [packets to send 254, broken 253] [21:22:59]ProducePacketName [21:22:59]name=ofd_packets/00082488 [21:22:59]OFD Sender: To server: pG, [21:22:59]CommunicateWithHost lk.salyk.kg:30040 [21:22:59]ConnectInit lk.salyk.kg [21:22:59]written 0, free lines is 4095 [21:23:00]Write to MH i2c: 01 00 00 FA 02 FC [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 E1 0C F0 [21:23:00]RasterBufferAndPrint [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]line [21:23:00]written 0, free lines is 3303 [21:23:00]Connected sock=11 [21:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 99 FE 07 01 B7 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B2 D1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 38 42 01 00 35 04 06 00 C9 7F 15 B9 6F BE 49 E2 32 28 C2 35 F2 BD [21:23:00]MH_Cut [21:23:00]Write to MH i2c: D1 01 00 01 03 01 D6 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 01 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: D1 01 00 01 03 00 D5 [21:23:00]Write to MH i2c: 01 00 00 02 03 05 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 61 FA 47 00 05 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 31 38 34 33 10 04 04 00 38 42 01 00 F4 03 04 00 EB 76 12 67 B6 04 01 00 00 CA 69 95 7F 4F B2 2A DF [21:23:00]CommunicateWithHost err = 0 [21:23:00]CheckOFDResponse [21:23:00]1017 (14) - 77093643461234 [21:23:00]1041 (16) - 0000000000871843 [21:23:00]1040 (4) - 82488 [21:23:00]1012 (4) - 18.10.2024 14:55 [21:23:00]1206 (1) - 0 [21:23:00]OFD Sender: Remove packet 82488 [21:23:00]ProducePacketName [21:23:00]name=ofd_packets/00082488 [21:23:00]NVStorageDeleteData [21:23:00]*** Cut start [21:23:00]*** Partial cut [21:23:00]*** CUTSNS_PIN = 1 [21:23:00]*** CUTSNS_PIN = 0 [21:23:01]OFD Sender: No OFD packet to send [21:23:01]*** Brake cut motor [21:23:01]Read from MH i2c: 01 [21:23:01]MH_I2C_Read... [21:23:01]*** Stop cut motor [21:23:01]*** Cut end [21:23:01]Read from MH i2c: 01 07 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 FF 0F 1A [21:23:01]process_action close_receipt done [21:23:01]requested_data is exist [21:23:01]produce_requested_data [21:23:01]requested_item fm.sn is exist - process it [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 11 00 00 [21:23:01]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 17 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D2 [21:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:23:01]wFMCommunicate OK [21:23:01]requested_item fd.num is exist - process it [21:23:01]SAM_PROTO_GetFieldsCounters [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 13 00 00 [21:23:01]Write to MH i2c: E2 08 00 04 03 80 13 00 00 00 00 00 00 83 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 62 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 62 00 04 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 38 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [21:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 38 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_GetFieldsCounters done [21:23:01]requested_item shift.num is exist - process it [21:23:01]requested_item shift.opened is exist - process it [21:23:01]req_shift_opened [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 05 03 80 13 01 00 00 00 00 00 85 [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 05 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 57 [21:23:01]RAPDU: 09 00 01 9F AF 11 67 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]req_shift_opened done [21:23:01]requested_item shift.open_date is exist - process it [21:23:01]req_shift_open_date [21:23:01]req_shift_open_date done [21:23:01]produce_requested_data done [21:23:01]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82488,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:23:01]process_action_free close_receipt [21:23:01]json_value_free [21:23:01]json_value_free done [21:23:01]process_json_proto returns [21:23:01]Send response to host [21:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82488,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:23:01]free response buf [21:23:01]execute_script done [21:23:01]execute_script returns [21:23:01]free content buf [21:23:01]Sock 8.Close socket [21:23:01]Sock 8.Thread stoped [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:20]recv_with_timeout no data received [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:45]recv_with_timeout no data received [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:09]accept exits with 9 [21:30:09]New connection [21:30:09]New thread 3067297124 created [21:30:09]Thread 3067153764 joined [21:30:09]Waiting for new connection... [21:30:09] Sock 9.Parse request [21:30:09]Sock 9.Check first char [21:30:09]Sock 9.First char is OK [21:30:09]request: POST /json_proto HTTP/1.0 [21:30:09]Method: POST [21:30:09]URL: /json_proto [21:30:09]Method is POST - this is cgi request [21:30:09]url: /json_proto [21:30:09]query_string will be loaded in cgi processing [21:30:09]execute_cgi json_proto POST (null) [21:30:09]execute_cgi path=json_proto method=POST [21:30:09]POST find Content-Length [21:30:09]Host: 172.17.44.67:8080 [21:30:09]Content-Length: 806 [21:30:09]Content-Type: application/json [21:30:09] [21:30:09]POST finish read [21:30:09]Found Content-Length = 806 [21:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:09]execute_script... [21:30: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)918982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2203036", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:09]POST & json_proto [21:30:09]process_json_proto [21:30:09]json parsed OK: [21:30:09]protocol is kg_v1.0 [21:30:09]action value=close_receipt [21:30:09]process_action close_receipt [21:30:09]cmd_close_receipt [21:30:09]MH_GetDate [21:30:09]Write to MH i2c: F0 00 00 06 03 F8 [21:30:09]Write i2c OK [21:30:09]MH_I2C_Read... [21:30:09]Read from MH i2c: F0 [21:30:09]MH_I2C_Read... [21:30:09]Read from MH i2c: F0 09 00 [21:30:09]MH_I2C_Read... [21:30:09]Read from MH i2c: F0 09 00 06 03 00 62 D3 12 67 F1 C7 6B 64 36 [21:30:09]GetLastDocTimeStamp 1729286578 [21:30:09]current date 1729287010 [21:30:09]FM_GetShiftState [21:30:09]SAM_PROTO_GetShiftState [21:30:09]wFMCommunicate request_size=4 [21:30:09]MH_SAM_APDU [21:30:09]CAPDU: 80 13 01 00 [21:30:09]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [21:30:09]Write i2c OK [21:30:09]MH_I2C_Read... [21:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:09]Read from MH i2c: E2 [21:30:09]MH_I2C_Read... [21:30:09]Read from MH i2c: E2 0E 00 [21:30:09]MH_I2C_Read... [21:30:09]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 59 [21:30:09]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:30:09]wFMCommunicate OK [21:30:09]SAM_PROTO_GetShiftState done [21:30:09]FM_GetShiftState done [21:30:09]opened in 1729212319 [21:30:09]opened+sec_in_day 1729298719 [21:30:09]quantity*price = 0 [21:30:09]sum+1 = 1 [21:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 198 18.10.2024 21:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2203036 ФМ: 0000000000871843 ФД: 82489 ФПД: 204880830024406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213010&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82489&fm=204880830024406&tin=02508201610067®Number=0000000000091680&sum=0 [21:30:10]StoreToDocumentArchive [21:30:10]shift 526 fd 82489 [21:30:10]save to /storage/0526/doc_00082489 [21:30:10]save last doc name /storage/0526/doc_00082489 to /storage/kkm_last_doc_name [21:30:10]save OK [21:30:10]Clear old archive folders... [21:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:30:10]tlvbuf is 01E0EEC0 [21:30:10]SAM_PROTO_ClearQueue [21:30:10]wFMCommunicate request_size=4 [21:30:10]MH_SAM_APDU [21:30:10]CAPDU: 80 09 00 00 [21:30:10]Write to MH i2c: E2 08 00 14 03 80 09 00 00 00 00 00 00 89 [21:30:10]Write i2c OK [21:30:10]MH_I2C_Read... [21:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:10]Read from MH i2c: E2 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: E2 03 00 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [21:30:10]RAPDU: 90 00 [21:30:10]wFMCommunicate OK [21:30:10]SAM_PROTO_ClearQueue done [21:30:10]KKMCreateOFDPacket [21:30:10]OFDProtocolAddRootSTLVToBuf [21:30:10]FM_MakeSignedData [21:30:10]FM_MakeSignedData [21:30:10]SAM_PROTO_SignData [21:30:10]wFMCommunicate request_size=4 [21:30:10]MH_SAM_APDU [21:30:10]CAPDU: 80 0D 01 02 [21:30:10]Write to MH i2c: E2 08 00 15 03 80 0D 01 02 00 00 00 00 91 [21:30:10]Write i2c OK [21:30:10]MH_I2C_Read... [21:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:10]Read from MH i2c: E2 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: E2 03 00 [21:30:10]MH_I2C_Read... [21:30:10]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [21:30:10]RAPDU: 90 00 [21:30:10]wFMCommunicate OK [21:30:10]wFMCommunicate request_size=255 [21:30:10]MH_SAM_APDU [21:30:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 62 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 39 42 01 [21:30:10]Write to MH i2c: E2 02 01 16 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 62 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 39 42 01 00 00 10 [21:30:10]Write i2c OK [21:30:10]MH_I2C_Read... [21:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:11]Read from MH i2c: E2 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 03 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [21:30:11]RAPDU: 90 00 [21:30:11]wFMCommunicate OK [21:30:11]wFMCommunicate request_size=16 [21:30:11]MH_SAM_APDU [21:30:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BA 56 89 18 4A D6 [21:30:11]Write to MH i2c: E2 13 00 17 03 80 0D 02 02 0B 00 00 35 04 06 00 BA 56 89 18 4A D6 00 00 BA [21:30:11]Write i2c OK [21:30:11]MH_I2C_Read... [21:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:11]Read from MH i2c: E2 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 03 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [21:30:11]RAPDU: 90 00 [21:30:11]wFMCommunicate OK [21:30:11]wFMCommunicate request_size=4 [21:30:11]MH_SAM_APDU [21:30:11]CAPDU: 80 0D 03 02 [21:30:11]Write to MH i2c: E2 08 00 18 03 80 0D 03 02 00 00 00 00 96 [21:30:11]Write i2c OK [21:30:11]MH_I2C_Read... [21:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:11]Read from MH i2c: E2 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 0B 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 0B 00 18 03 00 79 F1 2C 60 28 BC 70 BC 90 00 9D [21:30:11]RAPDU: 79 F1 2C 60 28 BC 70 BC 90 00 [21:30:11]wFMCommunicate OK [21:30:11]SAM_PROTO_SignData done [21:30:11]FM_MakeSignedData done [21:30:11]CreateOFDProtocolMessage [21:30:11]wFMCommunicate request_size=4 [21:30:11]MH_SAM_APDU [21:30:11]CAPDU: 80 11 00 00 [21:30:11]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [21:30:11]Write i2c OK [21:30:11]MH_I2C_Read... [21:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:11]Read from MH i2c: E2 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 17 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E8 [21:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:30:11]wFMCommunicate OK [21:30:11]CreateOFDProtocolMessage done [21:30:11]OFDSenderStorePacket 82489 [21:30:11]StoreOFDPacket docnum=82489 [21:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 67 7A 0D 01 5B CC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 62 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 39 42 01 00 35 04 06 00 BA 56 89 18 4A D6 79 F1 2C 60 28 BC 70 BC [21:30:11]CheckFolder [21:30:11]dirname=/storage/ofd_packets [21:30:11]CheckFolder done [21:30:11]ProducePacketName [21:30:11]name=ofd_packets/00082489 [21:30:11]NVStorageSaveData ofd_packets/00082489 [21:30:11]File name is /storage/ofd_packets/00082489 [21:30:11]Write 307 bytes [21:30:11]NVStorageSaveData done [21:30:11]OFDSenderStorePacket done [21:30:11]KKMCreateOFDPacket done [21:30:11]NVStorageSaveData kkm_last_timestamp [21:30:11]File name is /storage/kkm_last_timestamp [21:30:11]Write 4 bytes [21:30:11]NVStorageSaveData done [21:30:11]ExternCall_PrintAddStr [21:30:11]wPrintStart [21:30:11]Write to MH i2c: 01 00 00 1A 03 1D [21:30:11]Write i2c OK [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: 01 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: 01 07 00 [21:30:11]MH_I2C_Read... [21:30:11]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [21:30:11]RasterBufferAndPrint [21:30:11]line Счет N : (1)918982 [21:30:11]line ИНН: 02508201610067 [21:30:11]line Контрольно-Кассовый Чек [21:30:11]line ПРОДАЖА [21:30:11]line ТРК (МРК, ГНК) : 21 [21:30:11]line Товар: 2710194800 [21:30:11]line D-Energy ДТ-К-2 [21:30:11]line 60.000 * 0.00 [21:30:11]line = 0.00 [21:30:11]line НДС 12% НСП 1% [21:30:11]line > о реализуемом товаре [21:30:11]line ИТОГО: 0.00 [21:30:11]line НСП 1% : 0.00 [21:30:11]line НДС 12% : 0.00 [21:30:11]line Наличными: 0.00 [21:30:11]line Безнал.: 0.00 [21:30:11]line Место: АЗС № 114 "Партнер Нефть" [21:30:11]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:30:11]line СНО: Общий режим [21:30:11]line Чек 198 18.10.2024 21:30 [21:30:11]line Смена: 526 ФФД: 1.0 [21:30:11]line ЗНМ: 0300000086 [21:30:11]line РНМ: 0000000000091680 [21:30:11]line Версия ККМ: 001 [21:30:11]line Талоны: Топливные Талоны [21:30:11]line 2203036 [21:30:11]line ФМ: 0000000000871843 [21:30:11]line ФД: 82489 [21:30:11]line ФПД: 204880830024406 [21:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213010&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82489&fm=204880830024406&tin=02508201610067®Number=0000000000091680&sum=0 [21:30:11]OFD Sender: Processing packet 82489 [packets to send 254, broken 253] [21:30:11]ProducePacketName [21:30:11]name=ofd_packets/00082489 [21:30:11]OFD Sender: To server: pG, [21:30:11]CommunicateWithHost lk.salyk.kg:30040 [21:30:11]ConnectInit lk.salyk.kg [21:30:11]written 0, free lines is 4095 [21:30:12]Write to MH i2c: 01 00 00 44 03 47 [21:30:12]Write i2c OK [21:30:12]MH_I2C_Read... [21:30:12]Read from MH i2c: 01 [21:30:12]MH_I2C_Read... [21:30:12]Read from MH i2c: 01 07 00 [21:30:12]MH_I2C_Read... [21:30:12]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 FB 0C 55 [21:30:12]RasterBufferAndPrint [21:30:12]line [21:30:12]line [21:30:12]line [21:30:12]line [21:30:12]line [21:30:12]written 0, free lines is 3329 [21:30:12]MH_Cut [21:30:12]Write to MH i2c: D1 01 00 4B 03 01 20 [21:30:12]Write i2c OK [21:30:12]MH_I2C_Read... [21:30:12]Read from MH i2c: D1 [21:30:12]MH_I2C_Read... [21:30:12]Read from MH i2c: D1 01 00 [21:30:12]MH_I2C_Read... [21:30:12]Read from MH i2c: D1 01 00 4B 03 00 1F [21:30:12]Write to MH i2c: 01 00 00 4C 03 4F [21:30:12]Write i2c OK [21:30:12]MH_I2C_Read... [21:30:12]*** Cut start [21:30:12]*** Partial cut [21:30:12]*** CUTSNS_PIN = 1 [21:30:12]*** CUTSNS_PIN = 0 [21:30:13]*** Brake cut motor [21:30:13]Read from MH i2c: 01 [21:30:13]MH_I2C_Read... [21:30:13]*** Stop cut motor [21:30:13]*** Cut end [21:30:13]Read from MH i2c: 01 07 00 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [21:30:13]process_action close_receipt done [21:30:13]requested_data is exist [21:30:13]produce_requested_data [21:30:13]requested_item fm.sn is exist - process it [21:30:13]wFMCommunicate request_size=4 [21:30:13]MH_SAM_APDU [21:30:13]CAPDU: 80 11 00 00 [21:30:13]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [21:30:13]Write i2c OK [21:30:13]MH_I2C_Read... [21:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:13]Read from MH i2c: E2 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 17 00 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 1C [21:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:30:13]wFMCommunicate OK [21:30:13]requested_item fd.num is exist - process it [21:30:13]SAM_PROTO_GetFieldsCounters [21:30:13]wFMCommunicate request_size=4 [21:30:13]MH_SAM_APDU [21:30:13]CAPDU: 80 13 00 00 [21:30:13]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [21:30:13]Write i2c OK [21:30:13]MH_I2C_Read... [21:30:13]Connected sock=11 [21:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 67 7A 0D 01 5B CC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 62 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 39 42 01 00 35 04 06 00 BA 56 89 18 4A D6 79 F1 2C 60 28 BC 70 BC [21:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:13]Read from MH i2c: E2 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 62 00 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 62 00 4E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 39 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [21:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 39 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:13]wFMCommunicate OK [21:30:13]SAM_PROTO_GetFieldsCounters done [21:30:13]requested_item shift.num is exist - process it [21:30:13]requested_item shift.opened is exist - process it [21:30:13]req_shift_opened [21:30:13]FM_GetShiftState [21:30:13]SAM_PROTO_GetShiftState [21:30:13]wFMCommunicate request_size=4 [21:30:13]MH_SAM_APDU [21:30:13]CAPDU: 80 13 01 00 [21:30:13]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [21:30:13]Write i2c OK [21:30:13]MH_I2C_Read... [21:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:13]Read from MH i2c: E2 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 0E 00 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A1 [21:30:13]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:30:13]wFMCommunicate OK [21:30:13]SAM_PROTO_GetShiftState done [21:30:13]FM_GetShiftState done [21:30:13]req_shift_opened done [21:30:13]requested_item shift.open_date is exist - process it [21:30:13]req_shift_open_date [21:30:13]req_shift_open_date done [21:30:13]produce_requested_data done [21:30:13]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82489,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:30:13]process_action_free close_receipt [21:30:13]json_value_free [21:30:13]json_value_free done [21:30:13]process_json_proto returns [21:30:13]Send response to host [21:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82489,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:30:13]free response buf [21:30:13]execute_script done [21:30:13]execute_script returns [21:30:13]free content buf [21:30:13]Sock 9.Close socket [21:30:13]Sock 9.Thread stoped [21:30:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 D7 AB 47 00 DD C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 39 42 01 00 F4 03 04 00 9D 78 12 67 B6 04 01 00 00 6E 8C C0 68 9A FB 06 89 [21:30:14]CommunicateWithHost err = 0 [21:30:14]CheckOFDResponse [21:30:14]1017 (14) - 77093643461234 [21:30:14]1041 (16) - 0000000000871843 [21:30:14]1040 (4) - 82489 [21:30:14]1012 (4) - 18.10.2024 15:02 [21:30:14]1206 (1) - 0 [21:30:14]OFD Sender: Remove packet 82489 [21:30:14]ProducePacketName [21:30:14]name=ofd_packets/00082489 [21:30:14]NVStorageDeleteData [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:17]accept exits with 8 [21:31:17]New connection [21:31:17]New thread 3067153764 created [21:31:17]Thread 3067297124 joined [21:31:17]Waiting for new connection... [21:31:17] Sock 8.Parse request [21:31:17]Sock 8.Check first char [21:31:17]Sock 8.First char is OK [21:31:17]request: POST /json_proto HTTP/1.0 [21:31:17]Method: POST [21:31:17]URL: /json_proto [21:31:17]Method is POST - this is cgi request [21:31:17]url: /json_proto [21:31:17]query_string will be loaded in cgi processing [21:31:17]execute_cgi json_proto POST (null) [21:31:17]execute_cgi path=json_proto method=POST [21:31:17]POST find Content-Length [21:31:17]Host: 172.17.44.67:8080 [21:31:17]Content-Length: 683 [21:31:17]Content-Type: application/json [21:31:17] [21:31:17]POST finish read [21:31:17]Found Content-Length = 683 [21:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 4.770, "sum" : 368.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 368.00, "total" : 368.00, "payments": [ { "type": 0, "sum" : 368.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:17]execute_script... [21:31: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)918983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 4.770, "sum" : 368.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 368.00, "total" : 368.00, "payments": [ { "type": 0, "sum" : 368.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:17]POST & json_proto [21:31:17]process_json_proto [21:31:17]json parsed OK: [21:31:17]protocol is kg_v1.0 [21:31:17]action value=close_receipt [21:31:17]process_action close_receipt [21:31:17]cmd_close_receipt [21:31:17]MH_GetDate [21:31:17]Write to MH i2c: F0 00 00 50 03 42 [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: F0 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: F0 09 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: F0 09 00 50 03 00 A5 D3 12 67 F1 C7 6B 64 C3 [21:31:17]GetLastDocTimeStamp 1729287010 [21:31:17]current date 1729287077 [21:31:17]FM_GetShiftState [21:31:17]SAM_PROTO_GetShiftState [21:31:17]wFMCommunicate request_size=4 [21:31:17]MH_SAM_APDU [21:31:17]CAPDU: 80 13 01 00 [21:31:17]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [21:31:17]Write i2c OK [21:31:17]MH_I2C_Read... [21:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:17]Read from MH i2c: E2 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 0E 00 [21:31:17]MH_I2C_Read... [21:31:17]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 A3 [21:31:17]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:31:17]wFMCommunicate OK [21:31:17]SAM_PROTO_GetShiftState done [21:31:17]FM_GetShiftState done [21:31:17]opened in 1729212319 [21:31:17]opened+sec_in_day 1729298719 [21:31:17]quantity*price = 36824 [21:31:17]sum+1 = 36825 [21:31:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 368.00 Внесено: 368.00 СДАЧА: 0.00 НСП 1% : 3.26 НДС 12% : 39.10 Наличными: 368.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 199 18.10.2024 21:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82490 ФПД: 198567936904912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213117&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82490&fm=198567936904912&tin=02508201610067®Number=0000000000091680&sum=36800 [21:31:18]StoreToDocumentArchive [21:31:18]shift 526 fd 82490 [21:31:18]save to /storage/0526/doc_00082490 [21:31:18]save last doc name /storage/0526/doc_00082490 to /storage/kkm_last_doc_name [21:31:18]save OK [21:31:18]Clear old archive folders... [21:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:31:18]tlvbuf is 01E098E0 [21:31:18]SAM_PROTO_ClearQueue [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 09 00 00 [21:31:18]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]SAM_PROTO_ClearQueue done [21:31:18]KKMCreateOFDPacket [21:31:18]OFDProtocolAddRootSTLVToBuf [21:31:18]FM_MakeSignedData [21:31:18]FM_MakeSignedData [21:31:18]SAM_PROTO_SignData [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 01 02 [21:31:18]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]wFMCommunicate request_size=255 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D8 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0F 00 00 00 00 07 04 06 00 C0 8F 00 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 A5 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 42 01 [21:31:18]Write to MH i2c: E2 02 01 60 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D8 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0F 00 00 00 00 07 04 06 00 C0 8F 00 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 A5 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 42 01 00 00 F0 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]wFMCommunicate request_size=16 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B4 98 B3 57 CE D0 [21:31:18]Write to MH i2c: E2 13 00 61 03 80 0D 02 02 0B 00 00 35 04 06 00 B4 98 B3 57 CE D0 00 00 27 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [21:31:18]RAPDU: 90 00 [21:31:18]wFMCommunicate OK [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 0D 03 02 [21:31:18]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 0B 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 0B 00 62 03 00 8E 3D 66 92 73 A9 BE 4D 90 00 CB [21:31:18]RAPDU: 8E 3D 66 92 73 A9 BE 4D 90 00 [21:31:18]wFMCommunicate OK [21:31:18]SAM_PROTO_SignData done [21:31:18]FM_MakeSignedData done [21:31:18]CreateOFDProtocolMessage [21:31:18]wFMCommunicate request_size=4 [21:31:18]MH_SAM_APDU [21:31:18]CAPDU: 80 11 00 00 [21:31:18]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:18]Read from MH i2c: E2 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 17 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 32 [21:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:31:18]wFMCommunicate OK [21:31:18]CreateOFDProtocolMessage done [21:31:18]OFDSenderStorePacket 82490 [21:31:18]StoreOFDPacket docnum=82490 [21:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 36 90 0D 01 3A 89 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D8 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0F 00 00 00 00 07 04 06 00 C0 8F 00 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 A5 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 42 01 00 35 04 06 00 B4 98 B3 57 CE D0 8E 3D 66 92 73 A9 BE 4D [21:31:18]CheckFolder [21:31:18]dirname=/storage/ofd_packets [21:31:18]CheckFolder done [21:31:18]ProducePacketName [21:31:18]name=ofd_packets/00082490 [21:31:18]NVStorageSaveData ofd_packets/00082490 [21:31:18]File name is /storage/ofd_packets/00082490 [21:31:18]Write 307 bytes [21:31:18]NVStorageSaveData done [21:31:18]OFDSenderStorePacket done [21:31:18]KKMCreateOFDPacket done [21:31:18]NVStorageSaveData kkm_last_timestamp [21:31:18]File name is /storage/kkm_last_timestamp [21:31:18]Write 4 bytes [21:31:18]NVStorageSaveData done [21:31:18]ExternCall_PrintAddStr [21:31:18]wPrintStart [21:31:18]Write to MH i2c: 01 00 00 64 03 67 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [21:31:18]RasterBufferAndPrint [21:31:18]line Счет N : (1)918983 [21:31:18]line ИНН: 02508201610067 [21:31:18]line Контрольно-Кассовый Чек [21:31:18]line ПРОДАЖА [21:31:18]line ТРК (МРК, ГНК) : 21 [21:31:18]line Товар: 2710194800 [21:31:18]line D-Energy ДТ-К-2 [21:31:18]line 4.770 * 77.20 [21:31:18]line = 368.24 [21:31:18]line НДС 12% НСП 1% [21:31:18]line > о реализуемом товаре [21:31:18]line ОКРУГЛЕНИЕ: -0.24 [21:31:18]line ИТОГО: 368.00 [21:31:18]line Внесено: 368.00 [21:31:18]line СДАЧА: 0.00 [21:31:18]line НСП 1% : 3.26 [21:31:18]line НДС 12% : 39.10 [21:31:18]line Наличными: 368.00 [21:31:18]line Безнал.: 0.00 [21:31:18]line Место: АЗС № 114 "Партнер Нефть" [21:31:18]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:31:18]line СНО: Общий режим [21:31:18]line Чек 199 18.10.2024 21:31 [21:31:18]line Смена: 526 ФФД: 1.0 [21:31:18]line ЗНМ: 0300000086 [21:31:18]line РНМ: 0000000000091680 [21:31:18]line Версия ККМ: 001 [21:31:18]line ФМ: 0000000000871843 [21:31:18]line ФД: 82490 [21:31:18]line ФПД: 198567936904912 [21:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213117&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82490&fm=198567936904912&tin=02508201610067®Number=0000000000091680&sum=36800 [21:31:19]OFD Sender: Processing packet 82490 [packets to send 254, broken 253] [21:31:19]ProducePacketName [21:31:19]name=ofd_packets/00082490 [21:31:19]OFD Sender: To server: pG, [21:31:19]CommunicateWithHost lk.salyk.kg:30040 [21:31:19]ConnectInit lk.salyk.kg [21:31:19]written 0, free lines is 4095 [21:31:19]Connected sock=10 [21:31:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 36 90 0D 01 3A 89 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D8 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0F 00 00 00 00 07 04 06 00 C0 8F 00 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 A5 D3 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 42 01 00 35 04 06 00 B4 98 B3 57 CE D0 8E 3D 66 92 73 A9 BE 4D [21:31:19]Write to MH i2c: 01 00 00 8F 03 92 [21:31:19]Write i2c OK [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: 01 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: 01 07 00 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 01 0D A7 [21:31:19]RasterBufferAndPrint [21:31:19]line [21:31:19]line [21:31:19]line [21:31:19]line [21:31:19]line [21:31:19]written 0, free lines is 3335 [21:31:19]MH_Cut [21:31:19]Write to MH i2c: D1 01 00 96 03 01 6B [21:31:19]Write i2c OK [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: D1 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: D1 01 00 [21:31:19]MH_I2C_Read... [21:31:19]Read from MH i2c: D1 01 00 96 03 00 6A [21:31:19]Write to MH i2c: 01 00 00 97 03 9A [21:31:19]Write i2c OK [21:31:19]MH_I2C_Read... [21:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 7D 9D 47 00 23 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3A 42 01 00 F4 03 04 00 DF 78 12 67 B6 04 01 00 00 D4 76 5C 27 BB D3 F3 A1 [21:31:19]CommunicateWithHost err = 0 [21:31:19]CheckOFDResponse [21:31:19]1017 (14) - 77093643461234 [21:31:19]1041 (16) - 0000000000871843 [21:31:19]1040 (4) - 82490 [21:31:19]1012 (4) - 18.10.2024 15:03 [21:31:19]1206 (1) - 0 [21:31:19]OFD Sender: Remove packet 82490 [21:31:19]ProducePacketName [21:31:19]name=ofd_packets/00082490 [21:31:19]NVStorageDeleteData [21:31:20]*** Cut start [21:31:20]*** Partial cut [21:31:20]*** CUTSNS_PIN = 1 [21:31:20]*** CUTSNS_PIN = 0 [21:31:20]OFD Sender: No OFD packet to send [21:31:20]*** Brake cut motor [21:31:20]Read from MH i2c: 01 [21:31:20]MH_I2C_Read... [21:31:20]*** Stop cut motor [21:31:20]*** Cut end [21:31:20]Read from MH i2c: 01 07 00 [21:31:20]MH_I2C_Read... [21:31:20]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [21:31:20]process_action close_receipt done [21:31:20]requested_data is exist [21:31:20]produce_requested_data [21:31:20]requested_item fm.sn is exist - process it [21:31:20]wFMCommunicate request_size=4 [21:31:20]MH_SAM_APDU [21:31:20]CAPDU: 80 11 00 00 [21:31:20]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [21:31:20]Write i2c OK [21:31:20]MH_I2C_Read... [21:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:21]Read from MH i2c: E2 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 17 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 67 [21:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:31:21]wFMCommunicate OK [21:31:21]requested_item fd.num is exist - process it [21:31:21]SAM_PROTO_GetFieldsCounters [21:31:21]wFMCommunicate request_size=4 [21:31:21]MH_SAM_APDU [21:31:21]CAPDU: 80 13 00 00 [21:31:21]Write to MH i2c: E2 08 00 99 03 80 13 00 00 00 00 00 00 18 [21:31:21]Write i2c OK [21:31:21]MH_I2C_Read... [21:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:21]Read from MH i2c: E2 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 62 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 62 00 99 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [21:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3A 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:21]wFMCommunicate OK [21:31:21]SAM_PROTO_GetFieldsCounters done [21:31:21]requested_item shift.num is exist - process it [21:31:21]requested_item shift.opened is exist - process it [21:31:21]req_shift_opened [21:31:21]FM_GetShiftState [21:31:21]SAM_PROTO_GetShiftState [21:31:21]wFMCommunicate request_size=4 [21:31:21]MH_SAM_APDU [21:31:21]CAPDU: 80 13 01 00 [21:31:21]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [21:31:21]Write i2c OK [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 [21:31:21]MH_I2C_Read... [21:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:21]Read from MH i2c: E2 0E 00 [21:31:21]MH_I2C_Read... [21:31:21]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EC [21:31:21]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:31:21]wFMCommunicate OK [21:31:21]SAM_PROTO_GetShiftState done [21:31:21]FM_GetShiftState done [21:31:21]req_shift_opened done [21:31:21]requested_item shift.open_date is exist - process it [21:31:21]req_shift_open_date [21:31:21]req_shift_open_date done [21:31:21]produce_requested_data done [21:31:21]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82490,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:31:21]process_action_free close_receipt [21:31:21]json_value_free [21:31:21]json_value_free done [21:31:21]process_json_proto returns [21:31:21]Send response to host [21:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82490,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:31:21]free response buf [21:31:21]execute_script done [21:31:21]execute_script returns [21:31:21]free content buf [21:31:21]Sock 8.Close socket [21:31:21]Sock 8.Thread stoped [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:43]recv_with_timeout no data received [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37: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:43]accept exits with 9 [21:38:43]New connection [21:38:43]New thread 3067297124 created [21:38:43]Thread 3067153764 joined [21:38:43]Waiting for new connection... [21:38:43] Sock 9.Parse request [21:38:43]Sock 9.Check first char [21:38:43]Sock 9.First char is OK [21:38:43]request: POST /json_proto HTTP/1.0 [21:38:43]Method: POST [21:38:43]URL: /json_proto [21:38:43]Method is POST - this is cgi request [21:38:43]url: /json_proto [21:38:43]query_string will be loaded in cgi processing [21:38:43]execute_cgi json_proto POST (null) [21:38:43]execute_cgi path=json_proto method=POST [21:38:43]POST find Content-Length [21:38:43]Host: 172.17.44.67:8080 [21:38:43]Content-Length: 806 [21:38:43]Content-Type: application/json [21:38:43] [21:38:43]POST finish read [21:38:43]Found Content-Length = 806 [21:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202670", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:43]execute_script... [21:38: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)918984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2202670", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:43]POST & json_proto [21:38:43]process_json_proto [21:38:43]json parsed OK: [21:38:43]protocol is kg_v1.0 [21:38:43]action value=close_receipt [21:38:43]process_action close_receipt [21:38:43]cmd_close_receipt [21:38:43]MH_GetDate [21:38:43]Write to MH i2c: F0 00 00 9B 03 8D [21:38:43]Write i2c OK [21:38:43]MH_I2C_Read... [21:38:43]Read from MH i2c: F0 [21:38:43]MH_I2C_Read... [21:38:43]Read from MH i2c: F0 09 00 [21:38:43]MH_I2C_Read... [21:38:43]Read from MH i2c: F0 09 00 9B 03 00 64 D5 12 67 F1 C7 6B 64 CF [21:38:43]GetLastDocTimeStamp 1729287077 [21:38:43]current date 1729287524 [21:38:43]FM_GetShiftState [21:38:43]SAM_PROTO_GetShiftState [21:38:43]wFMCommunicate request_size=4 [21:38:43]MH_SAM_APDU [21:38:43]CAPDU: 80 13 01 00 [21:38:43]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [21:38:43]Write i2c OK [21:38:43]MH_I2C_Read... [21:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:43]Read from MH i2c: E2 [21:38:43]MH_I2C_Read... [21:38:43]Read from MH i2c: E2 0E 00 [21:38:43]MH_I2C_Read... [21:38:43]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 EE [21:38:43]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:38:43]wFMCommunicate OK [21:38:43]SAM_PROTO_GetShiftState done [21:38:43]FM_GetShiftState done [21:38:43]opened in 1729212319 [21:38:43]opened+sec_in_day 1729298719 [21:38:43]quantity*price = 0 [21:38:43]sum+1 = 1 [21:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 200 18.10.2024 21:38 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: Топливные Талоны 2202670 ФМ: 0000000000871843 ФД: 82491 ФПД: 179719427417851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213844&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82491&fm=179719427417851&tin=02508201610067®Number=0000000000091680&sum=0 [21:38:44]StoreToDocumentArchive [21:38:44]shift 526 fd 82491 [21:38:44]save to /storage/0526/doc_00082491 [21:38:44]save last doc name /storage/0526/doc_00082491 to /storage/kkm_last_doc_name [21:38:44]save OK [21:38:44]Clear old archive folders... [21:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:38:44]tlvbuf is 01E07920 [21:38:44]SAM_PROTO_ClearQueue [21:38:44]wFMCommunicate request_size=4 [21:38:44]MH_SAM_APDU [21:38:44]CAPDU: 80 09 00 00 [21:38:44]Write to MH i2c: E2 08 00 A9 03 80 09 00 00 00 00 00 00 1E [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:44]Read from MH i2c: E2 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [21:38:44]RAPDU: 90 00 [21:38:44]wFMCommunicate OK [21:38:44]SAM_PROTO_ClearQueue done [21:38:44]KKMCreateOFDPacket [21:38:44]OFDProtocolAddRootSTLVToBuf [21:38:44]FM_MakeSignedData [21:38:44]FM_MakeSignedData [21:38:44]SAM_PROTO_SignData [21:38:44]wFMCommunicate request_size=4 [21:38:44]MH_SAM_APDU [21:38:44]CAPDU: 80 0D 01 02 [21:38:44]Write to MH i2c: E2 08 00 AA 03 80 0D 01 02 00 00 00 00 26 [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:44]Read from MH i2c: E2 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [21:38:44]RAPDU: 90 00 [21:38:44]wFMCommunicate OK [21:38:44]wFMCommunicate request_size=255 [21:38:44]MH_SAM_APDU [21:38:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 64 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 42 01 [21:38:44]Write to MH i2c: E2 02 01 AB 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 64 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 42 01 00 00 76 [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:44]Read from MH i2c: E2 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [21:38:44]RAPDU: 90 00 [21:38:44]wFMCommunicate OK [21:38:44]wFMCommunicate request_size=16 [21:38:44]MH_SAM_APDU [21:38:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A3 74 30 A1 66 FB [21:38:44]Write to MH i2c: E2 13 00 AC 03 80 0D 02 02 0B 00 00 35 04 06 00 A3 74 30 A1 66 FB 00 00 C7 [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:44]Read from MH i2c: E2 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [21:38:44]RAPDU: 90 00 [21:38:44]wFMCommunicate OK [21:38:44]wFMCommunicate request_size=4 [21:38:44]MH_SAM_APDU [21:38:44]CAPDU: 80 0D 03 02 [21:38:44]Write to MH i2c: E2 08 00 AD 03 80 0D 03 02 00 00 00 00 2B [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:44]Read from MH i2c: E2 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 0B 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 0B 00 AD 03 00 3C 0B E4 12 33 DE 90 C8 90 00 D2 [21:38:44]RAPDU: 3C 0B E4 12 33 DE 90 C8 90 00 [21:38:44]wFMCommunicate OK [21:38:44]SAM_PROTO_SignData done [21:38:44]FM_MakeSignedData done [21:38:44]CreateOFDProtocolMessage [21:38:44]wFMCommunicate request_size=4 [21:38:44]MH_SAM_APDU [21:38:44]CAPDU: 80 11 00 00 [21:38:44]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [21:38:44]Write i2c OK [21:38:44]MH_I2C_Read... [21:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:44]Read from MH i2c: E2 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 17 00 [21:38:44]MH_I2C_Read... [21:38:44]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 7D [21:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:38:44]wFMCommunicate OK [21:38:44]CreateOFDProtocolMessage done [21:38:44]OFDSenderStorePacket 82491 [21:38:44]StoreOFDPacket docnum=82491 [21:38:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 AD 54 0D 01 F5 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 64 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 42 01 00 35 04 06 00 A3 74 30 A1 66 FB 3C 0B E4 12 33 DE 90 C8 [21:38:44]CheckFolder [21:38:44]dirname=/storage/ofd_packets [21:38:44]CheckFolder done [21:38:44]ProducePacketName [21:38:44]name=ofd_packets/00082491 [21:38:44]NVStorageSaveData ofd_packets/00082491 [21:38:44]File name is /storage/ofd_packets/00082491 [21:38:44]Write 307 bytes [21:38:44]NVStorageSaveData done [21:38:44]OFDSenderStorePacket done [21:38:44]KKMCreateOFDPacket done [21:38:44]NVStorageSaveData kkm_last_timestamp [21:38:44]File name is /storage/kkm_last_timestamp [21:38:44]Write 4 bytes [21:38:44]NVStorageSaveData done [21:38:44]OFD Sender: Processing packet 82491 [packets to send 254, broken 253] [21:38:44]ProducePacketName [21:38:44]name=ofd_packets/00082491 [21:38:45]OFD Sender: To server: pG, [21:38:45]CommunicateWithHost lk.salyk.kg:30040 [21:38:45]ConnectInit lk.salyk.kg [21:38:45]ExternCall_PrintAddStr [21:38:45]wPrintStart [21:38:45]Write to MH i2c: 01 00 00 AF 03 B2 [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: 01 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: 01 07 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 FF 0F C7 [21:38:45]RasterBufferAndPrint [21:38:45]line Счет N : (1)918984 [21:38:45]line ИНН: 02508201610067 [21:38:45]line Контрольно-Кассовый Чек [21:38:45]line ПРОДАЖА [21:38:45]line ТРК (МРК, ГНК) : 21 [21:38:45]line Товар: 2710194800 [21:38:45]line D-Energy ДТ-К-2 [21:38:45]line 50.000 * 0.00 [21:38:45]line = 0.00 [21:38:45]line НДС 12% НСП 1% [21:38:45]line > о реализуемом товаре [21:38:45]line ИТОГО: 0.00 [21:38:45]line НСП 1% : 0.00 [21:38:45]line НДС 12% : 0.00 [21:38:45]line Наличными: 0.00 [21:38:45]line Безнал.: 0.00 [21:38:45]line Место: АЗС № 114 "Партнер Нефть" [21:38:45]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:38:45]line СНО: Общий режим [21:38:45]line Чек 200 18.10.2024 21:38 [21:38:45]line Смена: 526 ФФД: 1.0 [21:38:45]line ЗНМ: 0300000086 [21:38:45]line РНМ: 0000000000091680 [21:38:45]line Версия ККМ: 001 [21:38:45]line Талоны: Топливные Талоны [21:38:45]line 2202670 [21:38:45]line ФМ: 0000000000871843 [21:38:45]line ФД: 82491 [21:38:45]line ФПД: 179719427417851 [21:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213844&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82491&fm=179719427417851&tin=02508201610067®Number=0000000000091680&sum=0 [21:38:45]written 0, free lines is 4095 [21:38:45]Write to MH i2c: 01 00 00 D9 03 DC [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: 01 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: 01 07 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 F2 0C E1 [21:38:45]RasterBufferAndPrint [21:38:45]line [21:38:45]line [21:38:45]line [21:38:45]line [21:38:45]line [21:38:45]written 0, free lines is 3320 [21:38:45]MH_Cut [21:38:45]Write to MH i2c: D1 01 00 E0 03 01 B5 [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: D1 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: D1 01 00 [21:38:45]MH_I2C_Read... [21:38:45]Read from MH i2c: D1 01 00 E0 03 00 B4 [21:38:45]Write to MH i2c: 01 00 00 E1 03 E4 [21:38:45]Write i2c OK [21:38:45]MH_I2C_Read... [21:38:46]*** Cut start [21:38:46]*** Partial cut [21:38:46]*** CUTSNS_PIN = 1 [21:38:46]*** CUTSNS_PIN = 0 [21:38:46]*** Brake cut motor [21:38:47]Read from MH i2c: 01 [21:38:47]MH_I2C_Read... [21:38:47]*** Stop cut motor [21:38:47]*** Cut end [21:38:47]Read from MH i2c: 01 07 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [21:38:47]process_action close_receipt done [21:38:47]requested_data is exist [21:38:47]produce_requested_data [21:38:47]requested_item fm.sn is exist - process it [21:38:47]wFMCommunicate request_size=4 [21:38:47]MH_SAM_APDU [21:38:47]CAPDU: 80 11 00 00 [21:38:47]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:47]Read from MH i2c: E2 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 17 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 B1 [21:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:38:47]wFMCommunicate OK [21:38:47]requested_item fd.num is exist - process it [21:38:47]SAM_PROTO_GetFieldsCounters [21:38:47]wFMCommunicate request_size=4 [21:38:47]MH_SAM_APDU [21:38:47]CAPDU: 80 13 00 00 [21:38:47]Write to MH i2c: E2 08 00 E3 03 80 13 00 00 00 00 00 00 62 [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:47]Read from MH i2c: E2 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 62 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 62 00 E3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [21:38:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3B 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:47]wFMCommunicate OK [21:38:47]SAM_PROTO_GetFieldsCounters done [21:38:47]requested_item shift.num is exist - process it [21:38:47]requested_item shift.opened is exist - process it [21:38:47]req_shift_opened [21:38:47]FM_GetShiftState [21:38:47]SAM_PROTO_GetShiftState [21:38:47]wFMCommunicate request_size=4 [21:38:47]MH_SAM_APDU [21:38:47]CAPDU: 80 13 01 00 [21:38:47]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [21:38:47]Write i2c OK [21:38:47]MH_I2C_Read... [21:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:47]Read from MH i2c: E2 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 0E 00 [21:38:47]MH_I2C_Read... [21:38:47]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 36 [21:38:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:38:47]wFMCommunicate OK [21:38:47]SAM_PROTO_GetShiftState done [21:38:47]FM_GetShiftState done [21:38:47]req_shift_opened done [21:38:47]requested_item shift.open_date is exist - process it [21:38:47]req_shift_open_date [21:38:47]req_shift_open_date done [21:38:47]produce_requested_data done [21:38:47]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82491,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:38:47]process_action_free close_receipt [21:38:47]json_value_free [21:38:47]json_value_free done [21:38:47]process_json_proto returns [21:38:47]Send response to host [21:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82491,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:38:47]free response buf [21:38:47]execute_script done [21:38:47]execute_script returns [21:38:47]free content buf [21:38:47]Sock 9.Close socket [21:38:47]Sock 9.Thread stoped [21:38:59]recv_with_timeout no data received [21:39:11]recv_with_timeout no data received [21:39:29]accept exits with 8 [21:39:29]New connection [21:39:29]New thread 3067153764 created [21:39:29]Thread 3067297124 joined [21:39:29]Waiting for new connection... [21:39:29] Sock 8.Parse request [21:39:29]Sock 8.Check first char [21:39:29]Sock 8.First char is OK [21:39:29]request: POST /json_proto HTTP/1.0 [21:39:29]Method: POST [21:39:29]URL: /json_proto [21:39:29]Method is POST - this is cgi request [21:39:29]url: /json_proto [21:39:29]query_string will be loaded in cgi processing [21:39:29]execute_cgi json_proto POST (null) [21:39:29]execute_cgi path=json_proto method=POST [21:39:29]POST find Content-Length [21:39:29]Host: 172.17.44.67:8080 [21:39:29]Content-Length: 684 [21:39:29]Content-Type: application/json [21:39:29] [21:39:29]POST finish read [21:39:29]Found Content-Length = 684 [21:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 8.630, "sum" : 666.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 666.00, "payments": [ { "type": 0, "sum" : 666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:29]execute_script... [21:39: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)918985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "D-Energy \u0414\u0422-\u041A-2", "price" : 77.20, "quantity" : 8.630, "sum" : 666.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 666.00, "payments": [ { "type": 0, "sum" : 666.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:29]POST & json_proto [21:39:29]process_json_proto [21:39:29]json parsed OK: [21:39:29]protocol is kg_v1.0 [21:39:29]action value=close_receipt [21:39:29]process_action close_receipt [21:39:29]cmd_close_receipt [21:39:29]MH_GetDate [21:39:29]Write to MH i2c: F0 00 00 E5 03 D7 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: F0 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: F0 09 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: F0 09 00 E5 03 00 92 D5 12 67 F1 C7 6B 64 47 [21:39:29]GetLastDocTimeStamp 1729287524 [21:39:29]current date 1729287570 [21:39:29]FM_GetShiftState [21:39:29]SAM_PROTO_GetShiftState [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 13 01 00 [21:39:29]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 0E 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 38 [21:39:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:39:29]wFMCommunicate OK [21:39:29]SAM_PROTO_GetShiftState done [21:39:29]FM_GetShiftState done [21:39:29]opened in 1729212319 [21:39:29]opened+sec_in_day 1729298719 [21:39:29]quantity*price = 66623 [21:39:29]sum+1 = 66625 [21:39:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 666.00 Внесено: 2000.00 СДАЧА: 1334.00 НСП 1% : 5.90 НДС 12% : 70.75 Наличными: 666.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 201 18.10.2024 21:39 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82492 ФПД: 19791296481873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213930&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82492&fm=19791296481873&tin=02508201610067®Number=0000000000091680&sum=66600 [21:39:30]StoreToDocumentArchive [21:39:30]shift 526 fd 82492 [21:39:30]save to /storage/0526/doc_00082492 [21:39:30]save last doc name /storage/0526/doc_00082492 to /storage/kkm_last_doc_name [21:39:30]save OK [21:39:30]Clear old archive folders... [21:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:39:30]tlvbuf is B6FAC230 [21:39:30]SAM_PROTO_ClearQueue [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 09 00 00 [21:39:30]Write to MH i2c: E2 08 00 F3 03 80 09 00 00 00 00 00 00 68 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [21:39:30]RAPDU: 90 00 [21:39:30]wFMCommunicate OK [21:39:30]SAM_PROTO_ClearQueue done [21:39:30]KKMCreateOFDPacket [21:39:30]OFDProtocolAddRootSTLVToBuf [21:39:30]FM_MakeSignedData [21:39:30]FM_MakeSignedData [21:39:30]SAM_PROTO_SignData [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 0D 01 02 [21:39:30]Write to MH i2c: E2 08 00 F4 03 80 0D 01 02 00 00 00 00 70 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [21:39:30]RAPDU: 90 00 [21:39:30]wFMCommunicate OK [21:39:30]wFMCommunicate request_size=255 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 1B 00 00 00 00 07 04 06 00 28 04 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 92 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 42 01 [21:39:30]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 1B 00 00 00 00 07 04 06 00 28 04 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 92 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 42 01 00 00 A7 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:31]Read from MH i2c: E2 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 03 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [21:39:31]RAPDU: 90 00 [21:39:31]wFMCommunicate OK [21:39:31]wFMCommunicate request_size=16 [21:39:31]MH_SAM_APDU [21:39:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 12 00 05 32 4A 51 [21:39:31]Write to MH i2c: E2 13 00 F6 03 80 0D 02 02 0B 00 00 35 04 06 00 12 00 05 32 4A 51 00 00 AC [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:31]Read from MH i2c: E2 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 03 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [21:39:31]RAPDU: 90 00 [21:39:31]wFMCommunicate OK [21:39:31]wFMCommunicate request_size=4 [21:39:31]MH_SAM_APDU [21:39:31]CAPDU: 80 0D 03 02 [21:39:31]Write to MH i2c: E2 08 00 F7 03 80 0D 03 02 00 00 00 00 75 [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:31]Read from MH i2c: E2 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 0B 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 0B 00 F7 03 00 AE 11 66 8E 15 4B 03 B4 90 00 40 [21:39:31]RAPDU: AE 11 66 8E 15 4B 03 B4 90 00 [21:39:31]wFMCommunicate OK [21:39:31]SAM_PROTO_SignData done [21:39:31]FM_MakeSignedData done [21:39:31]CreateOFDProtocolMessage [21:39:31]wFMCommunicate request_size=4 [21:39:31]MH_SAM_APDU [21:39:31]CAPDU: 80 11 00 00 [21:39:31]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:31]Read from MH i2c: E2 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 17 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C7 [21:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:39:31]wFMCommunicate OK [21:39:31]CreateOFDProtocolMessage done [21:39:31]OFDSenderStorePacket 82492 [21:39:31]StoreOFDPacket docnum=82492 [21:39:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 6B 15 0D 01 4D C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 1B 00 00 00 00 07 04 06 00 28 04 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 92 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 42 01 00 35 04 06 00 12 00 05 32 4A 51 AE 11 66 8E 15 4B 03 B4 [21:39:31]CheckFolder [21:39:31]dirname=/storage/ofd_packets [21:39:31]CheckFolder done [21:39:31]ProducePacketName [21:39:31]name=ofd_packets/00082492 [21:39:31]NVStorageSaveData ofd_packets/00082492 [21:39:31]File name is /storage/ofd_packets/00082492 [21:39:31]Write 307 bytes [21:39:31]NVStorageSaveData done [21:39:31]OFDSenderStorePacket done [21:39:31]KKMCreateOFDPacket done [21:39:31]NVStorageSaveData kkm_last_timestamp [21:39:31]File name is /storage/kkm_last_timestamp [21:39:31]Write 4 bytes [21:39:31]NVStorageSaveData done [21:39:31]ExternCall_PrintAddStr [21:39:31]wPrintStart [21:39:31]Write to MH i2c: 01 00 00 F9 03 FC [21:39:31]Write i2c OK [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: 01 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: 01 07 00 [21:39:31]MH_I2C_Read... [21:39:31]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [21:39:31]RasterBufferAndPrint [21:39:31]line Счет N : (1)918985 [21:39:31]line ИНН: 02508201610067 [21:39:31]line Контрольно-Кассовый Чек [21:39:31]line ПРОДАЖА [21:39:31]line ТРК (МРК, ГНК) : 21 [21:39:31]line Товар: 2710194800 [21:39:31]line D-Energy ДТ-К-2 [21:39:31]line 8.630 * 77.20 [21:39:31]line = 666.24 [21:39:31]line НДС 12% НСП 1% [21:39:31]line > о реализуемом товаре [21:39:31]line ОКРУГЛЕНИЕ: -0.24 [21:39:31]line ИТОГО: 666.00 [21:39:31]line Внесено: 2000.00 [21:39:31]line СДАЧА: 1334.00 [21:39:31]line НСП 1% : 5.90 [21:39:31]line НДС 12% : 70.75 [21:39:31]line Наличными: 666.00 [21:39:31]line Безнал.: 0.00 [21:39:31]line Место: АЗС № 114 "Партнер Нефть" [21:39:31]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:39:31]line СНО: Общий режим [21:39:31]line Чек 201 18.10.2024 21:39 [21:39:31]line Смена: 526 ФФД: 1.0 [21:39:31]line ЗНМ: 0300000086 [21:39:31]line РНМ: 0000000000091680 [21:39:31]line Версия ККМ: 001 [21:39:31]line ФМ: 0000000000871843 [21:39:31]line ФД: 82492 [21:39:31]line ФПД: 19791296481873 [21:39:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213930&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82492&fm=19791296481873&tin=02508201610067®Number=0000000000091680&sum=66600 [21:39:31]written 0, free lines is 4095 [21:39:32]Write to MH i2c: 01 00 00 24 04 28 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FB 0C 36 [21:39:32]RasterBufferAndPrint [21:39:32]line [21:39:32]line [21:39:32]line [21:39:32]line [21:39:32]line [21:39:32]written 0, free lines is 3329 [21:39:32]MH_Cut [21:39:32]Write to MH i2c: D1 01 00 2B 04 01 01 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: D1 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: D1 01 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: D1 01 00 2B 04 00 00 [21:39:32]Write to MH i2c: 01 00 00 2C 04 30 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** Cut start [21:39:32]*** Partial cut [21:39:32]*** CUTSNS_PIN = 1 [21:39:33]*** CUTSNS_PIN = 0 [21:39:33]*** Brake cut motor [21:39:33]Read from MH i2c: 01 [21:39:33]MH_I2C_Read... [21:39:33]*** Stop cut motor [21:39:33]*** Cut end [21:39:33]Read from MH i2c: 01 07 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [21:39:33]process_action close_receipt done [21:39:33]requested_data is exist [21:39:33]produce_requested_data [21:39:33]requested_item fm.sn is exist - process it [21:39:33]wFMCommunicate request_size=4 [21:39:33]MH_SAM_APDU [21:39:33]CAPDU: 80 11 00 00 [21:39:33]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 17 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FD [21:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:39:33]wFMCommunicate OK [21:39:33]requested_item fd.num is exist - process it [21:39:33]SAM_PROTO_GetFieldsCounters [21:39:33]wFMCommunicate request_size=4 [21:39:33]MH_SAM_APDU [21:39:33]CAPDU: 80 13 00 00 [21:39:33]Write to MH i2c: E2 08 00 2E 04 80 13 00 00 00 00 00 00 AE [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 62 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 62 00 2E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [21:39:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3C 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:33]wFMCommunicate OK [21:39:33]SAM_PROTO_GetFieldsCounters done [21:39:33]requested_item shift.num is exist - process it [21:39:33]requested_item shift.opened is exist - process it [21:39:33]req_shift_opened [21:39:33]FM_GetShiftState [21:39:33]SAM_PROTO_GetShiftState [21:39:33]wFMCommunicate request_size=4 [21:39:33]MH_SAM_APDU [21:39:33]CAPDU: 80 13 01 00 [21:39:33]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 0E 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 82 [21:39:33]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:39:33]wFMCommunicate OK [21:39:33]SAM_PROTO_GetShiftState done [21:39:33]FM_GetShiftState done [21:39:33]req_shift_opened done [21:39:33]requested_item shift.open_date is exist - process it [21:39:33]req_shift_open_date [21:39:33]req_shift_open_date done [21:39:33]produce_requested_data done [21:39:33]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82492,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:39:33]process_action_free close_receipt [21:39:33]json_value_free [21:39:33]json_value_free done [21:39:33]process_json_proto returns [21:39:33]Send response to host [21:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82492,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:39:33]free response buf [21:39:33]execute_script done [21:39:33]execute_script returns [21:39:33]free content buf [21:39:33]Sock 8.Close socket [21:39:33]Sock 8.Thread stoped [21:39:53]recv_with_timeout no data received [21:40:56]ConnectInit Can't connect to host [21:40:56]CommunicateWithHost connect error [21:40:56]CommunicateWithHost err = -1 [21:40:56]OFD Sender: Server communicate error [21:40:56]OFD Sender: Processing packet 82491 [packets to send 255, broken 253] [21:40:56]ProducePacketName [21:40:56]name=ofd_packets/00082491 [21:40:56]OFD Sender: To server: pG, [21:40:56]CommunicateWithHost lk.salyk.kg:30040 [21:40:56]ConnectInit lk.salyk.kg [21:40:58]Connected sock=8 [21:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 AD 54 0D 01 F5 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 64 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 42 01 00 35 04 06 00 A3 74 30 A1 66 FB 3C 0B E4 12 33 DE 90 C8 [21:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 6F 9D 47 00 76 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3B 42 01 00 F4 03 04 00 22 7B 12 67 B6 04 01 00 00 B5 6C E4 13 7F DC 2A BA [21:40:58]CommunicateWithHost err = 0 [21:40:58]CheckOFDResponse [21:40:58]1017 (14) - 77093643461234 [21:40:58]1041 (16) - 0000000000871843 [21:40:58]1040 (4) - 82491 [21:40:58]1012 (4) - 18.10.2024 15:13 [21:40:58]1206 (1) - 0 [21:40:58]OFD Sender: Remove packet 82491 [21:40:58]ProducePacketName [21:40:58]name=ofd_packets/00082491 [21:40:58]NVStorageDeleteData [21:40:59]OFD Sender: Processing packet 82492 [packets to send 254, broken 253] [21:40:59]ProducePacketName [21:40:59]name=ofd_packets/00082492 [21:40:59]OFD Sender: To server: pG, [21:40:59]CommunicateWithHost lk.salyk.kg:30040 [21:40:59]ConnectInit lk.salyk.kg [21:41:00]Connected sock=10 [21:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 15 01 00 00 6B 15 0D 01 4D C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 40 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 1B 00 00 00 00 07 04 06 00 28 04 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 92 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 42 01 00 35 04 06 00 12 00 05 32 4A 51 AE 11 66 8E 15 4B 03 B4 [21:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 4C AA 47 00 8F DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3C 42 01 00 F4 03 04 00 24 7B 12 67 B6 04 01 00 00 B3 30 CE 63 30 59 63 F1 [21:41:01]CommunicateWithHost err = 0 [21:41:01]CheckOFDResponse [21:41:01]1017 (14) - 77093643461234 [21:41:01]1041 (16) - 0000000000871843 [21:41:01]1040 (4) - 82492 [21:41:01]1012 (4) - 18.10.2024 15:13 [21:41:01]1206 (1) - 0 [21:41:01]OFD Sender: Remove packet 82492 [21:41:01]ProducePacketName [21:41:01]name=ofd_packets/00082492 [21:41:01]NVStorageDeleteData [21:41:01]OFD Sender: No OFD packet to send [21:41:05]accept exits with 9 [21:41:05]New connection [21:41:05]New thread 3067297124 created [21:41:05]Thread 3067153764 joined [21:41:05]Waiting for new connection... [21:41:05] Sock 9.Parse request [21:41:05]Sock 9.Check first char [21:41:05]Sock 9.First char is OK [21:41:05]request: POST /json_proto HTTP/1.0 [21:41:05]Method: POST [21:41:05]URL: /json_proto [21:41:05]Method is POST - this is cgi request [21:41:05]url: /json_proto [21:41:05]query_string will be loaded in cgi processing [21:41:05]execute_cgi json_proto POST (null) [21:41:05]execute_cgi path=json_proto method=POST [21:41:05]POST find Content-Length [21:41:05]Host: 172.17.44.67:8080 [21:41:05]Content-Length: 766 [21:41:05]Content-Type: application/json [21:41:05] [21:41:05]POST finish read [21:41:05]Found Content-Length = 766 [21:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:05]execute_script... [21:41: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)918986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:05]POST & json_proto [21:41:05]process_json_proto [21:41:05]json parsed OK: [21:41:05]protocol is kg_v1.0 [21:41:05]action value=close_receipt [21:41:05]process_action close_receipt [21:41:05]cmd_close_receipt [21:41:05]MH_GetDate [21:41:05]Write to MH i2c: F0 00 00 30 04 23 [21:41:05]Write i2c OK [21:41:05]MH_I2C_Read... [21:41:05]Read from MH i2c: F0 [21:41:05]MH_I2C_Read... [21:41:05]Read from MH i2c: F0 09 00 [21:41:05]MH_I2C_Read... [21:41:05]Read from MH i2c: F0 09 00 30 04 00 F2 D5 12 67 F1 C7 6B 64 F3 [21:41:05]GetLastDocTimeStamp 1729287570 [21:41:05]current date 1729287666 [21:41:05]FM_GetShiftState [21:41:05]SAM_PROTO_GetShiftState [21:41:05]wFMCommunicate request_size=4 [21:41:05]MH_SAM_APDU [21:41:05]CAPDU: 80 13 01 00 [21:41:05]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [21:41:05]Write i2c OK [21:41:05]MH_I2C_Read... [21:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:05]Read from MH i2c: E2 [21:41:05]MH_I2C_Read... [21:41:05]Read from MH i2c: E2 0E 00 [21:41:05]MH_I2C_Read... [21:41:05]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 84 [21:41:05]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:41:05]wFMCommunicate OK [21:41:05]SAM_PROTO_GetShiftState done [21:41:05]FM_GetShiftState done [21:41:05]opened in 1729212319 [21:41:05]opened+sec_in_day 1729298719 [21:41:05]quantity*price = 50041 [21:41:05]sum+1 = 50042 [21:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 202 18.10.2024 21:41 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82493 ФПД: 273635577911268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T214106&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82493&fm=273635577911268&tin=02508201610067®Number=0000000000091680&sum=50041 [21:41:07]StoreToDocumentArchive [21:41:07]shift 526 fd 82493 [21:41:07]save to /storage/0526/doc_00082493 [21:41:07]save last doc name /storage/0526/doc_00082493 to /storage/kkm_last_doc_name [21:41:07]save OK [21:41:07]Clear old archive folders... [21:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:07]tlvbuf is 01E8F3C0 [21:41:07]SAM_PROTO_ClearQueue [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 09 00 00 [21:41:07]Write to MH i2c: E2 08 00 3E 04 80 09 00 00 00 00 00 00 B4 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]SAM_PROTO_ClearQueue done [21:41:07]KKMCreateOFDPacket [21:41:07]OFDProtocolAddRootSTLVToBuf [21:41:07]FM_MakeSignedData [21:41:07]FM_MakeSignedData [21:41:07]SAM_PROTO_SignData [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 0D 01 02 [21:41:07]Write to MH i2c: E2 08 00 3F 04 80 0D 01 02 00 00 00 00 BC [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]wFMCommunicate request_size=255 [21:41:07]MH_SAM_APDU [21:41: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F2 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 42 01 00 35 04 06 00 F8 [21:41:07]Write to MH i2c: E2 02 01 40 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F2 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 42 01 00 35 04 06 00 F8 00 00 2C [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]wFMCommunicate request_size=10 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 0D 02 02 05 DE BF 6B 57 E4 [21:41:07]Write to MH i2c: E2 0D 00 41 04 80 0D 02 02 05 00 DE BF 6B 57 E4 00 00 0C [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [21:41:07]RAPDU: 90 00 [21:41:07]wFMCommunicate OK [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 0D 03 02 [21:41:07]Write to MH i2c: E2 08 00 42 04 80 0D 03 02 00 00 00 00 C1 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 0B 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 0B 00 42 04 00 72 66 21 DE E5 F0 57 F9 90 00 BE [21:41:07]RAPDU: 72 66 21 DE E5 F0 57 F9 90 00 [21:41:07]wFMCommunicate OK [21:41:07]SAM_PROTO_SignData done [21:41:07]FM_MakeSignedData done [21:41:07]CreateOFDProtocolMessage [21:41:07]wFMCommunicate request_size=4 [21:41:07]MH_SAM_APDU [21:41:07]CAPDU: 80 11 00 00 [21:41:07]Write to MH i2c: E2 08 00 43 04 80 11 00 00 00 00 00 00 C1 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:07]Read from MH i2c: E2 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 17 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: E2 17 00 43 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 13 [21:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:41:07]wFMCommunicate OK [21:41:07]CreateOFDProtocolMessage done [21:41:07]OFDSenderStorePacket 82493 [21:41:07]StoreOFDPacket docnum=82493 [21:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 66 EA 07 01 5D A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F2 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 42 01 00 35 04 06 00 F8 DE BF 6B 57 E4 72 66 21 DE E5 F0 57 F9 [21:41:07]CheckFolder [21:41:07]dirname=/storage/ofd_packets [21:41:07]CheckFolder done [21:41:07]ProducePacketName [21:41:07]name=ofd_packets/00082493 [21:41:07]NVStorageSaveData ofd_packets/00082493 [21:41:07]File name is /storage/ofd_packets/00082493 [21:41:07]Write 301 bytes [21:41:07]NVStorageSaveData done [21:41:07]OFDSenderStorePacket done [21:41:07]KKMCreateOFDPacket done [21:41:07]NVStorageSaveData kkm_last_timestamp [21:41:07]File name is /storage/kkm_last_timestamp [21:41:07]Write 4 bytes [21:41:07]NVStorageSaveData done [21:41:07]OFD Sender: Processing packet 82493 [packets to send 254, broken 253] [21:41:07]ProducePacketName [21:41:07]name=ofd_packets/00082493 [21:41:07]OFD Sender: To server: pG, [21:41:07]CommunicateWithHost lk.salyk.kg:30040 [21:41:07]ConnectInit lk.salyk.kg [21:41:07]ExternCall_PrintAddStr [21:41:07]wPrintStart [21:41:07]Write to MH i2c: 01 00 00 44 04 48 [21:41:07]Write i2c OK [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: 01 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: 01 07 00 [21:41:07]MH_I2C_Read... [21:41:07]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 FF 0F 5D [21:41:07]RasterBufferAndPrint [21:41:07]line Счет N : (1)918986 [21:41:07]line ИНН: 02508201610067 [21:41:07]line Контрольно-Кассовый Чек [21:41:07]line ПРОДАЖА [21:41:07]line ТРК (МРК, ГНК) : 11 [21:41:07]line Товар: 2710124130 [21:41:07]line Аи-92-К-4 [21:41:07]line 7.480 * 66.90 [21:41:07]line = 500.41 [21:41:07]line НДС 12% НСП 1% [21:41:07]line > о реализуемом товаре [21:41:07]line ИТОГО: 500.41 [21:41:07]line НСП 1% : 4.43 [21:41:07]line НДС 12% : 53.14 [21:41:07]line Наличными: 0.00 [21:41:07]line Безнал.: 500.41 [21:41:07]line Место: АЗС № 114 "Партнер Нефть" [21:41:07]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [21:41:07]line СНО: Общий режим [21:41:07]line Чек 202 18.10.2024 21:41 [21:41:07]line Смена: 526 ФФД: 1.0 [21:41:07]line ЗНМ: 0300000086 [21:41:07]line РНМ: 0000000000091680 [21:41:07]line Версия ККМ: 001 [21:41:07]line Платежная система: Mbank [21:41:07]line ФМ: 0000000000871843 [21:41:07]line ФД: 82493 [21:41:07]line ФПД: 273635577911268 [21:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T214106&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82493&fm=273635577911268&tin=02508201610067®Number=0000000000091680&sum=50041 [21:41:07]written 0, free lines is 4095 [21:41:08]Write to MH i2c: 01 00 00 6D 04 71 [21:41:08]Write i2c OK [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: 01 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: 01 07 00 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 FD 0C 81 [21:41:08]RasterBufferAndPrint [21:41:08]line [21:41:08]line [21:41:08]line [21:41:08]line [21:41:08]line [21:41:08]written 0, free lines is 3331 [21:41:08]MH_Cut [21:41:08]Write to MH i2c: D1 01 00 74 04 01 4A [21:41:08]Write i2c OK [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: D1 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: D1 01 00 [21:41:08]MH_I2C_Read... [21:41:08]Read from MH i2c: D1 01 00 74 04 00 49 [21:41:08]Write to MH i2c: 01 00 00 75 04 79 [21:41:08]Write i2c OK [21:41:08]MH_I2C_Read... [21:41:08]Connected sock=12 [21:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 66 EA 07 01 5D A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 F2 D5 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 42 01 00 35 04 06 00 F8 DE BF 6B 57 E4 72 66 21 DE E5 F0 57 F9 [21:41:09]*** Cut start [21:41:09]*** Partial cut [21:41:09]*** CUTSNS_PIN = 1 [21:41:09]*** CUTSNS_PIN = 0 [21:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 EC 11 47 00 C0 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3D 42 01 00 F4 03 04 00 2C 7B 12 67 B6 04 01 00 00 F0 8E 23 BF D6 E2 0F 8C [21:41:09]CommunicateWithHost err = 0 [21:41:09]CheckOFDResponse [21:41:09]1017 (14) - 77093643461234 [21:41:09]1041 (16) - 0000000000871843 [21:41:09]1040 (4) - 82493 [21:41:09]1012 (4) - 18.10.2024 15:13 [21:41:09]1206 (1) - 0 [21:41:09]OFD Sender: Remove packet 82493 [21:41:09]ProducePacketName [21:41:09]name=ofd_packets/00082493 [21:41:09]NVStorageDeleteData [21:41:09]*** Brake cut motor [21:41:09]Read from MH i2c: 01 [21:41:09]MH_I2C_Read... [21:41:09]*** Stop cut motor [21:41:09]*** Cut end [21:41:09]Read from MH i2c: 01 07 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 FF 0F 8E [21:41:09]process_action close_receipt done [21:41:09]requested_data is exist [21:41:09]produce_requested_data [21:41:09]requested_item fm.sn is exist - process it [21:41:09]wFMCommunicate request_size=4 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 11 00 00 [21:41:09]Write to MH i2c: E2 08 00 76 04 80 11 00 00 00 00 00 00 F4 [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 17 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 17 00 76 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 46 [21:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [21:41:09]wFMCommunicate OK [21:41:09]requested_item fd.num is exist - process it [21:41:09]SAM_PROTO_GetFieldsCounters [21:41:09]wFMCommunicate request_size=4 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 13 00 00 [21:41:09]Write to MH i2c: E2 08 00 77 04 80 13 00 00 00 00 00 00 F7 [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:09]OFD Sender: No OFD packet to send [21:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:09]Read from MH i2c: E2 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 62 00 [21:41:09]MH_I2C_Read... [21:41:09]Read from MH i2c: E2 62 00 77 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3D 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [21:41:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3D 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:09]wFMCommunicate OK [21:41:09]SAM_PROTO_GetFieldsCounters done [21:41:09]requested_item shift.num is exist - process it [21:41:09]requested_item shift.opened is exist - process it [21:41:09]req_shift_opened [21:41:09]FM_GetShiftState [21:41:09]SAM_PROTO_GetShiftState [21:41:09]wFMCommunicate request_size=4 [21:41:09]MH_SAM_APDU [21:41:09]CAPDU: 80 13 01 00 [21:41:09]Write to MH i2c: E2 08 00 78 04 80 13 01 00 00 00 00 00 F9 [21:41:09]Write i2c OK [21:41:09]MH_I2C_Read... [21:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:10]Read from MH i2c: E2 [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: E2 0E 00 [21:41:10]MH_I2C_Read... [21:41:10]Read from MH i2c: E2 0E 00 78 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CB [21:41:10]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [21:41:10]wFMCommunicate OK [21:41:10]SAM_PROTO_GetShiftState done [21:41:10]FM_GetShiftState done [21:41:10]req_shift_opened done [21:41:10]requested_item shift.open_date is exist - process it [21:41:10]req_shift_open_date [21:41:10]req_shift_open_date done [21:41:10]produce_requested_data done [21:41:10]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82493,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [21:41:10]process_action_free close_receipt [21:41:10]json_value_free [21:41:10]json_value_free done [21:41:10]process_json_proto returns [21:41:10]Send response to host [21:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82493,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [21:41:10]free response buf [21:41:10]execute_script done [21:41:10]execute_script returns [21:41:10]free content buf [21:41:10]Sock 9.Close socket [21:41:10]Sock 9.Thread stoped [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:27]recv_with_timeout no data received [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06: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:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:40]recv_with_timeout no data received [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]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:05]recv_with_timeout no data received [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:40]accept exits with 10 [22:21:40]New connection [22:21:40]New thread 3067153764 created [22:21:40]Thread 3067297124 joined [22:21:40]Waiting for new connection... [22:21:40] Sock 10.Parse request [22:21:40]Sock 10.Check first char [22:21:40]Sock 10.First char is OK [22:21:40]request: POST /json_proto HTTP/1.0 [22:21:40]Method: POST [22:21:40]URL: /json_proto [22:21:40]Method is POST - this is cgi request [22:21:40]url: /json_proto [22:21:40]query_string will be loaded in cgi processing [22:21:40]execute_cgi json_proto POST (null) [22:21:40]execute_cgi path=json_proto method=POST [22:21:40]POST find Content-Length [22:21:40]Host: 172.17.44.67:8080 [22:21:40]Content-Length: 677 [22:21:40]Content-Type: application/json [22:21:40] [22:21:40]POST finish read [22:21:40]Found Content-Length = 677 [22:21:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:40]execute_script... [22:21: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)918987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:40]POST & json_proto [22:21:40]process_json_proto [22:21:40]json parsed OK: [22:21:40]protocol is kg_v1.0 [22:21:40]action value=close_receipt [22:21:40]process_action close_receipt [22:21:40]cmd_close_receipt [22:21:40]MH_GetDate [22:21:40]Write to MH i2c: F0 00 00 79 04 6C [22:21:40]Write i2c OK [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: F0 [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: F0 09 00 [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: F0 09 00 79 04 00 75 DF 12 67 F1 C7 6B 64 C9 [22:21:40]GetLastDocTimeStamp 1729287666 [22:21:40]current date 1729290101 [22:21:40]FM_GetShiftState [22:21:40]SAM_PROTO_GetShiftState [22:21:40]wFMCommunicate request_size=4 [22:21:40]MH_SAM_APDU [22:21:40]CAPDU: 80 13 01 00 [22:21:40]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [22:21:40]Write i2c OK [22:21:40]MH_I2C_Read... [22:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:40]Read from MH i2c: E2 [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: E2 0E 00 [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CD [22:21:40]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:21:40]wFMCommunicate OK [22:21:40]SAM_PROTO_GetShiftState done [22:21:40]FM_GetShiftState done [22:21:40]opened in 1729212319 [22:21:40]opened+sec_in_day 1729298719 [22:21:40]quantity*price = 20003 [22:21:40]sum+1 = 20004 [22:21:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 203 18.10.2024 22:21 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82494 ФПД: 31777169054374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T222141&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82494&fm=31777169054374&tin=02508201610067®Number=0000000000091680&sum=20000 [22:21:41]StoreToDocumentArchive [22:21:41]shift 526 fd 82494 [22:21:41]save to /storage/0526/doc_00082494 [22:21:41]save last doc name /storage/0526/doc_00082494 to /storage/kkm_last_doc_name [22:21:41]save OK [22:21:41]Clear old archive folders... [22:21:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:41]tlvbuf is 01E90D10 [22:21:41]SAM_PROTO_ClearQueue [22:21:41]wFMCommunicate request_size=4 [22:21:41]MH_SAM_APDU [22:21:41]CAPDU: 80 09 00 00 [22:21:41]Write to MH i2c: E2 08 00 87 04 80 09 00 00 00 00 00 00 FD [22:21:41]Write i2c OK [22:21:41]MH_I2C_Read... [22:21:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:41]Read from MH i2c: E2 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [22:21:41]RAPDU: 90 00 [22:21:41]wFMCommunicate OK [22:21:41]SAM_PROTO_ClearQueue done [22:21:41]KKMCreateOFDPacket [22:21:41]OFDProtocolAddRootSTLVToBuf [22:21:41]FM_MakeSignedData [22:21:41]FM_MakeSignedData [22:21:41]SAM_PROTO_SignData [22:21:41]wFMCommunicate request_size=4 [22:21:41]MH_SAM_APDU [22:21:41]CAPDU: 80 0D 01 02 [22:21:41]Write to MH i2c: E2 08 00 88 04 80 0D 01 02 00 00 00 00 05 [22:21:41]Write i2c OK [22:21:41]MH_I2C_Read... [22:21:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:41]Read from MH i2c: E2 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [22:21:41]RAPDU: 90 00 [22:21:41]wFMCommunicate OK [22:21:41]wFMCommunicate request_size=255 [22:21:41]MH_SAM_APDU [22:21:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 75 DF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 42 01 00 35 04 06 00 1C [22:21:41]Write to MH i2c: E2 02 01 89 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 75 DF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 42 01 00 35 04 06 00 1C 00 00 98 [22:21:41]Write i2c OK [22:21:41]MH_I2C_Read... [22:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:41]Read from MH i2c: E2 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [22:21:41]RAPDU: 90 00 [22:21:41]wFMCommunicate OK [22:21:41]wFMCommunicate request_size=10 [22:21:41]MH_SAM_APDU [22:21:41]CAPDU: 80 0D 02 02 05 E6 B2 DF 9A A6 [22:21:41]Write to MH i2c: E2 0D 00 8A 04 80 0D 02 02 05 00 E6 B2 DF 9A A6 00 00 C9 [22:21:41]Write i2c OK [22:21:41]MH_I2C_Read... [22:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:41]Read from MH i2c: E2 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 [22:21:41]MH_I2C_Read... [22:21:41]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [22:21:41]RAPDU: 90 00 [22:21:41]wFMCommunicate OK [22:21:41]wFMCommunicate request_size=4 [22:21:41]MH_SAM_APDU [22:21:41]CAPDU: 80 0D 03 02 [22:21:41]Write to MH i2c: E2 08 00 8B 04 80 0D 03 02 00 00 00 00 0A [22:21:41]Write i2c OK [22:21:41]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 0B 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 0B 00 8B 04 00 81 44 A6 15 1B 74 EE 76 90 00 7E [22:21:42]RAPDU: 81 44 A6 15 1B 74 EE 76 90 00 [22:21:42]wFMCommunicate OK [22:21:42]SAM_PROTO_SignData done [22:21:42]FM_MakeSignedData done [22:21:42]CreateOFDProtocolMessage [22:21:42]wFMCommunicate request_size=4 [22:21:42]MH_SAM_APDU [22:21:42]CAPDU: 80 11 00 00 [22:21:42]Write to MH i2c: E2 08 00 8C 04 80 11 00 00 00 00 00 00 0A [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 17 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 17 00 8C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 5C [22:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:21:42]wFMCommunicate OK [22:21:42]CreateOFDProtocolMessage done [22:21:42]OFDSenderStorePacket 82494 [22:21:42]StoreOFDPacket docnum=82494 [22:21:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C5 AE 07 01 1C 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 75 DF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 42 01 00 35 04 06 00 1C E6 B2 DF 9A A6 81 44 A6 15 1B 74 EE 76 [22:21:42]CheckFolder [22:21:42]dirname=/storage/ofd_packets [22:21:42]CheckFolder done [22:21:42]ProducePacketName [22:21:42]name=ofd_packets/00082494 [22:21:42]NVStorageSaveData ofd_packets/00082494 [22:21:42]File name is /storage/ofd_packets/00082494 [22:21:42]Write 301 bytes [22:21:42]NVStorageSaveData done [22:21:42]OFDSenderStorePacket done [22:21:42]KKMCreateOFDPacket done [22:21:42]NVStorageSaveData kkm_last_timestamp [22:21:42]File name is /storage/kkm_last_timestamp [22:21:42]Write 4 bytes [22:21:42]NVStorageSaveData done [22:21:42]ExternCall_PrintAddStr [22:21:42]wPrintStart [22:21:42]Write to MH i2c: 01 00 00 8D 04 91 [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 FF 0F A6 [22:21:42]RasterBufferAndPrint [22:21:42]line Счет N : (1)918987 [22:21:42]line ИНН: 02508201610067 [22:21:42]line Контрольно-Кассовый Чек [22:21:42]line ПРОДАЖА [22:21:42]line ТРК (МРК, ГНК) : 22 [22:21:42]line Товар: 2710124130 [22:21:42]line Аи-92-К-4 [22:21:42]line 2.990 * 66.90 [22:21:42]line = 200.03 [22:21:42]line НДС 12% НСП 1% [22:21:42]line > о реализуемом товаре [22:21:42]line ОКРУГЛЕНИЕ: -0.03 [22:21:42]line ИТОГО: 200.00 [22:21:42]line Внесено: 200.00 [22:21:42]line СДАЧА: 0.00 [22:21:42]line НСП 1% : 1.77 [22:21:42]line НДС 12% : 21.24 [22:21:42]line Наличными: 200.00 [22:21:42]line Безнал.: 0.00 [22:21:42]line Место: АЗС № 114 "Партнер Нефть" [22:21:42]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [22:21:42]line СНО: Общий режим [22:21:42]line Чек 203 18.10.2024 22:21 [22:21:42]line Смена: 526 ФФД: 1.0 [22:21:42]line ЗНМ: 0300000086 [22:21:42]line РНМ: 0000000000091680 [22:21:42]line Версия ККМ: 001 [22:21:42]line ФМ: 0000000000871843 [22:21:42]line ФД: 82494 [22:21:42]line ФПД: 31777169054374 [22:21:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T222141&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82494&fm=31777169054374&tin=02508201610067®Number=0000000000091680&sum=20000 [22:21:42]OFD Sender: Processing packet 82494 [packets to send 254, broken 253] [22:21:42]ProducePacketName [22:21:42]name=ofd_packets/00082494 [22:21:42]OFD Sender: To server: pG, [22:21:42]CommunicateWithHost lk.salyk.kg:30040 [22:21:42]ConnectInit lk.salyk.kg [22:21:42]written 0, free lines is 4095 [22:21:42]Write to MH i2c: 01 00 00 B8 04 BC [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 D7 0C A6 [22:21:42]RasterBufferAndPrint [22:21:42]line [22:21:42]line [22:21:42]line [22:21:42]line [22:21:42]line [22:21:42]written 0, free lines is 3294 [22:21:42]MH_Cut [22:21:42]Write to MH i2c: D1 01 00 BF 04 01 95 [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: D1 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: D1 01 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: D1 01 00 BF 04 00 94 [22:21:42]Write to MH i2c: 01 00 00 C0 04 C4 [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:43]Connected sock=9 [22:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C5 AE 07 01 1C 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 75 DF 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 42 01 00 35 04 06 00 1C E6 B2 DF 9A A6 81 44 A6 15 1B 74 EE 76 [22:21:43]*** Cut start [22:21:43]*** Partial cut [22:21:43]*** CUTSNS_PIN = 1 [22:21:43]*** CUTSNS_PIN = 0 [22:21:43]*** Brake cut motor [22:21:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 54 50 47 00 0F 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3E 42 01 00 F4 03 04 00 AF 84 12 67 B6 04 01 00 00 C5 C9 F7 58 94 05 30 3E [22:21:44]CommunicateWithHost err = 0 [22:21:44]CheckOFDResponse [22:21:44]1017 (14) - 77093643461234 [22:21:44]1041 (16) - 0000000000871843 [22:21:44]1040 (4) - 82494 [22:21:44]1012 (4) - 18.10.2024 15:54 [22:21:44]1206 (1) - 0 [22:21:44]OFD Sender: Remove packet 82494 [22:21:44]ProducePacketName [22:21:44]name=ofd_packets/00082494 [22:21:44]NVStorageDeleteData [22:21:44]Read from MH i2c: 01 [22:21:44]MH_I2C_Read... [22:21:44]*** Stop cut motor [22:21:44]*** Cut end [22:21:44]Read from MH i2c: 01 07 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 FF 0F D9 [22:21:44]process_action close_receipt done [22:21:44]requested_data is exist [22:21:44]produce_requested_data [22:21:44]requested_item fm.sn is exist - process it [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 11 00 00 [22:21:44]Write to MH i2c: E2 08 00 C1 04 80 11 00 00 00 00 00 00 3F [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:44]Read from MH i2c: E2 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 17 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 17 00 C1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 91 [22:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:21:44]wFMCommunicate OK [22:21:44]requested_item fd.num is exist - process it [22:21:44]SAM_PROTO_GetFieldsCounters [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 13 00 00 [22:21:44]Write to MH i2c: E2 08 00 C2 04 80 13 00 00 00 00 00 00 42 [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:44]Read from MH i2c: E2 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 62 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 62 00 C2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [22:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3E 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:44]wFMCommunicate OK [22:21:44]SAM_PROTO_GetFieldsCounters done [22:21:44]requested_item shift.num is exist - process it [22:21:44]requested_item shift.opened is exist - process it [22:21:44]req_shift_opened [22:21:44]FM_GetShiftState [22:21:44]SAM_PROTO_GetShiftState [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 13 01 00 [22:21:44]Write to MH i2c: E2 08 00 C3 04 80 13 01 00 00 00 00 00 44 [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:44]Read from MH i2c: E2 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 0E 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 0E 00 C3 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 16 [22:21:44]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:21:44]wFMCommunicate OK [22:21:44]SAM_PROTO_GetShiftState done [22:21:44]FM_GetShiftState done [22:21:44]req_shift_opened done [22:21:44]requested_item shift.open_date is exist - process it [22:21:44]req_shift_open_date [22:21:44]req_shift_open_date done [22:21:44]produce_requested_data done [22:21:44]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82494,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [22:21:44]process_action_free close_receipt [22:21:44]json_value_free [22:21:44]json_value_free done [22:21:44]process_json_proto returns [22:21:44]Send response to host [22:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82494,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [22:21:44]free response buf [22:21:44]execute_script done [22:21:44]execute_script returns [22:21:44]free content buf [22:21:44]Sock 10.Close socket [22:21:44]Sock 10.Thread stoped [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:06]recv_with_timeout no data received [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:30]accept exits with 8 [22:24:30]New connection [22:24:30]New thread 3067297124 created [22:24:30]Thread 3067153764 joined [22:24:30]Waiting for new connection... [22:24:30] Sock 8.Parse request [22:24:30]Sock 8.Check first char [22:24:30]Sock 8.First char is OK [22:24:30]request: POST /json_proto HTTP/1.0 [22:24:30]Method: POST [22:24:30]URL: /json_proto [22:24:30]Method is POST - this is cgi request [22:24:30]url: /json_proto [22:24:30]query_string will be loaded in cgi processing [22:24:30]execute_cgi json_proto POST (null) [22:24:30]execute_cgi path=json_proto method=POST [22:24:30]POST find Content-Length [22:24:30]Host: 172.17.44.67:8080 [22:24:30]Content-Length: 769 [22:24:30]Content-Type: application/json [22:24:30] [22:24:30]POST finish read [22:24:30]Found Content-Length = 769 [22:24:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918988", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:30]execute_script... [22:24: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)918988", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:30]POST & json_proto [22:24:30]process_json_proto [22:24:30]json parsed OK: [22:24:30]protocol is kg_v1.0 [22:24:30]action value=close_receipt [22:24:30]process_action close_receipt [22:24:30]cmd_close_receipt [22:24:30]MH_GetDate [22:24:30]Write to MH i2c: F0 00 00 C4 04 B7 [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: F0 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: F0 09 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: F0 09 00 C4 04 00 1F E0 12 67 F1 C7 6B 64 BF [22:24:30]GetLastDocTimeStamp 1729290101 [22:24:30]current date 1729290271 [22:24:30]FM_GetShiftState [22:24:30]SAM_PROTO_GetShiftState [22:24:30]wFMCommunicate request_size=4 [22:24:30]MH_SAM_APDU [22:24:30]CAPDU: 80 13 01 00 [22:24:30]Write to MH i2c: E2 08 00 C5 04 80 13 01 00 00 00 00 00 46 [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:30]Read from MH i2c: E2 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 0E 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 0E 00 C5 04 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 18 [22:24:30]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:24:30]wFMCommunicate OK [22:24:30]SAM_PROTO_GetShiftState done [22:24:30]FM_GetShiftState done [22:24:30]opened in 1729212319 [22:24:30]opened+sec_in_day 1729298719 [22:24:30]quantity*price = 100021 [22:24:30]sum+1 = 100023 [22:24:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 204 18.10.2024 22:24 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82495 ФПД: 191344464537620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T222431&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82495&fm=191344464537620&tin=02508201610067®Number=0000000000091680&sum=100022 [22:24:31]StoreToDocumentArchive [22:24:31]shift 526 fd 82495 [22:24:31]save to /storage/0526/doc_00082495 [22:24:31]save last doc name /storage/0526/doc_00082495 to /storage/kkm_last_doc_name [22:24:31]save OK [22:24:31]Clear old archive folders... [22:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:31]tlvbuf is 01E0EB50 [22:24:31]SAM_PROTO_ClearQueue [22:24:31]wFMCommunicate request_size=4 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 09 00 00 [22:24:31]Write to MH i2c: E2 08 00 D2 04 80 09 00 00 00 00 00 00 48 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [22:24:31]RAPDU: 90 00 [22:24:31]wFMCommunicate OK [22:24:31]SAM_PROTO_ClearQueue done [22:24:31]KKMCreateOFDPacket [22:24:31]OFDProtocolAddRootSTLVToBuf [22:24:31]FM_MakeSignedData [22:24:31]FM_MakeSignedData [22:24:31]SAM_PROTO_SignData [22:24:31]wFMCommunicate request_size=4 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 0D 01 02 [22:24:31]Write to MH i2c: E2 08 00 D3 04 80 0D 01 02 00 00 00 00 50 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [22:24:31]RAPDU: 90 00 [22:24:31]wFMCommunicate OK [22:24:31]wFMCommunicate request_size=255 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 1F E0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 42 01 00 35 04 06 00 AE [22:24:31]Write to MH i2c: E2 02 01 D4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 1F E0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 42 01 00 35 04 06 00 AE 00 00 AA [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [22:24:31]RAPDU: 90 00 [22:24:31]wFMCommunicate OK [22:24:31]wFMCommunicate request_size=10 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 0D 02 02 05 06 DA D6 A8 14 [22:24:31]Write to MH i2c: E2 0D 00 D5 04 80 0D 02 02 05 00 06 DA D6 A8 14 00 00 CF [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [22:24:31]RAPDU: 90 00 [22:24:31]wFMCommunicate OK [22:24:31]wFMCommunicate request_size=4 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 0D 03 02 [22:24:31]Write to MH i2c: E2 08 00 D6 04 80 0D 03 02 00 00 00 00 55 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 0B 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 0B 00 D6 04 00 90 4C 21 45 04 B1 85 70 90 00 42 [22:24:31]RAPDU: 90 4C 21 45 04 B1 85 70 90 00 [22:24:31]wFMCommunicate OK [22:24:31]SAM_PROTO_SignData done [22:24:31]FM_MakeSignedData done [22:24:31]CreateOFDProtocolMessage [22:24:31]wFMCommunicate request_size=4 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 11 00 00 [22:24:31]Write to MH i2c: E2 08 00 D7 04 80 11 00 00 00 00 00 00 55 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 17 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 17 00 D7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 A7 [22:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:24:31]wFMCommunicate OK [22:24:31]CreateOFDProtocolMessage done [22:24:31]OFDSenderStorePacket 82495 [22:24:31]StoreOFDPacket docnum=82495 [22:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B8 D5 07 01 3D 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 1F E0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 42 01 00 35 04 06 00 AE 06 DA D6 A8 14 90 4C 21 45 04 B1 85 70 [22:24:31]CheckFolder [22:24:31]dirname=/storage/ofd_packets [22:24:31]CheckFolder done [22:24:31]ProducePacketName [22:24:31]name=ofd_packets/00082495 [22:24:31]NVStorageSaveData ofd_packets/00082495 [22:24:31]File name is /storage/ofd_packets/00082495 [22:24:31]Write 301 bytes [22:24:31]NVStorageSaveData done [22:24:31]OFDSenderStorePacket done [22:24:31]KKMCreateOFDPacket done [22:24:31]NVStorageSaveData kkm_last_timestamp [22:24:31]File name is /storage/kkm_last_timestamp [22:24:31]Write 4 bytes [22:24:31]NVStorageSaveData done [22:24:31]ExternCall_PrintAddStr [22:24:31]wPrintStart [22:24:31]Write to MH i2c: 01 00 00 D8 04 DC [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: 01 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: 01 07 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: 01 07 00 D8 04 00 00 00 00 00 FF 0F F1 [22:24:31]RasterBufferAndPrint [22:24:31]line Счет N : (1)918988 [22:24:31]line ИНН: 02508201610067 [22:24:31]line Контрольно-Кассовый Чек [22:24:31]line ПРОДАЖА [22:24:31]line ТРК (МРК, ГНК) : 12 [22:24:31]line Товар: 2710124500 [22:24:31]line Аи-95-К-5 [22:24:31]line 13.480 * 74.20 [22:24:31]line = 1000.22 [22:24:31]line НДС 12% НСП 1% [22:24:31]line > о реализуемом товаре [22:24:31]line ИТОГО: 1000.22 [22:24:31]line НСП 1% : 8.85 [22:24:31]line НДС 12% : 106.22 [22:24:31]line Наличными: 0.00 [22:24:31]line Безнал.: 1000.22 [22:24:31]line Место: АЗС № 114 "Партнер Нефть" [22:24:31]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [22:24:31]line СНО: Общий режим [22:24:31]line Чек 204 18.10.2024 22:24 [22:24:31]line Смена: 526 ФФД: 1.0 [22:24:31]line ЗНМ: 0300000086 [22:24:31]line РНМ: 0000000000091680 [22:24:31]line Версия ККМ: 001 [22:24:31]line Платежная система: Mbank [22:24:31]line ФМ: 0000000000871843 [22:24:31]line ФД: 82495 [22:24:31]line ФПД: 191344464537620 [22:24:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T222431&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82495&fm=191344464537620&tin=02508201610067®Number=0000000000091680&sum=100022 [22:24:32]OFD Sender: Processing packet 82495 [packets to send 254, broken 253] [22:24:32]ProducePacketName [22:24:32]name=ofd_packets/00082495 [22:24:32]OFD Sender: To server: pG, [22:24:32]CommunicateWithHost lk.salyk.kg:30040 [22:24:32]ConnectInit lk.salyk.kg [22:24:32]written 0, free lines is 4095 [22:24:32]Write to MH i2c: 01 00 00 01 05 06 [22:24:32]Write i2c OK [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: 01 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: 01 07 00 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 08 0D 22 [22:24:32]RasterBufferAndPrint [22:24:32]line [22:24:32]line [22:24:32]line [22:24:32]line [22:24:32]line [22:24:32]written 0, free lines is 3342 [22:24:32]MH_Cut [22:24:32]Write to MH i2c: D1 01 00 08 05 01 DF [22:24:32]Write i2c OK [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: D1 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: D1 01 00 [22:24:32]MH_I2C_Read... [22:24:32]Read from MH i2c: D1 01 00 08 05 00 DE [22:24:32]Write to MH i2c: 01 00 00 09 05 0E [22:24:32]Write i2c OK [22:24:32]MH_I2C_Read... [22:24:32]Connected sock=11 [22:24:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 B8 D5 07 01 3D 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 1F E0 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 42 01 00 35 04 06 00 AE 06 DA D6 A8 14 90 4C 21 45 04 B1 85 70 [22:24:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 DA D7 47 00 8E FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 3F 42 01 00 F4 03 04 00 58 85 12 67 B6 04 01 00 00 E5 7F 5D 6B 83 E4 D4 1E [22:24:33]CommunicateWithHost err = 0 [22:24:33]CheckOFDResponse [22:24:33]1017 (14) - 77093643461234 [22:24:33]1041 (16) - 0000000000871843 [22:24:33]1040 (4) - 82495 [22:24:33]1012 (4) - 18.10.2024 15:57 [22:24:33]1206 (1) - 0 [22:24:33]OFD Sender: Remove packet 82495 [22:24:33]ProducePacketName [22:24:33]name=ofd_packets/00082495 [22:24:33]NVStorageDeleteData [22:24:33]*** Cut start [22:24:33]*** Partial cut [22:24:33]*** CUTSNS_PIN = 1 [22:24:33]*** CUTSNS_PIN = 0 [22:24:33]OFD Sender: No OFD packet to send [22:24:33]*** Brake cut motor [22:24:33]Read from MH i2c: 01 [22:24:33]MH_I2C_Read... [22:24:33]*** Stop cut motor [22:24:33]*** Cut end [22:24:33]Read from MH i2c: 01 07 00 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 FF 0F 23 [22:24:33]process_action close_receipt done [22:24:33]requested_data is exist [22:24:33]produce_requested_data [22:24:33]requested_item fm.sn is exist - process it [22:24:33]wFMCommunicate request_size=4 [22:24:33]MH_SAM_APDU [22:24:33]CAPDU: 80 11 00 00 [22:24:33]Write to MH i2c: E2 08 00 0A 05 80 11 00 00 00 00 00 00 89 [22:24:33]Write i2c OK [22:24:33]MH_I2C_Read... [22:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:33]Read from MH i2c: E2 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: E2 17 00 [22:24:33]MH_I2C_Read... [22:24:33]Read from MH i2c: E2 17 00 0A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DB [22:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:24:33]wFMCommunicate OK [22:24:33]requested_item fd.num is exist - process it [22:24:33]SAM_PROTO_GetFieldsCounters [22:24:33]wFMCommunicate request_size=4 [22:24:33]MH_SAM_APDU [22:24:33]CAPDU: 80 13 00 00 [22:24:33]Write to MH i2c: E2 08 00 0B 05 80 13 00 00 00 00 00 00 8C [22:24:33]Write i2c OK [22:24:33]MH_I2C_Read... [22:24:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:34]Read from MH i2c: E2 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 62 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 62 00 0B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [22:24:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 3F 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:34]wFMCommunicate OK [22:24:34]SAM_PROTO_GetFieldsCounters done [22:24:34]requested_item shift.num is exist - process it [22:24:34]requested_item shift.opened is exist - process it [22:24:34]req_shift_opened [22:24:34]FM_GetShiftState [22:24:34]SAM_PROTO_GetShiftState [22:24:34]wFMCommunicate request_size=4 [22:24:34]MH_SAM_APDU [22:24:34]CAPDU: 80 13 01 00 [22:24:34]Write to MH i2c: E2 08 00 0C 05 80 13 01 00 00 00 00 00 8E [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:34]Read from MH i2c: E2 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 0E 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: E2 0E 00 0C 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 60 [22:24:34]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:24:34]wFMCommunicate OK [22:24:34]SAM_PROTO_GetShiftState done [22:24:34]FM_GetShiftState done [22:24:34]req_shift_opened done [22:24:34]requested_item shift.open_date is exist - process it [22:24:34]req_shift_open_date [22:24:34]req_shift_open_date done [22:24:34]produce_requested_data done [22:24:34]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82495,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [22:24:34]process_action_free close_receipt [22:24:34]json_value_free [22:24:34]json_value_free done [22:24:34]process_json_proto returns [22:24:34]Send response to host [22:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82495,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [22:24:34]free response buf [22:24:34]execute_script done [22:24:34]execute_script returns [22:24:34]free content buf [22:24:34]Sock 8.Close socket [22:24:34]Sock 8.Thread stoped [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:08]recv_with_timeout no data received [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:01]recv_with_timeout no data received [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:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [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:41:56]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:14]recv_with_timeout no data received [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]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:48:58]recv_with_timeout no data received [22:49:00]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:28]accept exits with 9 [22:55:28]New connection [22:55:28]New thread 3067153764 created [22:55:28]Thread 3067297124 joined [22:55:28]Waiting for new connection... [22:55:28] Sock 9.Parse request [22:55:28]Sock 9.Check first char [22:55:28]Sock 9.First char is OK [22:55:28]request: POST /json_proto HTTP/1.0 [22:55:28]Method: POST [22:55:28]URL: /json_proto [22:55:28]Method is POST - this is cgi request [22:55:28]url: /json_proto [22:55:28]query_string will be loaded in cgi processing [22:55:28]execute_cgi json_proto POST (null) [22:55:28]execute_cgi path=json_proto method=POST [22:55:28]POST find Content-Length [22:55:28]Host: 172.17.44.67:8080 [22:55:28]Content-Length: 677 [22:55:28]Content-Type: application/json [22:55:28] [22:55:28]POST finish read [22:55:28]Found Content-Length = 677 [22:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918989", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:28]execute_script... [22:55:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918989", "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" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:28]POST & json_proto [22:55:28]process_json_proto [22:55:28]json parsed OK: [22:55:28]protocol is kg_v1.0 [22:55:28]action value=close_receipt [22:55:28]process_action close_receipt [22:55:28]cmd_close_receipt [22:55:28]MH_GetDate [22:55:28]Write to MH i2c: F0 00 00 0D 05 01 [22:55:28]Write i2c OK [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: F0 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: F0 09 00 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: F0 09 00 0D 05 00 61 E7 12 67 F1 C7 6B 64 52 [22:55:28]GetLastDocTimeStamp 1729290271 [22:55:28]current date 1729292129 [22:55:28]FM_GetShiftState [22:55:28]SAM_PROTO_GetShiftState [22:55:28]wFMCommunicate request_size=4 [22:55:28]MH_SAM_APDU [22:55:28]CAPDU: 80 13 01 00 [22:55:28]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [22:55:28]Write i2c OK [22:55:28]MH_I2C_Read... [22:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:28]Read from MH i2c: E2 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: E2 0E 00 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 62 [22:55:28]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:55:28]wFMCommunicate OK [22:55:28]SAM_PROTO_GetShiftState done [22:55:28]FM_GetShiftState done [22:55:28]opened in 1729212319 [22:55:28]opened+sec_in_day 1729298719 [22:55:28]quantity*price = 40068 [22:55:28]sum+1 = 40069 [22:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре [22:55:30]line ОКРУГЛЕНИЕ: -0.68 [22:55:30]line ИТОГО: 400.00 [22:55:30]line Внесено: 400.00 [22:55:30]line СДАЧА: 0.00 [22:55:30]line НСП 1% : 3.55 [22:55:30]line НДС 12% : 42.55 [22:55:30]line Наличными: 400.00 [22:55:30]line Безнал.: 0.00 [22:55:30]line Место: АЗС № 114 "Партнер Нефть" [22:55:30]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [22:55:30]line СНО: Общий режим [22:55:30]line Чек 205 18.10.2024 22:55 [22:55:30]line Смена: 526 ФФД: 1.0 [22:55:30]line ЗНМ: 0300000086 [22:55:30]line РНМ: 0000000000091680 [22:55:30]line Версия ККМ: 001 [22:55:30]line ФМ: 0000000000871843 [22:55:30]line ФД: 82496 [22:55:30]line ФПД: 71369204356185 [22:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T225529&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82496&fm=71369204356185&tin=02508201610067®Number=0000000000091680&sum=40000 [22:55:30]OFD Sender: Processing packet 82496 [packets to send 254, broken 253] [22:55:30]ProducePacketName [22:55:30]name=ofd_packets/00082496 [22:55:30]OFD Sender: To server: pG, [22:55:30]CommunicateWithHost lk.salyk.kg:30040 [22:55:30]ConnectInit lk.salyk.kg [22:55:30]written 0, free lines is 4095 [22:55:30]Connected sock=8 [22:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 8B 29 07 01 94 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 61 E7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 42 01 00 35 04 06 00 40 E8 F0 12 D4 59 A5 51 26 1D DE AB E5 E5 [22:55:31]Write to MH i2c: 01 00 00 4C 05 51 [22:55:31]Write i2c OK [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: 01 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: 01 07 00 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 D0 0C 34 [22:55:31]RasterBufferAndPrint [22:55:31]line [22:55:31]line [22:55:31]line [22:55:31]line [22:55:31]line [22:55:31]written 0, free lines is 3288 [22:55:31]MH_Cut [22:55:31]Write to MH i2c: D1 01 00 53 05 01 2A [22:55:31]Write i2c OK [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: D1 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: D1 01 00 [22:55:31]MH_I2C_Read... [22:55:31]Read from MH i2c: D1 01 00 53 05 00 29 [22:55:31]Write to MH i2c: 01 00 00 54 05 59 [22:55:31]Write i2c OK [22:55:31]MH_I2C_Read... [22:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 F4 4E 47 00 34 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 42 01 00 F4 03 04 00 9A 8C 12 67 B6 04 01 00 00 87 D5 44 0E 66 85 6D E2 [22:55:31]CommunicateWithHost err = 0 [22:55:31]CheckOFDResponse [22:55:31]1017 (14) - 77093643461234 [22:55:31]1041 (16) - 0000000000871843 [22:55:31]1040 (4) - 82496 [22:55:31]1012 (4) - 18.10.2024 16:28 [22:55:31]1206 (1) - 0 [22:55:31]OFD Sender: Remove packet 82496 [22:55:31]ProducePacketName [22:55:31]name=ofd_packets/00082496 [22:55:31]NVStorageDeleteData [22:55:31]OFD Sender: No OFD packet to send [22:55:31]*** Cut start [22:55:31]*** Partial cut [22:55:31]*** CUTSNS_PIN = 1 [22:55:31]*** CUTSNS_PIN = 0 [22:55:32]*** Brake cut motor [22:55:32]Read from MH i2c: 01 [22:55:32]MH_I2C_Read... [22:55:32]*** Stop cut motor [22:55:32]*** Cut end [22:55:32]Read from MH i2c: 01 07 00 [22:55:32]MH_I2C_Read... [22:55:32]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [22:55:32]process_action close_receipt done [22:55:32]requested_data is exist [22:55:32]produce_requested_data [22:55:32]requested_item fm.sn is exist - process it [22:55:32]wFMCommunicate request_size=4 [22:55:32]MH_SAM_APDU [22:55:32]CAPDU: 80 11 00 00 [22:55:32]Write to MH i2c: E2 08 00 55 05 80 11 00 00 00 00 00 00 D4 [22:55:32]Write i2c OK [22:55:32]MH_I2C_Read... [22:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:32]Read from MH i2c: E2 [22:55:32]MH_I2C_Read... [22:55:32]Read from MH i2c: E2 17 00 [22:55:32]MH_I2C_Read... [22:55:32]Read from MH i2c: E2 17 00 55 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 26 [22:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:55:32]wFMCommunicate OK [22:55:32]requested_item fd.num is exist - process it [22:55:32]SAM_PROTO_GetFieldsCounters [22:55:32]wFMCommunicate request_size=4 [22:55:32]MH_SAM_APDU [22:55:32]CAPDU: 80 13 00 00 [22:55:32]Write to MH i2c: E2 08 00 56 05 80 13 00 00 00 00 00 00 D7 [22:55:32]Write i2c OK [22:55:32]MH_I2C_Read... [22:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:32]Read from MH i2c: E2 [22:55:32]MH_I2C_Read... [22:55:32]Read from MH i2c: E2 62 00 [22:55:32]MH_I2C_Read... [22:55:32]Read from MH i2c: E2 62 00 56 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 40 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [22:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 40 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:32]wFMCommunicate OK [22:55:32]SAM_PROTO_GetFieldsCounters done [22:55:32]requested_item shift.num is exist - process it [22:55:32]requested_item shift.opened is exist - process it [22:55:32]req_shift_opened [22:55:32]FM_GetShiftState [22:55:32]SAM_PROTO_GetShiftState [22:55:32]wFMCommunicate request_size=4 [22:55:32]MH_SAM_APDU [22:55:32]CAPDU: 80 13 01 00 [22:55:32]Write to MH i2c: E2 08 00 57 05 80 13 01 00 00 00 00 00 D9 [22:55:32]Write i2c OK [22:55:32]MH_I2C_Read... [22:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:32]Read from MH i2c: E2 [22:55:32]MH_I2C_Read... [22:55:32]Read from MH i2c: E2 0E 00 [22:55:32]MH_I2C_Read... [22:55:32]Read from MH i2c: E2 0E 00 57 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AB [22:55:32]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:55:32]wFMCommunicate OK [22:55:32]SAM_PROTO_GetShiftState done [22:55:32]FM_GetShiftState done [22:55:32]req_shift_opened done [22:55:32]requested_item shift.open_date is exist - process it [22:55:32]req_shift_open_date [22:55:32]req_shift_open_date done [22:55:32]produce_requested_data done [22:55:32]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82496,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [22:55:32]process_action_free close_receipt [22:55:32]json_value_free [22:55:32]json_value_free done [22:55:32]process_json_proto returns [22:55:32]Send response to host [22:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82496,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [22:55:32]free response buf [22:55:32]execute_script done [22:55:32]execute_script returns [22:55:32]free content buf [22:55:32]Sock 9.Close socket [22:55:32]Sock 9.Thread stoped [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:49]recv_with_timeout no data received [22:55:51]OFD Sender: No OFD packet to send [22:55:54]accept exits with 10 [22:55:54]New connection [22:55:54]New thread 3067297124 created [22:55:54]Thread 3067153764 joined [22:55:54]Waiting for new connection... [22:55:54] Sock 10.Parse request [22:55:54]Sock 10.Check first char [22:55:54]Sock 10.First char is OK [22:55:54]request: POST /json_proto HTTP/1.0 [22:55:54]Method: POST [22:55:54]URL: /json_proto [22:55:54]Method is POST - this is cgi request [22:55:54]url: /json_proto [22:55:54]query_string will be loaded in cgi processing [22:55:54]execute_cgi json_proto POST (null) [22:55:54]execute_cgi path=json_proto method=POST [22:55:54]POST find Content-Length [22:55:54]Host: 172.17.44.67:8080 [22:55:54]Content-Length: 677 [22:55:54]Content-Type: application/json [22:55:54] [22:55:54]POST finish read [22:55:54]Found Content-Length = 677 [22:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:54]execute_script... [22:55: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)918990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:54]POST & json_proto [22:55:54]process_json_proto [22:55:54]json parsed OK: [22:55:54]protocol is kg_v1.0 [22:55:54]action value=close_receipt [22:55:54]process_action close_receipt [22:55:54]cmd_close_receipt [22:55:54]MH_GetDate [22:55:54]Write to MH i2c: F0 00 00 58 05 4C [22:55:54]Write i2c OK [22:55:54]MH_I2C_Read... [22:55:54]Read from MH i2c: F0 [22:55:54]MH_I2C_Read... [22:55:54]Read from MH i2c: F0 09 00 [22:55:54]MH_I2C_Read... [22:55:54]Read from MH i2c: F0 09 00 58 05 00 7B E7 12 67 F1 C7 6B 64 B7 [22:55:54]GetLastDocTimeStamp 1729292129 [22:55:54]current date 1729292155 [22:55:54]FM_GetShiftState [22:55:54]SAM_PROTO_GetShiftState [22:55:54]wFMCommunicate request_size=4 [22:55:54]MH_SAM_APDU [22:55:54]CAPDU: 80 13 01 00 [22:55:54]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [22:55:54]Write i2c OK [22:55:54]MH_I2C_Read... [22:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:54]Read from MH i2c: E2 [22:55:54]MH_I2C_Read... [22:55:54]Read from MH i2c: E2 0E 00 [22:55:54]MH_I2C_Read... [22:55:54]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 AD [22:55:54]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:55:54]wFMCommunicate OK [22:55:54]SAM_PROTO_GetShiftState done [22:55:54]FM_GetShiftState done [22:55:54]opened in 1729212319 [22:55:54]opened+sec_in_day 1729298719 [22:55:54]quantity*price = 50041 [22:55:54]sum+1 = 50042 [22:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 206 18.10.2024 22:55 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82497 ФПД: 264963544678863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T225555&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82497&fm=264963544678863&tin=02508201610067®Number=0000000000091680&sum=50000 [22:55:55]StoreToDocumentArchive [22:55:55]shift 526 fd 82497 [22:55:55]save to /storage/0526/doc_00082497 [22:55:55]save last doc name /storage/0526/doc_00082497 to /storage/kkm_last_doc_name [22:55:55]save OK [22:55:55]Clear old archive folders... [22:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:55]tlvbuf is 01E9F860 [22:55:55]SAM_PROTO_ClearQueue [22:55:55]wFMCommunicate request_size=4 [22:55:55]MH_SAM_APDU [22:55:55]CAPDU: 80 09 00 00 [22:55:55]Write to MH i2c: E2 08 00 66 05 80 09 00 00 00 00 00 00 DD [22:55:55]Write i2c OK [22:55:55]MH_I2C_Read... [22:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:55]Read from MH i2c: E2 [22:55:55]MH_I2C_Read... [22:55:55]Read from MH i2c: E2 03 00 [22:55:55]MH_I2C_Read... [22:55:55]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [22:55:55]RAPDU: 90 00 [22:55:55]wFMCommunicate OK [22:55:55]SAM_PROTO_ClearQueue done [22:55:55]KKMCreateOFDPacket [22:55:55]OFDProtocolAddRootSTLVToBuf [22:55:55]FM_MakeSignedData [22:55:55]FM_MakeSignedData [22:55:55]SAM_PROTO_SignData [22:55:55]wFMCommunicate request_size=4 [22:55:55]MH_SAM_APDU [22:55:55]CAPDU: 80 0D 01 02 [22:55:55]Write to MH i2c: E2 08 00 67 05 80 0D 01 02 00 00 00 00 E5 [22:55:55]Write i2c OK [22:55:55]MH_I2C_Read... [22:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:55]Read from MH i2c: E2 [22:55:55]MH_I2C_Read... [22:55:55]Read from MH i2c: E2 03 00 [22:55:55]MH_I2C_Read... [22:55:55]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [22:55:55]RAPDU: 90 00 [22:55:55]wFMCommunicate OK [22:55:55]wFMCommunicate request_size=255 [22:55:55]MH_SAM_APDU [22:55: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7B E7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 42 01 00 35 04 06 00 F0 [22:55:55]Write to MH i2c: E2 02 01 68 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7B E7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 42 01 00 35 04 06 00 F0 00 00 9E [22:55:55]Write i2c OK [22:55:55]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 03 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [22:55:56]RAPDU: 90 00 [22:55:56]wFMCommunicate OK [22:55:56]wFMCommunicate request_size=10 [22:55:56]MH_SAM_APDU [22:55:56]CAPDU: 80 0D 02 02 05 FB A1 F5 81 CF [22:55:56]Write to MH i2c: E2 0D 00 69 05 80 0D 02 02 05 00 FB A1 F5 81 CF 00 00 D3 [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 03 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [22:55:56]RAPDU: 90 00 [22:55:56]wFMCommunicate OK [22:55:56]wFMCommunicate request_size=4 [22:55:56]MH_SAM_APDU [22:55:56]CAPDU: 80 0D 03 02 [22:55:56]Write to MH i2c: E2 08 00 6A 05 80 0D 03 02 00 00 00 00 EA [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 0B 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 0B 00 6A 05 00 4C 45 F6 15 10 96 DC 11 90 00 1A [22:55:56]RAPDU: 4C 45 F6 15 10 96 DC 11 90 00 [22:55:56]wFMCommunicate OK [22:55:56]SAM_PROTO_SignData done [22:55:56]FM_MakeSignedData done [22:55:56]CreateOFDProtocolMessage [22:55:56]wFMCommunicate request_size=4 [22:55:56]MH_SAM_APDU [22:55:56]CAPDU: 80 11 00 00 [22:55:56]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:56]Read from MH i2c: E2 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 17 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: E2 17 00 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 3C [22:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:55:56]wFMCommunicate OK [22:55:56]CreateOFDProtocolMessage done [22:55:56]OFDSenderStorePacket 82497 [22:55:56]StoreOFDPacket docnum=82497 [22:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C3 DA 07 01 57 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7B E7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 42 01 00 35 04 06 00 F0 FB A1 F5 81 CF 4C 45 F6 15 10 96 DC 11 [22:55:56]CheckFolder [22:55:56]dirname=/storage/ofd_packets [22:55:56]CheckFolder done [22:55:56]ProducePacketName [22:55:56]name=ofd_packets/00082497 [22:55:56]NVStorageSaveData ofd_packets/00082497 [22:55:56]File name is /storage/ofd_packets/00082497 [22:55:56]Write 301 bytes [22:55:56]NVStorageSaveData done [22:55:56]OFDSenderStorePacket done [22:55:56]KKMCreateOFDPacket done [22:55:56]NVStorageSaveData kkm_last_timestamp [22:55:56]File name is /storage/kkm_last_timestamp [22:55:56]Write 4 bytes [22:55:56]NVStorageSaveData done [22:55:56]ExternCall_PrintAddStr [22:55:56]wPrintStart [22:55:56]Write to MH i2c: 01 00 00 6C 05 71 [22:55:56]Write i2c OK [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: 01 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: 01 07 00 [22:55:56]MH_I2C_Read... [22:55:56]Read from MH i2c: 01 07 00 6C 05 00 00 00 00 00 FF 0F 86 [22:55:56]RasterBufferAndPrint [22:55:56]line Счет N : (1)918990 [22:55:56]line ИНН: 02508201610067 [22:55:56]line Контрольно-Кассовый Чек [22:55:56]line ПРОДАЖА [22:55:56]line ТРК (МРК, ГНК) : 11 [22:55:56]line Товар: 2710124130 [22:55:56]line Аи-92-К-4 [22:55:56]line 7.480 * 66.90 [22:55:56]line = 500.41 [22:55:56]line НДС 12% НСП 1% [22:55:56]line > о реализуемом товаре [22:55:56]line ОКРУГЛЕНИЕ: -0.41 [22:55:56]line ИТОГО: 500.00 [22:55:56]line Внесено: 500.00 [22:55:56]line СДАЧА: 0.00 [22:55:56]line НСП 1% : 4.43 [22:55:56]line НДС 12% : 53.14 [22:55:56]line Наличными: 500.00 [22:55:56]line Безнал.: 0.00 [22:55:56]line Место: АЗС № 114 "Партнер Нефть" [22:55:56]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [22:55:56]line СНО: Общий режим [22:55:56]line Чек 206 18.10.2024 22:55 [22:55:56]line Смена: 526 ФФД: 1.0 [22:55:56]line ЗНМ: 0300000086 [22:55:56]line РНМ: 0000000000091680 [22:55:56]line Версия ККМ: 001 [22:55:56]line ФМ: 0000000000871843 [22:55:56]line ФД: 82497 [22:55:56]line ФПД: 264963544678863 [22:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T225555&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82497&fm=264963544678863&tin=02508201610067®Number=0000000000091680&sum=50000 [22:55:56]OFD Sender: Processing packet 82497 [packets to send 254, broken 253] [22:55:56]ProducePacketName [22:55:56]name=ofd_packets/00082497 [22:55:56]OFD Sender: To server: pG, [22:55:56]CommunicateWithHost lk.salyk.kg:30040 [22:55:56]ConnectInit lk.salyk.kg [22:55:56]written 0, free lines is 4095 [22:55:57]Write to MH i2c: 01 00 00 97 05 9C [22:55:57]Write i2c OK [22:55:57]MH_I2C_Read... [22:55:57]Read from MH i2c: 01 [22:55:57]MH_I2C_Read... [22:55:57]Read from MH i2c: 01 07 00 [22:55:57]MH_I2C_Read... [22:55:57]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 D4 0C 83 [22:55:57]RasterBufferAndPrint [22:55:57]line [22:55:57]line [22:55:57]line [22:55:57]line [22:55:57]line [22:55:57]written 0, free lines is 3292 [22:55:57]MH_Cut [22:55:57]Write to MH i2c: D1 01 00 9E 05 01 75 [22:55:57]Write i2c OK [22:55:57]MH_I2C_Read... [22:55:57]Read from MH i2c: D1 [22:55:57]MH_I2C_Read... [22:55:57]Read from MH i2c: D1 01 00 [22:55:57]MH_I2C_Read... [22:55:57]Read from MH i2c: D1 01 00 9E 05 00 74 [22:55:57]Write to MH i2c: 01 00 00 9F 05 A4 [22:55:57]Write i2c OK [22:55:57]MH_I2C_Read... [22:55:57]Connected sock=11 [22:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 C3 DA 07 01 57 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 7B E7 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 42 01 00 35 04 06 00 F0 FB A1 F5 81 CF 4C 45 F6 15 10 96 DC 11 [22:55:57]*** Cut start [22:55:57]*** Partial cut [22:55:57]*** CUTSNS_PIN = 1 [22:55:57]*** CUTSNS_PIN = 0 [22:55:58]*** Brake cut motor [22:55:58]Read from MH i2c: 01 [22:55:58]MH_I2C_Read... [22:55:58]*** Stop cut motor [22:55:58]*** Cut end [22:55:58]Read from MH i2c: 01 07 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 FF 0F B9 [22:55:58]process_action close_receipt done [22:55:58]requested_data is exist [22:55:58]produce_requested_data [22:55:58]requested_item fm.sn is exist - process it [22:55:58]wFMCommunicate request_size=4 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 11 00 00 [22:55:58]Write to MH i2c: E2 08 00 A0 05 80 11 00 00 00 00 00 00 1F [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 93 9D 47 00 E1 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 41 42 01 00 F4 03 04 00 B5 8C 12 67 B6 04 01 00 00 E2 DC 6B 72 DF D3 D9 59 [22:55:58]CommunicateWithHost err = 0 [22:55:58]CheckOFDResponse [22:55:58]1017 (14) - 77093643461234 [22:55:58]1041 (16) - 0000000000871843 [22:55:58]1040 (4) - 82497 [22:55:58]1012 (4) - 18.10.2024 16:28 [22:55:58]1206 (1) - 0 [22:55:58]OFD Sender: Remove packet 82497 [22:55:58]ProducePacketName [22:55:58]name=ofd_packets/00082497 [22:55:58]NVStorageDeleteData [22:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 17 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 17 00 A0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 71 [22:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [22:55:58]wFMCommunicate OK [22:55:58]requested_item fd.num is exist - process it [22:55:58]SAM_PROTO_GetFieldsCounters [22:55:58]wFMCommunicate request_size=4 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 13 00 00 [22:55:58]Write to MH i2c: E2 08 00 A1 05 80 13 00 00 00 00 00 00 22 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 62 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 62 00 A1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 41 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 41 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:58]wFMCommunicate OK [22:55:58]SAM_PROTO_GetFieldsCounters done [22:55:58]requested_item shift.num is exist - process it [22:55:58]requested_item shift.opened is exist - process it [22:55:58]req_shift_opened [22:55:58]FM_GetShiftState [22:55:58]SAM_PROTO_GetShiftState [22:55:58]wFMCommunicate request_size=4 [22:55:58]MH_SAM_APDU [22:55:58]CAPDU: 80 13 01 00 [22:55:58]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [22:55:58]Write i2c OK [22:55:58]MH_I2C_Read... [22:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:58]Read from MH i2c: E2 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 0E 00 [22:55:58]MH_I2C_Read... [22:55:58]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F6 [22:55:58]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [22:55:58]wFMCommunicate OK [22:55:58]SAM_PROTO_GetShiftState done [22:55:58]FM_GetShiftState done [22:55:58]req_shift_opened done [22:55:58]requested_item shift.open_date is exist - process it [22:55:58]req_shift_open_date [22:55:58]req_shift_open_date done [22:55:58]produce_requested_data done [22:55:58]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82497,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [22:55:58]process_action_free close_receipt [22:55:58]json_value_free [22:55:58]json_value_free done [22:55:58]process_json_proto returns [22:55:58]Send response to host [22:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82497,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [22:55:58]free response buf [22:55:58]execute_script done [22:55:58]execute_script returns [22:55:58]free content buf [22:55:58]Sock 10.Close socket [22:55:58]Sock 10.Thread stoped [22:55:59]OFD Sender: No OFD packet to send [22:55:59]recv_with_timeout no data received [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:10]recv_with_timeout no data received [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:02]recv_with_timeout no data received [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send 61 E7 12 67 [22:55:29]Write to MH i2c: E2 10 00 17 05 80 15 02 00 08 00 F4 03 04 00 61 E7 12 67 00 00 68 [22:55:29]Write i2c OK [22:55:29]MH_I2C_Read... [22:55:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:55:29]Read from MH i2c: E2 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 03 00 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [22:55:29]RAPDU: 90 00 [22:55:29]wFMCommunicate OK [22:55:29]wFMCommunicate request_size=25 [22:55:29]MH_SAM_APDU [22:55:29]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [22:55:29]Write to MH i2c: E2 1C 00 18 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 FE [22:55:29]Write i2c OK [22:55:29]MH_I2C_Read... [22:55:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:55:29]Read from MH i2c: E2 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 03 00 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [22:55:29]RAPDU: 90 00 [22:55:29]wFMCommunicate OK [22:55:29]wFMCommunicate request_size=4 [22:55:29]MH_SAM_APDU [22:55:29]CAPDU: 80 15 03 00 [22:55:29]Write to MH i2c: E2 08 00 19 05 80 15 03 00 00 00 00 00 9F [22:55:29]Write i2c OK [22:55:29]MH_I2C_Read... [22:55:29]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [22:55:29]Read from MH i2c: E2 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 40 00 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 40 00 19 05 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CD 00 00 00 35 04 06 00 40 E8 F0 12 D4 59 90 00 4B [22:55:29]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 40 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CD 00 00 00 35 04 06 00 40 E8 F0 12 D4 59 90 00 [22:55:29]wFMCommunicate OK [22:55:29]SAM_PROTO_ProcessDocument answer len = 59 [22:55:29]SAM_PROTO_ProcessDocument done [22:55:29]SetTLVBufToDocument [22:55:29]Processing tag 1209 (04B9) [22:55:29]Malloc new data [22:55:29]Processing tag 1041 (0411) [22:55:29]Processing tag 1040 (0410) [22:55:29]Malloc new data [22:55:29]Processing tag 1038 (040E) [22:55:29]Malloc new data [22:55:29]Processing tag 1042 (0412) [22:55:29]Malloc new data [22:55:29]Processing tag 1077 (0435) [22:55:29]Malloc new data [22:55:29]SetTLVBufToDocument err=0 [22:55:29]KKMLoadAndSignReceiptData store KKM data [22:55:29]KKMLoadAndSignReceiptData err=0 [22:5[23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:45]recv_with_timeout no data received [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15: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:16:58]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:15]recv_with_timeout no data received [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:00]recv_with_timeout no data received [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:40]recv_with_timeout no data received [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:24:57]recv_with_timeout no data received [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:18]recv_with_timeout no data received [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:06]recv_with_timeout no data received [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:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:45]accept exits with 9 [23:38:45]New connection [23:38:45]New thread 3067153764 created [23:38:45]Thread 3067297124 joined [23:38:45]Waiting for new connection... [23:38:45] Sock 9.Parse request [23:38:45]Sock 9.Check first char [23:38:45]Sock 9.First char is OK [23:38:45]request: POST /json_proto HTTP/1.0 [23:38:45]Method: POST [23:38:45]URL: /json_proto [23:38:45]Method is POST - this is cgi request [23:38:45]url: /json_proto [23:38:45]query_string will be loaded in cgi processing [23:38:45]execute_cgi json_proto POST (null) [23:38:45]execute_cgi path=json_proto method=POST [23:38:45]POST find Content-Length [23:38:45]Host: 172.17.44.67:8080 [23:38:45]Content-Length: 769 [23:38:45]Content-Type: application/json [23:38:45] [23:38:45]POST finish read [23:38:45]Found Content-Length = 769 [23:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918991", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:45]execute_script... [23: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)918991", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:45]POST & json_proto [23:38:45]process_json_proto [23:38:45]json parsed OK: [23:38:45]protocol is kg_v1.0 [23:38:45]action value=close_receipt [23:38:45]process_action close_receipt [23:38:45]cmd_close_receipt [23:38:45]MH_GetDate [23:38:45]Write to MH i2c: F0 00 00 A3 05 97 [23:38:45]Write i2c OK [23:38:45]MH_I2C_Read... [23:38:45]Read from MH i2c: F0 [23:38:45]MH_I2C_Read... [23:38:45]Read from MH i2c: F0 09 00 [23:38:45]MH_I2C_Read... [23:38:45]Read from MH i2c: F0 09 00 A3 05 00 86 F1 12 67 F1 C7 6B 64 17 [23:38:45]GetLastDocTimeStamp 1729292155 [23:38:45]current date 1729294726 [23:38:45]FM_GetShiftState [23:38:45]SAM_PROTO_GetShiftState [23:38:45]wFMCommunicate request_size=4 [23:38:45]MH_SAM_APDU [23:38:45]CAPDU: 80 13 01 00 [23:38:45]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [23:38:45]Write i2c OK [23:38:45]MH_I2C_Read... [23:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:45]Read from MH i2c: E2 [23:38:45]MH_I2C_Read... [23:38:45]Read from MH i2c: E2 0E 00 [23:38:45]MH_I2C_Read... [23:38:45]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 F8 [23:38:45]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [23:38:45]wFMCommunicate OK [23:38:45]SAM_PROTO_GetShiftState done [23:38:45]FM_GetShiftState done [23:38:45]opened in 1729212319 [23:38:45]opened+sec_in_day 1729298719 [23:38:45]quantity*price = 200043 [23:38:45]sum+1 = 200044 [23:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 207 18.10.2024 23:38 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82498 ФПД: 277886641439947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T233846&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82498&fm=277886641439947&tin=02508201610067®Number=0000000000091680&sum=200043 [23:38:46]StoreToDocumentArchive [23:38:46]shift 526 fd 82498 [23:38:46]save to /storage/0526/doc_00082498 [23:38:46]save last doc name /storage/0526/doc_00082498 to /storage/kkm_last_doc_name [23:38:46]save OK [23:38:46]Clear old archive folders... [23:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:38:46]tlvbuf is 01E9FB20 [23:38:46]SAM_PROTO_ClearQueue [23:38:46]wFMCommunicate request_size=4 [23:38:46]MH_SAM_APDU [23:38:46]CAPDU: 80 09 00 00 [23:38:46]Write to MH i2c: E2 08 00 B1 05 80 09 00 00 00 00 00 00 28 [23:38:46]Write i2c OK [23:38:46]MH_I2C_Read... [23:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:46]Read from MH i2c: E2 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [23:38:46]RAPDU: 90 00 [23:38:46]wFMCommunicate OK [23:38:46]SAM_PROTO_ClearQueue done [23:38:46]KKMCreateOFDPacket [23:38:46]OFDProtocolAddRootSTLVToBuf [23:38:46]FM_MakeSignedData [23:38:46]FM_MakeSignedData [23:38:46]SAM_PROTO_SignData [23:38:46]wFMCommunicate request_size=4 [23:38:46]MH_SAM_APDU [23:38:46]CAPDU: 80 0D 01 02 [23:38:46]Write to MH i2c: E2 08 00 B2 05 80 0D 01 02 00 00 00 00 30 [23:38:46]Write i2c OK [23:38:46]MH_I2C_Read... [23:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:46]Read from MH i2c: E2 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [23:38:46]RAPDU: 90 00 [23:38:46]wFMCommunicate OK [23:38:46]wFMCommunicate request_size=255 [23:38:46]MH_SAM_APDU [23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 86 F1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 42 01 00 35 04 06 00 FC [23:38:46]Write to MH i2c: E2 02 01 B3 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 86 F1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 42 01 00 35 04 06 00 FC 00 00 0B [23:38:46]Write i2c OK [23:38:46]MH_I2C_Read... [23:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:46]Read from MH i2c: E2 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [23:38:46]RAPDU: 90 00 [23:38:46]wFMCommunicate OK [23:38:46]wFMCommunicate request_size=10 [23:38:46]MH_SAM_APDU [23:38:46]CAPDU: 80 0D 02 02 05 BC 86 8D 04 CB [23:38:46]Write to MH i2c: E2 0D 00 B4 05 80 0D 02 02 05 00 BC 86 8D 04 CB 00 00 DB [23:38:46]Write i2c OK [23:38:46]MH_I2C_Read... [23:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:46]Read from MH i2c: E2 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [23:38:46]RAPDU: 90 00 [23:38:46]wFMCommunicate OK [23:38:46]wFMCommunicate request_size=4 [23:38:46]MH_SAM_APDU [23:38:46]CAPDU: 80 0D 03 02 [23:38:46]Write to MH i2c: E2 08 00 B5 05 80 0D 03 02 00 00 00 00 35 [23:38:46]Write i2c OK [23:38:46]MH_I2C_Read... [23:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:46]Read from MH i2c: E2 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 0B 00 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 0B 00 B5 05 00 95 AE 24 C3 01 B8 71 61 90 00 EB [23:38:46]RAPDU: 95 AE 24 C3 01 B8 71 61 90 00 [23:38:46]wFMCommunicate OK [23:38:46]SAM_PROTO_SignData done [23:38:46]FM_MakeSignedData done [23:38:46]CreateOFDProtocolMessage [23:38:46]wFMCommunicate request_size=4 [23:38:46]MH_SAM_APDU [23:38:46]CAPDU: 80 11 00 00 [23:38:46]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [23:38:46]Write i2c OK [23:38:46]MH_I2C_Read... [23:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:46]Read from MH i2c: E2 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 17 00 [23:38:46]MH_I2C_Read... [23:38:46]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 87 [23:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [23:38:46]wFMCommunicate OK [23:38:46]CreateOFDProtocolMessage done [23:38:46]OFDSenderStorePacket 82498 [23:38:46]StoreOFDPacket docnum=82498 [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 53 [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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [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]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 54000000005725AE (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: 44512150+1684785137=1729297287 [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 AE FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 54 [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 88 FB 12 67 F1 C7 6B 64 82 [00:21:28]Current date/time: 19.10.2024 00:21 [00:21:28]FM_Init [00:21:28]wFMConnect [00:21:28]MH_SAM_On [00:21:28]Write to MH i2c: E0 00 00 08 00 E7 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_init finished! [00:21:28]*** atr: [00:21:28]*** 0F 3B D5 18 FF 81 91 FE [00:21:28]*** 1F C3 80 73 C8 21 10 0A [00:21:28]*** 00 00 00 00 00 00 00 00 [00:21:28]*** 00 00 00 00 00 00 00 00 [00:21:28]*** 00 00 00 00 00 00 00 00 [00:21:28]*** 00 00 00 00 00 00 00 00 [00:21:28]*** 00 00 00 00 00 00 00 00 [00:21:28]*** 00 00 00 00 00 00 00 00 [00:21:28]Read from MH i2c: E0 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E0 10 00 [00:21:28]MH_I2C_Read... [00:21:28]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 [00:21:28]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:21:28]wFMCommunicate request_size=10 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:21:28]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:21:28]RAPDU: 90 00 [00:21:28]wFMCommunicate OK [00:21:28]wFMCommunicate request_size=4 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 11 00 00 [00:21:28]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 17 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [00:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:21:28]wFMCommunicate OK [00:21:28]Detected FM SN is 0000000000871843 [00:21:28]Stored FM SN is 0000000000871843 [00:21:28]wFMCommunicate request_size=9 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 16 00 00 04 C3 A3 00 00 [00:21:28]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 C3 A3 00 00 00 00 F8 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:21:28]RAPDU: 90 00 [00:21:28]wFMCommunicate OK [00:21:28]FM PIN OK [00:21:28]wFMCommunicate request_size=8 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 14 04 00 03 02 00 01 [00:21:28]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:21:28]RAPDU: 90 00 [00:21:28]wFMCommunicate OK [00:21:28]wFMCommunicate request_size=13 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:21:28]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 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:21:28]RAPDU: 90 00 [00:21:28]wFMCommunicate OK [00:21:28]wFMCommunicate request_size=4 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 11 00 00 [00:21:28]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 17 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DA [00:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:21:28]wFMCommunicate OK [00:21:28]DocumentArchiveInit [00:21:28]Start Httpd... [00:21:28]Httpd thread 3066989924 created [00:21:28]Write to MH i2c: 01 00 00 0F 00 0F [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: 01 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: 01 07 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:21:28]MH Int Process started [00:21:28]Allocated Socket 8 [00:21:28]Bind OK [00:21:28]Listen OK [00:21:28]httpd running on port 8080 [00:21:28]Waiting for new connection... [00:21:28]OFD Sender: Processing packet 82498 [packets to send 254, broken 253] [00:21:28]ProducePacketName [00:21:28]name=ofd_packets/00082498 [00:21:28]OFD Sender: To server: pG, [00:21:28]CommunicateWithHost lk.salyk.kg:30040 [00:21:28]ConnectInit lk.salyk.kg [00:21:28]accept exits with 9 [00:21:28]New connection [00:21:28]New thread 3066703204 created [00:21:28]Waiting for new connection... [00:21:28] Sock 9.Parse request [00:21:28]Sock 9.Check first char [00:21:28]Sock 9.First char is OK [00:21:28]request: POST /json_proto HTTP/1.0 [00:21:28]Method: POST [00:21:28]URL: /json_proto [00:21:28]Method is POST - this is cgi request [00:21:28]url: /json_proto [00:21:28]query_string will be loaded in cgi processing [00:21:28]execute_cgi json_proto POST (null) [00:21:28]execute_cgi path=json_proto method=POST [00:21:28]POST find Content-Length [00:21:28]Host: 172.17.44.67:8080 [00:21:28]Content-Length: 215 [00:21:28]Content-Type: application/json [00:21:28] [00:21:28]POST finish read [00:21:28]Found Content-Length = 215 [00:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:28]execute_script... [00:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:28]POST & json_proto [00:21:28]process_json_proto [00:21:28]json parsed OK: [00:21:28]protocol is kg_v1.0 [00:21:28]action value=get_value [00:21:28]process_action get_value [00:21:28]cmd_get_value [00:21:28]process_action get_value done [00:21:28]requested_data is exist [00:21:28]produce_requested_data [00:21:28]requested_item kkm.sn is exist - process it [00:21:28]requested_item kkm.ver is exist - process it [00:21:29]requested_item fm.sn is exist - process it [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 11 00 00 [00:21:29]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 17 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 DC [00:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:21:29]wFMCommunicate OK [00:21:29]requested_item fd.num is exist - process it [00:21:29]SAM_PROTO_GetFieldsCounters [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 13 00 00 [00:21:29]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 62 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 42 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [00: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 42 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:29]wFMCommunicate OK [00:21:29]SAM_PROTO_GetFieldsCounters done [00:21:29]requested_item shift.num is exist - process it [00:21:29]requested_item shift.opened is exist - process it [00:21:29]req_shift_opened [00:21:29]FM_GetShiftState [00:21:29]SAM_PROTO_GetShiftState [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 13 01 00 [00:21:29]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 0E 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 61 [00:21:29]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:21:29]wFMCommunicate OK [00:21:29]SAM_PROTO_GetShiftState done [00:21:29]FM_GetShiftState done [00:21:29]req_shift_opened done [00:21:29]requested_item shift.open_date is exist - process it [00:21:29]req_shift_open_date [00:21:29]req_shift_open_date done [00:21:29]produce_requested_data done [00:21:29]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82498,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:21:29]process_action_free get_value [00:21:29]json_value_free [00:21:29]json_value_free done [00:21:29]process_json_proto returns [00:21:29]Send response to host [00:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82498,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:21:29]free response buf [00:21:29]execute_script done [00:21:29]execute_script returns [00:21:29]free content buf [00:21:29]Sock 9.Close socket [00:21:29]Sock 9.Thread stoped [00:21:29]accept exits with 11 [00:21:29]New connection [00:21:29]New thread 3066559844 created [00:21:29]Thread 3066703204 joined [00:21:29]Waiting for new connection... [00:21:29] Sock 11.Parse request [00:21:29]Sock 11.Check first char [00:21:29]Sock 11.First char is OK [00:21:29]request: POST /json_proto HTTP/1.0 [00:21:29]Method: POST [00:21:29]URL: /json_proto [00:21:29]Method is POST - this is cgi request [00:21:29]url: /json_proto [00:21:29]query_string will be loaded in cgi processing [00:21:29]execute_cgi json_proto POST (null) [00:21:29]execute_cgi path=json_proto method=POST [00:21:29]POST find Content-Length [00:21:29]Host: 172.17.44.67:8080 [00:21:29]Content-Length: 331 [00:21:29]Content-Type: application/json [00:21:29] [00:21:29]POST finish read [00:21:29]Found Content-Length = 331 [00:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:29]execute_script... [00:21:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:29]POST & json_proto [00:21:29]process_json_proto [00:21:29]json parsed OK: [00:21:29]protocol is kg_v1.0 [00:21:29]action value=get_value [00:21:29]process_action get_value [00:21:29]cmd_get_value [00:21:29]process_action get_value done [00:21:29]requested_data is exist [00:21:29]produce_requested_data [00:21:29]requested_item fm.sale.total is exist - process it [00:21:29]SAM_PROTO_GetFMData [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 13 03 00 [00:21:29]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]Connected sock=7 [00:21:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 24 75 07 01 83 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 86 F1 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 42 01 00 35 04 06 00 FC BC 86 8D 04 CB 95 AE 24 C3 01 B8 71 61 [00:21:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 13 00 00 C7 04 85 04 C3 04 6E 04 04 00 26 3E 01 00 69 04 A3 00 6F 04 04 00 8B 3B 01 00 B1 04 05 00 CF C2 FA 7B 01 70 04 05 00 D4 EC 7E 41 01 72 04 04 00 FB D5 7B 3A 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 1C 91 5D 28 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 24 0E 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 30 [00:21:30]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 26 3E 01 00 69 04 A3 00 6F 04 04 00 8B 3B 01 00 B1 04 05 00 CF C2 FA 7B 01 70 04 05 00 D4 EC 7E 41 01 72 04 04 00 FB D5 7B 3A 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 1C 91 5D 28 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 24 0E 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 14 00 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [00:21:30]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 15 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:21:30]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 55 83 47 00 2F BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 42 42 01 00 F4 03 04 00 C0 A0 12 67 B6 04 01 00 00 73 9B 2F 20 55 DF 30 BD [00:21:30]CommunicateWithHost err = 0 [00:21:30]CheckOFDResponse [00:21:30]1017 (14) - 77093643461234 [00:21:30]1041 (16) - 0000000000871843 [00:21:30]1040 (4) - 82498 [00:21:30]1012 (4) - 18.10.2024 17:54 [00:21:30]1206 (1) - 0 [00:21:30]OFD Sender: Remove packet 82498 [00:21:30]ProducePacketName [00:21:30]name=ofd_packets/00082498 [00:21:30]NVStorageDeleteData [00:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 FD 00 16 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 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 90 00 11 [00:21:30]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 E4 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 E4 00 17 00 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [00:21:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:31]wFMCommunicate OK [00:21:31]SAM_PROTO_GetFMData done [00:21:31]requested_item fm.sale_refund.total is exist - process it [00:21:31]requested_item fm.buy.total is exist - process it [00:21:31]requested_item shift.sale.total is exist - process it [00:21:31]SAM_PROTO_GetShiftData [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 13 02 00 [00:21:31]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]OFD Sender: No OFD packet to send [00:21:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 CF 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 34 5A 9E 70 04 03 00 B4 8E 58 72 04 03 00 80 CB 45 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 30 D2 10 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 DE 66 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 7E [00:21:31]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 CF 00 00 00 69 04 9C 00 6F 04 04 00 CC 00 00 00 B1 04 03 00 34 5A 9E 70 04 03 00 B4 8E 58 72 04 03 00 80 CB 45 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 30 D2 10 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 DE 66 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 17 00 00 [00:21:31]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 0B [00:21:31]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 17 00 00 [00:21:32]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [00:21:32]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 17 00 00 [00:21:32]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [00:21:32]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:21:32]wFMCommunicate OK [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 17 00 00 [00:21:32]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 D6 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [00:21:32]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_GetShiftData done [00:21:32]requested_item shift.sale.total_cash is exist - process it [00:21:32]requested_item shift.sale_refund.total is exist - process it [00:21:32]requested_item shift.sale_refund.total_cash is exist - process it [00:21:32]requested_item shift.buy.total is exist - process it [00:21:32]requested_item shift.buy.total_cash is exist - process it [00:21:32]produce_requested_data done [00:21:32]produce_requested_data return {"fm.sale.total":63749987.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":103777.80,"shift.sale.total_cash":58037.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:32]process_action_free get_value [00:21:32]json_value_free [00:21:32]json_value_free done [00:21:32]process_json_proto returns [00:21:32]Send response to host [00:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63749987.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":103777.80,"shift.sale.total_cash":58037.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:32]free response buf [00:21:32]execute_script done [00:21:32]execute_script returns [00:21:32]free content buf [00:21:32]Sock 11.Close socket [00:21:32]Sock 11.Thread stoped [00:21:33]accept exits with 9 [00:21:33]New connection [00:21:33]New thread 3066703204 created [00:21:33]Thread 3066559844 joined [00:21:33]Waiting for new connection... [00:21:33] Sock 9.Parse request [00:21:33]Sock 9.Check first char [00:21:33]Sock 9.First char is OK [00:21:33]request: POST /json_proto HTTP/1.0 [00:21:33]Method: POST [00:21:33]URL: /json_proto [00:21:33]Method is POST - this is cgi request [00:21:33]url: /json_proto [00:21:33]query_string will be loaded in cgi processing [00:21:33]execute_cgi json_proto POST (null) [00:21:33]execute_cgi path=json_proto method=POST [00:21:33]POST find Content-Length [00:21:33]Host: 172.17.44.67:8080 [00:21:33]Content-Length: 623 [00:21:33]Content-Type: application/json [00:21:33] [00:21:33]POST finish read [00:21:33]Found Content-Length = 623 [00:21:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10597", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:33]execute_script... [00:21:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10597", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:33]POST & json_proto [00:21:33]process_json_proto [00:21:33]json parsed OK: [00:21:33]protocol is kg_v1.0 [00:21:33]action value=close_receipt [00:21:33]process_action close_receipt [00:21:33]cmd_close_receipt [00:21:33]MH_GetDate [00:21:33]Write to MH i2c: F0 00 00 1D 00 0C [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: F0 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: F0 09 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: F0 09 00 1D 00 00 8D FB 12 67 F1 C7 6B 64 9D [00:21:33]GetLastDocTimeStamp 1729294726 [00:21:33]current date 1729297293 [00:21:33]FM_GetShiftState [00:21:33]SAM_PROTO_GetShiftState [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 13 01 00 [00:21:33]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 0E 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 6D [00:21:33]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:21:33]wFMCommunicate OK [00:21:33]SAM_PROTO_GetShiftState done [00:21:33]FM_GetShiftState done [00:21:33]opened in 1729212319 [00:21:33]opened+sec_in_day 1729298719 [00:21:33]quantity*price = 16000 [00:21:33]sum+1 = 16001 [00:21:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 208 19.10.2024 00:21 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82499 ФПД: 169322232139964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T002134&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82499&fm=169322232139964&tin=02508201610067®Number=0000000000091680&sum=16000 0 [00:21:35]StoreToDocumentArchive [00:21:35]shift 526 fd 82499 [00:21:35]save to /storage/0526/doc_00082499 [00:21:35]save last doc name /storage/0526/doc_00082499 to /storage/kkm_last_doc_name [00:21:35]save OK [00:21:35]Clear old archive folders... [00:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:21:35]tlvbuf is 01CF5D60 [00:21:35]SAM_PROTO_ClearQueue [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 09 00 00 [00:21:35]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [00:21:35]RAPDU: 90 00 [00:21:35]wFMCommunicate OK [00:21:35]SAM_PROTO_ClearQueue done [00:21:35]KKMCreateOFDPacket [00:21:35]OFDProtocolAddRootSTLVToBuf [00:21:35]FM_MakeSignedData [00:21:35]FM_MakeSignedData [00:21:35]SAM_PROTO_SignData [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 0D 01 02 [00:21:35]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [00:21:35]RAPDU: 90 00 [00:21:35]wFMCommunicate OK [00:21:35]wFMCommunicate request_size=255 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 8E FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 [00:21:35]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 8E FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 00 00 60 [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [00:21:35]RAPDU: 90 00 [00:21:35]wFMCommunicate OK [00:21:35]wFMCommunicate request_size=35 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 42 01 00 35 04 06 00 99 FF 67 7F D0 BC [00:21:35]Write to MH i2c: E2 26 00 2E 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 42 01 00 35 04 06 00 99 FF 67 7F D0 BC 00 00 2A [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [00:21:35]RAPDU: 90 00 [00:21:35]wFMCommunicate OK [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 0D 03 02 [00:21:35]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 0B 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 0B 00 2F 00 00 47 45 4A F8 50 2E CC FA 90 00 BD [00:21:36]RAPDU: 47 45 4A F8 50 2E CC FA 90 00 [00:21:36]wFMCommunicate OK [00:21:36]SAM_PROTO_SignData done [00:21:36]FM_MakeSignedData done [00:21:36]CreateOFDProtocolMessage [00:21:36]wFMCommunicate request_size=4 [00:21:36]MH_SAM_APDU [00:21:36]CAPDU: 80 11 00 00 [00:21:36]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 17 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 FC [00:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:21:36]wFMCommunicate OK [00:21:36]CreateOFDProtocolMessage done [00:21:36]OFDSenderStorePacket 82499 [00:21:36]StoreOFDPacket docnum=82499 [00:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 28 01 00 00 1A A3 20 01 61 88 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 8E FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 43 42 01 00 35 04 06 00 99 FF 67 7F D0 BC 47 45 4A F8 50 2E CC FA [00:21:36]CheckFolder [00:21:36]dirname=/storage/ofd_packets [00:21:36]CheckFolder done [00:21:36]ProducePacketName [00:21:36]name=ofd_packets/00082499 [00:21:36]NVStorageSaveData ofd_packets/00082499 [00:21:36]File name is /storage/ofd_packets/00082499 [00:21:36]Write 326 bytes [00:21:36]NVStorageSaveData done [00:21:36]OFDSenderStorePacket done [00:21:36]KKMCreateOFDPacket done [00:21:36]NVStorageSaveData kkm_last_timestamp [00:21:36]File name is /storage/kkm_last_timestamp [00:21:36]Write 4 bytes [00:21:36]NVStorageSaveData done [00:21:36]ExternCall_PrintAddStr [00:21:36]wPrintStart [00:21:36]Write to MH i2c: 01 00 00 31 00 31 [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: 01 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: 01 07 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [00:21:36]RasterBufferAndPrint [00:21:36]line Счет N : (3)10597 [00:21:36]OFD Sender: Processing packet 82499 [packets to send 254, broken 253] [00:21:36]ProducePacketName [00:21:36]name=ofd_packets/00082499 [00:21:36]OFD Sender: To server: pG, [00:21:36]CommunicateWithHost lk.salyk.kg:30040 [00:21:36]ConnectInit lk.salyk.kg [00:21:36]line ИНН: 02508201610067 [00:21:36]line Контрольно-Кассовый Чек [00:21:36]line ПРОДАЖА [00:21:36]line Товар: 48742245 [00:21:36]line Сигареты Parliament Silver Blue [00:21:36]line 1.000 * 160.00 [00:21:36]line = 160.00 [00:21:36]line НДС 12% НСП 1% [00:21:36]line > о реализуемом товаре [00:21:36]line ИТОГО: 160.00 [00:21:36]line НСП 1% : 1.42 [00:21:36]line НДС 12% : 16.99 [00:21:36]line Наличными: 160.00 [00:21:36]line Безнал.: 0.00 [00:21:36]line Место: АЗС № 114 "Партнер Нефть" [00:21:36]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:21:36]line СНО: Общий режим [00:21:36]line Чек 208 19.10.2024 00:21 [00:21:36]line Смена: 526 ФФД: 1.0 [00:21:36]line ЗНМ: 0300000086 [00:21:36]line РНМ: 0000000000091680 [00:21:36]line Версия ККМ: 001 [00:21:36]line ФМ: 0000000000871843 [00:21:36]line ФД: 82499 [00:21:36]line ФПД: 169322232139964 [00:21:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T002134&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82499&fm=169322232139964&tin=02508201610067®Number=0000000000091680&sum=16000 [00:21:36]line 0 [00:21:36]written 0, free lines is 4095 [00:21:36]Write to MH i2c: 01 00 00 5A 00 5A [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: 01 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: 01 07 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 E0 0C 4D [00:21:36]RasterBufferAndPrint [00:21:36]line [00:21:36]line [00:21:36]line [00:21:36]line [00:21:36]line [00:21:36]written 0, free lines is 3317 [00:21:36]MH_Cut [00:21:36]Write to MH i2c: D1 01 00 61 00 01 33 [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: D1 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: D1 01 00 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: D1 01 00 61 00 00 32 [00:21:36]Write to MH i2c: 01 00 00 62 00 62 [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:37]*** Cut start [00:21:37]*** Partial cut [00:21:37]*** CUTSNS_PIN = 1 [00:21:37]*** CUTSNS_PIN = 0 [00:21:37]*** Brake cut motor [00:21:38]Read from MH i2c: *** Stop cut motor [00:21:38]01 *** Cut end [00:21:38] [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: 01 07 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [00:21:38]process_action close_receipt done [00:21:38]requested_data is exist [00:21:38]produce_requested_data [00:21:38]requested_item fm.sn is exist - process it [00:21:38]wFMCommunicate request_size=4 [00:21:38]MH_SAM_APDU [00:21:38]CAPDU: 80 11 00 00 [00:21:38]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:38]Read from MH i2c: E2 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 17 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [00:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:21:38]wFMCommunicate OK [00:21:38]requested_item fd.num is exist - process it [00:21:38]SAM_PROTO_GetFieldsCounters [00:21:38]wFMCommunicate request_size=4 [00:21:38]MH_SAM_APDU [00:21:38]CAPDU: 80 13 00 00 [00:21:38]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:38]Read from MH i2c: E2 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 62 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 43 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [00:21:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 43 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:38]wFMCommunicate OK [00:21:38]SAM_PROTO_GetFieldsCounters done [00:21:38]requested_item shift.num is exist - process it [00:21:38]requested_item shift.opened is exist - process it [00:21:38]req_shift_opened [00:21:38]FM_GetShiftState [00:21:38]SAM_PROTO_GetShiftState [00:21:38]wFMCommunicate request_size=4 [00:21:38]MH_SAM_APDU [00:21:38]CAPDU: 80 13 01 00 [00:21:38]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:38]Read from MH i2c: E2 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 0E 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B4 [00:21:38]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:21:38]wFMCommunicate OK [00:21:38]SAM_PROTO_GetShiftState done [00:21:38]FM_GetShiftState done [00:21:38]req_shift_opened done [00:21:38]requested_item shift.open_date is exist - process it [00:21:38]req_shift_open_date [00:21:38]req_shift_open_date done [00:21:38]produce_requested_data done [00:21:38]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82499,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:21:38]process_action_free close_receipt [00:21:38]json_value_free [00:21:38]json_value_free done [00:21:38]process_json_proto returns [00:21:38]Send response to host [00:21:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82499,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:21:38]free response buf [00:21:38]execute_script done [00:21:38]execute_script returns [00:21:38]free content buf [00:21:38]Sock 9.Close socket [00:21:38]Sock 9.Thread stoped [00:21:38]accept exits with 10 [00:21:38]New connection [00:21:38]New thread 3066559844 created [00:21:38]Thread 3066703204 joined [00:21:38]Waiting for new connection... [00:21:38] Sock 10.Parse request [00:21:38]Sock 10.Check first char [00:21:38]Sock 10.First char is OK [00:21:38]request: POST /json_proto HTTP/1.0 [00:21:38]Method: POST [00:21:38]URL: /json_proto [00:21:38]Method is POST - this is cgi request [00:21:38]url: /json_proto [00:21:38]query_string will be loaded in cgi processing [00:21:38]execute_cgi json_proto POST (null) [00:21:38]execute_cgi path=json_proto method=POST [00:21:38]POST find Content-Length [00:21:38]Host: 172.17.44.67:8080 [00:21:38]Content-Length: 759 [00:21:38]Content-Type: application/json [00:21:38] [00:21:38]POST finish read [00:21:38]Found Content-Length = 759 [00:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054185", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:38]execute_script... [00:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054185", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:38]POST & json_proto [00:21:38]process_json_proto [00:21:38]json parsed OK: [00:21:38]protocol is kg_v1.0 [00:21:38]action value=close_receipt [00:21:38]process_action close_receipt [00:21:38]cmd_close_receipt [00:21:38]MH_GetDate [00:21:38]Write to MH i2c: F0 00 00 66 00 55 [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: F0 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: F0 09 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: F0 09 00 66 00 00 92 FB 12 67 F1 C7 6B 64 EB [00:21:38]GetLastDocTimeStamp 1729297294 [00:21:38]current date 1729297298 [00:21:38]FM_GetShiftState [00:21:38]SAM_PROTO_GetShiftState [00:21:38]wFMCommunicate request_size=4 [00:21:38]MH_SAM_APDU [00:21:38]CAPDU: 80 13 01 00 [00:21:38]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:38]Read from MH i2c: E2 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 0E 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 B6 [00:21:38]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:21:38]wFMCommunicate OK [00:21:38]SAM_PROTO_GetShiftState done [00:21:38]FM_GetShiftState done [00:21:38]opened in 1729212319 [00:21:38]opened+sec_in_day 1729298719 [00:21:38]quantity*price = 0 [00:21:38]sum+1 = 1 [00:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 209 19.10.2024 00:21 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Талоны: ТК ГПНА Online 30054185 ФМ: 0000000000871843 ФД: 82500 ФПД: 165358731299916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T002138&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82500&fm=165358731299916&tin=02508201610067®Number=0000000000091680&sum=0 [00:21:40]StoreToDocumentArchive [00:21:40]shift 526 fd 82500 [00:21:40]save to /storage/0526/doc_00082500 [00:21:40]save last doc name /storage/0526/doc_00082500 to /storage/kkm_last_doc_name [00:21:40]save OK [00:21:40]Clear old archive folders... [00:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:21:40]tlvbuf is 01CF5C50 [00:21:40]SAM_PROTO_ClearQueue [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 09 00 00 [00:21:40]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [00:21:40]RAPDU: 90 00 [00:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_ClearQueue done [00:21:40]KKMCreateOFDPacket [00:21:40]OFDProtocolAddRootSTLVToBuf [00:21:40]FM_MakeSignedData [00:21:40]FM_MakeSignedData [00:21:40]SAM_PROTO_SignData [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 0D 01 02 [00:21:40]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [00:21:40]OFD Sender: No OFD packet to send [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [00:21:40]RAPDU: 90 00 [00:21:40]wFMCommunicate OK [00:21:40]wFMCommunicate request_size=255 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 92 FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 42 01 00 35 04 06 00 [00:21:40]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 92 FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 42 01 00 35 04 06 00 00 00 B2 [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:41]Read from MH i2c: E2 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [00:21:41]RAPDU: 90 00 [00:21:41]wFMCommunicate OK [00:21:41]wFMCommunicate request_size=11 [00:21:41]MH_SAM_APDU [00:21:41]CAPDU: 80 0D 02 02 06 96 64 94 70 8C 4C [00:21:41]Write to MH i2c: E2 0E 00 77 00 80 0D 02 02 06 00 96 64 94 70 8C 4C 00 00 D3 [00:21:41]Write i2c OK [00:21:41]MH_I2C_Read... [00:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:41]Read from MH i2c: E2 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [00:21:41]RAPDU: 90 00 [00:21:41]wFMCommunicate OK [00:21:41]wFMCommunicate request_size=4 [00:21:41]MH_SAM_APDU [00:21:41]CAPDU: 80 0D 03 02 [00:21:41]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [00:21:41]Write i2c OK [00:21:41]MH_I2C_Read... [00:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:41]Read from MH i2c: E2 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 0B 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 0B 00 78 00 00 66 F6 67 F5 05 29 FB C0 90 00 95 [00:21:41]RAPDU: 66 F6 67 F5 05 29 FB C0 90 00 [00:21:41]wFMCommunicate OK [00:21:41]SAM_PROTO_SignData done [00:21:41]FM_MakeSignedData done [00:21:41]CreateOFDProtocolMessage [00:21:41]wFMCommunicate request_size=4 [00:21:41]MH_SAM_APDU [00:21:41]CAPDU: 80 11 00 00 [00:21:41]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [00:21:41]Write i2c OK [00:21:41]MH_I2C_Read... [00:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:41]Read from MH i2c: E2 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 17 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [00:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:21:41]wFMCommunicate OK [00:21:41]CreateOFDProtocolMessage done [00:21:41]OFDSenderStorePacket 82500 [00:21:41]StoreOFDPacket docnum=82500 [00:21:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 E1 F3 08 01 3F E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 92 FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 42 01 00 35 04 06 00 96 64 94 70 8C 4C 66 F6 67 F5 05 29 FB C0 [00:21:41]CheckFolder [00:21:41]dirname=/storage/ofd_packets [00:21:41]CheckFolder done [00:21:41]ProducePacketName [00:21:41]name=ofd_packets/00082500 [00:21:41]NVStorageSaveData ofd_packets/00082500 [00:21:41]File name is /storage/ofd_packets/00082500 [00:21:41]Write 302 bytes [00:21:41]NVStorageSaveData done [00:21:41]OFDSenderStorePacket done [00:21:41]KKMCreateOFDPacket done [00:21:41]NVStorageSaveData kkm_last_timestamp [00:21:41]File name is /storage/kkm_last_timestamp [00:21:41]Write 4 bytes [00:21:41]NVStorageSaveData done [00:21:41]ExternCall_PrintAddStr [00:21:41]wPrintStart [00:21:41]Write to MH i2c: 01 00 00 7A 00 7A [00:21:41]Write i2c OK [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: 01 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: 01 07 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [00:21:41]RasterBufferAndPrint [00:21:41]line Счет N : (1)918992 [00:21:41]line ИНН: 02508201610067 [00:21:41]line Контрольно-Кассовый Чек [00:21:41]line ПРОДАЖА [00:21:41]line ТРК (МРК, ГНК) : 31 [00:21:41]line Товар: 2710194210 [00:21:41]line ДТ(л)-К-5 [00:21:41]line 50.000 * 0.00 [00:21:41]line = 0.00 [00:21:41]line НДС 12% НСП 1% [00:21:41]line > о реализуемом товаре [00:21:41]line ИТОГО: 0.00 [00:21:41]line НСП 1% : 0.00 [00:21:41]line НДС 12% : 0.00 [00:21:41]line Наличными: 0.00 [00:21:41]line Безнал.: 0.00 [00:21:41]line Место: АЗС № 114 "Партнер Нефть" [00:21:41]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:21:41]line СНО: Общий режим [00:21:41]line Чек 209 19.10.2024 00:21 [00:21:41]line Смена: 526 ФФД: 1.0 [00:21:41]line ЗНМ: 0300000086 [00:21:41]line РНМ: 0000000000091680 [00:21:41]line Версия ККМ: 001 [00:21:41]line Талоны: ТК ГПНА Online [00:21:41]line 30054185 [00:21:41]line ФМ: 0000000000871843 [00:21:41]line ФД: 82500 [00:21:41]line ФПД: 165358731299916 [00:21:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T002138&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82500&fm=165358731299916&tin=02508201610067®Number=0000000000091680&sum=0 [00:21:41]written 0, free lines is 4095 [00:21:41]OFD Sender: Processing packet 82500 [packets to send 254, broken 253] [00:21:41]ProducePacketName [00:21:41]name=ofd_packets/00082500 [00:21:41]OFD Sender: To server: pG, [00:21:41]CommunicateWithHost lk.salyk.kg:30040 [00:21:41]ConnectInit lk.salyk.kg [00:21:42]Write to MH i2c: 01 00 00 A4 00 A4 [00:21:42]Write i2c OK [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: 01 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: 01 07 00 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 ED 0C A4 [00:21:42]RasterBufferAndPrint [00:21:42]line [00:21:42]line [00:21:42]line [00:21:42]line [00:21:42]line [00:21:42]Connected sock=7 [00:21:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 01 00 00 E1 F3 08 01 3F E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 92 FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 written 0, free lines is 3374 [00:21:42]44 42 01 00 35 04 06 00 96 64 94 70 8C 4C 66 F6 67 F5 05 29 MH_Cut [00:21:42]FB Write to MH i2c: C0 D1 [00:21:42]01 00 AB 00 01 7D [00:21:42]Write i2c OK [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: D1 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: D1 01 00 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: D1 01 00 AB 00 00 7C [00:21:42]Write to MH i2c: 01 00 00 AC 00 AC [00:21:42]Write i2c OK [00:21:42]MH_I2C_Read... [00:21:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 EE B9 47 00 18 69 A5 07 01 00 07 00 3B 00 F9 *** Cut start [00:21:42]03 *** Partial cut [00:21:42]0E *** CUTSNS_PIN = 1 [00:21:42]00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 44 42 01 00 F4 03 04 00 CD A0 12 67 B6 04 01 00 00 B6 CD *** CUTSNS_PIN = 0 [00:21:42]6F 88 5E FA A4 AA [00:21:42]CommunicateWithHost err = 0 [00:21:42]CheckOFDResponse [00:21:42]1017 (14) - 77093643461234 [00:21:42]1041 (16) - 0000000000871843 [00:21:42]1040 (4) - 82500 [00:21:42]1012 (4) - 18.10.2024 17:54 [00:21:42]1206 (1) - 0 [00:21:42]OFD Sender: Remove packet 82500 [00:21:42]ProducePacketName [00:21:42]name=ofd_packets/00082500 [00:21:42]NVStorageDeleteData [00:21:43]*** Brake cut motor [00:21:43]OFD Sender: No OFD packet to send [00:21:43]Read from MH i2c: *** Stop cut motor [00:21:43]01 *** Cut end [00:21:43] [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: 01 07 00 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [00:21:43]process_action close_receipt done [00:21:43]requested_data is exist [00:21:43]produce_requested_data [00:21:43]requested_item fm.sn is exist - process it [00:21:43]wFMCommunicate request_size=4 [00:21:43]MH_SAM_APDU [00:21:43]CAPDU: 80 11 00 00 [00:21:43]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [00:21:43]Write i2c OK [00:21:43]MH_I2C_Read... [00:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:43]Read from MH i2c: E2 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 17 00 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 79 [00:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:21:43]wFMCommunicate OK [00:21:43]requested_item fd.num is exist - process it [00:21:43]SAM_PROTO_GetFieldsCounters [00:21:43]wFMCommunicate request_size=4 [00:21:43]MH_SAM_APDU [00:21:43]CAPDU: 80 13 00 00 [00:21:43]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [00:21:43]Write i2c OK [00:21:43]MH_I2C_Read... [00:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:43]Read from MH i2c: E2 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 62 00 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 44 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:21:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 44 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:43]wFMCommunicate OK [00:21:43]SAM_PROTO_GetFieldsCounters done [00:21:43]requested_item shift.num is exist - process it [00:21:43]requested_item shift.opened is exist - process it [00:21:43]req_shift_opened [00:21:43]FM_GetShiftState [00:21:43]SAM_PROTO_GetShiftState [00:21:43]wFMCommunicate request_size=4 [00:21:43]MH_SAM_APDU [00:21:43]CAPDU: 80 13 01 00 [00:21:43]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [00:21:43]Write i2c OK [00:21:43]MH_I2C_Read... [00:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:43]Read from MH i2c: E2 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 0E 00 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 FE [00:21:43]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:21:43]wFMCommunicate OK [00:21:43]SAM_PROTO_GetShiftState done [00:21:43]FM_GetShiftState done [00:21:43]req_shift_opened done [00:21:43]requested_item shift.open_date is exist - process it [00:21:43]req_shift_open_date [00:21:43]req_shift_open_date done [00:21:43]produce_requested_data done [00:21:43]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82500,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:21:43]process_action_free close_receipt [00:21:43]json_value_free [00:21:43]json_value_free done [00:21:43]process_json_proto returns [00:21:43]Send response to host [00:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82500,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:21:43]free response buf [00:21:43]execute_script done [00:21:43]execute_script returns [00:21:43]free content buf [00:21:43]Sock 10.Close socket [00:21:43]Sock 10.Thread stoped [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:19]accept exits with 9 [00:22:19]New connection [00:22:19]New thread 3066703204 created [00:22:19]Thread 3066559844 joined [00:22:19]Waiting for new connection... [00:22:19] Sock 9.Parse request [00:22:19]Sock 9.Check first char [00:22:19]Sock 9.First char is OK [00:22:19]request: POST /json_proto HTTP/1.0 [00:22:19]Method: POST [00:22:19]URL: /json_proto [00:22:19]Method is POST - this is cgi request [00:22:19]url: /json_proto [00:22:19]query_string will be loaded in cgi processing [00:22:19]execute_cgi json_proto POST (null) [00:22:19]execute_cgi path=json_proto method=POST [00:22:19]POST find Content-Length [00:22:19]Host: 172.17.44.67:8080 [00:22:19]Content-Length: 677 [00:22:19]Content-Type: application/json [00:22:19] [00:22:19]POST finish read [00:22:19]Found Content-Length = 677 [00:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:19]execute_script... [00: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)918993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:19]POST & json_proto [00:22:19]process_json_proto [00:22:19]json parsed OK: [00:22:19]protocol is kg_v1.0 [00:22:19]action value=close_receipt [00:22:19]process_action close_receipt [00:22:19]cmd_close_receipt [00:22:19]MH_GetDate [00:22:19]Write to MH i2c: F0 00 00 B0 00 9F [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 09 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: F0 09 00 B0 00 00 BB FB 12 67 F1 C7 6B 64 5E [00:22:19]GetLastDocTimeStamp 1729297298 [00:22:19]current date 1729297339 [00:22:19]FM_GetShiftState [00:22:19]SAM_PROTO_GetShiftState [00:22:19]wFMCommunicate request_size=4 [00:22:19]MH_SAM_APDU [00:22:19]CAPDU: 80 13 01 00 [00:22:19]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [00:22:19]Write i2c OK [00:22:19]MH_I2C_Read... [00:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:19]Read from MH i2c: E2 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0E 00 [00:22:19]MH_I2C_Read... [00:22:19]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 00 [00:22:19]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:22:19]wFMCommunicate OK [00:22:19]SAM_PROTO_GetShiftState done [00:22:19]FM_GetShiftState done [00:22:19]opened in 1729212319 [00:22:19]opened+sec_in_day 1729298719 [00:22:19]quantity*price = 50041 [00:22:19]sum+1 = 50042 [00:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 210 19.10.2024 00:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 ФМ: 0000000000871843 ФД: 82501 ФПД: 70295122348823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T002219&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82501&fm=70295122348823&tin=02508201610067®Number=0000000000091680&sum=50000 [00:22:20]StoreToDocumentArchive [00:22:20]shift 526 fd 82501 [00:22:20]save to /storage/0526/doc_00082501 [00:22:20]save last doc name /storage/0526/doc_00082501 to /storage/kkm_last_doc_name [00:22:20]save OK [00:22:20]Clear old archive folders... [00:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:22:20]tlvbuf is 01C9A850 [00:22:20]SAM_PROTO_ClearQueue [00:22:20]wFMCommunicate request_size=4 [00:22:20]MH_SAM_APDU [00:22:20]CAPDU: 80 09 00 00 [00:22:20]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [00:22:20]Write i2c OK [00:22:20]MH_I2C_Read... [00:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:20]Read from MH i2c: E2 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 03 00 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [00:22:20]RAPDU: 90 00 [00:22:20]wFMCommunicate OK [00:22:20]SAM_PROTO_ClearQueue done [00:22:20]KKMCreateOFDPacket [00:22:20]OFDProtocolAddRootSTLVToBuf [00:22:20]FM_MakeSignedData [00:22:20]FM_MakeSignedData [00:22:20]SAM_PROTO_SignData [00:22:20]wFMCommunicate request_size=4 [00:22:20]MH_SAM_APDU [00:22:20]CAPDU: 80 0D 01 02 [00:22:20]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [00:22:20]Write i2c OK [00:22:20]MH_I2C_Read... [00:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:20]Read from MH i2c: E2 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 03 00 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [00:22:20]RAPDU: 90 00 [00:22:20]wFMCommunicate OK [00:22:20]wFMCommunicate request_size=255 [00:22:20]MH_SAM_APDU [00:22: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 BB FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 42 01 00 35 04 06 00 3F [00:22:20]Write to MH i2c: E2 02 01 C0 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 BB FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 42 01 00 35 04 06 00 3F 00 00 9C [00:22:20]Write i2c OK [00:22:20]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [00:22:21]RAPDU: 90 00 [00:22:21]wFMCommunicate OK [00:22:21]wFMCommunicate request_size=10 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 0D 02 02 05 EE DB CC 0B 17 [00:22:21]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 EE DB CC 0B 17 00 00 FC [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [00:22:21]RAPDU: 90 00 [00:22:21]wFMCommunicate OK [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 0D 03 02 [00:22:21]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 0B 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 0B 00 C2 00 00 7B DF 63 13 66 09 BA 3E 90 00 75 [00:22:21]RAPDU: 7B DF 63 13 66 09 BA 3E 90 00 [00:22:21]wFMCommunicate OK [00:22:21]SAM_PROTO_SignData done [00:22:21]FM_MakeSignedData done [00:22:21]CreateOFDProtocolMessage [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 11 00 00 [00:22:21]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:21]Read from MH i2c: E2 17 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 8F [00:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:22:21]wFMCommunicate OK [00:22:21]CreateOFDProtocolMessage done [00:22:21]OFDSenderStorePacket 82501 [00:22:21]StoreOFDPacket docnum=82501 [00:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0F 01 00 00 AF 43 07 01 79 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 BB FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 42 01 00 35 04 06 00 3F EE DB CC 0B 17 7B DF 63 13 66 09 BA 3E [00:22:21]CheckFolder [00:22:21]dirname=/storage/ofd_packets [00:22:21]CheckFolder done [00:22:21]ProducePacketName [00:22:21]name=ofd_packets/00082501 [00:22:21]NVStorageSaveData ofd_packets/00082501 [00:22:21]File name is /storage/ofd_packets/00082501 [00:22:21]Write 301 bytes [00:22:21]NVStorageSaveData done [00:22:21]OFDSenderStorePacket done [00:22:21]KKMCreateOFDPacket done [00:22:21]NVStorageSaveData kkm_last_timestamp [00:22:21]File name is /storage/kkm_last_timestamp [00:22:21]Write 4 bytes [00:22:21]NVStorageSaveData done [00:22:21]ExternCall_PrintAddStr [00:22:21]wPrintStart [00:22:21]Write to MH i2c: 01 00 00 C4 00 C4 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: 01 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: 01 07 00 [00:22:21]MH_I2C_Read... [00:22:21]OFD Sender: Processing packet 82501 [packets to send 254, broken 253] [00:22:21]ProducePacketName [00:22:21]name=ofd_packets/00082501 [00:22:21]OFD Sender: To server: pG, [00:22:21]CommunicateWithHost lk.salyk.kg:30040 [00:22:21]ConnectInit lk.salyk.kg [00:22:21]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [00:22:21]RasterBufferAndPrint [00:22:21]line Счет N : (1)918993 [00:22:21]line ИНН: 02508201610067 [00:22:21]line Контрольно-Кассовый Чек [00:22:21]line ПРОДАЖА [00:22:21]line ТРК (МРК, ГНК) : 22 [00:22:21]line Товар: 2710124130 [00:22:21]line Аи-92-К-4 [00:22:21]line 7.480 * 66.90 [00:22:21]line = 500.41 [00:22:21]line НДС 12% НСП 1% [00:22:21]line > о реализуемом товаре [00:22:21]line ОКРУГЛЕНИЕ: -0.41 [00:22:21]line ИТОГО: 500.00 [00:22:21]line Внесено: 500.00 [00:22:21]line СДАЧА: 0.00 [00:22:21]line НСП 1% : 4.43 [00:22:21]line НДС 12% : 53.14 [00:22:21]line Наличными: 500.00 [00:22:21]line Безнал.: 0.00 [00:22:21]line Место: АЗС № 114 "Партнер Нефть" [00:22:21]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:22:21]line СНО: Общий режим [00:22:21]line Чек 210 19.10.2024 00:22 [00:22:21]line Смена: 526 ФФД: 1.0 [00:22:21]line ЗНМ: 0300000086 [00:22:21]line РНМ: 0000000000091680 [00:22:21]line Версия ККМ: 001 [00:22:21]line ФМ: 0000000000871843 [00:22:21]line ФД: 82501 [00:22:21]line ФПД: 70295122348823 [00:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T002219&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82501&fm=70295122348823&tin=02508201610067®Number=0000000000091680&sum=50000 [00:22:21]written 0, free lines is 4095 [00:22:21]Write to MH i2c: 01 00 00 EF 00 EF [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: 01 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: 01 07 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 D8 0C DA [00:22:21]RasterBufferAndPrint [00:22:21]line [00:22:21]line [00:22:21]line [00:22:21]line [00:22:21]line [00:22:21]written 0, free lines is 3310 [00:22:21]MH_Cut [00:22:21]Write to MH i2c: D1 01 00 F6 00 01 C8 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: D1 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: D1 01 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: D1 01 00 F6 00 00 C7 [00:22:21]Write to MH i2c: 01 00 00 F7 00 F7 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:22]Connected sock=11 [00: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 31 38 34 33 0F 01 00 00 AF 43 07 01 79 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 BB FB 12 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 42 01 00 35 04 06 00 3F EE DB CC 0B 17 7B DF 63 13 66 09 BA 3E [00:22:22]*** Cut start [00:22:22]*** Partial cut [00:22:22]*** CUTSNS_PIN = 1 [00:22:22]*** CUTSNS_PIN = 0 [00:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 26 3A 47 00 8A 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 45 42 01 00 F4 03 04 00 F5 A0 12 67 B6 04 01 00 00 91 07 7B DF 60 CB FA 83 [00:22:22]CommunicateWithHost err = 0 [00:22:22]CheckOFDResponse [00:22:22]1017 (14) - 77093643461234 [00:22:22]1041 (16) - 0000000000871843 [00:22:22]1040 (4) - 82501 [00:22:22]1012 (4) - 18.10.2024 17:55 [00:22:22]1206 (1) - 0 [00:22:22]OFD Sender: Remove packet 82501 [00:22:22]ProducePacketName [00:22:22]name=ofd_packets/00082501 [00:22:22]NVStorageDeleteData [00:22:22]*** Brake cut motor [00:22:23]Read from MH i2c: 01 [00:22:23]MH_I2C_Read... [00:22:23]*** Stop cut motor [00:22:23]*** Cut end [00:22:23]Read from MH i2c: 01 07 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [00:22:23]process_action close_receipt done [00:22:23]requested_data is exist [00:22:23]produce_requested_data [00:22:23]requested_item fm.sn is exist - process it [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 11 00 00 [00:22:23]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 17 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 C4 [00:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:22:23]wFMCommunicate OK [00:22:23]requested_item fd.num is exist - process it [00:22:23]SAM_PROTO_GetFieldsCounters [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 13 00 00 [00:22:23]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]OFD Sender: No OFD packet to send [00:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 62 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [00: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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:23]wFMCommunicate OK [00:22:23]SAM_PROTO_GetFieldsCounters done [00:22:23]requested_item shift.num is exist - process it [00:22:23]requested_item shift.opened is exist - process it [00:22:23]req_shift_opened [00:22:23]FM_GetShiftState [00:22:23]SAM_PROTO_GetShiftState [00:22:23]wFMCommunicate request_size=4 [00:22:23]MH_SAM_APDU [00:22:23]CAPDU: 80 13 01 00 [00:22:23]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:23]Read from MH i2c: E2 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 0E 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 49 [00:22:23]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:22:23]wFMCommunicate OK [00:22:23]SAM_PROTO_GetShiftState done [00:22:23]FM_GetShiftState done [00:22:23]req_shift_opened done [00:22:23]requested_item shift.open_date is exist - process it [00:22:23]req_shift_open_date [00:22:23]req_shift_open_date done [00:22:23]produce_requested_data done [00:22:23]produce_requested_data return {"fm.sn":"0000000000871843","fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:22:23]process_action_free close_receipt [00:22:23]json_value_free [00:22:23]json_value_free done [00:22:23]process_json_proto returns [00:22:23]Send response to host [00:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871843","fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:22:23]free response buf [00:22:23]execute_script done [00:22:23]execute_script returns [00:22:23]free content buf [00:22:23]Sock 9.Close socket [00:22:23]Sock 9.Thread stoped [00:22:28]OFD Sender: No OFD packet to send [00:22:33]recv_with_timeout no data received [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:11]recv_with_timeout no data received [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:22]recv_with_timeout no data received [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:42]recv_with_timeout no data received [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]recv_with_timeout no data received [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:36]recv_with_timeout no data received [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:10]recv_with_timeout no data received [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:52]accept exits with 10 [00:35:52]New connection [00:35:52]New thread 3066559844 created [00:35:52]Thread 3066703204 joined [00:35:52]Waiting for new connection... [00:35:52] Sock 10.Parse request [00:35:52]Sock 10.Check first char [00:35:52]Sock 10.First char is OK [00:35:52]request: POST /json_proto HTTP/1.0 [00:35:52]Method: POST [00:35:52]URL: /json_proto [00:35:52]Method is POST - this is cgi request [00:35:52]url: /json_proto [00:35:52]query_string will be loaded in cgi processing [00:35:52]execute_cgi json_proto POST (null) [00:35:52]execute_cgi path=json_proto method=POST [00:35:52]POST find Content-Length [00:35:52]Host: 172.17.44.67:8080 [00:35:52]Content-Length: 215 [00:35:52]Content-Type: application/json [00:35:52] [00:35:52]POST finish read [00:35:52]Found Content-Length = 215 [00:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:52]execute_script... [00:35:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:52]POST & json_proto [00:35:52]process_json_proto [00:35:52]json parsed OK: [00:35:52]protocol is kg_v1.0 [00:35:52]action value=get_value [00:35:52]process_action get_value [00:35:52]cmd_get_value [00:35:52]process_action get_value done [00:35:52]requested_data is exist [00:35:52]produce_requested_data [00:35:52]requested_item kkm.sn is exist - process it [00:35:52]requested_item kkm.ver is exist - process it [00:35:52]requested_item fm.sn is exist - process it [00:35:52]wFMCommunicate request_size=4 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 11 00 00 [00:35:52]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 17 00 [00:35:52]MH_I2C_Read... [00:35:52]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 31 38 34 33 90 00 C7 [00:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:35:52]wFMCommunicate OK [00:35:52]requested_item fd.num is exist - process it [00:35:52]SAM_PROTO_GetFieldsCounters [00:35:52]wFMCommunicate request_size=4 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 13 00 00 [00:35:52]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 62 00 [00:35:52]MH_I2C_Read... [00:35:52]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 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [00:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:52]wFMCommunicate OK [00:35:52]SAM_PROTO_GetFieldsCounters done [00:35:52]requested_item shift.num is exist - process it [00:35:52]requested_item shift.opened is exist - process it [00:35:52]req_shift_opened [00:35:52]FM_GetShiftState [00:35:52]SAM_PROTO_GetShiftState [00:35:52]wFMCommunicate request_size=4 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 13 01 00 [00:35:52]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:52]Read from MH i2c: E2 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 0E 00 [00:35:52]MH_I2C_Read... [00:35:52]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 4C [00:35:52]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:35:52]wFMCommunicate OK [00:35:52]SAM_PROTO_GetShiftState done [00:35:52]FM_GetShiftState done [00:35:52]req_shift_opened done [00:35:52]requested_item shift.open_date is exist - process it [00:35:52]req_shift_open_date [00:35:52]req_shift_open_date done [00:35:52]produce_requested_data done [00:35:52]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:35:52]process_action_free get_value [00:35:52]json_value_free [00:35:52]json_value_free done [00:35:52]process_json_proto returns [00:35:52]Send response to host [00:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:35:52]free response buf [00:35:52]execute_script done [00:35:52]execute_script returns [00:35:52]free content buf [00:35:52]Sock 10.Close socket [00:35:52]Sock 10.Thread stoped [00:35:52]accept exits with 7 [00:35:52]New connection [00:35:52]New thread 3066703204 created [00:35:52]Thread 3066559844 joined [00:35:52]Waiting for new connection... [00:35:52] Sock 7.Parse request [00:35:52]Sock 7.Check first char [00:35:52]Sock 7.First char is OK [00:35:52]request: POST /json_proto HTTP/1.0 [00:35:52]Method: POST [00:35:52]URL: /json_proto [00:35:52]Method is POST - this is cgi request [00:35:52]url: /json_proto [00:35:52]query_string will be loaded in cgi processing [00:35:52]execute_cgi json_proto POST (null) [00:35:52]execute_cgi path=json_proto method=POST [00:35:52]POST find Content-Length [00:35:52]Host: 172.17.44.67:8080 [00:35:52]Content-Length: 331 [00:35:52]Content-Type: application/json [00:35:52] [00:35:52]POST finish read [00:35:52]Found Content-Length = 331 [00:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:52]execute_script... [00:35:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:52]POST & json_proto [00:35:52]process_json_proto [00:35:52]json parsed OK: [00:35:52]protocol is kg_v1.0 [00:35:52]action value=get_value [00:35:52]process_action get_value [00:35:52]cmd_get_value [00:35:52]process_action get_value done [00:35:52]requested_data is exist [00:35:52]produce_requested_data [00:35:52]requested_item fm.sale.total is exist - process it [00:35:52]SAM_PROTO_GetFMData [00:35:52]wFMCommunicate request_size=4 [00:35:52]MH_SAM_APDU [00:35:52]CAPDU: 80 13 03 00 [00:35:52]Write to MH i2c: E2 08 00 FE 00 80 13 03 00 00 00 00 00 7D [00:35:52]Write i2c OK [00:35:52]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 FE 00 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 92 [00:35:53]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 17 00 00 [00:35:53]Write to MH i2c: E2 08 00 FF 00 80 17 00 00 00 00 00 00 7F [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 FF 00 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [00:35:53]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 17 00 00 [00:35:53]Write to MH i2c: E2 08 00 00 01 80 17 00 00 00 00 00 00 81 [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 00 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:35:53]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 17 00 00 [00:35:53]Write to MH i2c: E2 08 00 01 01 80 17 00 00 00 00 00 00 82 [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:53]Read from MH i2c: E2 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 [00:35:53]MH_I2C_Read... [00:35:53]Read from MH i2c: E2 FD 00 01 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [00:35:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:53]wFMCommunicate OK [00:35:53]wFMCommunicate request_size=4 [00:35:53]MH_SAM_APDU [00:35:53]CAPDU: 80 17 00 00 [00:35:53]Write to MH i2c: E2 08 00 02 01 80 17 00 00 00 00 00 00 83 [00:35:53]Write i2c OK [00:35:53]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 E4 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 E4 00 02 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 63 [00:35:54]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:54]wFMCommunicate OK [00:35:54]SAM_PROTO_GetFMData done [00:35:54]requested_item fm.sale_refund.total is exist - process it [00:35:54]requested_item fm.buy.total is exist - process it [00:35:54]requested_item shift.sale.total is exist - process it [00:35:54]SAM_PROTO_GetShiftData [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 13 02 00 [00:35:54]Write to MH i2c: E2 08 00 03 01 80 13 02 00 00 00 00 00 82 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 03 01 00 B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 E2 [00:35:54]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:35:54]wFMCommunicate OK [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 17 00 00 [00:35:54]Write to MH i2c: E2 08 00 04 01 80 17 00 00 00 00 00 00 85 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:54]OFD Sender: No OFD packet to send [00:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:54]Read from MH i2c: E2 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 [00:35:54]MH_I2C_Read... [00:35:54]Read from MH i2c: E2 FD 00 04 01 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 F7 [00:35:54]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:35:54]wFMCommunicate OK [00:35:54]wFMCommunicate request_size=4 [00:35:54]MH_SAM_APDU [00:35:54]CAPDU: 80 17 00 00 [00:35:54]Write to MH i2c: E2 08 00 05 01 80 17 00 00 00 00 00 00 86 [00:35:54]Write i2c OK [00:35:54]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 05 01 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 AE [00:35:55]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 17 00 00 [00:35:55]Write to MH i2c: E2 08 00 06 01 80 17 00 00 00 00 00 00 87 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 FD 00 06 01 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 FF [00:35:55]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:35:55]wFMCommunicate OK [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 17 00 00 [00:35:55]Write to MH i2c: E2 08 00 07 01 80 17 00 00 00 00 00 00 88 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:35:55]Read from MH i2c: E2 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 D6 00 [00:35:55]MH_I2C_Read... [00:35:55]Read from MH i2c: E2 D6 00 07 01 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6A [00:35:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:55]wFMCommunicate OK [00:35:55]SAM_PROTO_GetShiftData done [00:35:55]requested_item shift.sale.total_cash is exist - process it [00:35:55]requested_item shift.sale_refund.total is exist - process it [00:35:55]requested_item shift.sale_refund.total_cash is exist - process it [00:35:55]requested_item shift.buy.total is exist - process it [00:35:55]requested_item shift.buy.total_cash is exist - process it [00:35:55]produce_requested_data done [00:35:55]produce_requested_data return {"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:55]process_action_free get_value [00:35:55]json_value_free [00:35:55]json_value_free done [00:35:55]process_json_proto returns [00:35:55]Send response to host [00:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:55]free response buf [00:35:55]execute_script done [00:35:55]execute_script returns [00:35:55]free content buf [00:35:55]Sock 7.Close socket [00:35:55]Sock 7.Thread stoped [00:35:55]accept exits with 9 [00:35:55]New connection [00:35:55]New thread 3066559844 created [00:35:55]Thread 3066703204 joined [00:35:55]Waiting for new connection... [00:35:55] Sock 9.Parse request [00:35:55]Sock 9.Check first char [00:35:55]Sock 9.First char is OK [00:35:55]request: POST /json_proto HTTP/1.0 [00:35:55]Method: POST [00:35:55]URL: /json_proto [00:35:55]Method is POST - this is cgi request [00:35:55]url: /json_proto [00:35:55]query_string will be loaded in cgi processing [00:35:55]execute_cgi json_proto POST (null) [00:35:55]execute_cgi path=json_proto method=POST [00:35:55]POST find Content-Length [00:35:55]Host: 172.17.44.67:8080 [00:35:55]Content-Length: 331 [00:35:55]Content-Type: application/json [00:35:55] [00:35:55]POST finish read [00:35:55]Found Content-Length = 331 [00:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:55]execute_script... [00:35:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:55]POST & json_proto [00:35:55]process_json_proto [00:35:55]json parsed OK: [00:35:55]protocol is kg_v1.0 [00:35:55]action value=get_value [00:35:55]process_action get_value [00:35:55]cmd_get_value [00:35:55]process_action get_value done [00:35:55]requested_data is exist [00:35:55]produce_requested_data [00:35:55]requested_item fm.sale.total is exist - process it [00:35:55]SAM_PROTO_GetFMData [00:35:55]wFMCommunicate request_size=4 [00:35:55]MH_SAM_APDU [00:35:55]CAPDU: 80 13 03 00 [00:35:55]Write to MH i2c: E2 08 00 08 01 80 13 03 00 00 00 00 00 88 [00:35:55]Write i2c OK [00:35:55]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 08 01 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 9D [00:35:56]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:35:56]wFMCommunicate OK [00:35:56]wFMCommunicate request_size=4 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 17 00 00 [00:35:56]Write to MH i2c: E2 08 00 09 01 80 17 00 00 00 00 00 00 8A [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 09 01 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [00:35:56]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:56]wFMCommunicate OK [00:35:56]wFMCommunicate request_size=4 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 17 00 00 [00:35:56]Write to MH i2c: E2 08 00 0A 01 80 17 00 00 00 00 00 00 8B [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:56]Read from MH i2c: E2 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 [00:35:56]MH_I2C_Read... [00:35:56]Read from MH i2c: E2 FD 00 0A 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [00:35:56]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:56]wFMCommunicate OK [00:35:56]wFMCommunicate request_size=4 [00:35:56]MH_SAM_APDU [00:35:56]CAPDU: 80 17 00 00 [00:35:56]Write to MH i2c: E2 08 00 0B 01 80 17 00 00 00 00 00 00 8C [00:35:56]Write i2c OK [00:35:56]MH_I2C_Read... [00:35:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:57]Read from MH i2c: E2 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 FD 00 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 FD 00 0B 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [00:35:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:57]wFMCommunicate OK [00:35:57]wFMCommunicate request_size=4 [00:35:57]MH_SAM_APDU [00:35:57]CAPDU: 80 17 00 00 [00:35:57]Write to MH i2c: E2 08 00 0C 01 80 17 00 00 00 00 00 00 8D [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:35:57]Read from MH i2c: E2 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 E4 00 [00:35:57]MH_I2C_Read... [00:35:57]Read from MH i2c: E2 E4 00 0C 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [00:35:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:57]wFMCommunicate OK [00:35:57]SAM_PROTO_GetFMData done [00:35:57]requested_item fm.sale_refund.total is exist - process it [00:35:57]requested_item fm.buy.total is exist - process it [00:35:57]requested_item shift.sale.total is exist - process it [00:35:57]SAM_PROTO_GetShiftData [00:35:57]wFMCommunicate request_size=4 [00:35:57]MH_SAM_APDU [00:35:57]CAPDU: 80 13 02 00 [00:35:57]Write to MH i2c: E2 08 00 0D 01 80 13 02 00 00 00 00 00 8C [00:35:57]Write i2c OK [00:35:57]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 0D 01 00 B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 EC [00:35:58]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:35:58]wFMCommunicate OK [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 17 00 00 [00:35:58]Write to MH i2c: E2 08 00 0E 01 80 17 00 00 00 00 00 00 8F [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 0E 01 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 01 [00:35:58]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:35:58]wFMCommunicate OK [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 17 00 00 [00:35:58]Write to MH i2c: E2 08 00 0F 01 80 17 00 00 00 00 00 00 90 [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:58]Read from MH i2c: E2 FD 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 FD 00 0F 01 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 B8 [00:35:59]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:35:59]wFMCommunicate OK [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 17 00 00 [00:35:59]Write to MH i2c: E2 08 00 10 01 80 17 00 00 00 00 00 00 91 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 FD 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 FD 00 10 01 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 09 [00:35:59]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:35:59]wFMCommunicate OK [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 17 00 00 [00:35:59]Write to MH i2c: E2 08 00 11 01 80 17 00 00 00 00 00 00 92 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 D6 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 D6 00 11 01 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:35:59]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:59]wFMCommunicate OK [00:35:59]SAM_PROTO_GetShiftData done [00:35:59]requested_item shift.sale.total_cash is exist - process it [00:35:59]requested_item shift.sale_refund.total is exist - process it [00:35:59]requested_item shift.sale_refund.total_cash is exist - process it [00:35:59]requested_item shift.buy.total is exist - process it [00:35:59]requested_item shift.buy.total_cash is exist - process it [00:35:59]produce_requested_data done [00:35:59]produce_requested_data return {"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:59]process_action_free get_value [00:35:59]json_value_free [00:35:59]json_value_free done [00:35:59]process_json_proto returns [00:35:59]Send response to host [00:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:59]free response buf [00:35:59]execute_script done [00:35:59]execute_script returns [00:35:59]free content buf [00:35:59]Sock 9.Close socket [00:35:59]Sock 9.Thread stoped [00:35:59]OFD Sender: No OFD packet to send [00:35:59]accept exits with 7 [00:35:59]New connection [00:35:59]New thread 3066703204 created [00:35:59]Thread 3066559844 joined [00:35:59]Waiting for new connection... [00:35:59] Sock 7.Parse request [00:35:59]Sock 7.Check first char [00:35:59]Sock 7.First char is OK [00:35:59]request: POST /json_proto HTTP/1.0 [00:35:59]Method: POST [00:35:59]URL: /json_proto [00:35:59]Method is POST - this is cgi request [00:35:59]url: /json_proto [00:35:59]query_string will be loaded in cgi processing [00:35:59]execute_cgi json_proto POST (null) [00:35:59]execute_cgi path=json_proto method=POST [00:35:59]POST find Content-Length [00:35:59]Host: 172.17.44.67:8080 [00:35:59]Content-Length: 263 [00:35:59]Content-Type: application/json [00:35:59] [00:35:59]POST finish read [00:35:59]Found Content-Length = 263 [00:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0436\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:59]execute_script... [00:35:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0436\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:59]POST & json_proto [00:35:59]process_json_proto [00:35:59]json parsed OK: [00:35:59]protocol is kg_v1.0 [00:35:59]action value=x_report [00:35:59]process_action x_report [00:35:59]cmd_x_report [00:35:59]MH_GetDate [00:35:59]Write to MH i2c: F0 00 00 12 01 02 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: F0 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: F0 09 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: F0 09 00 12 01 00 F0 FE 12 67 F1 C7 6B 64 F9 [00:35:59]GetLastDocTimeStamp 1729297339 [00:35:59]current date 1729298160 [00:35:59]FM_GetShiftState [00:35:59]SAM_PROTO_GetShiftState [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 13 01 00 [00:35:59]Write to MH i2c: E2 08 00 13 01 80 13 01 00 00 00 00 00 91 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 0E 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 0E 00 13 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 63 [00:36:00]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:36:00]wFMCommunicate OK [00:36:00]SAM_PROTO_GetShiftState done [00:36:00]FM_GetShiftState done [00:36:00]KKMCreateXReportDocument [00:36:00]Load OK [00:36:00]Malloc new data [00:36:00]MH_GetDate [00:36:00]Write to MH i2c: F0 00 00 14 01 04 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: F0 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: F0 09 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: F0 09 00 14 01 00 F0 FE 12 67 F1 C7 6B 64 FB [00:36:00]Malloc new data [00:36:00]Malloc new data [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 11 00 00 [00:36:00]Write to MH i2c: E2 08 00 15 01 80 11 00 00 00 00 00 00 90 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 17 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 17 00 15 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 E2 [00:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:36:00]wFMCommunicate OK [00:36:00]SAM_PROTO_GetFieldsCounters [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 13 00 00 [00:36:00]Write to MH i2c: E2 08 00 16 01 80 13 00 00 00 00 00 00 93 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 62 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 62 00 16 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [00:36:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:00]wFMCommunicate OK [00:36:00]SAM_PROTO_GetFieldsCounters done [00:36:00]Malloc new data [00:36:00]Malloc new data [00:36:00]Malloc new data [00:36:00]KKMCreateXReportDocument OK [00:36:00]KKMSetXReportData OK [00:36:00]KKMPrepareXReportFMData [00:36:00]SAM_PROTO_GetShiftData [00:36:00]wFMCommunicate request_size=4 [00:36:00]MH_SAM_APDU [00:36:00]CAPDU: 80 13 02 00 [00:36:00]Write to MH i2c: E2 08 00 17 01 80 13 02 00 00 00 00 00 96 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:00]Read from MH i2c: E2 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: E2 FD 00 17 01 00 B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 F6 [00:36:00]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:36:01]wFMCommunicate OK [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 17 00 00 [00:36:01]Write to MH i2c: E2 08 00 18 01 80 17 00 00 00 00 00 00 99 [00:36:01]Write i2c OK [00:36:01]MH_I2C_Read... [00:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:01]Read from MH i2c: E2 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 18 01 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 0B [00:36:01]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:36:01]wFMCommunicate OK [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 17 00 00 [00:36:01]Write to MH i2c: E2 08 00 19 01 80 17 00 00 00 00 00 00 9A [00:36:01]Write i2c OK [00:36:01]MH_I2C_Read... [00:36:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:01]Read from MH i2c: E2 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 [00:36:01]MH_I2C_Read... [00:36:01]Read from MH i2c: E2 FD 00 19 01 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [00:36:01]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:36:01]wFMCommunicate OK [00:36:01]wFMCommunicate request_size=4 [00:36:01]MH_SAM_APDU [00:36:01]CAPDU: 80 17 00 00 [00:36:02]Write to MH i2c: E2 08 00 1A 01 80 17 00 00 00 00 00 00 9B [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 FD 00 1A 01 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [00:36:02]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:36:02]wFMCommunicate OK [00:36:02]wFMCommunicate request_size=4 [00:36:02]MH_SAM_APDU [00:36:02]CAPDU: 80 17 00 00 [00:36:02]Write to MH i2c: E2 08 00 1B 01 80 17 00 00 00 00 00 00 9C [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 D6 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 D6 00 1B 01 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [00:36:02]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:02]wFMCommunicate OK [00:36:02]SAM_PROTO_GetShiftData done [00:36:02]1194 (1205) - счетчики итогов смены [00:36:02] 1134 (4) - 210 - количество чеков со всеми признаками расчетов [00:36:02] 1129 (156) - счетчики операций «приход» [00:36:02] 1135 (4) - 207 - количество чеков по признаку расчетов [00:36:02] 1201 (3) - 104437.80 - общая итоговая сумма в чеках [00:36:02] 1136 (3) - 58697.00 - итоговая сумма в чеках наличными [00:36:02] 1138 (3) - 45740.80 - итоговая сумма в чеках безналичными [00:36:02] 1024 (123) - суммы налогов [00:36:02] 1006 (9) - суммы НДС [00:36:02] 1010 (1) - 0% - код ставки НДС [00:36:02] 1011 (0) - 0.00 - сумма НДС по ставке [00:36:02] 1006 (12) - суммы НДС [00:36:02] 1010 (1) - 12% - код ставки НДС [00:36:02] 1011 (3) - 11093.97 - сумма НДС по ставке [00:36:02] 1007 (9) - суммы НСП [00:36:02] 1014 (1) - 0% - код ставки НСП [00:36:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:02] 1007 (12) - суммы НСП [00:36:02] 1014 (1) - 1% - код ставки НСП [00:36:02] 1015 (3) - 924.55 - сумма НСП по ставке [00:36:02] 1007 (9) - суммы НСП [00:36:02] 1014 (1) - 2% - код ставки НСП [00:36:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:02] 1007 (9) - суммы НСП [00:36:02] 1014 (1) - 3% - код ставки НСП [00:36:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:02] 1007 (9) - суммы НСП [00:36:02] 1014 (1) - 5% - код ставки НСП [00:36:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:02] 1007 (9) - суммы НСП [00:36:02] 1014 (1) - 0,50% - код ставки НСП [00:36:02] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:02] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 1,50% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1130 (151) - счетчики операций «возврат прихода» [00:36:03] 1135 (4) - 3 - количество чеков по признаку расчетов [00:36:03] 1201 (3) - 4524.00 - общая итоговая сумма в чеках [00:36:03] 1136 (3) - 4524.00 - итоговая сумма в чеках наличными [00:36:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:36:03] 1024 (121) - суммы налогов [00:36:03] 1006 (9) - суммы НДС [00:36:03] 1010 (1) - 0% - код ставки НДС [00:36:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:36:03] 1006 (11) - суммы НДС [00:36:03] 1010 (1) - 12% - код ставки НДС [00:36:03] 1011 (2) - 480.51 - сумма НДС по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 0% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (11) - суммы НСП [00:36:03] 1014 (1) - 1% - код ставки НСП [00:36:03] 1015 (2) - 40.04 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 2% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 3% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 5% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 0,50% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 1,50% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1131 (141) - счетчики операций «расход» [00:36:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:36:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:36:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:36:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:36:03] 1024 (117) - суммы налогов [00:36:03] 1006 (9) - суммы НДС [00:36:03] 1010 (1) - 0% - код ставки НДС [00:36:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:36:03] 1006 (9) - суммы НДС [00:36:03] 1010 (1) - 12% - код ставки НДС [00:36:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 0% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 1% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 2% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 3% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 5% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 0,50% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 1,50% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1132 (141) - счетчики операций «возврат расхода» [00:36:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:36:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:36:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:36:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:36:03] 1024 (117) - суммы налогов [00:36:03] 1006 (9) - суммы НДС [00:36:03] 1010 (1) - 0% - код ставки НДС [00:36:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:36:03] 1006 (9) - суммы НДС [00:36:03] 1010 (1) - 12% - код ставки НДС [00:36:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 0% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 1% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 2% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 3% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 5% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 0,50% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1007 (9) - суммы НСП [00:36:03] 1014 (1) - 1,50% - код ставки НСП [00:36:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:36:03] 1133 (588) - - счетчики коррекции - не используются [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1194 (04AA) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1134 (046E) [00:36:03]Malloc new data [00:36:03]Processing tag 1129 (0469) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1135 (046F) [00:36:03]Malloc new data [00:36:03]Processing tag 1201 (04B1) [00:36:03]Malloc new data [00:36:03]Processing tag 1136 (0470) [00:36:03]Malloc new data [00:36:03]Processing tag 1138 (0472) [00:36:03]Malloc new data [00:36:03]Processing tag 1024 (0400) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1006 (03EE) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1010 (03F2) [00:36:03]Malloc new data [00:36:03]Processing tag 1011 (03F3) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1006 (03EE) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1010 (03F2) [00:36:03]Malloc new data [00:36:03]Processing tag 1011 (03F3) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]SetTLVBufToDocument err=0 [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1130 (046A) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1135 (046F) [00:36:03]Malloc new data [00:36:03]Processing tag 1201 (04B1) [00:36:03]Malloc new data [00:36:03]Processing tag 1136 (0470) [00:36:03]Malloc new data [00:36:03]Processing tag 1138 (0472) [00:36:03]Malloc new data [00:36:03]Processing tag 1024 (0400) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1006 (03EE) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1010 (03F2) [00:36:03]Malloc new data [00:36:03]Processing tag 1011 (03F3) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1006 (03EE) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1010 (03F2) [00:36:03]Malloc new data [00:36:03]Processing tag 1011 (03F3) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]SetTLVBufToDocument err=0 [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1131 (046B) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1135 (046F) [00:36:03]Malloc new data [00:36:03]Processing tag 1201 (04B1) [00:36:03]Malloc new data [00:36:03]Processing tag 1136 (0470) [00:36:03]Malloc new data [00:36:03]Processing tag 1138 (0472) [00:36:03]Malloc new data [00:36:03]Processing tag 1024 (0400) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1006 (03EE) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1010 (03F2) [00:36:03]Malloc new data [00:36:03]Processing tag 1011 (03F3) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1006 (03EE) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1010 (03F2) [00:36:03]Malloc new data [00:36:03]Processing tag 1011 (03F3) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1007 (03EF) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:03]Processing tag 1014 (03F6) [00:36:03]Malloc new data [00:36:03]Processing tag 1015 (03F7) [00:36:03]Malloc new data [00:36:03]SetTLVBufToDocument err=0 [00:36:03]SetTLVBufToDocument err=0 [00:36:03]SetTLVBufToDocument err=0 [00:36:03]Processing tag 1132 (046C) [00:36:03]Load OK [00:36:03]SetTLVBufToDocument [00:36:04]Processing tag 1135 (046F) [00:36:04]Malloc new data [00:36:04]Processing tag 1201 (04B1) [00:36:04]Malloc new data [00:36:04]Processing tag 1136 (0470) [00:36:04]Malloc new data [00:36:04]Processing tag 1138 (0472) [00:36:04]Malloc new data [00:36:04]Processing tag 1024 (0400) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1006 (03EE) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1010 (03F2) [00:36:04]Malloc new data [00:36:04]Processing tag 1011 (03F3) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1006 (03EE) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1010 (03F2) [00:36:04]Malloc new data [00:36:04]Processing tag 1011 (03F3) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1007 (03EF) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1014 (03F6) [00:36:04]Malloc new data [00:36:04]Processing tag 1015 (03F7) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1007 (03EF) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1014 (03F6) [00:36:04]Malloc new data [00:36:04]Processing tag 1015 (03F7) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1007 (03EF) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1014 (03F6) [00:36:04]Malloc new data [00:36:04]Processing tag 1015 (03F7) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1007 (03EF) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1014 (03F6) [00:36:04]Malloc new data [00:36:04]Processing tag 1015 (03F7) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1007 (03EF) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1014 (03F6) [00:36:04]Malloc new data [00:36:04]Processing tag 1015 (03F7) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1007 (03EF) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1014 (03F6) [00:36:04]Malloc new data [00:36:04]Processing tag 1015 (03F7) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1007 (03EF) [00:36:04]Load OK [00:36:04]SetTLVBufToDocument [00:36:04]Processing tag 1014 (03F6) [00:36:04]Malloc new data [00:36:04]Processing tag 1015 (03F7) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]SetTLVBufToDocument err=0 [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Processing tag 1133 (046D) [00:36:04]Malloc new data [00:36:04]SetTLVBufToDocument err=0 [00:36:04]SetTLVBufToDocument err=0 [00:36:04]Malloc new data [00:36:04]SAM_PROTO_GetFMData [00:36:04]wFMCommunicate request_size=4 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 13 03 00 [00:36:04]Write to MH i2c: E2 08 00 1C 01 80 13 03 00 00 00 00 00 9C [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:04]Read from MH i2c: E2 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 FD 00 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 FD 00 1C 01 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 B1 [00:36:04]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:36:04]wFMCommunicate OK [00:36:04]wFMCommunicate request_size=4 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 17 00 00 [00:36:04]Write to MH i2c: E2 08 00 1D 01 80 17 00 00 00 00 00 00 9E [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:04]OFD Sender: No OFD packet to send [00:36:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 FD 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 FD 00 1D 01 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [00:36:05]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:05]wFMCommunicate OK [00:36:05]wFMCommunicate request_size=4 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 17 00 00 [00:36:05]Write to MH i2c: E2 08 00 1E 01 80 17 00 00 00 00 00 00 9F [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 FD 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 FD 00 1E 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [00:36:05]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:05]wFMCommunicate OK [00:36:05]wFMCommunicate request_size=4 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 17 00 00 [00:36:05]Write to MH i2c: E2 08 00 1F 01 80 17 00 00 00 00 00 00 A0 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:06]Read from MH i2c: E2 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 FD 00 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 FD 00 1F 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [00:36:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:06]wFMCommunicate OK [00:36:06]wFMCommunicate request_size=4 [00:36:06]MH_SAM_APDU [00:36:06]CAPDU: 80 17 00 00 [00:36:06]Write to MH i2c: E2 08 00 20 01 80 17 00 00 00 00 00 00 A1 [00:36:06]Write i2c OK [00:36:06]MH_I2C_Read... [00:36:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:36:06]Read from MH i2c: E2 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 E4 00 [00:36:06]MH_I2C_Read... [00:36:06]Read from MH i2c: E2 E4 00 20 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [00:36:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:06]wFMCommunicate OK [00:36:06]SAM_PROTO_GetFMData done [00:36:06]FM_GetFMData:85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:36:07]oper:6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 [00:36:07]total:9F C4 FB 7B 01 [00:36:07]Malloc new data [00:36:07]oper:6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:36:07]total:A0 7C 16 13 [00:36:07]Malloc new data [00:36:07]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:36:07]total: [00:36:07]Malloc new data [00:36:07]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:36:07]total: [00:36:07]Malloc new data [00:36:07]KKMPrepareXReportFMData err=0 [00:36:07]Х отчет ИНН: 02508201610067 Кассир: Мамажанов А. 19.10.2024 00:36 Смена: 522 РНМ: 0000000000091680 ЗНМ: 0300000086 СНО: Общий режим Всего чеков: 210 ИТОГИ ПРИХОД Чеков: 207 Общий итог: 104437.80 Итого наличными: 58697.00 Итого безнал.: 45740.80 НДС 0% : 0.00 НДС 12% : 11093.97 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 924.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 4524.00 Итого наличными: 4524.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 480.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 40.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.00 Сумма выплат: 0.00 Нал. в кассе: 54173.00 НС Приход: 63750647.35 НС Возвр.Прихода: 3202408.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871843 [00:36:07]StoreToDocumentArchive [00:36:07]MH_GetDate [00:36:07]Write to MH i2c: F0 00 00 21 01 11 [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: F0 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: F0 09 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: F0 09 00 21 01 00 F8 FE 12 67 F1 C7 6B 64 10 [00:36:07]shift 522 fd 1729298168 [00:36:07]Create dir for shift 0522 [00:36:07]save to /storage/0522/doc_1729298168 [00:36:07]save last doc name /storage/0522/doc_1729298168 to /storage/kkm_last_doc_name [00:36:07]save OK [00:36:07]Clear old archive folders... [00:36:07]NVStorageSaveData kkm_last_timestamp [00:36:07]File name is /storage/kkm_last_timestamp [00:36:07]Write 4 bytes [00:36:07]NVStorageSaveData done [00:36:07]ExternCall_PrintAddStr [00:36:07]wPrintStart [00:36:07]Write to MH i2c: 01 00 00 22 01 23 [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: 01 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: 01 07 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 FF 0F 38 [00:36:08]RasterBufferAndPrint [00:36:08]line Х отчет [00:36:08]line ИНН: 02508201610067 [00:36:08]line Кассир: Мамажанов А. [00:36:08]line 19.10.2024 00:36 [00:36:08]line Смена: 522 [00:36:08]line РНМ: 0000000000091680 [00:36:08]line ЗНМ: 0300000086 [00:36:08]line СНО: Общий режим [00:36:08]line Всего чеков: 210 [00:36:08]line ИТОГИ ПРИХОД [00:36:08]line Чеков: 207 [00:36:08]line Общий итог: 104437.80 [00:36:08]line Итого наличными: 58697.00 [00:36:08]line Итого безнал.: 45740.80 [00:36:08]line НДС 0% : 0.00 [00:36:08]line НДС 12% : 11093.97 [00:36:08]line НСП 0% : 0.00 [00:36:08]line НСП 1,50% : 0.00 [00:36:08]line НСП 0,50% : 0.00 [00:36:08]line НСП 5% : 0.00 [00:36:08]line НСП 3% : 0.00 [00:36:08]line НСП 2% : 0.00 [00:36:08]line НСП 1% : 924.55 [00:36:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:36:08]line Чеков: 3 [00:36:08]line Общий итог: 4524.00 [00:36:08]line Итого наличными: 4524.00 [00:36:08]line Итого безнал.: 0.00 [00:36:08]line НДС 0% : 0.00 [00:36:08]line НДС 12% : 480.51 [00:36:08]line НСП 0% : 0.00 [00:36:08]line НСП 1,50% : 0.00 [00:36:08]line НСП 0,50% : 0.00 [00:36:08]line НСП 5% : 0.00 [00:36:08]line НСП 3% : 0.00 [00:36:08]line НСП 2% : 0.00 [00:36:08]line НСП 1% : 40.04 [00:36:08]line ИТОГИ РАСХОД [00:36:08]line Чеков: 0 [00:36:08]line Общий итог: 0.00 [00:36:08]line Итого наличными: 0.00 [00:36:08]line Итого безнал.: 0.00 [00:36:08]line НДС 0% : 0.00 [00:36:08]line НДС 12% : 0.00 [00:36:08]line НСП 0% : 0.00 [00:36:08]line НСП 1,50% : 0.00 [00:36:08]line НСП 0,50% : 0.00 [00:36:08]line НСП 5% : 0.00 [00:36:08]line НСП 3% : 0.00 [00:36:08]line НСП 2% : 0.00 [00:36:08]line НСП 1% : 0.00 [00:36:08]line ИТОГИ ВОЗВРАТ РАСХОДА [00:36:08]line Чеков: 0 [00:36:08]line Общий итог: 0.00 [00:36:08]line Итого наличными: 0.00 [00:36:08]line Итого безнал.: 0.00 [00:36:08]line НДС 0% : 0.00 [00:36:08]line НДС 12% : 0.00 [00:36:08]line НСП 0% : 0.00 [00:36:08]line НСП 1,50% : 0.00 [00:36:08]line НСП 0,50% : 0.00 [00:36:08]line НСП 5% : 0.00 [00:36:08]line НСП 3% : 0.00 [00:36:08]line НСП 2% : 0.00 [00:36:08]line НСП 1% : 0.00 [00:36:08]line Сумма внесений: 0.00 [00:36:08]line Сумма выплат: 0.00 [00:36:08]line Нал. в кассе: 54173.00 [00:36:08]line НС Приход: 63750647.35 [00:36:08]line НС Возвр.Прихода: 3202408.00 [00:36:08]line НС Расход: 0.00 [00:36:08]line НС Возвр.Расхода: 0.00 [00:36:08]line ФМ: 0000000000871843 [00:36:08]written 0, free lines is 4095 [00:36:08]Write to MH i2c: 01 00 00 6D 01 6E [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: 01 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: 01 07 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 9A 0A 19 [00:36:08]RasterBufferAndPrint [00:36:08]line [00:36:08]line [00:36:08]line [00:36:08]line [00:36:08]line [00:36:08]written 0, free lines is 2748 [00:36:08]MH_Cut [00:36:08]Write to MH i2c: D1 01 00 74 01 01 47 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: D1 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: D1 01 00 [00:36:08]MH_I2C_Read... [00:36:08]Read from MH i2c: D1 01 00 74 01 00 46 [00:36:08]Write to MH i2c: 01 00 00 75 01 76 [00:36:08]Write i2c OK [00:36:08]MH_I2C_Read... [00:36:09]recv_with_timeout no data received [00:36:09]*** Cut start [00:36:09]*** Partial cut [00:36:09]*** CUTSNS_PIN = 1 [00:36:09]*** CUTSNS_PIN = 0 [00:36:09]OFD Sender: No OFD packet to send [00:36:10]*** Brake cut motor [00:36:10]Read from MH i2c: 01 [00:36:10]MH_I2C_Read... [00:36:10]*** Stop cut motor [00:36:10]*** Cut end [00:36:10]Read from MH i2c: 01 07 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 FF 0F 8B [00:36:10]process_action x_report done [00:36:10]requested_data is exist [00:36:10]produce_requested_data [00:36:10]requested_item fd.num is exist - process it [00:36:10]SAM_PROTO_GetFieldsCounters [00:36:10]wFMCommunicate request_size=4 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 13 00 00 [00:36:10]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 62 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 62 00 76 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [00:36:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:10]wFMCommunicate OK [00:36:10]SAM_PROTO_GetFieldsCounters done [00:36:10]requested_item shift.num is exist - process it [00:36:10]requested_item shift.opened is exist - process it [00:36:10]req_shift_opened [00:36:10]FM_GetShiftState [00:36:10]SAM_PROTO_GetShiftState [00:36:10]wFMCommunicate request_size=4 [00:36:10]MH_SAM_APDU [00:36:10]CAPDU: 80 13 01 00 [00:36:10]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [00:36:10]Write i2c OK [00:36:10]MH_I2C_Read... [00:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:10]Read from MH i2c: E2 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 0E 00 [00:36:10]MH_I2C_Read... [00:36:10]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 C7 [00:36:10]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:36:10]wFMCommunicate OK [00:36:10]SAM_PROTO_GetShiftState done [00:36:10]FM_GetShiftState done [00:36:10]req_shift_opened done [00:36:10]requested_item shift.open_date is exist - process it [00:36:10]req_shift_open_date [00:36:10]req_shift_open_date done [00:36:10]produce_requested_data done [00:36:10]produce_requested_data return {"fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:36:10]process_action_free x_report [00:36:10]json_value_free [00:36:10]json_value_free done [00:36:10]process_json_proto returns [00:36:10]Send response to host [00:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:36:10]free response buf [00:36:10]execute_script done [00:36:10]execute_script returns [00:36:10]free content buf [00:36:10]Sock 7.Close socket [00:36:10]Sock 7.Thread stoped [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:29]recv_with_timeout no data received [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:39]recv_with_timeout no data received [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:50]recv_with_timeout no data received [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:01]recv_with_timeout no data received [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:20]recv_with_timeout no data received [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:39]accept exits with 9 [00:37:39]New connection [00:37:39]New thread 3066559844 created [00:37:39]Thread 3066703204 joined [00:37:39]Waiting for new connection... [00:37:39] Sock 9.Parse request [00:37:39]Sock 9.Check first char [00:37:39]Sock 9.First char is OK [00:37:39]request: POST /json_proto HTTP/1.0 [00:37:39]Method: POST [00:37:39]URL: /json_proto [00:37:39]Method is POST - this is cgi request [00:37:39]url: /json_proto [00:37:39]query_string will be loaded in cgi processing [00:37:39]execute_cgi json_proto POST (null) [00:37:39]execute_cgi path=json_proto method=POST [00:37:39]POST find Content-Length [00:37:39]Host: 172.17.44.67:8080 [00:37:39]Content-Length: 215 [00:37:39]Content-Type: application/json [00:37:39] [00:37:39]POST finish read [00:37:39]Found Content-Length = 215 [00:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:39]execute_script... [00:37:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:39]POST & json_proto [00:37:39]process_json_proto [00:37:39]json parsed OK: [00:37:39]protocol is kg_v1.0 [00:37:39]action value=get_value [00:37:39]process_action get_value [00:37:39]cmd_get_value [00:37:39]process_action get_value done [00:37:39]requested_data is exist [00:37:39]produce_requested_data [00:37:39]requested_item kkm.sn is exist - process it [00:37:39]requested_item kkm.ver is exist - process it [00:37:39]requested_item fm.sn is exist - process it [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 11 00 00 [00:37:39]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 17 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 45 [00:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:37:39]wFMCommunicate OK [00:37:39]requested_item fd.num is exist - process it [00:37:39]SAM_PROTO_GetFieldsCounters [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 13 00 00 [00:37:39]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 62 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [00:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 45 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:39]wFMCommunicate OK [00:37:39]SAM_PROTO_GetFieldsCounters done [00:37:39]requested_item shift.num is exist - process it [00:37:39]requested_item shift.opened is exist - process it [00:37:39]req_shift_opened [00:37:39]FM_GetShiftState [00:37:39]SAM_PROTO_GetShiftState [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 13 01 00 [00:37:39]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:39]Read from MH i2c: E2 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 0E 00 [00:37:39]MH_I2C_Read... [00:37:39]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 CA [00:37:39]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:37:39]wFMCommunicate OK [00:37:39]SAM_PROTO_GetShiftState done [00:37:39]FM_GetShiftState done [00:37:39]req_shift_opened done [00:37:39]requested_item shift.open_date is exist - process it [00:37:39]req_shift_open_date [00:37:39]req_shift_open_date done [00:37:39]produce_requested_data done [00:37:39]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319} [00:37:39]process_action_free get_value [00:37:39]json_value_free [00:37:39]json_value_free done [00:37:39]process_json_proto returns [00:37:39]Send response to host [00:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82501,"shift.num":526,"shift.opened":1,"shift.open_date":1729212319}}} [00:37:39]free response buf [00:37:39]execute_script done [00:37:39]execute_script returns [00:37:39]free content buf [00:37:39]Sock 9.Close socket [00:37:39]Sock 9.Thread stoped [00:37:39]accept exits with 10 [00:37:39]New connection [00:37:39]New thread 3066703204 created [00:37:39]Thread 3066559844 joined [00:37:39]Waiting for new connection... [00:37:39] Sock 10.Parse request [00:37:39]Sock 10.Check first char [00:37:39]Sock 10.First char is OK [00:37:39]request: POST /json_proto HTTP/1.0 [00:37:39]Method: POST [00:37:39]URL: /json_proto [00:37:39]Method is POST - this is cgi request [00:37:39]url: /json_proto [00:37:39]query_string will be loaded in cgi processing [00:37:39]execute_cgi json_proto POST (null) [00:37:39]execute_cgi path=json_proto method=POST [00:37:39]POST find Content-Length [00:37:39]Host: 172.17.44.67:8080 [00:37:39]Content-Length: 331 [00:37:39]Content-Type: application/json [00:37:39] [00:37:39]POST finish read [00:37:39]Found Content-Length = 331 [00:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:37:39]execute_script... [00:37:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:37:39]POST & json_proto [00:37:39]process_json_proto [00:37:39]json parsed OK: [00:37:39]protocol is kg_v1.0 [00:37:39]action value=get_value [00:37:39]process_action get_value [00:37:39]cmd_get_value [00:37:39]process_action get_value done [00:37:39]requested_data is exist [00:37:39]produce_requested_data [00:37:39]requested_item fm.sale.total is exist - process it [00:37:39]SAM_PROTO_GetFMData [00:37:39]wFMCommunicate request_size=4 [00:37:39]MH_SAM_APDU [00:37:39]CAPDU: 80 13 03 00 [00:37:39]Write to MH i2c: E2 08 00 7B 01 80 13 03 00 00 00 00 00 FB [00:37:39]Write i2c OK [00:37:39]MH_I2C_Read... [00:37:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:40]Read from MH i2c: E2 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 7B 01 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 10 [00:37:40]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:37:40]wFMCommunicate OK [00:37:40]wFMCommunicate request_size=4 [00:37:40]MH_SAM_APDU [00:37:40]CAPDU: 80 17 00 00 [00:37:40]Write to MH i2c: E2 08 00 7C 01 80 17 00 00 00 00 00 00 FD [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]OFD Sender: No OFD packet to send [00:37:40]recv_with_timeout no data received [00:37:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:40]Read from MH i2c: E2 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 7C 01 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:37:40]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:40]wFMCommunicate OK [00:37:40]wFMCommunicate request_size=4 [00:37:40]MH_SAM_APDU [00:37:40]CAPDU: 80 17 00 00 [00:37:40]Write to MH i2c: E2 08 00 7D 01 80 17 00 00 00 00 00 00 FE [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:40]Read from MH i2c: E2 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 7D 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [00:37:40]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:40]wFMCommunicate OK [00:37:40]wFMCommunicate request_size=4 [00:37:40]MH_SAM_APDU [00:37:40]CAPDU: 80 17 00 00 [00:37:40]Write to MH i2c: E2 08 00 7E 01 80 17 00 00 00 00 00 00 FF [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:40]Read from MH i2c: E2 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 [00:37:40]MH_I2C_Read... [00:37:40]Read from MH i2c: E2 FD 00 7E 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [00:37:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:40]wFMCommunicate OK [00:37:40]wFMCommunicate request_size=4 [00:37:40]MH_SAM_APDU [00:37:40]CAPDU: 80 17 00 00 [00:37:40]Write to MH i2c: E2 08 00 7F 01 80 17 00 00 00 00 00 00 00 [00:37:40]Write i2c OK [00:37:40]MH_I2C_Read... [00:37:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:37:41]Read from MH i2c: E2 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 E4 00 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 E4 00 7F 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [00:37:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:41]wFMCommunicate OK [00:37:41]SAM_PROTO_GetFMData done [00:37:41]requested_item fm.sale_refund.total is exist - process it [00:37:41]requested_item fm.buy.total is exist - process it [00:37:41]requested_item shift.sale.total is exist - process it [00:37:41]SAM_PROTO_GetShiftData [00:37:41]wFMCommunicate request_size=4 [00:37:41]MH_SAM_APDU [00:37:41]CAPDU: 80 13 02 00 [00:37:41]Write to MH i2c: E2 08 00 80 01 80 13 02 00 00 00 00 00 FF [00:37:41]Write i2c OK [00:37:41]MH_I2C_Read... [00:37:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:41]Read from MH i2c: E2 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 FD 00 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 FD 00 80 01 00 B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 5F [00:37:41]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:37:41]wFMCommunicate OK [00:37:41]wFMCommunicate request_size=4 [00:37:41]MH_SAM_APDU [00:37:41]CAPDU: 80 17 00 00 [00:37:41]Write to MH i2c: E2 08 00 81 01 80 17 00 00 00 00 00 00 02 [00:37:41]Write i2c OK [00:37:41]MH_I2C_Read... [00:37:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:41]Read from MH i2c: E2 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 FD 00 [00:37:41]MH_I2C_Read... [00:37:41]Read from MH i2c: E2 FD 00 81 01 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 74 [00:37:41]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:37:41]wFMCommunicate OK [00:37:41]wFMCommunicate request_size=4 [00:37:41]MH_SAM_APDU [00:37:41]CAPDU: 80 17 00 00 [00:37:41]Write to MH i2c: E2 08 00 82 01 80 17 00 00 00 00 00 00 03 [00:37:41]Write i2c OK [00:37:41]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 82 01 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 2B [00:37:42]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:37:42]wFMCommunicate OK [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 17 00 00 [00:37:42]Write to MH i2c: E2 08 00 83 01 80 17 00 00 00 00 00 00 04 [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 FD 00 83 01 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 7C [00:37:42]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:37:42]wFMCommunicate OK [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 17 00 00 [00:37:42]Write to MH i2c: E2 08 00 84 01 80 17 00 00 00 00 00 00 05 [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:37:42]Read from MH i2c: E2 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 D6 00 [00:37:42]MH_I2C_Read... [00:37:42]Read from MH i2c: E2 D6 00 84 01 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E7 [00:37:42]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:42]wFMCommunicate OK [00:37:42]SAM_PROTO_GetShiftData done [00:37:42]requested_item shift.sale.total_cash is exist - process it [00:37:42]requested_item shift.sale_refund.total is exist - process it [00:37:42]requested_item shift.sale_refund.total_cash is exist - process it [00:37:42]requested_item shift.buy.total is exist - process it [00:37:42]requested_item shift.buy.total_cash is exist - process it [00:37:42]produce_requested_data done [00:37:42]produce_requested_data return {"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:37:42]process_action_free get_value [00:37:42]json_value_free [00:37:42]json_value_free done [00:37:42]process_json_proto returns [00:37:42]Send response to host [00:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:37:42]free response buf [00:37:42]execute_script done [00:37:42]execute_script returns [00:37:42]free content buf [00:37:42]Sock 10.Close socket [00:37:42]Sock 10.Thread stoped [00:37:42]accept exits with 9 [00:37:42]New connection [00:37:42]New thread 3066559844 created [00:37:42]Thread 3066703204 joined [00:37:42]Waiting for new connection... [00:37:42] Sock 9.Parse request [00:37:42]Sock 9.Check first char [00:37:42]Sock 9.First char is OK [00:37:42]request: POST /json_proto HTTP/1.0 [00:37:42]Method: POST [00:37:42]URL: /json_proto [00:37:42]Method is POST - this is cgi request [00:37:42]url: /json_proto [00:37:42]query_string will be loaded in cgi processing [00:37:42]execute_cgi json_proto POST (null) [00:37:42]execute_cgi path=json_proto method=POST [00:37:42]POST find Content-Length [00:37:42]Host: 172.17.44.67:8080 [00:37:42]Content-Length: 331 [00:37:42]Content-Type: application/json [00:37:42] [00:37:42]POST finish read [00:37:42]Found Content-Length = 331 [00:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:37:42]execute_script... [00:37:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:37:42]POST & json_proto [00:37:42]process_json_proto [00:37:42]json parsed OK: [00:37:42]protocol is kg_v1.0 [00:37:42]action value=get_value [00:37:42]process_action get_value [00:37:42]cmd_get_value [00:37:42]process_action get_value done [00:37:42]requested_data is exist [00:37:42]produce_requested_data [00:37:42]requested_item fm.sale.total is exist - process it [00:37:42]SAM_PROTO_GetFMData [00:37:42]wFMCommunicate request_size=4 [00:37:42]MH_SAM_APDU [00:37:42]CAPDU: 80 13 03 00 [00:37:42]Write to MH i2c: E2 08 00 85 01 80 13 03 00 00 00 00 00 05 [00:37:42]Write i2c OK [00:37:42]MH_I2C_Read... [00:37:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:43]Read from MH i2c: E2 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 FD 00 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 FD 00 85 01 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 1A [00:37:43]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:37:43]wFMCommunicate OK [00:37:43]wFMCommunicate request_size=4 [00:37:43]MH_SAM_APDU [00:37:43]CAPDU: 80 17 00 00 [00:37:43]Write to MH i2c: E2 08 00 86 01 80 17 00 00 00 00 00 00 07 [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:43]Read from MH i2c: E2 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 FD 00 [00:37:43]MH_I2C_Read... [00:37:43]Read from MH i2c: E2 FD 00 86 01 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [00:37:43]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:43]wFMCommunicate OK [00:37:43]wFMCommunicate request_size=4 [00:37:43]MH_SAM_APDU [00:37:43]CAPDU: 80 17 00 00 [00:37:43]Write to MH i2c: E2 08 00 87 01 80 17 00 00 00 00 00 00 08 [00:37:43]Write i2c OK [00:37:43]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 87 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [00:37:44]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:44]wFMCommunicate OK [00:37:44]wFMCommunicate request_size=4 [00:37:44]MH_SAM_APDU [00:37:44]CAPDU: 80 17 00 00 [00:37:44]Write to MH i2c: E2 08 00 88 01 80 17 00 00 00 00 00 00 09 [00:37:44]Write i2c OK [00:37:44]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 FD 00 88 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [00:37:44]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:44]wFMCommunicate OK [00:37:44]wFMCommunicate request_size=4 [00:37:44]MH_SAM_APDU [00:37:44]CAPDU: 80 17 00 00 [00:37:44]Write to MH i2c: E2 08 00 89 01 80 17 00 00 00 00 00 00 0A [00:37:44]Write i2c OK [00:37:44]MH_I2C_Read... [00:37:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:37:44]Read from MH i2c: E2 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 E4 00 [00:37:44]MH_I2C_Read... [00:37:44]Read from MH i2c: E2 E4 00 89 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EA [00:37:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:45]wFMCommunicate OK [00:37:45]SAM_PROTO_GetFMData done [00:37:45]requested_item fm.sale_refund.total is exist - process it [00:37:45]requested_item fm.buy.total is exist - process it [00:37:45]requested_item shift.sale.total is exist - process it [00:37:45]SAM_PROTO_GetShiftData [00:37:45]wFMCommunicate request_size=4 [00:37:45]MH_SAM_APDU [00:37:45]CAPDU: 80 13 02 00 [00:37:45]Write to MH i2c: E2 08 00 8A 01 80 13 02 00 00 00 00 00 09 [00:37:45]Write i2c OK [00:37:45]MH_I2C_Read... [00:37:45]OFD Sender: No OFD packet to send [00:37:45]Read from MH i2c: E2 [00:37:45]MH_I2C_Read... [00:37:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:45]Read from MH i2c: E2 FD 00 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: E2 FD 00 8A 01 00 B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 69 [00:37:45]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:37:45]wFMCommunicate OK [00:37:45]wFMCommunicate request_size=4 [00:37:45]MH_SAM_APDU [00:37:45]CAPDU: 80 17 00 00 [00:37:45]Write to MH i2c: E2 08 00 8B 01 80 17 00 00 00 00 00 00 0C [00:37:45]Write i2c OK [00:37:45]MH_I2C_Read... [00:37:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:45]Read from MH i2c: E2 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: E2 FD 00 [00:37:45]MH_I2C_Read... [00:37:45]Read from MH i2c: E2 FD 00 8B 01 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 7E [00:37:46]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:37:46]wFMCommunicate OK [00:37:46]wFMCommunicate request_size=4 [00:37:46]MH_SAM_APDU [00:37:46]CAPDU: 80 17 00 00 [00:37:46]Write to MH i2c: E2 08 00 8C 01 80 17 00 00 00 00 00 00 0D [00:37:46]Write i2c OK [00:37:46]MH_I2C_Read... [00:37:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:46]Read from MH i2c: E2 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 FD 00 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 FD 00 8C 01 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 35 [00:37:46]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:37:46]wFMCommunicate OK [00:37:46]wFMCommunicate request_size=4 [00:37:46]MH_SAM_APDU [00:37:46]CAPDU: 80 17 00 00 [00:37:46]Write to MH i2c: E2 08 00 8D 01 80 17 00 00 00 00 00 00 0E [00:37:46]Write i2c OK [00:37:46]MH_I2C_Read... [00:37:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:46]Read from MH i2c: E2 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 FD 00 [00:37:46]MH_I2C_Read... [00:37:46]Read from MH i2c: E2 FD 00 8D 01 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 86 [00:37:46]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:37:46]wFMCommunicate OK [00:37:46]wFMCommunicate request_size=4 [00:37:46]MH_SAM_APDU [00:37:46]CAPDU: 80 17 00 00 [00:37:46]Write to MH i2c: E2 08 00 8E 01 80 17 00 00 00 00 00 00 0F [00:37:46]Write i2c OK [00:37:46]MH_I2C_Read... [00:37:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:37:47]Read from MH i2c: E2 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 D6 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 D6 00 8E 01 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F1 [00:37:47]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:47]wFMCommunicate OK [00:37:47]SAM_PROTO_GetShiftData done [00:37:47]requested_item shift.sale.total_cash is exist - process it [00:37:47]requested_item shift.sale_refund.total is exist - process it [00:37:47]requested_item shift.sale_refund.total_cash is exist - process it [00:37:47]requested_item shift.buy.total is exist - process it [00:37:47]requested_item shift.buy.total_cash is exist - process it [00:37:47]produce_requested_data done [00:37:47]produce_requested_data return {"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:37:47]process_action_free get_value [00:37:47]json_value_free [00:37:47]json_value_free done [00:37:47]process_json_proto returns [00:37:47]Send response to host [00:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:37:47]free response buf [00:37:47]execute_script done [00:37:47]execute_script returns [00:37:47]free content buf [00:37:47]Sock 9.Close socket [00:37:47]Sock 9.Thread stoped [00:37:47]accept exits with 7 [00:37:47]New connection [00:37:47]New thread 3066703204 created [00:37:47]Thread 3066559844 joined [00:37:47]Waiting for new connection... [00:37:47] Sock 7.Parse request [00:37:47]Sock 7.Check first char [00:37:47]Sock 7.First char is OK [00:37:47]request: POST /json_proto HTTP/1.0 [00:37:47]Method: POST [00:37:47]URL: /json_proto [00:37:47]Method is POST - this is cgi request [00:37:47]url: /json_proto [00:37:47]query_string will be loaded in cgi processing [00:37:47]execute_cgi json_proto POST (null) [00:37:47]execute_cgi path=json_proto method=POST [00:37:47]POST find Content-Length [00:37:47]Host: 172.17.44.67:8080 [00:37:47]Content-Length: 266 [00:37:47]Content-Type: application/json [00:37:47] [00:37:47]POST finish read [00:37:47]Found Content-Length = 266 [00:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0436\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:47]execute_script... [00:37:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043C\u0430\u0436\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:47]POST & json_proto [00:37:47]process_json_proto [00:37:47]json parsed OK: [00:37:47]protocol is kg_v1.0 [00:37:47]action value=close_shift [00:37:47]process_action close_shift [00:37:47]cmd_close_shift [00:37:47]MH_GetDate [00:37:47]Write to MH i2c: F0 00 00 8F 01 7F [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: F0 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: F0 09 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: F0 09 00 8F 01 00 5B FF 12 67 F1 C7 6B 64 E2 [00:37:47]GetLastDocTimeStamp 1729298160 [00:37:47]current date 1729298267 [00:37:47]FM_GetShiftState [00:37:47]SAM_PROTO_GetShiftState [00:37:47]wFMCommunicate request_size=4 [00:37:47]MH_SAM_APDU [00:37:47]CAPDU: 80 13 01 00 [00:37:47]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:47]E2 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 0E 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 9F AF 11 67 00 00 00 00 90 00 E0 [00:37:47]RAPDU: 09 00 01 9F AF 11 67 00 00 00 00 90 00 [00:37:47]wFMCommunicate OK [00:37:47]SAM_PROTO_GetShiftState done [00:37:47]FM_GetShiftState done [00:37:47]KKMCreateCloseShiftDocument [00:37:47]Load OK [00:37:47]Malloc new data [00:37:47]MH_GetDate [00:37:47]Write to MH i2c: F0 00 00 91 01 81 [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: F0 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: F0 09 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: F0 09 00 91 01 00 5B FF 12 67 F1 C7 6B 64 E4 [00:37:47]Malloc new data [00:37:47]Malloc new data [00:37:47]Malloc new data [00:37:47]Malloc new data [00:37:47]KKMCreateCloseShiftDocument OK [00:37:47]KKMSetCloseShiftData OK [00:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:37:47]tlvbuf is 01CA5CD0 [00:37:47]KKMLoadAndSignCloseShiftData [00:37:47]SAM_PROTO_ProcessDocument [00:37:47]wFMCommunicate request_size=9 [00:37:47]MH_SAM_APDU [00:37:47]CAPDU: 80 15 01 00 04 05 00 49 00 [00:37:47]Write to MH i2c: E2 0C 00 92 01 80 15 01 00 04 00 05 00 49 00 00 00 68 [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:37:47]Read from MH i2c: E2 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [00:37:47]RAPDU: 90 00 [00:37:47]wFMCommunicate OK [00:37:47]wFMCommunicate request_size=23 [00:37:47]MH_SAM_APDU [00:37:47]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:37:47]Write to MH i2c: E2 1A 00 93 01 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 09 [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:47]Read from MH i2c: E2 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [00:37:47]RAPDU: 90 00 [00:37:47]wFMCommunicate OK [00:37:47]wFMCommunicate request_size=32 [00:37:47]MH_SAM_APDU [00:37:47]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 [00:37:47]Write to MH i2c: E2 23 00 94 01 80 15 02 00 1B 00 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 00 00 CB [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:47]Read from MH i2c: E2 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [00:37:47]RAPDU: 90 00 [00:37:47]wFMCommunicate OK [00:37:47]wFMCommunicate request_size=13 [00:37:47]MH_SAM_APDU [00:37:47]CAPDU: 80 15 02 00 08 F4 03 04 00 5B FF 12 67 [00:37:47]Write to MH i2c: E2 10 00 95 01 80 15 02 00 08 00 F4 03 04 00 5B FF 12 67 00 00 F4 [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:47]Read from MH i2c: E2 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [00:37:47]RAPDU: 90 00 [00:37:47]wFMCommunicate OK [00:37:47]wFMCommunicate request_size=25 [00:37:47]MH_SAM_APDU [00:37:47]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [00:37:47]Write to MH i2c: E2 1C 00 96 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 78 [00:37:47]Write i2c OK [00:37:47]MH_I2C_Read... [00:37:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:47]Read from MH i2c: E2 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 [00:37:47]MH_I2C_Read... [00:37:47]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [00:37:47]RAPDU: 90 00 [00:37:47]wFMCommunicate OK [00:37:47]wFMCommunicate request_size=4 [00:37:47]MH_SAM_APDU [00:37:47]CAPDU: 80 15 03 00 [00:37:47]Write to MH i2c: E2 08 00 97 01 80 15 03 00 00 00 00 00 19 [00:37:48]Write i2c OK [00:37:48]MH_I2C_Read... [00:37:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:37:48]Read from MH i2c: E2 [00:37:48]MH_I2C_Read... [00:37:48]Read from MH i2c: E2 FD 00 [00:37:48]MH_I2C_Read... [00:37:48]Read from MH i2c: E2 FD 00 97 01 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 42 01 00 0E 04 04 00 0E 02 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 90 00 4A [00:37:48]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 42 01 00 0E 04 04 00 0E 02 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 90 00 [00:37:48]wFMCommunicate OK [00:37:48]SAM_PROTO_ProcessDocument answer len = 1276 [00:37:48]SAM_PROTO_ProcessDocument remain to read = 1028 [00:37:48]wFMCommunicate request_size=4 [00:37:48]MH_SAM_APDU [00:37:48]CAPDU: 80 17 00 00 [00:37:48]Write to MH i2c: E2 08 00 98 01 80 17 00 00 00 00 00 00 19 [00:37:48]Write i2c OK [00:37:48]MH_I2C_Read... [00:37:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:48]Read from MH i2c: E2 [00:37:48]MH_I2C_Read... [00:37:48]Read from MH i2c: E2 FD 00 [00:37:48]MH_I2C_Read... [00:37:48]Read from MH i2c: E2 FD 00 98 01 00 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB 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 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 31 [00:37:49]RAPDU: 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB 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 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:37:49]wFMCommunicate OK [00:37:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:37:49]SAM_PROTO_ProcessDocument remain to read = 778 [00:37:49]wFMCommunicate request_size=4 [00:37:49]MH_SAM_APDU [00:37:49]CAPDU: 80 17 00 00 [00:37:49]Write to MH i2c: E2 08 00 99 01 80 17 00 00 00 00 00 00 1A [00:37:49]Write i2c OK [00:37:49]MH_I2C_Read... [00:37:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:49]Read from MH i2c: E2 [00:37:49]MH_I2C_Read... [00:37:49]Read from MH i2c: E2 FD 00 [00:37:49]MH_I2C_Read... [00:37:49]Read from MH i2c: E2 FD 00 99 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 80 [00:37:49]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:37:49]wFMCommunicate OK [00:37:49]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:37:49]SAM_PROTO_ProcessDocument remain to read = 528 [00:37:49]wFMCommunicate request_size=4 [00:37:49]MH_SAM_APDU [00:37:49]CAPDU: 80 17 00 00 [00:37:49]Write to MH i2c: E2 08 00 9A 01 80 17 00 00 00 00 00 00 1B [00:37:49]Write i2c OK [00:37:49]MH_I2C_Read... [00:37:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:49]Read from MH i2c: E2 [00:37:49]MH_I2C_Read... [00:37:49]Read from MH i2c: E2 FD 00 [00:37:49]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 FD 00 9A 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 2E [00:37:50]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [00:37:50]wFMCommunicate OK [00:37:50]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:37:50]SAM_PROTO_ProcessDocument remain to read = 278 [00:37:50]wFMCommunicate request_size=4 [00:37:50]MH_SAM_APDU [00:37:50]CAPDU: 80 17 00 00 [00:37:50]Write to MH i2c: E2 08 00 9B 01 80 17 00 00 00 00 00 00 1C [00:37:50]Write i2c OK [00:37:50]MH_I2C_Read... [00:37:50]OFD Sender: No OFD packet to send [00:37:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:50]Read from MH i2c: E2 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 FD 00 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 FD 00 9B 01 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 56 [00:37:50]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 recv_with_timeout no data received [00:37:50]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:37:50]wFMCommunicate OK [00:37:50]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:37:50]SAM_PROTO_ProcessDocument remain to read = 28 [00:37:50]wFMCommunicate request_size=4 [00:37:50]MH_SAM_APDU [00:37:50]CAPDU: 80 17 00 00 [00:37:50]Write to MH i2c: E2 08 00 9C 01 80 17 00 00 00 00 00 00 1D [00:37:50]Write i2c OK [00:37:50]MH_I2C_Read... [00:37:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [00:37:50]Read from MH i2c: E2 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 1F 00 [00:37:50]MH_I2C_Read... [00:37:50]Read from MH i2c: E2 1F 00 9C 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 DD 3A B0 CE E7 D0 90 00 AC [00:37:50]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 DD 3A B0 CE E7 D0 90 00 [00:37:50]wFMCommunicate OK [00:37:50]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [00:37:50]SAM_PROTO_ProcessDocument done [00:37:50]1209 (1) - 1.0 - номер версии ФФД [00:37:50]1041 (16) - 0000000000871843 - номер ФМ [00:37:50]1040 (4) - 82502 - номер ФД [00:37:50]1038 (4) - 526 - номер смены [00:37:50]1118 (4) - 210 - количество кассовых чеков за смену [00:37:50]1111 (4) - 212 - общее количество ФД за смену [00:37:50]1194 (1205) - счетчики итогов смены [00:37:50] 1134 (4) - 210 - количество чеков со всеми признаками расчетов [00:37:50] 1129 (156) - счетчики операций «приход» [00:37:50] 1135 (4) - 207 - количество чеков по признаку расчетов [00:37:50] 1201 (3) - 104437.80 - общая итоговая сумма в чеках [00:37:50] 1136 (3) - 58697.00 - итоговая сумма в чеках наличными [00:37:51] 1138 (3) - 45740.80 - итоговая сумма в чеках безналичными [00:37:51] 1024 (123) - суммы налогов [00:37:51] 1006 (9) - суммы НДС [00:37:51] 1010 (1) - 0% - код ставки НДС [00:37:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:37:51] 1006 (12) - суммы НДС [00:37:51] 1010 (1) - 12% - код ставки НДС [00:37:51] 1011 (3) - 11093.97 - сумма НДС по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (12) - суммы НСП [00:37:51] 1014 (1) - 1% - код ставки НСП [00:37:51] 1015 (3) - 924.55 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 2% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 3% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 5% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 1,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1130 (151) - счетчики операций «возврат прихода» [00:37:51] 1135 (4) - 3 - количество чеков по признаку расчетов [00:37:51] 1201 (3) - 4524.00 - общая итоговая сумма в чеках [00:37:51] 1136 (3) - 4524.00 - итоговая сумма в чеках наличными [00:37:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:37:51] 1024 (121) - суммы налогов [00:37:51] 1006 (9) - суммы НДС [00:37:51] 1010 (1) - 0% - код ставки НДС [00:37:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:37:51] 1006 (11) - суммы НДС [00:37:51] 1010 (1) - 12% - код ставки НДС [00:37:51] 1011 (2) - 480.51 - сумма НДС по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (11) - суммы НСП [00:37:51] 1014 (1) - 1% - код ставки НСП [00:37:51] 1015 (2) - 40.04 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 2% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 3% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 5% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 1,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1131 (141) - счетчики операций «расход» [00:37:51] 1135 (4) - 0 - количество чеков по признаку расчетов [00:37:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:37:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:37:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:37:51] 1024 (117) - суммы налогов [00:37:51] 1006 (9) - суммы НДС [00:37:51] 1010 (1) - 0% - код ставки НДС [00:37:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:37:51] 1006 (9) - суммы НДС [00:37:51] 1010 (1) - 12% - код ставки НДС [00:37:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 1% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 2% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 3% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 5% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 1,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1132 (141) - счетчики операций «возврат расхода» [00:37:51] 1135 (4) - 0 - количество чеков по признаку расчетов [00:37:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:37:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:37:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:37:51] 1024 (117) - суммы налогов [00:37:51] 1006 (9) - суммы НДС [00:37:51] 1010 (1) - 0% - код ставки НДС [00:37:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:37:51] 1006 (9) - суммы НДС [00:37:51] 1010 (1) - 12% - код ставки НДС [00:37:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 1% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 2% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 3% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 5% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 0,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1007 (9) - суммы НСП [00:37:51] 1014 (1) - 1,50% - код ставки НСП [00:37:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:37:51] 1133 (588) - - счетчики коррекции - не используются [00:37:51]1077 (6) - 243244144191440 - ФПД [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1209 (04B9) [00:37:51]Malloc new data [00:37:51]Processing tag 1041 (0411) [00:37:51]Processing tag 1040 (0410) [00:37:51]Malloc new data [00:37:51]Processing tag 1038 (040E) [00:37:51]Malloc new data [00:37:51]Processing tag 1118 (045E) [00:37:51]Malloc new data [00:37:51]Processing tag 1111 (0457) [00:37:51]Malloc new data [00:37:51]Processing tag 1194 (04AA) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1134 (046E) [00:37:51]Malloc new data [00:37:51]Processing tag 1129 (0469) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1135 (046F) [00:37:51]Malloc new data [00:37:51]Processing tag 1201 (04B1) [00:37:51]Malloc new data [00:37:51]Processing tag 1136 (0470) [00:37:51]Malloc new data [00:37:51]Processing tag 1138 (0472) [00:37:51]Malloc new data [00:37:51]Processing tag 1024 (0400) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1130 (046A) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1135 (046F) [00:37:51]Malloc new data [00:37:51]Processing tag 1201 (04B1) [00:37:51]Malloc new data [00:37:51]Processing tag 1136 (0470) [00:37:51]Malloc new data [00:37:51]Processing tag 1138 (0472) [00:37:51]Malloc new data [00:37:51]Processing tag 1024 (0400) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1131 (046B) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1135 (046F) [00:37:51]Malloc new data [00:37:51]Processing tag 1201 (04B1) [00:37:51]Malloc new data [00:37:51]Processing tag 1136 (0470) [00:37:51]Malloc new data [00:37:51]Processing tag 1138 (0472) [00:37:51]Malloc new data [00:37:51]Processing tag 1024 (0400) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1132 (046C) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1135 (046F) [00:37:51]Malloc new data [00:37:51]Processing tag 1201 (04B1) [00:37:51]Malloc new data [00:37:51]Processing tag 1136 (0470) [00:37:51]Malloc new data [00:37:51]Processing tag 1138 (0472) [00:37:51]Malloc new data [00:37:51]Processing tag 1024 (0400) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1006 (03EE) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1010 (03F2) [00:37:51]Malloc new data [00:37:51]Processing tag 1011 (03F3) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1007 (03EF) [00:37:51]Load OK [00:37:51]SetTLVBufToDocument [00:37:51]Processing tag 1014 (03F6) [00:37:51]Malloc new data [00:37:51]Processing tag 1015 (03F7) [00:37:51]Malloc new data [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]SetTLVBufToDocument err=0 [00:37:51]Processing tag 1133 (046D) [00:37:52]Malloc new data [00:37:52]SetTLVBufToDocument err=0 [00:37:52]Processing tag 1077 (0435) [00:37:52]Malloc new data [00:37:52]SetTLVBufToDocument err=0 [00:37:52]Malloc new data [00:37:52]SAM_PROTO_GetFMData [00:37:52]wFMCommunicate request_size=4 [00:37:52]MH_SAM_APDU [00:37:52]CAPDU: 80 13 03 00 [00:37:52]Write to MH i2c: E2 08 00 9D 01 80 13 03 00 00 00 00 00 1D [00:37:52]Write i2c OK [00:37:52]MH_I2C_Read... [00:37:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:52]Read from MH i2c: E2 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 [00:37:52]MH_I2C_Read... [00:37:52]Read from MH i2c: E2 FD 00 9D 01 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 32 [00:37:52]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:37:53]wFMCommunicate OK [00:37:53]wFMCommunicate request_size=4 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 17 00 00 [00:37:53]Write to MH i2c: E2 08 00 9E 01 80 17 00 00 00 00 00 00 1F [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 FD 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 FD 00 9E 01 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [00:37:53]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:53]wFMCommunicate OK [00:37:53]wFMCommunicate request_size=4 [00:37:53]MH_SAM_APDU [00:37:53]CAPDU: 80 17 00 00 [00:37:53]Write to MH i2c: E2 08 00 9F 01 80 17 00 00 00 00 00 00 20 [00:37:53]Write i2c OK [00:37:53]MH_I2C_Read... [00:37:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:53]Read from MH i2c: E2 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 FD 00 [00:37:53]MH_I2C_Read... [00:37:53]Read from MH i2c: E2 FD 00 9F 01 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F8 [00:37:54]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:54]wFMCommunicate OK [00:37:54]wFMCommunicate request_size=4 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 17 00 00 [00:37:54]Write to MH i2c: E2 08 00 A0 01 80 17 00 00 00 00 00 00 21 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:54]Read from MH i2c: E2 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 FD 00 [00:37:54]MH_I2C_Read... [00:37:54]Read from MH i2c: E2 FD 00 A0 01 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [00:37:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:37:54]wFMCommunicate OK [00:37:54]wFMCommunicate request_size=4 [00:37:54]MH_SAM_APDU [00:37:54]CAPDU: 80 17 00 00 [00:37:54]Write to MH i2c: E2 08 00 A1 01 80 17 00 00 00 00 00 00 22 [00:37:54]Write i2c OK [00:37:54]MH_I2C_Read... [00:37:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:37:55]Read from MH i2c: E2 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 E4 00 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 E4 00 A1 01 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 [00:37:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:55]wFMCommunicate OK [00:37:55]SAM_PROTO_GetFMData done [00:37:55]Malloc new data [00:37:55]Malloc new data [00:37:55]Malloc new data [00:37:55]Malloc new data [00:37:55]KKMLoadAndSignCloseShiftData err=0 [00:37:55]OFD Sender: No OFD packet to send [00:37:55]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мамажанов А. 19.10.2024 00:37 Смена: 526 РНМ: 0000000000091680 ЗНМ: 0300000086 СНО: Общий режим Чеков за смену: 210 ФД за смену: 212 Всего чеков: 210 ИТОГИ ПРИХОД Чеков: 207 Общий итог: 104437.80 Итого наличными: 58697.00 Итого безнал.: 45740.80 НДС 0% : 0.00 НДС 12% : 11093.97 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 924.55 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 4524.00 Итого наличными: 4524.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 480.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 40.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.00 Сумма выплат: 0.00 Нал. в кассе: 54173.00 НС Приход: 63750647.35 НС Возвр.Прихода: 3202408.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 82502 ФМ: 0000000000871843 ФПД: 243244144191440 [00:37:55]StoreToDocumentArchive [00:37:55]shift 526 fd 82502 [00:37:55]save to /storage/0526/doc_00082502 [00:37:55]save last doc name /storage/0526/doc_00082502 to /storage/kkm_last_doc_name [00:37:55]save OK [00:37:55]Clear old archive folders... [00:37:55]Remove dir /storage/0522 [00:37:55]opendir ok [00:37:55]file . [00:37:55]file .. [00:37:55]file doc_1729298168 [00:37:55]remove file /storage/0522/doc_1729298168 [00:37:55]remove dir /storage/0522 [00:37:55]NVStorageSaveData kkm_registers [00:37:55]File name is /storage/kkm_registers [00:37:55]Write 24 bytes [00:37:55]NVStorageSaveData done [00:37:55]NVStorageSaveData kkm_registers [00:37:55]File name is /storage/kkm_registers [00:37:55]Write 24 bytes [00:37:55]NVStorageSaveData done [00:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [00:37:55]tlvbuf is 01D39430 [00:37:55]SAM_PROTO_ClearQueue [00:37:55]wFMCommunicate request_size=4 [00:37:55]MH_SAM_APDU [00:37:55]CAPDU: 80 09 00 00 [00:37:55]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [00:37:55]Write i2c OK [00:37:55]MH_I2C_Read... [00:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:55]Read from MH i2c: E2 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 03 00 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [00:37:55]RAPDU: 90 00 [00:37:55]wFMCommunicate OK [00:37:55]SAM_PROTO_ClearQueue done [00:37:55]KKMCreateOFDPacket [00:37:55]OFDProtocolAddRootSTLVToBuf [00:37:55]FM_MakeSignedData [00:37:55]FM_MakeSignedData [00:37:55]SAM_PROTO_SignData [00:37:55]wFMCommunicate request_size=4 [00:37:55]MH_SAM_APDU [00:37:55]CAPDU: 80 0D 01 02 [00:37:55]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [00:37:55]Write i2c OK [00:37:55]MH_I2C_Read... [00:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:55]Read from MH i2c: E2 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 03 00 [00:37:55]MH_I2C_Read... [00:37:55]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [00:37:55]RAPDU: 90 00 [00:37:55]wFMCommunicate OK [00:37:55]wFMCommunicate request_size=255 [00:37:55]MH_SAM_APDU [00:37:55]CAPDU: 80 0D 02 02 FA 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 5B FF 12 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 AA 04 DC 04 6E 04 04 00 D2 00 00 00 69 04 A3 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:37:55]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 5B FF 12 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 AA 04 DC 04 6E 04 04 00 D2 00 00 00 69 04 A3 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 BB [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:56]Read from MH i2c: E2 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 [00:37:56]MH_I2C_Read... [00:37:56]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [00:37:56]RAPDU: 90 00 [00:37:56]wFMCommunicate OK [00:37:56]wFMCommunicate request_size=255 [00:37:56]MH_SAM_APDU [00:37:56]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 27 69 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F 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:37:56]Write to MH i2c: E2 02 01 A5 01 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 27 69 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 93 [00:37:56]Write i2c OK [00:37:56]MH_I2C_Read... [00:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:57]Read from MH i2c: E2 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: E2 03 00 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [00:37:57]RAPDU: 90 00 [00:37:57]wFMCommunicate OK [00:37:57]wFMCommunicate request_size=255 [00:37:57]MH_SAM_APDU [00:37:57]CAPDU: 80 0D 02 02 FA 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 [00:37:57]Write to MH i2c: E2 02 01 A6 01 80 0D 02 02 FA 00 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 00 00 DB [00:37:57]Write i2c OK [00:37:57]MH_I2C_Read... [00:37:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:57]Read from MH i2c: E2 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: E2 03 00 [00:37:57]MH_I2C_Read... [00:37:57]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [00:37:57]RAPDU: 90 00 [00:37:57]wFMCommunicate OK [00:37:57]wFMCommunicate request_size=255 [00:37:57]MH_SAM_APDU [00:37:57]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF [00:37:57]Write to MH i2c: E2 02 01 A7 01 80 0D 02 02 FA 00 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 00 00 E5 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [00:37:58]RAPDU: 90 00 [00:37:58]wFMCommunicate OK [00:37:58]wFMCommunicate request_size=255 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 [00:37:58]Write to MH i2c: E2 02 01 A8 01 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 00 C4 [00:37:58]Write i2c OK [00:37:58]MH_I2C_Read... [00:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:58]Read from MH i2c: E2 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 [00:37:58]MH_I2C_Read... [00:37:58]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [00:37:58]RAPDU: 90 00 [00:37:58]wFMCommunicate OK [00:37:58]wFMCommunicate request_size=147 [00:37:58]MH_SAM_APDU [00:37:58]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 46 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 DD 3A B0 CE E7 D0 [00:37:59]Write to MH i2c: E2 96 00 A9 01 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 46 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 DD 3A B0 CE E7 D0 00 00 35 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:59]Read from MH i2c: E2 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 03 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [00:37:59]RAPDU: 90 00 [00:37:59]wFMCommunicate OK [00:37:59]wFMCommunicate request_size=4 [00:37:59]MH_SAM_APDU [00:37:59]CAPDU: 80 0D 03 02 [00:37:59]Write to MH i2c: E2 08 00 AA 01 80 0D 03 02 00 00 00 00 26 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:59]Read from MH i2c: E2 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 0B 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 0B 00 AA 01 00 B4 FF C7 43 CE B7 D5 E1 90 00 1F [00:37:59]RAPDU: B4 FF C7 43 CE B7 D5 E1 90 00 [00:37:59]wFMCommunicate OK [00:37:59]SAM_PROTO_SignData done [00:37:59]FM_MakeSignedData done [00:37:59]CreateOFDProtocolMessage [00:37:59]wFMCommunicate request_size=4 [00:37:59]MH_SAM_APDU [00:37:59]CAPDU: 80 11 00 00 [00:37:59]Write to MH i2c: E2 08 00 AB 01 80 11 00 00 00 00 00 00 26 [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:59]Read from MH i2c: E2 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 17 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: E2 17 00 AB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 78 [00:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:37:59]wFMCommunicate OK [00:37:59]CreateOFDProtocolMessage done [00:37:59]OFDSenderStorePacket 82502 [00:37:59]StoreOFDPacket docnum=82502 [00:37:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 80 05 00 00 C4 8E 78 05 8A 80 5A 05 01 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 5B FF 12 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 AA 04 DC 04 6E 04 04 00 D2 00 00 00 69 04 A3 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F 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 46 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 DD 3A B0 CE E7 D0 B4 FF C7 43 CE B7 D5 E1 [00:37:59]CheckFolder [00:37:59]dirname=/storage/ofd_packets [00:37:59]CheckFolder done [00:37:59]ProducePacketName [00:37:59]name=ofd_packets/00082502 [00:37:59]NVStorageSaveData ofd_packets/00082502 [00:37:59]File name is /storage/ofd_packets/00082502 [00:37:59]Write 1438 bytes [00:37:59]NVStorageSaveData done [00:37:59]OFDSenderStorePacket done [00:37:59]KKMCreateOFDPacket done [00:37:59]NVStorageSaveData kkm_last_timestamp [00:37:59]File name is /storage/kkm_last_timestamp [00:37:59]Write 4 bytes [00:37:59]NVStorageSaveData done [00:37:59]ExternCall_PrintAddStr [00:37:59]wPrintStart [00:37:59]Write to MH i2c: 01 00 00 AC 01 AD [00:37:59]Write i2c OK [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: 01 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: 01 07 00 [00:37:59]MH_I2C_Read... [00:37:59]Read from MH i2c: 01 07 00 AC 01 00 00 00 00 00 FF 0F C2 [00:37:59]RasterBufferAndPrint [00:37:59]line Отчет о закрытии смены [00:37:59]line ФФД: 1.0 [00:37:59]line ИНН: 02508201610067 [00:37:59]line Кассир: Мамажанов А. [00:37:59]line 19.10.2024 00:37 [00:37:59]line Смена: 526 [00:37:59]line РНМ: 0000000000091680 [00:37:59]line ЗНМ: 0300000086 [00:37:59]line СНО: Общий режим [00:37:59]line Чеков за смену: 210 [00:38:00]line ФД за смену: 212 [00:38:00]line Всего чеков: 210 [00:38:00]line ИТОГИ ПРИХОД [00:38:00]line Чеков: 207 [00:38:00]line Общий итог: 104437.80 [00:38:00]line Итого наличными: 58697.00 [00:38:00]line Итого безнал.: 45740.80 [00:38:00]line НДС 0% : 0.00 [00:38:00]line НДС 12% : 11093.97 [00:38:00]line НСП 0% : 0.00 [00:38:00]line НСП 1,50% : 0.00 [00:38:00]line НСП 0,50% : 0.00 [00:38:00]line НСП 5% : 0.00 [00:38:00]line НСП 3% : 0.00 [00:38:00]line НСП 2% : 0.00 [00:38:00]line НСП 1% : 924.55 [00:38:00]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:38:00]line Чеков: 3 [00:38:00]line Общий итог: 4524.00 [00:38:00]line Итого наличными: 4524.00 [00:38:00]line Итого безнал.: 0.00 [00:38:00]line НДС 0% : 0.00 [00:38:00]line НДС 12% : 480.51 [00:38:00]line НСП 0% : 0.00 [00:38:00]line НСП 1,50% : 0.00 [00:38:00]line НСП 0,50% : 0.00 [00:38:00]line НСП 5% : 0.00 [00:38:00]line НСП 3% : 0.00 [00:38:00]line НСП 2% : 0.00 [00:38:00]line НСП 1% : 40.04 [00:38:00]line ИТОГИ РАСХОД [00:38:00]line Чеков: 0 [00:38:00]line Общий итог: 0.00 [00:38:00]line Итого наличными: 0.00 [00:38:00]line Итого безнал.: 0.00 [00:38:00]line НДС 0% : 0.00 [00:38:00]line НДС 12% : 0.00 [00:38:00]line НСП 0% : 0.00 [00:38:00]line НСП 1,50% : 0.00 [00:38:00]line НСП 0,50% : 0.00 [00:38:00]line НСП 5% : 0.00 [00:38:00]line НСП 3% : 0.00 [00:38:00]line НСП 2% : 0.00 [00:38:00]line НСП 1% : 0.00 [00:38:00]line ИТОГИ ВОЗВРАТ РАСХОДА [00:38:00]line Чеков: 0 [00:38:00]line Общий итог: 0.00 [00:38:00]line Итого наличными: 0.00 [00:38:00]line Итого безнал.: 0.00 [00:38:00]line НДС 0% : 0.00 [00:38:00]line НДС 12% : 0.00 [00:38:00]line НСП 0% : 0.00 [00:38:00]line НСП 1,50% : 0.00 [00:38:00]line НСП 0,50% : 0.00 [00:38:00]line НСП 5% : 0.00 [00:38:00]line НСП 3% : 0.00 [00:38:00]line НСП 2% : 0.00 [00:38:00]line НСП 1% : 0.00 [00:38:00]line Сумма внесений: 0.00 [00:38:00]line Сумма выплат: 0.00 [00:38:00]line Нал. в кассе: 54173.00 [00:38:00]line НС Приход: 63750647.35 [00:38:00]line НС Возвр.Прихода: 3202408.00 [00:38:00]line НС Расход: 0.00 [00:38:00]line НС Возвр.Расхода: 0.00 [00:38:00]line ФД: 82502 [00:38:00]line ФМ: 0000000000871843 [00:38:00]line ФПД: 243244144191440 [00:38:00]OFD Sender: Processing packet 82502 [packets to send 254, broken 253] [00:38:00]ProducePacketName [00:38:00]name=ofd_packets/00082502 [00:38:00]OFD Sender: To server: pG, [00:38:00]CommunicateWithHost lk.salyk.kg:30040 [00:38:00]ConnectInit lk.salyk.kg [00:38:00]written 0, free lines is 4095 [00:38:00]Connected sock=10 [00:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 80 05 00 00 C4 8E 78 05 8A 80 5A 05 01 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 9C D0 B0 D0 BC D0 B0 D0 B6 D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 5B FF 12 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 AA 04 DC 04 6E 04 04 00 D2 00 00 00 69 04 A3 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB 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 Write to MH i2c: 03 01 01 00 00 00 00 FC EF 01 03 FD [00:38:01]0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 Write i2c OK [00:38:01]01 MH_I2C_Read... [00:38:01]00 Read from MH i2c: 01 01 [00:38:01]F7 MH_I2C_Read... [00:38:01]03 02 00 A4 0F 6B 04 99 00 6F 04 04 00 00 00 Read from MH i2c: 00 01 00 07 B1 00 04 [00:38:01]01 MH_I2C_Read... [00:38:01]00 Read from MH i2c: 00 01 70 07 04 00 01 FC 00 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 00 F2 00 03 00 01 00 00 BD 00 0A F3 CB [00:38:01]RasterBufferAndPrint [00:38:01]line [00:38:01]line [00:38:01]line [00:38:01]line [00:38:01]line [00:38:01]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 written 0, free lines is 2983 [00:38:01]00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 MH_Cut [00:38:01]00 Write to MH i2c: 00 D1 EF 01 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 00 EF 03 03 02 0A 01 00 D7 F6 [00:38:01]03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 Write i2c OK [00:38:01]01 MH_I2C_Read... [00:38:01]00 Read from MH i2c: 01 D1 F7 [00:38:01]03 MH_I2C_Read... [00:38:01]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 Read from MH i2c: 01 D1 00 01 00 00 EF [00:38:01]03 MH_I2C_Read... [00:38:01]0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 Read from MH i2c: 0A D1 00 01 00 F6 03 03 02 01 00 00 D6 01 [00:38:01]F7 Write to MH i2c: 03 01 01 00 00 00 00 04 6D 02 04 06 4C [00:38:01]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 Write i2c OK [00:38:01]03 MH_I2C_Read... [00:38:01]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:38:02]F6 *** Partial cut [00:38:02]03 *** CUTSNS_PIN = 1 [00:38:02]01 *** CUTSNS_PIN = 0 [00:38:02]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 *** Brake cut motor [00:38:02]EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 DD 3A B0 CE E7 D0 B4 FF C7 43 CE B7 D5 E1 [00:38:02]Read from MH i2c: *** Stop cut motor [00:38:02]01 *** Cut end [00:38:02] [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: 01 07 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 FF 0F 1B [00:38:02]process_action close_shift done [00:38:02]requested_data is exist [00:38:02]produce_requested_data [00:38:02]requested_item fd.num is exist - process it [00:38:02]SAM_PROTO_GetFieldsCounters [00:38:02]wFMCommunicate request_size=4 [00:38:02]MH_SAM_APDU [00:38:02]CAPDU: 80 13 00 00 [00:38:02]Write to MH i2c: E2 08 00 05 02 80 13 00 00 00 00 00 00 83 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 62 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 62 00 05 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 46 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [00:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 Received data: 30 87 30 95 38 F6 37 70 31 47 38 34 33 0D 04 10 00 30 30 30 30 30 30 2C 30 01 30 00 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 46 42 01 00 30 0E 30 04 30 04 30 00 30 0E 30 02 00 00 12 04 04 00 D2 00 00 00 5E 04 30 04 38 00 37 D2 31 00 38 00 34 00 33 57 4F 04 00 04 00 00 00 D4 C7 00 4B 00 47 00 00 19 F1 04 12 04 A5 00 07 00 01 00 00 00 07 00 00 90 3B 00 00 [00:38:03]wFMCommunicate OK [00:38:03]SAM_PROTO_GetFieldsCounters done [00:38:03]requested_item shift.num is exist - process it [00:38:03]requested_item shift.opened is exist - process it [00:38:03]req_shift_opened [00:38:03]FM_GetShiftState [00:38:03]SAM_PROTO_GetShiftState [00:38:03]wFMCommunicate request_size=4 [00:38:03]MH_SAM_APDU [00:38:03]CAPDU: F9 80 03 13 0E 01 00 00 37 [00:38:03]37 Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 30 00 39 85 33 [00:38:03]36 34 33 34 36 31 Write i2c OK [00:38:03]MH_I2C_Read... [00:38:03]32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 46 42 01 00 F4 03 04 00 A1 A4 12 67 B6 04 01 00 00 EF E2 1F 1E 60 AE C0 3C [00:38:03]Read from MH i2c: CommunicateWithHost err = 0 [00:38:03]E2 CheckOFDResponse [00:38:03] [00:38:03]1017 (14) - 77093643461234 [00:38:03]MH_I2C_Read... [00:38:03]1041 (16) - 0000000000871843 [00:38:03]1040 (4) - 82502 [00:38:03]1012 (4) - 18.10.2024 18:10 [00:38:03]1206 (1) - 0 [00:38:03]OFD Sender: Remove packet 82502 [00:38:03]ProducePacketName [00:38:03]name=ofd_packets/00082502 [00:38:03]NVStorageDeleteData [00:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:03]Read from MH i2c: E2 0E 00 [00:38:03]MH_I2C_Read... [00:38:03]Read from MH i2c: E2 0E 00 06 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 90 [00:38:03]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:38:03]wFMCommunicate OK [00:38:03]SAM_PROTO_GetShiftState done [00:38:03]FM_GetShiftState done [00:38:03]req_shift_opened done [00:38:03]requested_item shift.open_date is exist - process it [00:38:03]req_shift_open_date [00:38:03]FM_GetShiftState [00:38:03]SAM_PROTO_GetShiftState [00:38:03]wFMCommunicate request_size=4 [00:38:03]MH_SAM_APDU [00:38:03]CAPDU: 80 13 01 00 [00:38:03]Write to MH i2c: E2 08 00 07 02 80 13 01 00 00 00 00 00 86 [00:38:03]Write i2c OK [00:38:03]MH_I2C_Read... [00:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:03]Read from MH i2c: E2 [00:38:03]MH_I2C_Read... [00:38:03]Read from MH i2c: E2 0E 00 [00:38:03]MH_I2C_Read... [00:38:03]Read from MH i2c: E2 0E 00 07 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 91 [00:38:03]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:38:03]wFMCommunicate OK [00:38:03]SAM_PROTO_GetShiftState done [00:38:03]FM_GetShiftState done [00:38:03]req_shift_open_date done [00:38:03]produce_requested_data done [00:38:03]produce_requested_data return {"fd.num":82502,"shift.num":526,"shift.opened":0,"shift.open_date":0} [00:38:03]process_action_free close_shift [00:38:03]json_value_free [00:38:03]json_value_free done [00:38:03]process_json_proto returns [00:38:03]Send response to host [00:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":82502,"shift.num":526,"shift.opened":0,"shift.open_date":0}}} [00:38:03]free response buf [00:38:03]execute_script done [00:38:03]execute_script returns [00:38:03]free content buf [00:38:03]Sock 7.Close socket [00:38:03]Sock 7.Thread stoped [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:17]recv_with_timeout no data received [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:12]recv_with_timeout no data received [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:22]recv_with_timeout no data received [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:52]recv_with_timeout no data received [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:47]accept exits with 9 [00:46:47]New connection [00:46:47]New thread 3066559844 created [00:46:47]Thread 3066703204 joined [00:46:47]Waiting for new connection... [00:46:47] Sock 9.Parse request [00:46:47]Sock 9.Check first char [00:46:47]Sock 9.First char is OK [00:46:47]request: POST /json_proto HTTP/1.0 [00:46:47]Method: POST [00:46:47]URL: /json_proto [00:46:47]Method is POST - this is cgi request [00:46:47]url: /json_proto [00:46:47]query_string will be loaded in cgi processing [00:46:47]execute_cgi json_proto POST (null) [00:46:47]execute_cgi path=json_proto method=POST [00:46:47]POST find Content-Length [00:46:47]Host: 172.17.44.67:8080 [00:46:47]Content-Length: 215 [00:46:47]Content-Type: application/json [00:46:47] [00:46:47]POST finish read [00:46:47]Found Content-Length = 215 [00:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:47]execute_script... [00:46:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:47]POST & json_proto [00:46:47]process_json_proto [00:46:47]json parsed OK: [00:46:47]protocol is kg_v1.0 [00:46:47]action value=get_value [00:46:47]process_action get_value [00:46:47]cmd_get_value [00:46:47]process_action get_value done [00:46:47]requested_data is exist [00:46:47]produce_requested_data [00:46:47]requested_item kkm.sn is exist - process it [00:46:47]requested_item kkm.ver is exist - process it [00:46:47]requested_item fm.sn is exist - process it [00:46:47]wFMCommunicate request_size=4 [00:46:47]MH_SAM_APDU [00:46:47]CAPDU: 80 11 00 00 [00:46:47]Write to MH i2c: E2 08 00 08 02 80 11 00 00 00 00 00 00 84 [00:46:47]Write i2c OK [00:46:47]MH_I2C_Read... [00:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:47]Read from MH i2c: E2 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 17 00 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 17 00 08 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 D6 [00:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:46:47]wFMCommunicate OK [00:46:47]requested_item fd.num is exist - process it [00:46:47]SAM_PROTO_GetFieldsCounters [00:46:47]wFMCommunicate request_size=4 [00:46:47]MH_SAM_APDU [00:46:47]CAPDU: 80 13 00 00 [00:46:47]Write to MH i2c: E2 08 00 09 02 80 13 00 00 00 00 00 00 87 [00:46:47]Write i2c OK [00:46:47]MH_I2C_Read... [00:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:47]Read from MH i2c: E2 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 62 00 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 62 00 09 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 46 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [00:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 46 42 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:47]wFMCommunicate OK [00:46:47]SAM_PROTO_GetFieldsCounters done [00:46:47]requested_item shift.num is exist - process it [00:46:47]requested_item shift.opened is exist - process it [00:46:47]req_shift_opened [00:46:47]FM_GetShiftState [00:46:47]SAM_PROTO_GetShiftState [00:46:47]wFMCommunicate request_size=4 [00:46:47]MH_SAM_APDU [00:46:47]CAPDU: 80 13 01 00 [00:46:47]Write to MH i2c: E2 08 00 0A 02 80 13 01 00 00 00 00 00 89 [00:46:47]Write i2c OK [00:46:47]MH_I2C_Read... [00:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:47]Read from MH i2c: E2 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 0E 00 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 0E 00 0A 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 94 [00:46:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:46:47]wFMCommunicate OK [00:46:47]SAM_PROTO_GetShiftState done [00:46:47]FM_GetShiftState done [00:46:47]req_shift_opened done [00:46:47]requested_item shift.open_date is exist - process it [00:46:47]req_shift_open_date [00:46:47]FM_GetShiftState [00:46:47]SAM_PROTO_GetShiftState [00:46:47]wFMCommunicate request_size=4 [00:46:47]MH_SAM_APDU [00:46:47]CAPDU: 80 13 01 00 [00:46:47]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [00:46:47]Write i2c OK [00:46:47]MH_I2C_Read... [00:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:47]Read from MH i2c: E2 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 0E 00 [00:46:47]MH_I2C_Read... [00:46:47]Read from MH i2c: E2 0E 00 0B 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 95 [00:46:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:46:47]wFMCommunicate OK [00:46:47]SAM_PROTO_GetShiftState done [00:46:47]FM_GetShiftState done [00:46:47]req_shift_open_date done [00:46:47]produce_requested_data done [00:46:47]produce_requested_data return {"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82502,"shift.num":526,"shift.opened":0,"shift.open_date":0} [00:46:47]process_action_free get_value [00:46:47]json_value_free [00:46:47]json_value_free done [00:46:47]process_json_proto returns [00:46:47]Send response to host [00:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000086","kkm.ver":"001","fm.sn":"0000000000871843","fd.num":82502,"shift.num":526,"shift.opened":0,"shift.open_date":0}}} [00:46:47]free response buf [00:46:47]execute_script done [00:46:47]execute_script returns [00:46:47]free content buf [00:46:47]Sock 9.Close socket [00:46:47]Sock 9.Thread stoped [00:46:47]accept exits with 10 [00:46:47]New connection [00:46:47]New thread 3066703204 created [00:46:47]Thread 3066559844 joined [00:46:47]Waiting for new connection... [00:46:47] Sock 10.Parse request [00:46:47]Sock 10.Check first char [00:46:47]Sock 10.First char is OK [00:46:47]request: POST /json_proto HTTP/1.0 [00:46:47]Method: POST [00:46:47]URL: /json_proto [00:46:47]Method is POST - this is cgi request [00:46:47]url: /json_proto [00:46:47]query_string will be loaded in cgi processing [00:46:47]execute_cgi json_proto POST (null) [00:46:47]execute_cgi path=json_proto method=POST [00:46:47]POST find Content-Length [00:46:47]Host: 172.17.44.67:8080 [00:46:47]Content-Length: 331 [00:46:47]Content-Type: application/json [00:46:47] [00:46:47]POST finish read [00:46:47]Found Content-Length = 331 [00:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:46:47]execute_script... [00:46:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:46:48]POST & json_proto [00:46:48]process_json_proto [00:46:48]json parsed OK: [00:46:48]protocol is kg_v1.0 [00:46:48]action value=get_value [00:46:48]process_action get_value [00:46:48]cmd_get_value [00:46:48]process_action get_value done [00:46:48]requested_data is exist [00:46:48]produce_requested_data [00:46:48]requested_item fm.sale.total is exist - process it [00:46:48]SAM_PROTO_GetFMData [00:46:48]wFMCommunicate request_size=4 [00:46:48]MH_SAM_APDU [00:46:48]CAPDU: 80 13 03 00 [00:46:48]Write to MH i2c: E2 08 00 0C 02 80 13 03 00 00 00 00 00 8D [00:46:48]Write i2c OK [00:46:48]MH_I2C_Read... [00:46:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:46:48]Read from MH i2c: E2 [00:46:48]MH_I2C_Read... [00:46:48]Read from MH i2c: E2 FD 00 [00:46:48]MH_I2C_Read... [00:46:48]Read from MH i2c: E2 FD 00 0C 02 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 A2 [00:46:48]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:46:48]wFMCommunicate OK [00:46:48]wFMCommunicate request_size=4 [00:46:48]MH_SAM_APDU [00:46:48]CAPDU: 80 17 00 00 [00:46:48]Write to MH i2c: E2 08 00 0D 02 80 17 00 00 00 00 00 00 8F [00:46:48]Write i2c OK [00:46:48]MH_I2C_Read... [00:46:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:48]Read from MH i2c: E2 [00:46:48]MH_I2C_Read... [00:46:48]Read from MH i2c: E2 FD 00 [00:46:48]MH_I2C_Read... [00:46:48]Read from MH i2c: E2 FD 00 0D 02 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:46:48]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:46:48]wFMCommunicate OK [00:46:48]wFMCommunicate request_size=4 [00:46:48]MH_SAM_APDU [00:46:48]CAPDU: 80 17 00 00 [00:46:48]Write to MH i2c: E2 08 00 0E 02 80 17 00 00 00 00 00 00 90 [00:46:48]Write i2c OK [00:46:48]MH_I2C_Read... [00:46:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:49]Read from MH i2c: E2 [00:46:49]MH_I2C_Read... [00:46:49]Read from MH i2c: E2 FD 00 [00:46:49]MH_I2C_Read... [00:46:49]Read from MH i2c: E2 FD 00 0E 02 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:46:49]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:46:49]wFMCommunicate OK [00:46:49]wFMCommunicate request_size=4 [00:46:49]MH_SAM_APDU [00:46:49]CAPDU: 80 17 00 00 [00:46:49]Write to MH i2c: E2 08 00 0F 02 80 17 00 00 00 00 00 00 91 [00:46:49]Write i2c OK [00:46:49]MH_I2C_Read... [00:46:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:49]Read from MH i2c: E2 [00:46:49]MH_I2C_Read... [00:46:49]Read from MH i2c: E2 FD 00 [00:46:49]MH_I2C_Read... [00:46:49]Read from MH i2c: E2 FD 00 0F 02 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:46:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:46:49]wFMCommunicate OK [00:46:49]wFMCommunicate request_size=4 [00:46:49]MH_SAM_APDU [00:46:49]CAPDU: 80 17 00 00 [00:46:49]Write to MH i2c: E2 08 00 10 02 80 17 00 00 00 00 00 00 92 [00:46:49]Write i2c OK [00:46:49]MH_I2C_Read... [00:46:49]OFD Sender: No OFD packet to send [00:46:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:46:49]Read from MH i2c: E2 [00:46:49]MH_I2C_Read... [00:46:49]Read from MH i2c: E2 E4 00 [00:46:49]MH_I2C_Read... [00:46:49]Read from MH i2c: E2 E4 00 10 02 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [00:46:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:46:49]wFMCommunicate OK [00:46:49]SAM_PROTO_GetFMData done [00:46:49]requested_item fm.sale_refund.total is exist - process it [00:46:49]requested_item fm.buy.total is exist - process it [00:46:49]requested_item shift.sale.total is exist - process it [00:46:49]SAM_PROTO_GetShiftData [00:46:49]wFMCommunicate request_size=4 [00:46:49]MH_SAM_APDU [00:46:49]CAPDU: 80 13 02 00 [00:46:49]Write to MH i2c: E2 08 00 11 02 80 13 02 00 00 00 00 00 91 [00:46:49]Write i2c OK [00:46:49]MH_I2C_Read... [00:46:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:46:50]Read from MH i2c: E2 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: E2 FD 00 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: E2 FD 00 11 02 00 B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 F1 [00:46:50]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 D2 00 00 00 69 04 9C 00 6F 04 04 00 CF 00 00 00 B1 04 03 00 04 5C 9F 70 04 03 00 84 90 59 72 04 03 00 80 CB 45 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 95 ED 10 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 27 69 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 E7 06 70 04 03 00 30 E7 06 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B3 BB EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:46:50]wFMCommunicate OK [00:46:50]wFMCommunicate request_size=4 [00:46:50]MH_SAM_APDU [00:46:50]CAPDU: 80 17 00 00 [00:46:50]Write to MH i2c: E2 08 00 12 02 80 17 00 00 00 00 00 00 94 [00:46:50]Write i2c OK [00:46:50]MH_I2C_Read... [00:46:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:50]Read from MH i2c: E2 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: E2 FD 00 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: E2 FD 00 12 02 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 06 [00:46:50]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A4 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:46:50]wFMCommunicate OK [00:46:50]wFMCommunicate request_size=4 [00:46:50]MH_SAM_APDU [00:46:50]CAPDU: 80 17 00 00 [00:46:50]Write to MH i2c: E2 08 00 13 02 80 17 00 00 00 00 00 00 95 [00:46:50]Write i2c OK [00:46:50]MH_I2C_Read... [00:46:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:50]Read from MH i2c: E2 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: E2 FD 00 [00:46:50]MH_I2C_Read... [00:46:50]Read from MH i2c: E2 FD 00 13 02 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 BD [00:46:50]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:46:50]wFMCommunicate OK [00:46:50]wFMCommunicate request_size=4 [00:46:50]MH_SAM_APDU [00:46:50]CAPDU: 80 17 00 00 [00:46:50]Write to MH i2c: E2 08 00 14 02 80 17 00 00 00 00 00 00 96 [00:46:50]Write i2c OK [00:46:50]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 FD 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 FD 00 14 02 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 0E [00:46:51]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:46:51]wFMCommunicate OK [00:46:51]wFMCommunicate request_size=4 [00:46:51]MH_SAM_APDU [00:46:51]CAPDU: 80 17 00 00 [00:46:51]Write to MH i2c: E2 08 00 15 02 80 17 00 00 00 00 00 00 97 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 D6 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 D6 00 15 02 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [00:46:51]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:46:51]wFMCommunicate OK [00:46:51]SAM_PROTO_GetShiftData done [00:46:51]requested_item shift.sale.total_cash is exist - process it [00:46:51]requested_item shift.sale_refund.total is exist - process it [00:46:51]requested_item shift.sale_refund.total_cash is exist - process it [00:46:51]requested_item shift.buy.total is exist - process it [00:46:51]requested_item shift.buy.total_cash is exist - process it [00:46:51]produce_requested_data done [00:46:51]produce_requested_data return {"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:46:51]process_action_free get_value [00:46:51]json_value_free [00:46:51]json_value_free done [00:46:51]process_json_proto returns [00:46:51]Send response to host [00:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":104437.80,"shift.sale.total_cash":58697.00,"shift.sale_refund.total":4524.00,"shift.sale_refund.total_cash":4524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:46:51]free response buf [00:46:51]execute_script done [00:46:51]execute_script returns [00:46:51]free content buf [00:46:51]Sock 10.Close socket [00:46:51]Sock 10.Thread stoped [00:46:51]accept exits with 9 [00:46:51]New connection [00:46:51]New thread 3066559844 created [00:46:51]Thread 3066703204 joined [00:46:51]Waiting for new connection... [00:46:51] Sock 9.Parse request [00:46:51]Sock 9.Check first char [00:46:51]Sock 9.First char is OK [00:46:51]request: POST /json_proto HTTP/1.0 [00:46:51]Method: POST [00:46:51]URL: /json_proto [00:46:51]Method is POST - this is cgi request [00:46:51]url: /json_proto [00:46:51]query_string will be loaded in cgi processing [00:46:51]execute_cgi json_proto POST (null) [00:46:51]execute_cgi path=json_proto method=POST [00:46:51]POST find Content-Length [00:46:51]Host: 172.17.44.67:8080 [00:46:51]Content-Length: 271 [00:46:51]Content-Type: application/json [00:46:51] [00:46:51]POST finish read [00:46:51]Found Content-Length = 271 [00:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0435\u043A\u0441\u0435\u043D\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:51]execute_script... [00:46:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0435\u043A\u0441\u0435\u043D\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:51]POST & json_proto [00:46:51]process_json_proto [00:46:51]json parsed OK: [00:46:51]protocol is kg_v1.0 [00:46:51]action value=open_shift [00:46:51]process_action open_shift [00:46:51]cmd_open_shift [00:46:51]MH_GetDate [00:46:51]Write to MH i2c: F0 00 00 16 02 07 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: F0 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: F0 09 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: F0 09 00 16 02 00 7B 01 13 67 F1 C7 6B 64 8D [00:46:51]GetLastDocTimeStamp 1729298267 [00:46:51]current date 1729298811 [00:46:51]FM_GetShiftState [00:46:51]SAM_PROTO_GetShiftState [00:46:51]wFMCommunicate request_size=4 [00:46:51]MH_SAM_APDU [00:46:51]CAPDU: 80 13 01 00 [00:46:51]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 0E 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 0E 00 17 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A1 [00:46:51]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:46:51]wFMCommunicate OK [00:46:51]SAM_PROTO_GetShiftState done [00:46:51]FM_GetShiftState done [00:46:51]KKMCreateOpenShiftDocument [00:46:51]Load OK [00:46:51]Malloc new data [00:46:51]MH_GetDate [00:46:51]Write to MH i2c: F0 00 00 18 02 09 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: F0 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: F0 09 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: F0 09 00 18 02 00 7B 01 13 67 F1 C7 6B 64 8F [00:46:51]Malloc new data [00:46:51]KKMCreateOpenShiftDocument OK [00:46:51]KKMSetOpenShiftData OK [00:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=221 [00:46:51]tlvbuf is 01CFA8F0 [00:46:51]KKMLoadAndSignOpenShiftData [00:46:51]SAM_PROTO_ProcessDocument [00:46:51]wFMCommunicate request_size=9 [00:46:51]MH_SAM_APDU [00:46:51]CAPDU: 80 15 01 00 04 02 00 DD 00 [00:46:51]Write to MH i2c: E2 0C 00 19 02 80 15 01 00 04 00 02 00 DD 00 00 00 81 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [00:46:51]RAPDU: 90 00 [00:46:51]wFMCommunicate OK [00:46:51]wFMCommunicate request_size=23 [00:46:51]MH_SAM_APDU [00:46:51]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:46:51]Write to MH i2c: E2 1A 00 1A 02 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 91 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [00:46:51]RAPDU: 90 00 [00:46:51]wFMCommunicate OK [00:46:51]wFMCommunicate request_size=34 [00:46:51]MH_SAM_APDU [00:46:51]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A1 D0 B5 D0 BA D1 81 D0 B5 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [00:46:51]Write to MH i2c: E2 25 00 1B 02 80 15 02 00 1D 00 FD 03 19 00 D0 A1 D0 B5 D0 BA D1 81 D0 B5 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 AA [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [00:46:51]RAPDU: 90 00 [00:46:51]wFMCommunicate OK [00:46:51]wFMCommunicate request_size=105 [00:46:51]MH_SAM_APDU [00:46:51]CAPDU: 80 15 02 00 64 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 [00:46:51]Write to MH i2c: E2 6C 00 1C 02 80 15 02 00 64 00 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 00 00 B6 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:46:51]Read from MH i2c: E2 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 [00:46:51]MH_I2C_Read... [00:46:51]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [00:46:51]RAPDU: 90 00 [00:46:51]wFMCommunicate OK [00:46:51]wFMCommunicate request_size=51 [00:46:51]MH_SAM_APDU [00:46:51]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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:46:51]Write to MH i2c: E2 36 00 1D 02 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 47 [00:46:51]Write i2c OK [00:46:51]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [00:46:52]RAPDU: 90 00 [00:46:52]wFMCommunicate OK [00:46:52]wFMCommunicate request_size=13 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 15 02 00 08 F4 03 04 00 7B 01 13 67 [00:46:52]Write to MH i2c: E2 10 00 1E 02 80 15 02 00 08 00 F4 03 04 00 7B 01 13 67 00 00 A1 [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [00:46:52]RAPDU: 90 00 [00:46:52]wFMCommunicate OK [00:46:52]wFMCommunicate request_size=25 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 [00:46:52]Write to MH i2c: E2 1C 00 1F 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 00 00 02 [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [00:46:52]RAPDU: 90 00 [00:46:52]wFMCommunicate OK [00:46:52]wFMCommunicate request_size=4 [00:46:52]MH_SAM_APDU [00:46:52]CAPDU: 80 15 03 00 [00:46:52]Write to MH i2c: E2 08 00 20 02 80 15 03 00 00 00 00 00 A3 [00:46:52]Write i2c OK [00:46:52]MH_I2C_Read... [00:46:52]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:46:52]Read from MH i2c: E2 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 38 00 [00:46:52]MH_I2C_Read... [00:46:52]Read from MH i2c: E2 38 00 20 02 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 42 01 00 0E 04 04 00 0F 02 00 00 35 04 06 00 4A 59 1C 4F 36 5A 90 00 A7 [00:46:52]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 42 01 00 0E 04 04 00 0F 02 00 00 35 04 06 00 4A 59 1C 4F 36 5A 90 00 [00:46:52]wFMCommunicate OK [00:46:52]SAM_PROTO_ProcessDocument answer len = 51 [00:46:52]SAM_PROTO_ProcessDocument done [00:46:52]SetTLVBufToDocument [00:46:52]Processing tag 1209 (04B9) [00:46:52]Malloc new data [00:46:52]Processing tag 1041 (0411) [00:46:52]Processing tag 1040 (0410) [00:46:52]Malloc new data [00:46:52]Processing tag 1038 (040E) [00:46:52]Malloc new data [00:46:52]Processing tag 1077 (0435) [00:46:52]Malloc new data [00:46:52]SetTLVBufToDocument err=0 [00:46:52]KKMLoadAndSignOpenShiftData store KKM data [00:46:52]KKMLoadAndSignOpenShiftData err=0 [00:46:52]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сексенбаев А. Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 Место: АЗС № 114 "Партнер Нефть" 19.10.2024 00:46 Смена: 527 РНМ: 0000000000091680 ЗНМ: 0300000086 ФД: 82503 ФМ: 0000000000871843 ФПД: 81746587498074 [00:46:52]StoreToDocumentArchive [00:46:52]shift 527 fd 82503 [00:46:52]Create dir for shift 0527 [00:46:52]save to /storage/0527/doc_00082503 [00:46:52]save last doc name /storage/0527/doc_00082503 to /storage/kkm_last_doc_name [00:46:52]save OK [00:46:52]Clear old archive folders... [00:46:52]Remove dir /storage/0526 [00:46:52]opendir ok [00:46:52]file . [00:46:52]file .. [00:46:52]file doc_00082291 [00:46:52]remove file /storage/0526/doc_00082291 [00:46:52]file doc_00082292 [00:46:52]remove file /storage/0526/doc_00082292 [00:46:52]file doc_00082293 [00:46:52]remove file /storage/0526/doc_00082293 [00:46:52]file doc_00082294 [00:46:52]remove file /storage/0526/doc_00082294 [00:46:52]file doc_00082295 [00:46:52]remove file /storage/0526/doc_00082295 [00:46:52]file doc_00082296 [00:46:52]remove file /storage/0526/doc_00082296 [00:46:52]file doc_00082297 [00:46:52]remove file /storage/0526/doc_00082297 [00:46:52]file doc_00082298 [00:46:52]remove file /storage/0526/doc_00082298 [00:46:52]file doc_00082299 [00:46:52]remove file /storage/0526/doc_00082299 [00:46:52]file doc_00082300 [00:46:52]remove file /storage/0526/doc_00082300 [00:46:52]file doc_00082301 [00:46:52]remove file /storage/0526/doc_00082301 [00:46:52]file doc_00082302 [00:46:52]remove file /storage/0526/doc_00082302 [00:46:52]file doc_00082303 [00:46:52]remove file /storage/0526/doc_00082303 [00:46:52]file doc_00082304 [00:46:52]remove file /storage/0526/doc_00082304 [00:46:52]file doc_00082305 [00:46:52]remove file /storage/0526/doc_00082305 [00:46:52]file doc_00082306 [00:46:52]remove file /storage/0526/doc_00082306 [00:46:52]file doc_00082307 [00:46:52]remove file /storage/0526/doc_00082307 [00:46:52]file doc_00082308 [00:46:52]remove file /storage/0526/doc_00082308 [00:46:52]file doc_00082309 [00:46:52]remove file /storage/0526/doc_00082309 [00:46:52]file doc_00082310 [00:46:52]remove file /storage/0526/doc_00082310 [00:46:52]file doc_00082311 [00:46:52]remove file /storage/0526/doc_00082311 [00:46:52]file doc_00082312 [00:46:52]remove file /storage/0526/doc_00082312 [00:46:52]file doc_00082313 [00:46:52]remove file /storage/0526/doc_00082313 [00:46:52]file doc_00082314 [00:46:52]remove file /storage/0526/doc_00082314 [00:46:52]file doc_00082315 [00:46:52]remove file /storage/0526/doc_00082315 [00:46:52]file doc_00082316 [00:46:52]remove file /storage/0526/doc_00082316 [00:46:52]file doc_00082317 [00:46:52]remove file /storage/0526/doc_00082317 [00:46:52]file doc_00082318 [00:46:52]remove file /storage/0526/doc_00082318 [00:46:52]file doc_00082319 [00:46:52]remove file /storage/0526/doc_00082319 [00:46:52]file doc_00082320 [00:46:52]remove file /storage/0526/doc_00082320 [00:46:52]file doc_00082321 [00:46:52]remove file /storage/0526/doc_00082321 [00:46:52]file doc_00082322 [00:46:52]remove file /storage/0526/doc_00082322 [00:46:52]file doc_00082323 [00:46:52]remove file /storage/0526/doc_00082323 [00:46:52]file doc_00082324 [00:46:52]remove file /storage/0526/doc_00082324 [00:46:52]file doc_00082325 [00:46:52]remove file /storage/0526/doc_00082325 [00:46:52]file doc_00082326 [00:46:52]remove file /storage/0526/doc_00082326 [00:46:52]file doc_00082327 [00:46:52]remove file /storage/0526/doc_00082327 [00:46:52]file doc_00082328 [00:46:52]remove file /storage/0526/doc_00082328 [00:46:52]file doc_00082329 [00:46:52]remove file /storage/0526/doc_00082329 [00:46:52]file doc_00082330 [00:46:52]remove file /storage/0526/doc_00082330 [00:46:52]file doc_00082331 [00:46:52]remove file /storage/0526/doc_00082331 [00:46:52]file doc_00082332 [00:46:52]remove file /storage/0526/doc_00082332 [00:46:52]file doc_00082333 [00:46:52]remove file /storage/0526/doc_00082333 [00:46:52]file doc_00082334 [00:46:52]remove file /storage/0526/doc_00082334 [00:46:52]file doc_00082335 [00:46:52]remove file /storage/0526/doc_00082335 [00:46:52]file doc_00082336 [00:46:52]remove file /storage/0526/doc_00082336 [00:46:52]file doc_00082337 [00:46:52]remove file /storage/0526/doc_00082337 [00:46:52]file doc_00082338 [00:46:52]remove file /storage/0526/doc_00082338 [00:46:52]file doc_00082339 [00:46:52]remove file /storage/0526/doc_00082339 [00:46:52]file doc_00082340 [00:46:52]remove file /storage/0526/doc_00082340 [00:46:52]file doc_00082341 [00:46:52]remove file /storage/0526/doc_00082341 [00:46:52]file doc_00082342 [00:46:52]remove file /storage/0526/doc_00082342 [00:46:52]file doc_00082343 [00:46:52]remove file /storage/0526/doc_00082343 [00:46:52]file doc_00082344 [00:46:52]remove file /storage/0526/doc_00082344 [00:46:52]file doc_00082345 [00:46:52]remove file /storage/0526/doc_00082345 [00:46:52]file doc_00082346 [00:46:52]remove file /storage/0526/doc_00082346 [00:46:52]file doc_00082347 [00:46:52]remove file /storage/0526/doc_00082347 [00:46:52]file doc_00082348 [00:46:52]remove file /storage/0526/doc_00082348 [00:46:52]file doc_00082349 [00:46:52]remove file /storage/0526/doc_00082349 [00:46:52]file doc_00082350 [00:46:52]remove file /storage/0526/doc_00082350 [00:46:52]file doc_00082351 [00:46:52]remove file /storage/0526/doc_00082351 [00:46:52]file doc_00082352 [00:46:52]remove file /storage/0526/doc_00082352 [00:46:52]file doc_00082353 [00:46:52]remove file /storage/0526/doc_00082353 [00:46:52]file doc_00082354 [00:46:52]remove file /storage/0526/doc_00082354 [00:46:52]file doc_00082355 [00:46:52]remove file /storage/0526/doc_00082355 [00:46:52]file doc_00082356 [00:46:52]remove file /storage/0526/doc_00082356 [00:46:52]file doc_00082357 [00:46:52]remove file /storage/0526/doc_00082357 [00:46:52]file doc_00082358 [00:46:52]remove file /storage/0526/doc_00082358 [00:46:52]file doc_00082359 [00:46:52]remove file /storage/0526/doc_00082359 [00:46:52]file doc_00082360 [00:46:52]remove file /storage/0526/doc_00082360 [00:46:52]file doc_00082361 [00:46:52]remove file /storage/0526/doc_00082361 [00:46:52]file doc_00082362 [00:46:52]remove file /storage/0526/doc_00082362 [00:46:52]file doc_00082363 [00:46:52]remove file /storage/0526/doc_00082363 [00:46:52]file doc_00082364 [00:46:52]remove file /storage/0526/doc_00082364 [00:46:52]file doc_00082365 [00:46:52]remove file /storage/0526/doc_00082365 [00:46:52]file doc_00082366 [00:46:52]remove file /storage/0526/doc_00082366 [00:46:52]file doc_00082367 [00:46:52]remove file /storage/0526/doc_00082367 [00:46:52]file doc_00082368 [00:46:52]remove file /storage/0526/doc_00082368 [00:46:52]file doc_00082369 [00:46:52]remove file /storage/0526/doc_00082369 [00:46:52]file doc_00082370 [00:46:52]remove file /storage/0526/doc_00082370 [00:46:52]file doc_00082371 [00:46:52]remove file /storage/0526/doc_00082371 [00:46:52]file doc_00082372 [00:46:52]remove file /storage/0526/doc_00082372 [00:46:52]file doc_00082373 [00:46:52]remove file /storage/0526/doc_00082373 [00:46:52]file doc_00082374 [00:46:52]remove file /storage/0526/doc_00082374 [00:46:52]file doc_00082375 [00:46:52]remove file /storage/0526/doc_00082375 [00:46:52]file doc_00082376 [00:46:52]remove file /storage/0526/doc_00082376 [00:46:52]file doc_00082377 [00:46:52]remove file /storage/0526/doc_00082377 [00:46:52]file doc_00082378 [00:46:52]remove file /storage/0526/doc_00082378 [00:46:52]file doc_00082379 [00:46:52]remove file /storage/0526/doc_00082379 [00:46:52]file doc_00082380 [00:46:53]remove file /storage/0526/doc_00082380 [00:46:53]file doc_00082381 [00:46:53]remove file /storage/0526/doc_00082381 [00:46:53]file doc_00082382 [00:46:53]remove file /storage/0526/doc_00082382 [00:46:53]file doc_00082383 [00:46:53]remove file /storage/0526/doc_00082383 [00:46:53]file doc_00082384 [00:46:53]remove file /storage/0526/doc_00082384 [00:46:53]file doc_00082385 [00:46:53]remove file /storage/0526/doc_00082385 [00:46:53]file doc_00082386 [00:46:53]remove file /storage/0526/doc_00082386 [00:46:53]file doc_00082387 [00:46:53]remove file /storage/0526/doc_00082387 [00:46:53]file doc_00082388 [00:46:53]remove file /storage/0526/doc_00082388 [00:46:53]file doc_00082389 [00:46:53]remove file /storage/0526/doc_00082389 [00:46:53]file doc_00082390 [00:46:53]remove file /storage/0526/doc_00082390 [00:46:53]file doc_00082391 [00:46:53]remove file /storage/0526/doc_00082391 [00:46:53]file doc_00082392 [00:46:53]remove file /storage/0526/doc_00082392 [00:46:53]file doc_00082393 [00:46:53]remove file /storage/0526/doc_00082393 [00:46:53]file doc_00082394 [00:46:53]remove file /storage/0526/doc_00082394 [00:46:53]file doc_00082395 [00:46:53]remove file /storage/0526/doc_00082395 [00:46:53]file doc_00082396 [00:46:53]remove file /storage/0526/doc_00082396 [00:46:53]file doc_00082397 [00:46:53]remove file /storage/0526/doc_00082397 [00:46:53]file doc_00082398 [00:46:53]remove file /storage/0526/doc_00082398 [00:46:53]file doc_00082399 [00:46:53]remove file /storage/0526/doc_00082399 [00:46:53]file doc_00082400 [00:46:53]remove file /storage/0526/doc_00082400 [00:46:53]file doc_00082401 [00:46:53]remove file /storage/0526/doc_00082401 [00:46:53]file doc_00082402 [00:46:53]remove file /storage/0526/doc_00082402 [00:46:53]file doc_00082403 [00:46:53]remove file /storage/0526/doc_00082403 [00:46:53]file doc_00082404 [00:46:53]remove file /storage/0526/doc_00082404 [00:46:53]file doc_00082405 [00:46:53]remove file /storage/0526/doc_00082405 [00:46:53]file doc_00082406 [00:46:53]remove file /storage/0526/doc_00082406 [00:46:53]file doc_00082407 [00:46:53]remove file /storage/0526/doc_00082407 [00:46:53]file doc_00082408 [00:46:53]remove file /storage/0526/doc_00082408 [00:46:53]file doc_00082409 [00:46:53]remove file /storage/0526/doc_00082409 [00:46:53]file doc_00082410 [00:46:53]remove file /storage/0526/doc_00082410 [00:46:53]file doc_00082411 [00:46:53]remove file /storage/0526/doc_00082411 [00:46:53]file doc_00082412 [00:46:53]remove file /storage/0526/doc_00082412 [00:46:53]file doc_00082413 [00:46:53]remove file /storage/0526/doc_00082413 [00:46:53]file doc_00082414 [00:46:53]remove file /storage/0526/doc_00082414 [00:46:53]file doc_00082415 [00:46:53]remove file /storage/0526/doc_00082415 [00:46:53]file doc_00082416 [00:46:53]remove file /storage/0526/doc_00082416 [00:46:53]file doc_00082417 [00:46:53]remove file /storage/0526/doc_00082417 [00:46:53]file doc_00082418 [00:46:53]remove file /storage/0526/doc_00082418 [00:46:53]file doc_00082419 [00:46:53]remove file /storage/0526/doc_00082419 [00:46:53]file doc_00082420 [00:46:53]remove file /storage/0526/doc_00082420 [00:46:53]file doc_00082421 [00:46:53]remove file /storage/0526/doc_00082421 [00:46:53]file doc_00082422 [00:46:53]remove file /storage/0526/doc_00082422 [00:46:53]file doc_00082423 [00:46:53]remove file /storage/0526/doc_00082423 [00:46:53]file doc_00082424 [00:46:53]remove file /storage/0526/doc_00082424 [00:46:53]file doc_00082425 [00:46:53]remove file /storage/0526/doc_00082425 [00:46:53]file doc_00082426 [00:46:53]remove file /storage/0526/doc_00082426 [00:46:53]file doc_00082427 [00:46:53]remove file /storage/0526/doc_00082427 [00:46:53]file doc_00082428 [00:46:53]remove file /storage/0526/doc_00082428 [00:46:53]file doc_00082429 [00:46:53]remove file /storage/0526/doc_00082429 [00:46:53]file doc_00082430 [00:46:53]remove file /storage/0526/doc_00082430 [00:46:53]file doc_00082431 [00:46:53]remove file /storage/0526/doc_00082431 [00:46:53]file doc_00082432 [00:46:53]remove file /storage/0526/doc_00082432 [00:46:53]file doc_00082433 [00:46:53]remove file /storage/0526/doc_00082433 [00:46:53]file doc_00082434 [00:46:53]remove file /storage/0526/doc_00082434 [00:46:53]file doc_00082435 [00:46:53]remove file /storage/0526/doc_00082435 [00:46:53]file doc_00082436 [00:46:53]remove file /storage/0526/doc_00082436 [00:46:53]file doc_00082437 [00:46:53]remove file /storage/0526/doc_00082437 [00:46:53]file doc_00082438 [00:46:53]remove file /storage/0526/doc_00082438 [00:46:53]file doc_00082439 [00:46:53]remove file /storage/0526/doc_00082439 [00:46:53]file doc_00082440 [00:46:53]remove file /storage/0526/doc_00082440 [00:46:53]file doc_00082441 [00:46:53]remove file /storage/0526/doc_00082441 [00:46:53]file doc_00082442 [00:46:53]remove file /storage/0526/doc_00082442 [00:46:53]file doc_00082443 [00:46:53]remove file /storage/0526/doc_00082443 [00:46:53]file doc_00082444 [00:46:53]remove file /storage/0526/doc_00082444 [00:46:53]file doc_00082445 [00:46:53]remove file /storage/0526/doc_00082445 [00:46:53]file doc_00082446 [00:46:53]remove file /storage/0526/doc_00082446 [00:46:53]file doc_00082447 [00:46:53]remove file /storage/0526/doc_00082447 [00:46:53]file doc_00082448 [00:46:53]remove file /storage/0526/doc_00082448 [00:46:53]file doc_00082449 [00:46:53]remove file /storage/0526/doc_00082449 [00:46:53]file doc_00082450 [00:46:53]remove file /storage/0526/doc_00082450 [00:46:53]file doc_00082451 [00:46:53]remove file /storage/0526/doc_00082451 [00:46:53]file doc_00082452 [00:46:53]remove file /storage/0526/doc_00082452 [00:46:53]file doc_00082453 [00:46:53]remove file /storage/0526/doc_00082453 [00:46:53]file doc_00082454 [00:46:53]remove file /storage/0526/doc_00082454 [00:46:53]file doc_00082455 [00:46:53]remove file /storage/0526/doc_00082455 [00:46:53]file doc_00082456 [00:46:53]remove file /storage/0526/doc_00082456 [00:46:53]file doc_00082457 [00:46:53]remove file /storage/0526/doc_00082457 [00:46:53]file doc_00082458 [00:46:53]remove file /storage/0526/doc_00082458 [00:46:53]file doc_00082459 [00:46:53]remove file /storage/0526/doc_00082459 [00:46:53]file doc_00082460 [00:46:53]remove file /storage/0526/doc_00082460 [00:46:53]file doc_00082461 [00:46:53]remove file /storage/0526/doc_00082461 [00:46:53]file doc_00082462 [00:46:53]remove file /storage/0526/doc_00082462 [00:46:53]file doc_00082463 [00:46:53]remove file /storage/0526/doc_00082463 [00:46:53]file doc_00082464 [00:46:53]remove file /storage/0526/doc_00082464 [00:46:53]file doc_00082465 [00:46:53]remove file /storage/0526/doc_00082465 [00:46:53]file doc_00082466 [00:46:53]remove file /storage/0526/doc_00082466 [00:46:53]file doc_00082467 [00:46:53]remove file /storage/0526/doc_00082467 [00:46:53]file doc_00082468 [00:46:53]remove file /storage/0526/doc_00082468 [00:46:53]file doc_00082469 [00:46:53]remove file /storage/0526/doc_00082469 [00:46:53]file doc_00082470 [00:46:53]remove file /storage/0526/doc_00082470 [00:46:53]file doc_00082471 [00:46:53]remove file /storage/0526/doc_00082471 [00:46:53]file doc_00082472 [00:46:53]remove file /storage/0526/doc_00082472 [00:46:53]file doc_00082473 [00:46:53]remove file /storage/0526/doc_00082473 [00:46:53]file doc_00082474 [00:46:53]remove file /storage/0526/doc_00082474 [00:46:53]file doc_00082475 [00:46:53]remove file /storage/0526/doc_00082475 [00:46:53]file doc_00082476 [00:46:53]remove file /storage/0526/doc_00082476 [00:46:53]file doc_00082477 [00:46:53]remove file /storage/0526/doc_00082477 [00:46:53]file doc_00082478 [00:46:53]remove file /storage/0526/doc_00082478 [00:46:53]file doc_00082479 [00:46:53]remove file /storage/0526/doc_00082479 [00:46:53]file doc_00082480 [00:46:53]remove file /storage/0526/doc_00082480 [00:46:53]file doc_00082481 [00:46:53]remove file /storage/0526/doc_00082481 [00:46:53]file doc_00082482 [00:46:53]remove file /storage/0526/doc_00082482 [00:46:53]file doc_00082483 [00:46:53]remove file /storage/0526/doc_00082483 [00:46:53]file doc_00082484 [00:46:53]remove file /storage/0526/doc_00082484 [00:46:53]file doc_00082485 [00:46:53]remove file /storage/0526/doc_00082485 [00:46:53]file doc_00082486 [00:46:53]remove file /storage/0526/doc_00082486 [00:46:53]file doc_00082487 [00:46:53]remove file /storage/0526/doc_00082487 [00:46:53]file doc_00082488 [00:46:53]remove file /storage/0526/doc_00082488 [00:46:53]file doc_00082489 [00:46:53]remove file /storage/0526/doc_00082489 [00:46:53]file doc_00082490 [00:46:53]remove file /storage/0526/doc_00082490 [00:46:53]file doc_00082491 [00:46:53]remove file /storage/0526/doc_00082491 [00:46:53]file doc_00082492 [00:46:53]remove file /storage/0526/doc_00082492 [00:46:53]file doc_00082493 [00:46:53]remove file /storage/0526/doc_00082493 [00:46:53]file doc_00082494 [00:46:53]remove file /storage/0526/doc_00082494 [00:46:53]file doc_00082495 [00:46:53]remove file /storage/0526/doc_00082495 [00:46:53]file doc_00082496 [00:46:53]remove file /storage/0526/doc_00082496 [00:46:53]file doc_00082497 [00:46:53]remove file /storage/0526/doc_00082497 [00:46:53]file doc_00082498 [00:46:53]remove file /storage/0526/doc_00082498 [00:46:53]file doc_00082499 [00:46:53]remove file /storage/0526/doc_00082499 [00:46:53]file doc_00082500 [00:46:53]remove file /storage/0526/doc_00082500 [00:46:53]file doc_00082501 [00:46:53]remove file /storage/0526/doc_00082501 [00:46:53]file doc_00082502 [00:46:53]remove file /storage/0526/doc_00082502 [00:46:53]remove dir /storage/0526 [00:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=272 [00:46:53]tlvbuf is B6E6BBE0 [00:46:53]SAM_PROTO_ClearQueue [00:46:53]wFMCommunicate request_size=4 [00:46:53]MH_SAM_APDU [00:46:53]CAPDU: 80 09 00 00 [00:46:53]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [00:46:53]Write i2c OK [00:46:53]MH_I2C_Read... [00:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:53]Read from MH i2c: E2 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: E2 03 00 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [00:46:53]RAPDU: 90 00 [00:46:53]wFMCommunicate OK [00:46:53]SAM_PROTO_ClearQueue done [00:46:53]KKMCreateOFDPacket [00:46:53]OFDProtocolAddRootSTLVToBuf [00:46:53]FM_MakeSignedData [00:46:53]FM_MakeSignedData [00:46:53]SAM_PROTO_SignData [00:46:53]wFMCommunicate request_size=4 [00:46:53]MH_SAM_APDU [00:46:53]CAPDU: 80 0D 01 02 [00:46:53]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [00:46:53]Write i2c OK [00:46:53]MH_I2C_Read... [00:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:53]Read from MH i2c: E2 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: E2 03 00 [00:46:53]MH_I2C_Read... [00:46:53]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [00:46:53]RAPDU: 90 00 [00:46:53]wFMCommunicate OK [00:46:53]wFMCommunicate request_size=255 [00:46:53]MH_SAM_APDU [00:46:53]CAPDU: 80 0D 02 02 FA 02 00 10 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D0 B5 D0 BA D1 81 D0 B5 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 7B 01 13 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 42 01 00 11 04 10 00 [00:46:53]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 02 00 10 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D0 B5 D0 BA D1 81 D0 B5 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 7B 01 13 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 42 01 00 11 04 10 00 00 00 BE [00:46:53]Write i2c OK [00:46:53]MH_I2C_Read... [00:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:54]Read from MH i2c: E2 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 03 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [00:46:54]RAPDU: 90 00 [00:46:54]wFMCommunicate OK [00:46:54]wFMCommunicate request_size=31 [00:46:54]MH_SAM_APDU [00:46:54]CAPDU: 80 0D 02 02 1A 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 4A 59 1C 4F 36 5A [00:46:54]Write to MH i2c: E2 22 00 24 02 80 0D 02 02 1A 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 4A 59 1C 4F 36 5A 00 00 D0 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:54]Read from MH i2c: E2 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 03 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [00:46:54]RAPDU: 90 00 [00:46:54]wFMCommunicate OK [00:46:54]wFMCommunicate request_size=4 [00:46:54]MH_SAM_APDU [00:46:54]CAPDU: 80 0D 03 02 [00:46:54]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:54]Read from MH i2c: E2 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 0B 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 0B 00 25 02 00 B1 D0 9A 7A F3 A2 A8 CC 90 00 41 [00:46:54]RAPDU: B1 D0 9A 7A F3 A2 A8 CC 90 00 [00:46:54]wFMCommunicate OK [00:46:54]SAM_PROTO_SignData done [00:46:54]FM_MakeSignedData done [00:46:54]CreateOFDProtocolMessage [00:46:54]wFMCommunicate request_size=4 [00:46:54]MH_SAM_APDU [00:46:54]CAPDU: 80 11 00 00 [00:46:54]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:54]Read from MH i2c: E2 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 17 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 F4 [00:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [00:46:54]wFMCommunicate OK [00:46:54]CreateOFDProtocolMessage done [00:46:54]OFDSenderStorePacket 82503 [00:46:54]StoreOFDPacket docnum=82503 [00:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 24 01 00 00 46 EE 1C 01 F6 35 5A 02 01 00 02 00 10 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D0 B5 D0 BA D1 81 D0 B5 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 7B 01 13 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 4A 59 1C 4F 36 5A B1 D0 9A 7A F3 A2 A8 CC [00:46:54]CheckFolder [00:46:54]dirname=/storage/ofd_packets [00:46:54]CheckFolder done [00:46:54]ProducePacketName [00:46:54]name=ofd_packets/00082503 [00:46:54]NVStorageSaveData ofd_packets/00082503 [00:46:54]File name is /storage/ofd_packets/00082503 [00:46:54]Write 322 bytes [00:46:54]NVStorageSaveData done [00:46:54]OFDSenderStorePacket done [00:46:54]KKMCreateOFDPacket done [00:46:54]NVStorageSaveData kkm_last_timestamp [00:46:54]File name is /storage/kkm_last_timestamp [00:46:54]Write 4 bytes [00:46:54]NVStorageSaveData done [00:46:54]ExternCall_PrintAddStr [00:46:54]wPrintStart [00:46:54]Write to MH i2c: 01 00 00 27 02 29 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: 01 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: 01 07 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [00:46:54]RasterBufferAndPrint [00:46:54]line Отчет об открытии смены [00:46:54]line ФФД: 1.0 [00:46:54]line ИНН: 02508201610067 [00:46:54]line Кассир: Сексенбаев А. [00:46:54]line Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 [00:46:54]line Место: АЗС № 114 "Партнер Нефть" [00:46:54]line 19.10.2024 00:46 [00:46:54]line Смена: 527 [00:46:54]line РНМ: 0000000000091680 [00:46:54]line ЗНМ: 0300000086 [00:46:54]line ФД: 82503 [00:46:54]line ФМ: 0000000000871843 [00:46:54]line ФПД: 81746587498074 [00:46:54]written 0, free lines is 4095 [00:46:54]OFD Sender: Processing packet 82503 [packets to send 254, broken 253] [00:46:54]ProducePacketName [00:46:54]name=ofd_packets/00082503 [00:46:54]OFD Sender: To server: pG, [00:46:54]CommunicateWithHost lk.salyk.kg:30040 [00:46:54]ConnectInit lk.salyk.kg [00:46:54]Write to MH i2c: 01 00 00 39 02 3B [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: 01 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: 01 07 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 5B 0E AB [00:46:54]RasterBufferAndPrint [00:46:54]line [00:46:54]line [00:46:54]line [00:46:54]line [00:46:54]line [00:46:54]written 0, free lines is 3687 [00:46:54]MH_Cut [00:46:54]Write to MH i2c: D1 01 00 40 02 01 14 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: D1 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: D1 01 00 [00:46:54]MH_I2C_Read... [00:46:54]Read from MH i2c: D1 01 00 40 02 00 13 [00:46:54]Write to MH i2c: 01 00 00 41 02 43 [00:46:54]Write i2c OK [00:46:54]MH_I2C_Read... [00:46:55]*** Cut start [00:46:55]*** Partial cut [00:46:55]*** CUTSNS_PIN = 1 [00:46:55]*** CUTSNS_PIN = 0 [00:46:55]Connected sock=10 [00:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 24 01 00 00 46 EE 1C 01 F6 35 5A 02 01 00 02 00 10 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A1 D0 B5 D0 BA D1 81 D0 B5 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 60 00 37 32 30 30 30 31 2C 20 63 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 20 34 38 2C 20 34 30 2E 39 32 32 *** Brake cut motor [00:46:55]33 31 34 2C 20 37 32 2E 39 36 31 36 39 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 34 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 7B 01 13 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 35 04 06 00 4A 59 1C 4F 36 5A B1 D0 9A 7A F3 A2 A8 CC [00:46:55]Read from MH i2c: 01 *** Stop cut motor [00:46:55] [00:46:55]*** Cut end [00:46:55]MH_I2C_Read... [00:46:55]Read from MH i2c: 01 07 00 [00:46:55]MH_I2C_Read... [00:46:55]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [00:46:55]process_action open_shift done [00:46:55]requested_data is exist [00:46:55]produce_requested_data [00:46:55]requested_item fd.num is exist - process it [00:46:55]SAM_PROTO_GetFieldsCounters [00:46:55]wFMCommunicate request_size=4 [00:46:55]MH_SAM_APDU [00:46:55]CAPDU: 80 13 00 00 [00:46:55]Write to MH i2c: E2 08 00 42 02 80 13 00 00 00 00 00 00 C0 [00:46:55]Write i2c OK [00:46:55]MH_I2C_Read... [00:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:55]Read from MH i2c: E2 [00:46:55]MH_I2C_Read... [00:46:55]Read from MH i2c: E2 62 00 [00:46:55]MH_I2C_Read... [00:46:55]Read from MH i2c: E2 62 00 42 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 42 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [00:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 10 04 04 00 47 42 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:55]wFMCommunicate OK [00:46:55]SAM_PROTO_GetFieldsCounters done [00:46:55]requested_item shift.num is exist - process it [00:46:55]requested_item shift.opened is exist - process it [00:46:55]req_shift_opened [00:46:55]FM_GetShiftState [00:46:55]SAM_PROTO_GetShiftState [00:46:55]wFMCommunicate request_size=4 [00:46:55]MH_SAM_APDU [00:46:55]CAPDU: 80 13 01 00 [00:46:55]Write to MH i2c: E2 08 00 43 02 80 13 01 00 00 00 00 00 C2 [00:46:55]Write i2c OK [00:46:55]MH_I2C_Read... [00:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 4F 00 00 00 50 64 47 00 C6 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 47 42 01 00 F4 03 04 00 B6 A6 12 67 B6 04 01 00 00 C4 03 1A FC BE E8 FD 48 [00:46:56]CommunicateWithHost err = 0 [00:46:56]CheckOFDResponse [00:46:56]1017 (14) - 77093643461234 [00:46:56]1041 (16) - 0000000000871843 [00:46:56]1040 (4) - 82503 [00:46:56]1012 (4) - 18.10.2024 18:19 [00:46:56]1206 (1) - 0 [00:46:56]OFD Sender: Remove packet 82503 [00:46:56]ProducePacketName [00:46:56]name=ofd_packets/00082503 [00:46:56]NVStorageDeleteData [00:46:56]Read from MH i2c: E2 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: E2 0E 00 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: E2 0E 00 43 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 C4 [00:46:56]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [00:46:56]wFMCommunicate OK [00:46:56]SAM_PROTO_GetShiftState done [00:46:56]FM_GetShiftState done [00:46:56]req_shift_opened done [00:46:56]requested_item shift.open_date is exist - process it [00:46:56]req_shift_open_date [00:46:56]req_shift_open_date done [00:46:56]produce_requested_data done [00:46:56]produce_requested_data return {"fd.num":82503,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811} [00:46:56]process_action_free open_shift [00:46:56]json_value_free [00:46:56]json_value_free done [00:46:56]process_json_proto returns [00:46:56]Send response to host [00:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":82503,"shift.num":527,"shift.opened":1,"shift.open_date":1729298811}}} [00:46:56]free response buf [00:46:56]execute_script done [00:46:56]execute_script returns [00:46:56]free content buf [00:46:56]Sock 9.Close socket [00:46:56]Sock 9.Thread stoped [00:46:56]accept exits with 7 [00:46:56]New connection [00:46:56]New thread 3066703204 created [00:46:56]Thread 3066559844 joined [00:46:56]Waiting for new connection... [00:46:56] Sock 7.Parse request [00:46:56]Sock 7.Check first char [00:46:56]Sock 7.First char is OK [00:46:56]request: POST /json_proto HTTP/1.0 [00:46:56]Method: POST [00:46:56]URL: /json_proto [00:46:56]Method is POST - this is cgi request [00:46:56]url: /json_proto [00:46:56]query_string will be loaded in cgi processing [00:46:56]execute_cgi json_proto POST (null) [00:46:56]execute_cgi path=json_proto method=POST [00:46:56]POST find Content-Length [00:46:56]Host: 172.17.44.67:8080 [00:46:56]Content-Length: 331 [00:46:56]Content-Type: application/json [00:46:56] [00:46:56]POST finish read [00:46:56]Found Content-Length = 331 [00:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:46:56]execute_script... [00:46:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:46:56]POST & json_proto [00:46:56]process_json_proto [00:46:56]json parsed OK: [00:46:56]protocol is kg_v1.0 [00:46:56]action value=get_value [00:46:56]process_action get_value [00:46:56]cmd_get_value [00:46:56]process_action get_value done [00:46:56]requested_data is exist [00:46:56]produce_requested_data [00:46:56]requested_item fm.sale.total is exist - process it [00:46:56]SAM_PROTO_GetFMData [00:46:56]wFMCommunicate request_size=4 [00:46:56]MH_SAM_APDU [00:46:56]CAPDU: 80 13 03 00 [00:46:56]Write to MH i2c: E2 08 00 44 02 80 13 03 00 00 00 00 00 C5 [00:46:56]Write i2c OK [00:46:56]MH_I2C_Read... [00:46:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:46:56]Read from MH i2c: E2 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: E2 FD 00 [00:46:56]MH_I2C_Read... [00:46:56]Read from MH i2c: E2 FD 00 44 02 00 C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 OFD Sender: No OFD packet to send [00:46:56]00 DA [00:46:56]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 29 3E 01 00 69 04 A3 00 6F 04 04 00 8E 3B 01 00 B1 04 05 00 9F C4 FB 7B 01 70 04 05 00 A4 EE 7F 41 01 72 04 04 00 FB D5 7B 3A 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 81 AC 5D 28 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 6D 10 5D 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 9E 00 6F 04 04 00 9B 02 00 00 B1 04 04 00 A0 7C 16 13 70 04 04 00 38 3A 16 13 72 04 02 00 68 42 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 60 F3 06 02 EF 90 00 [00:46:56]wFMCommunicate OK [00:46:56]wFMCommunicate request_size=4 [00:46:56]MH_SAM_APDU [00:46:56]CAPDU: 80 17 00 00 [00:46:56]Write to MH i2c: E2 08 00 45 02 80 17 00 00 00 00 00 00 C7 [00:46:56]Write i2c OK [00:46:56]MH_I2C_Read... [00:46:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:57]Read from MH i2c: E2 [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: E2 FD 00 [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: E2 FD 00 45 02 00 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [00:46:57]RAPDU: 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 AE 3E 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:46:57]wFMCommunicate OK [00:46:57]wFMCommunicate request_size=4 [00:46:57]MH_SAM_APDU [00:46:57]CAPDU: 80 17 00 00 [00:46:57]Write to MH i2c: E2 08 00 46 02 80 17 00 00 00 00 00 00 C8 [00:46:57]Write i2c OK [00:46:57]MH_I2C_Read... [00:46:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:57]Read from MH i2c: E2 [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: E2 FD 00 [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: E2 FD 00 46 02 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [00:46:57]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:46:57]wFMCommunicate OK [00:46:57]wFMCommunicate request_size=4 [00:46:57]MH_SAM_APDU [00:46:57]CAPDU: 80 17 00 00 [00:46:57]Write to MH i2c: E2 08 00 47 02 80 17 00 00 00 00 00 00 C9 [00:46:57]Write i2c OK [00:46:57]MH_I2C_Read... [00:46:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:57]Read from MH i2c: E2 [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: E2 FD 00 [00:46:57]MH_I2C_Read... [00:46:57]Read from MH i2c: E2 FD 00 47 02 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [00:46:58]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:46:58]wFMCommunicate OK [00:46:58]wFMCommunicate request_size=4 [00:46:58]MH_SAM_APDU [00:46:58]CAPDU: 80 17 00 00 [00:46:58]Write to MH i2c: E2 08 00 48 02 80 17 00 00 00 00 00 00 CA [00:46:58]Write i2c OK [00:46:58]MH_I2C_Read... [00:46:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:46:58]Read from MH i2c: E2 [00:46:58]MH_I2C_Read... [00:46:58]Read from MH i2c: E2 E4 00 [00:46:58]MH_I2C_Read... [00:46:58]Read from MH i2c: E2 E4 00 48 02 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AA [00:46:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:46:58]wFMCommunicate OK [00:46:58]SAM_PROTO_GetFMData done [00:46:58]requested_item fm.sale_refund.total is exist - process it [00:46:58]requested_item fm.buy.total is exist - process it [00:46:58]requested_item shift.sale.total is exist - process it [00:46:58]SAM_PROTO_GetShiftData [00:46:58]wFMCommunicate request_size=4 [00:46:58]MH_SAM_APDU [00:46:58]CAPDU: 80 13 02 00 [00:46:58]Write to MH i2c: E2 08 00 49 02 80 13 02 00 00 00 00 00 C9 [00:46:58]Write i2c OK [00:46:58]MH_I2C_Read... [00:46:58]recv_with_timeout no data received [00:46:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:46:59]Read from MH i2c: E2 [00:46:59]MH_I2C_Read... [00:46:59]Read from MH i2c: E2 FD 00 [00:46:59]MH_I2C_Read... [00:46:59]Read from MH i2c: E2 FD 00 49 02 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 3C [00:46:59]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:46:59]wFMCommunicate OK [00:46:59]wFMCommunicate request_size=4 [00:46:59]MH_SAM_APDU [00:46:59]CAPDU: 80 17 00 00 [00:46:59]Write to MH i2c: E2 08 00 4A 02 80 17 00 00 00 00 00 00 CC [00:46:59]Write i2c OK [00:46:59]MH_I2C_Read... [00:46:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:46:59]Read from MH i2c: E2 [00:46:59]MH_I2C_Read... [00:46:59]Read from MH i2c: E2 FD 00 [00:46:59]MH_I2C_Read... [00:46:59]Read from MH i2c: E2 FD 00 4A 02 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 D4 [00:46:59]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:46:59]wFMCommunicate OK [00:46:59]wFMCommunicate request_size=4 [00:46:59]MH_SAM_APDU [00:46:59]CAPDU: 80 17 00 00 [00:46:59]Write to MH i2c: E2 08 00 4B 02 80 17 00 00 00 00 00 00 CD [00:46:59]Write i2c OK [00:46:59]MH_I2C_Read... [00:47:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:47:00]Read from MH i2c: E2 [00:47:00]MH_I2C_Read... [00:47:00]Read from MH i2c: E2 FD 00 [00:47:00]MH_I2C_Read... [00:47:00]Read from MH i2c: E2 FD 00 4B 02 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 9F [00:47:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:47:00]wFMCommunicate OK [00:47:00]wFMCommunicate request_size=4 [00:47:00]MH_SAM_APDU [00:47:00]CAPDU: 80 17 00 00 [00:47:00]Write to MH i2c: E2 08 00 4C 02 80 17 00 00 00 00 00 00 CE [00:47:00]Write i2c OK [00:47:00]MH_I2C_Read... [00:47:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:47:00]Read from MH i2c: E2 [00:47:00]MH_I2C_Read... [00:47:00]Read from MH i2c: E2 FD 00 [00:47:00]MH_I2C_Read... [00:47:00]Read from MH i2c: E2 FD 00 4C 02 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 40 [00:47:00]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:47:00]wFMCommunicate OK [00:47:00]wFMCommunicate request_size=4 [00:47:00]MH_SAM_APDU [00:47:00]CAPDU: 80 17 00 00 [00:47:00]Write to MH i2c: E2 08 00 4D 02 80 17 00 00 00 00 00 00 CF [00:47:00]Write i2c OK [00:47:00]MH_I2C_Read... [00:47:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:47:01]Read from MH i2c: E2 [00:47:01]MH_I2C_Read... [00:47:01]Read from MH i2c: E2 BD 00 [00:47:01]MH_I2C_Read... [00:47:01]Read from MH i2c: E2 BD 00 4D 02 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 B5 [00:47:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:47:01]wFMCommunicate OK [00:47:01]SAM_PROTO_GetShiftData done [00:47:01]requested_item shift.sale.total_cash is exist - process it [00:47:01]requested_item shift.sale_refund.total is exist - process it [00:47:01]requested_item shift.sale_refund.total_cash is exist - process it [00:47:01]requested_item shift.buy.total is exist - process it [00:47:01]requested_item shift.buy.total_cash is exist - process it [00:47:01]produce_requested_data done [00:47:01]produce_requested_data return {"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:47:01]process_action_free get_value [00:47:01]json_value_free [00:47:01]json_value_free done [00:47:01]process_json_proto returns [00:47:01]Send response to host [00:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":63750647.35,"fm.sale_refund.total":3202408.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:47:01]free response buf [00:47:01]execute_script done [00:47:01]execute_script returns [00:47:01]free content buf [00:47:01]Sock 7.Close socket [00:47:01]Sock 7.Thread stoped [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:35]recv_with_timeout no data received [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:45]recv_with_timeout no data received [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]recv_with_timeout no data received [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:15]recv_with_timeout no data received [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:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:46]recv_with_timeout no data received [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:31]recv_with_timeout no data received [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:12]recv_with_timeout no data received [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:38]recv_with_timeout no data received [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47: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:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:02]accept exits with 9 [02:16:02]New connection [02:16:02]New thread 3066559844 created [02:16:02]Thread 3066703204 joined [02:16:02]Waiting for new connection... [02:16:02] Sock 9.Parse request [02:16:02]Sock 9.Check first char [02:16:02]Sock 9.First char is OK [02:16:02]request: POST /json_proto HTTP/1.0 [02:16:02]Method: POST [02:16:02]URL: /json_proto [02:16:02]Method is POST - this is cgi request [02:16:02]url: /json_proto [02:16:02]query_string will be loaded in cgi processing [02:16:02]execute_cgi json_proto POST (null) [02:16:02]execute_cgi path=json_proto method=POST [02:16:02]POST find Content-Length [02:16:02]Host: 172.17.44.67:8080 [02:16:02]Content-Length: 766 [02:16:02]Content-Type: application/json [02:16:02] [02:16:02]POST finish read [02:16:02]Found Content-Length = 766 [02:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)918994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:02]execute_script... [02:16: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)918994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:02]POST & json_proto [02:16:02]process_json_proto [02:16:02]json parsed OK: [02:16:02]protocol is kg_v1.0 [02:16:02]action value=close_receipt [02:16:02]process_action close_receipt [02:16:02]cmd_close_receipt [02:16:02]MH_GetDate [02:16:02]Write to MH i2c: F0 00 00 4E 02 3F [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: F0 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: F0 09 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: F0 09 00 4E 02 00 63 16 13 67 F1 C7 6B 64 C2 [02:16:02]GetLastDocTimeStamp 1729298811 [02:16:02]current date 1729304163 [02:16:02]FM_GetShiftState [02:16:02]SAM_PROTO_GetShiftState [02:16:02]wFMCommunicate request_size=4 [02:16:02]MH_SAM_APDU [02:16:02]CAPDU: 80 13 01 00 [02:16:02]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [02:16:02]Write i2c OK [02:16:02]MH_I2C_Read... [02:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:02]Read from MH i2c: E2 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 0E 00 [02:16:02]MH_I2C_Read... [02:16:02]Read from MH i2c: E2 0E 00 4F 02 00 09 00 01 7B 01 13 67 00 00 00 00 90 00 D0 [02:16:02]RAPDU: 09 00 01 7B 01 13 67 00 00 00 00 90 00 [02:16:02]wFMCommunicate OK [02:16:02]SAM_PROTO_GetShiftState done [02:16:02]FM_GetShiftState done [02:16:02]opened in 1729298811 [02:16:02]opened+sec_in_day 1729385211 [02:16:02]quantity*price = 20003 [02:16:02]sum+1 = 20004 [02:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 114 "Партнер Нефть" Адрес: 720001, c. Лавдан Кара, ул. Курманбек Баатыр 48, 40.922314, 72.961699 СНО: Общий режим Чек 1 19.10.2024 02:16 Смена: 527 ФФД: 1.0 ЗНМ: 0300000086 РНМ: 0000000000091680 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871843 ФД: 82504 ФПД: 36815262588266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241019T021603&type=1&operation_type=1&fn_number=0000000000871843&fd_number=82504&fm=36815262588266&tin=02508201610067®Number=0000000000091680&sum=20003 [02:16:03]StoreToDocumentArchive [02:16:03]shift 527 fd 82504 [02:16:03]save to /storage/0527/doc_00082504 [02:16:03]save last doc name /storage/0527/doc_00082504 to /storage/kkm_last_doc_name [02:16:03]save OK [02:16:03]Clear old archive folders... [02:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:16:03]tlvbuf is 01D0B620 [02:16:03]SAM_PROTO_ClearQueue [02:16:03]wFMCommunicate request_size=4 [02:16:03]MH_SAM_APDU [02:16:03]CAPDU: 80 09 00 00 [02:16:03]Write to MH i2c: E2 08 00 5C 02 80 09 00 00 00 00 00 00 D0 [02:16:03]Write i2c OK [02:16:03]MH_I2C_Read... [02:16:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:03]Read from MH i2c: E2 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: E2 03 00 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [02:16:03]RAPDU: 90 00 [02:16:03]wFMCommunicate OK [02:16:03]SAM_PROTO_ClearQueue done [02:16:03]KKMCreateOFDPacket [02:16:03]OFDProtocolAddRootSTLVToBuf [02:16:03]FM_MakeSignedData [02:16:03]FM_MakeSignedData [02:16:03]SAM_PROTO_SignData [02:16:03]wFMCommunicate request_size=4 [02:16:03]MH_SAM_APDU [02:16:03]CAPDU: 80 0D 01 02 [02:16:03]Write to MH i2c: E2 08 00 5D 02 80 0D 01 02 00 00 00 00 D8 [02:16:03]Write i2c OK [02:16:03]MH_I2C_Read... [02:16:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:03]Read from MH i2c: E2 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: E2 03 00 [02:16:03]MH_I2C_Read... [02:16:03]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [02:16:03]RAPDU: 90 00 [02:16:03]wFMCommunicate OK [02:16:03]wFMCommunicate request_size=255 [02:16:03]MH_SAM_APDU [02:16: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 63 16 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 42 01 00 35 04 06 00 21 [02:16:03]Write to MH i2c: E2 02 01 5E 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 63 16 13 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 38 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 10 04 04 00 48 42 01 00 35 04 06 00 21 00 00 DD [02:16:03]Write i2c OK [02:16:03]MH_I2C_Read... [02:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:04]Read from MH i2c: E2 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 03 00 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [02:16:04]RAPDU: 90 00 [02:16:04]wFMCommunicate OK [02:16:04]wFMCommunicate request_size=10 [02:16:04]MH_SAM_APDU [02:16:04]CAPDU: 80 0D 02 02 05 7B B8 A6 1D 6A [02:16:04]Write to MH i2c: E2 0D 00 5F 02 80 0D 02 02 05 00 7B B8 A6 1D 6A 00 00 45 [02:16:04]Write i2c OK [02:16:04]MH_I2C_Read... [02:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:04]Read from MH i2c: E2 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 03 00 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [02:16:04]RAPDU: 90 00 [02:16:04]wFMCommunicate OK [02:16:04]wFMCommunicate request_size=4 [02:16:04]MH_SAM_APDU [02:16:04]CAPDU: 80 0D 03 02 [02:16:04]Write to MH i2c: E2 08 00 60 02 80 0D 03 02 00 00 00 00 DD [02:16:04]Write i2c OK [02:16:04]MH_I2C_Read... [02:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:04]Read from MH i2c: E2 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 0B 00 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 0B 00 60 02 00 C1 96 C6 D6 67 23 41 2D 90 00 C9 [02:16:04]RAPDU: C1 96 C6 D6 67 23 41 2D 90 00 [02:16:04]wFMCommunicate OK [02:16:04]SAM_PROTO_SignData done [02:16:04]FM_MakeSignedData done [02:16:04]CreateOFDProtocolMessage [02:16:04]wFMCommunicate request_size=4 [02:16:04]MH_SAM_APDU [02:16:04]CAPDU: 80 11 00 00 [02:16:04]Write to MH i2c: E2 08 00 61 02 80 11 00 00 00 00 00 00 DD [02:16:04]Write i2c OK [02:16:04]MH_I2C_Read... [02:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:04]Read from MH i2c: E2 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 17 00 [02:16:04]MH_I2C_Read... [02:16:04]Read from MH i2c: E2 17 00 61 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 2F [02:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 34 33 90 00 [02:16:04]wFMCommunicate OK [02:16:04]CreateOFDProtocolMessage done [02:16:04]OFDSenderStorePacket 82504 [02:16:04]StoreOFDPacket docnum=82504